:root{
  --background:#f7f8fa; --foreground:#1a1d24; --panel:#ffffff; --sidebar-bg:#eef0f4;
  --muted:#eef0f4; --muted-fg:#5b6070; --border:rgba(0,0,0,0.1);
  --accent:#d49a2a; --accent-fg:#fff; --card:#fff;
  --shadow-card:0 4px 24px -8px rgba(0,0,0,0.15);
}
.dark{
  --background:#161821; --foreground:#f0f1f5; --panel:#22252f; --sidebar-bg:#1d2029;
  --muted:#2a2d38; --muted-fg:#a8acb8; --border:rgba(255,255,255,0.08);
  --accent:#e8b85a; --accent-fg:#1a1d24; --card:#262934;
  --shadow-card:0 4px 24px -8px rgba(0,0,0,0.6);
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{background:var(--background);color:var(--foreground);font-family:Inter,system-ui,sans-serif;line-height:1.5;min-height:100vh}
a{color:inherit;text-decoration:none}
.layout{max-width:1200px;margin:0 auto;display:flex;flex-direction:column;gap:1.5rem;padding:1rem}
@media(min-width:1024px){.layout{flex-direction:row;padding:2rem;gap:1.5rem}}
.sidebar{background:var(--sidebar-bg);border-radius:1rem;padding:1.25rem;box-shadow:var(--shadow-card)}
@media(min-width:1024px){.sidebar{width:18rem;flex-shrink:0;position:sticky;top:1.5rem;align-self:flex-start;max-height:calc(100vh - 3rem);overflow-y:auto;padding:1.5rem;text-align:center}}
.sidebar-top{display:flex;align-items:center;gap:0.75rem;justify-content:space-between}
@media(min-width:1024px){.sidebar-top{flex-direction:column;gap:0;justify-content:center}}
.avatar{width:4rem;height:4rem;border-radius:1rem;background:var(--muted);display:flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0}
@media(min-width:1024px){.avatar{width:9rem;height:9rem;margin:0.5rem auto}}
.avatar img{width:100%;height:100%;object-fit:cover}
.initials{font-size:1.75rem;font-weight:600;color:var(--muted-fg)}
.profile-name{flex:1;min-width:0}
@media(min-width:1024px){.profile-name{margin-top:1rem}}
.profile-name h1{font-size:1.25rem;font-weight:700}
.profile-name p{font-size:0.85rem;color:var(--muted-fg)}
.menu-btn{background:none;border:1px solid var(--border);border-radius:0.5rem;padding:0.4rem 0.6rem;cursor:pointer;color:inherit;font-size:1rem}
@media(min-width:1024px){.menu-btn{display:none}}
.socials{display:none;flex-wrap:wrap;gap:0.5rem;justify-content:center;margin-top:1rem}
@media(min-width:1024px){.socials{display:flex}}
.social{background:var(--muted);padding:0.4rem 0.75rem;border-radius:0.5rem;font-size:0.75rem;transition:.2s}
.social:hover{background:var(--accent);color:var(--accent-fg)}
.info{display:none;margin-top:1.25rem;padding-top:1.25rem;border-top:1px solid var(--border);gap:0.9rem;flex-direction:column;text-align:left}
@media(min-width:1024px){.info{display:flex}}
.info-row{display:flex;gap:0.75rem;align-items:flex-start}
.ico{width:2.25rem;height:2.25rem;border-radius:0.5rem;background:color-mix(in oklab, var(--accent) 15%, transparent);color:var(--accent);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.lbl{font-size:0.65rem;font-weight:600;letter-spacing:0.1em;color:var(--muted-fg)}
.val{font-size:0.85rem;word-break:break-word}
.main{flex:1;min-width:0;background:var(--panel);border-radius:1rem;box-shadow:var(--shadow-card)}
.topnav{display:none;align-items:center;border-bottom:1px solid var(--border);padding:0.75rem 1rem;gap:0.25rem;flex-wrap:wrap}
.topnav.open{display:flex}
@media(min-width:1024px){.topnav{display:flex}}
.nav-links{display:flex;flex:1;flex-wrap:wrap;flex-direction:column;gap:0.25rem}
@media(min-width:1024px){.nav-links{flex-direction:row}}
.nav-link{padding:0.5rem 1rem;border-radius:0.5rem;font-size:0.875rem;font-weight:500;color:var(--muted-fg);transition:.2s}
.nav-link:hover{background:var(--muted);color:var(--foreground)}
.nav-link.active{color:var(--accent);background:color-mix(in oklab, var(--muted) 60%, transparent)}
.theme-toggle{background:none;border:1px solid var(--border);border-radius:0.5rem;padding:0.4rem 0.6rem;cursor:pointer;color:inherit;font-size:1rem}
.content{padding:1.5rem}
@media(min-width:768px){.content{padding:2.5rem}}
.section-heading{margin-bottom:2rem}
.eyebrow{font-size:0.7rem;font-weight:600;text-transform:uppercase;letter-spacing:0.2em;color:var(--accent);margin-bottom:0.5rem}
.accent-underline{position:relative;display:inline-block;font-size:1.75rem;font-weight:700;line-height:1.2}
@media(min-width:768px){.accent-underline{font-size:2.25rem}}
.accent-underline::after{content:"";position:absolute;left:0;bottom:-0.5rem;height:3px;width:3rem;border-radius:9999px;background:var(--accent)}
.subtitle{margin-top:1.25rem;color:var(--muted-fg);max-width:42rem;line-height:1.6}
.section-text,.section-list,.section-tags,.section-cards,.section-timeline,.section-image{margin-bottom:2rem}
.section-text h3,.section-list h3,.section-tags h3,.section-cards h3,.section-timeline h3{font-size:1.15rem;font-weight:600;margin-bottom:0.75rem}
.section-text p{color:var(--muted-fg);line-height:1.7}
.section-list ul{list-style:none;display:flex;flex-direction:column;gap:0.5rem;color:var(--muted-fg)}
.section-list li{display:flex;gap:0.5rem}
.bullet{color:var(--accent);flex-shrink:0}
.tags{display:flex;flex-wrap:wrap;gap:0.5rem}
.tag{background:var(--muted);padding:0.3rem 0.85rem;border-radius:9999px;font-size:0.85rem}
.cards{display:grid;gap:1rem}
@media(min-width:640px){.cards{grid-template-columns:repeat(2,1fr)}}
.card{background:var(--card);border-radius:0.75rem;padding:1.1rem;transition:.2s}
.card:hover{box-shadow:0 10px 40px -10px color-mix(in oklab, var(--accent) 35%, transparent)}
.card h4{font-size:1rem;font-weight:600;margin-bottom:0.5rem}
.card p{font-size:0.875rem;color:var(--muted-fg);line-height:1.6}
.card-link{display:inline-block;margin-top:0.75rem;color:var(--accent);font-size:0.875rem}
.card-link:hover{text-decoration:underline}
.timeline{list-style:none;border-left:1px solid var(--border);padding-left:1.5rem;display:flex;flex-direction:column;gap:1.5rem}
.timeline li{position:relative}
.timeline li::before{content:"";position:absolute;left:-1.85rem;top:0.4rem;width:0.75rem;height:0.75rem;border-radius:9999px;background:var(--accent);box-shadow:0 0 0 4px var(--panel)}
.when{font-size:0.75rem;color:var(--accent);font-weight:500}
.t-title{font-weight:600}
.place{font-size:0.85rem;color:var(--muted-fg)}
.section-image img{width:100%;border-radius:0.75rem}
.section-image figcaption{margin-top:0.5rem;text-align:center;font-size:0.85rem;color:var(--muted-fg)}
.muted{color:var(--muted-fg)}
