/* v18: NTWAN Display (own, self-hosted WOFF2) for branding, headings and nav.
   Faces: Bold 700, ExtraBold 800, Bold Oblique 700 italic, ExtraBold Oblique 800 italic (see style.css @font-face).
   Reading/UI text stays on --text (system-installed only, nothing shipped); article body stays Georgia (.prose). */
h1.metal,.post h2,.now h2,.subscribe h3,section.subscribe h3,.article h2.title,.acc-title h2.title,
.prose h1,.prose h2,.prose h3,.prose h4,.btn.primary,.hsub,.hero-sub,.sub-cta,
nav a,.eyebrow,.strip-head h3{font-family:var(--display);font-synthesis:none}
nav a,.eyebrow,.strip-head h3{font-weight:700}
.prose figcaption{font-family:var(--text)}

/* ---- v19 ---- */
/* (1) four page hero titles: the real ExtraBold Oblique face (800 italic WOFF2), no CSS skew; metallic clip/sheen unchanged */
.page-head h1.metal{font-style:italic;font-weight:800}
/* (2)+(3) desktop: header logo / social row and the Substack corner pill follow the window edges.
   --edge = 14px up to ~1100px wide (same as v18), then grows with the window, capped at 64px.
   Only the header bar goes full width; main/article columns keep max-width 1180px (unchanged). */
:root{--edge:clamp(14px,calc(4vw - 30px),64px)}
body{container-type:inline-size}
@media (min-width:641px){
  header .wrap{max-width:none}
  header .logo{left:var(--edge)}
  .hsocial{right:calc(var(--edge) + 4px)}
}
@media (min-width:901px){
  main.has-sub > .hero-sub,main.has-sub > .hero-sub:is(*){right:calc(var(--edge) + 10px - (100cqw - 100%) / 2)}
}

/* ---- v20: horizontal containment ---- */
/* Root cause found in js/gold.js: the comet <canvas class="gcv"> is appended to each nav link / end-bar pill at
   page load but only sized on first hover, so until then it is a default 300x150 box (invisible, opacity 0) that
   sticks out to the right of its link. Collapse it until gold.js sizes it (inline styles override this). */
canvas.gcv{left:0;top:0;width:0;height:0}
/* Page-level guard: the page never scrolls sideways (decorative glows / trails near the edge are clipped).
   Set on html only, so it applies to the viewport; body stays overflow:visible and the sticky header is unaffected.
   Carousels keep their own overflow-x:auto scrolling. */
html{overflow-x:hidden}
@supports (overflow:clip){html{overflow-x:clip}}
