.site-header{border-bottom:1px solid var(--line)}
.site-header .wrap{width:min(100% - 5rem,1280px);min-height:90px;margin-inline:auto;display:flex;align-items:center;justify-content:space-between;gap:2rem}
.wordmark{display:inline-flex;align-items:flex-end;gap:3px;color:var(--ink);text-decoration:none;font:800 21px/.91 Manrope,Arial,sans-serif;letter-spacing:-.06em;flex-shrink:0}
.wordmark .dot{width:12px;height:12px;background:var(--yellow);border-radius:50%;margin:0 0 1px 1px}
.header-actions{display:flex;align-items:center;gap:clamp(1.25rem,3vw,3rem)}
.nav{display:flex;align-items:center;justify-content:flex-end;gap:clamp(1rem,2.8vw,3rem)}
.nav a{color:var(--ink);text-decoration:none;font:600 14px/1.3 Manrope,Arial,sans-serif;white-space:nowrap}
.nav a:hover,.nav a[aria-current="page"]{text-decoration:underline;text-decoration-color:var(--yellow);text-decoration-thickness:3px;text-underline-offset:5px}
/* Visible 20px silhouettes within the larger invisible touch target. */
.theme-toggle{box-sizing:border-box;flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:0;background:transparent;color:var(--ink);font:600 14px/1.3 Manrope,Arial,sans-serif;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;-webkit-tap-highlight-color:transparent}
.theme-toggle:hover{background:transparent;color:var(--muted)}
.theme-toggle:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.theme-toggle .theme-icon{width:20px;height:20px;flex:none;pointer-events:none;color:var(--yellow)}
/* Show the next action: moon in light mode, sun in dark mode. */
.theme-icon-sun{display:none}
.theme-icon-moon{display:block}
:root[data-theme="dark"] .theme-icon-sun{display:block}
:root[data-theme="dark"] .theme-icon-moon{display:none}
@media(prefers-color-scheme:dark){:root:not([data-theme]) .theme-icon-sun{display:block}:root:not([data-theme]) .theme-icon-moon{display:none}}
@media(max-width:900px){.site-header .wrap{width:min(100% - 3rem,720px)}}
/* Keep all four links visible in document order; wrap instead of clipping or hiding them.
   Scoped selectors also override the legacy mobile navigation in page styles. */
@media(max-width:680px){.site-header .wrap{width:calc(100% - 2.5rem);min-height:0;padding-block:1.15rem;align-items:flex-start;flex-wrap:wrap;gap:1.1rem}.site-header .header-actions{width:100%;min-width:0;gap:.75rem;justify-content:flex-end;align-items:flex-start}.site-header .nav{flex:1;min-width:0;width:auto;flex-wrap:wrap;justify-content:flex-end;gap:0 1rem}.site-header .nav a{display:inline-flex;align-items:center;min-height:44px;font-size:12px}.site-header .theme-toggle{font-size:12px}}
