:root { --bg:#faf6f0; --ink:#241729; --signal:#88285d; --rule:#d6c5ce }
:root[data-theme=dark] { --bg:#120e18; --panel:#211926; --ink:#fff8ef; --signal:#ffab9c; --rule:#483344 }
body {
  background: radial-gradient(ellipse 85% 550px at 85% -250px, #dd527749, transparent),var(--bg);
}
.top .bar { align-items:center; min-height:108px }
.top .wordmark { font-size:clamp(2.4rem,5.5vw,5.5rem); letter-spacing:-.09em; font-weight:900 }
.wordmark b { background:#ff855f; color:#251525; border-radius:50% 50% 10% 50%; transform:rotate(-8deg) }
.top .wordmark b { width:.79em; height:.79em; font-size:.84em }
.issue { padding-block:18px 12px }
.issue h1 { font:800 1.05rem/1.3 Manrope,Arial,sans-serif; letter-spacing:.12em; text-transform:uppercase }
.issue h1 em { font-size:inherit; letter-spacing:0 }
.issue br { display:none }
.issue em:before { content:" " }
.headline-stage { background:#211423; border-radius:18px; overflow:hidden }
#hero { display:flex; gap:0; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; overscroll-behavior-x:contain }
#hero::-webkit-scrollbar { display:none }
#hero .cover {
  flex:0 0 100%; min-width:0; min-height:clamp(420px,49vh,670px); border-radius:0;
  scroll-snap-align:start; align-items:end;
}
#hero .cover img { object-position:center 45% }
#hero .cover::after {
  background:linear-gradient(90deg,#1c0e22ef 0%,#28102ac7 28%,#31193222 76%),
    linear-gradient(0deg,#160c18cc,transparent 62%);
}
#hero .cover-copy { padding:clamp(35px,4.2vw,72px) clamp(68px,6.8vw,110px); max-width:85% }
#hero .cover h2 {
  font:700 clamp(2.8rem,5.2vw,5.7rem)/.99 Georgia,serif;
  letter-spacing:-.058em; text-wrap:balance; max-width:19ch; margin:16px 0;
}
#hero .tag { border-radius:3px; background:#ffad92; color:#251525; padding:5px 10px; letter-spacing:.14em }
#hero .cover small { display:block;color:#f8e9e8 }
.cover-controls { align-items:center; padding:0 8px }
.cover-controls button { background:#fff1e7; border-color:#321e32 }
.cover-controls button:hover,.cover-controls button:focus-visible { background:#ffac90 }
.cover-controls output { top:15px;right:18px;bottom:auto;color:white;background:#211423c9;border-radius:30px;padding:4px 12px }
.cover-rail { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px }
.cover-rail button {
  display:flex;align-items:center;gap:14px;text-align:start;line-height:1.25;
  background:var(--panel);border:1px solid var(--rule);border-radius:9px;padding:10px;font-size:.93rem;font-weight:700;
}
.cover-rail img { width:65px;aspect-ratio:1.3;border-radius:4px }
.cover-rail button[aria-pressed=true] { border-color:var(--signal);box-shadow:inset 0 -3px var(--signal) }
.feed-head h2,.deep-copy h2 { font-family:Georgia,serif; font-size:clamp(2rem,3.7vw,3.4rem) }
#articleGrid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px }
#articleGrid .article-card { display:flex;flex-direction:column;align-items:start;padding:0 0 14px }
.article-image { width:100% }.article-image img { aspect-ratio:1.85 }
.article-card .article-tag { margin-top:12px }
#editorPicks { border-top:4px solid var(--signal) }
.feed-head > div { flex-wrap:wrap }
@media(max-width:760px){
  .top .bar { min-height:68px }.top .wordmark { font-size:clamp(1.45rem,6vw,2.4rem) }
  #hero .cover { min-height:410px }
  #hero .cover-copy { padding:90px 20px 26px;max-width:100% }
  #hero .cover h2 { font-size:clamp(2.2rem,8.5vw,3.8rem) }
  .cover-controls {align-items:flex-start;padding-top:16px}
  .cover-controls output {right:50%;transform:translateX(50%);top:26px}
  .cover-rail {gap:5px}
  .cover-rail button {display:block;padding:6px 6px 10px;font-size:.77rem;overflow-wrap:anywhere}
  .cover-rail img {width:100%;aspect-ratio:2.8;margin-bottom:6px}
}
@media(max-width:520px){#articleGrid {grid-template-columns:1fr}}

@media(min-width:761px) {
  #primaryNav { position:relative }
  #primaryNav .active { border-bottom-color:transparent }
  #primaryNav::after {
    content:""; position:absolute; bottom:0; left:0; pointer-events:none;
    height:3px; width:var(--link-width,0); transform:translateX(var(--link-start,0));
    background:var(--signal); border-radius:3px;
  }
  #primaryNav a:is(:hover,:focus-visible) { color:var(--ink) }
}
@media(max-width:760px) {
  .nav-drawer { display:grid;grid-template-rows:0fr;visibility:hidden }
  .nav-drawer > div { overflow:hidden;min-height:0 }
  .menu-open .nav-drawer { grid-template-rows:1fr;visibility:visible }
  #primaryNav, #primaryNav.open { display:flex;flex-wrap:wrap;gap:2px 18px;padding-block:8px;animation:none }
  #menuBtn::after {content:"";display:inline-block;width:6px;height:6px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:translateY(-2px) rotate(45deg);margin-left:7px}
  #menuBtn[aria-expanded=true]::after { transform:translateY(1px) rotate(225deg) }
}
@media(prefers-reduced-motion:no-preference) {
  #primaryNav::after { transition:transform .24s ease-out,width .24s ease-out }
  .nav-drawer { transition:grid-template-rows .24s ease,visibility 0s linear .24s }
  .menu-open .nav-drawer { transition-delay:0s }
  #menuBtn::after {transition:transform .24s ease}
}
