/* The landing page header, shared by the Journal (captain feedback 20). The markup is copied from
   website.html by scripts/sync-journal-header.mjs; these rules restate the header's resolved rules in
   paper.css, and website.test.mjs compares the rendered headers, so neither copy can drift. Behaviour
   (theme, menu, ignition, battery) comes from the same assets/js/paper-site.js. */
.site-header{position:sticky;top:0;z-index:30;background:var(--paper);border-bottom:1px solid var(--line);line-height:normal}
.site-header :is(a,button,summary){font:inherit;color:inherit;text-underline-offset:4px;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.site-header button{cursor:pointer;background:transparent}
.site-header a:hover{color:var(--maroon)}
.header-inner{max-width:1280px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:30px;padding:10px 38px}
.site-header .header-inner{height:66px;min-height:66px;padding-block:8px}
.site-brand{text-decoration:none;color:var(--ink)}
.lockup{display:flex;align-items:center;gap:12px;white-space:nowrap}
.lockup .mark{flex:none;width:36px;height:36px}
.site-header .mark-gold{stroke:var(--gold)}
.wordmark{display:block;font:400 .8rem Michroma,Figtree,sans-serif;letter-spacing:.07em}
.desktop-nav{display:flex;align-items:center;gap:30px;font-size:14px}
.desktop-nav>a{display:flex;align-items:center;min-height:44px;text-decoration:none}
.desktop-nav .header-cta{border:1px solid var(--maroon);border-radius:3px;padding:11px 20px;color:var(--maroon)}
.desktop-nav .header-cta:hover{background:var(--maroon);color:var(--surface)}
.phone-menu,.theme-toggle{display:none}
.js .theme-toggle{display:flex;align-items:center;justify-content:center;gap:10px;min-width:44px;min-height:44px;padding:10px;border:1px solid transparent;border-radius:4px;background:transparent;color:var(--ink)}
.theme-toggle:hover{background:var(--surface);border-color:var(--line)}
.theme-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.theme-toggle .sun-rays{display:none}.theme-toggle[aria-pressed=true] .sun-rays{display:block}
.desktop-nav .theme-toggle span,.site-header .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.phone-menu .theme-toggle{width:100%;justify-content:flex-start;padding-inline:20px;border-bottom:1px solid var(--line);border-radius:0}
.theme-toggle[aria-pressed=true]{color:var(--maroon)}
@media(max-width:1200px){.header-inner{padding-inline:30px}.desktop-nav{gap:22px}}
@media(max-width:800px){
 .header-inner{padding-inline:22px}.desktop-nav{display:none}.phone-menu{display:block;position:relative}
 .phone-menu>summary{display:flex;align-items:center;gap:14px;min-height:44px;font-size:13px;list-style:none;cursor:pointer}
 .phone-menu>summary::-webkit-details-marker{display:none}
 .phone-menu>nav{position:absolute;top:49px;right:-5px;z-index:32;width:220px;padding:10px 0;border:1px solid var(--line);background:var(--surface);box-shadow:0 12px 25px -18px #33292480}
 .phone-menu nav a{display:block;min-height:44px;padding:12px 20px;text-decoration:none}
 .phone-battery{position:relative;display:flex;gap:2px;width:40px;height:13px;padding:2px;border:1px solid #8f7762}
 .phone-battery:after{content:"";position:absolute;right:-3px;top:3px;width:2px;height:5px;background:var(--gold)}
 .phone-battery i{flex:1;background:#ded0bf}.phone-battery i.is-read{background:var(--maroon)}}
@media(max-width:600px){.header-inner{gap:8px;padding-inline:18px}.phone-menu>summary{gap:8px}}
@media(max-width:359px){.header-inner{padding-inline:12px}.lockup{gap:8px}.phone-menu>summary{gap:6px}.phone-battery{width:32px}}
@media(prefers-reduced-motion:no-preference){
 .ignite .logo-ignition .mark path{stroke-dasharray:1;animation:mark-ignite 480ms steps(5,end) var(--delay) both}
 .ignite .logo-ignition .wordmark>span{animation:letter-ignite 180ms steps(2,end) var(--delay) both}}
@media(prefers-reduced-motion:reduce){.lockup *{animation:none!important}.site-header a{transition:none}}
@keyframes mark-ignite{0%{stroke-dashoffset:1;opacity:.22}75%{stroke-dashoffset:0;opacity:1}83%{opacity:.55}100%{stroke-dashoffset:0;opacity:1}}
@keyframes letter-ignite{0%{opacity:.18}45%{opacity:.6}65%{opacity:.32}100%{opacity:1}}
