/* ══════════════════════════════════════════════════════════════════════════
   CAPITAL CULTURES · BASE
   Reset, typography, the 12-column grid, utilities, focus, reduced motion.
   Loads after tokens.css and before components.css.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── the parade's Korean, self-hosted ──────────────────────────────────────
   The roll-call runs 국악 and 한국 in Anton's own weight, and Anton carries no
   Hangul. Google's text= subsetting works for Cyrillic, Armenian and Georgian
   — three files, under 2 KB each — and does not work for a CJK family: the
   same request for two Hangul syllables came back as the whole 2.2 MB face on
   a cold cache and as a 2.8 KB subset on a warm one, so the first screen of
   /, /cultures/ and /market/ weighed either 110 KB or 2.4 MB depending on a
   third party's cache. Two glyphs, cut locally, 860 bytes, and the unicode-range
   keeps the file off every page with no Hangul on it. */
@font-face{
  font-family:"Noto Sans KR";
  font-style:normal;
  font-weight:700;
  font-display:swap;
  src:url("/assets/fonts/noto-sans-kr-700-parade.woff2") format("woff2");
  unicode-range:U+AD6D,U+D55C;
}

*,*::before,*::after{box-sizing:border-box}
/* Every anchor on this site lands under a sticky masthead: 144px of it on a
   phone, 240 on a desktop with the mega panel open. The height is a token so
   the two numbers cannot drift apart — see --mast-h in tokens.css. */
[id]{scroll-margin-top:calc(var(--mast-h) + 12px)}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;
  background:var(--ink);
  color:var(--paper);
  font-family:var(--face-body);
  font-size:17px;line-height:1.55;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img,svg,video{max-width:100%;display:block}
figure{margin:0}
hr{border:0;border-top:var(--rule) solid currentColor;margin:0;opacity:1}
::selection{background:var(--ink);color:var(--turmeric)}

/* ── focus: one visible ring everywhere, drawn in the band's own type colour.
      currentColor was wrong on anything that inverts: a solid button carries the
      GROUND colour as its text, so its ring was painted ground-on-ground and
      vanished — indigo on indigo, saffron on saffron, ink on ink. The ring is
      offset outside the control onto the band, so it must be the band's type. ── */
:focus{outline:none}
:focus-visible{outline:var(--rule-thick) solid var(--type,currentColor);outline-offset:3px}

/* skip link — first tab stop on every page */
.skip{position:absolute;left:-9999px;top:0;z-index:200;
  background:var(--turmeric);color:var(--ink);
  font-family:var(--face-mono);font-size:var(--fs-mono);font-weight:600;
  letter-spacing:var(--ls-mono);text-transform:uppercase;text-decoration:none;
  padding:12px 18px}
.skip:focus{left:0}

/* ══ typography ══════════════════════════════════════════════════════════ */
h1,h2,h3,h4,.anton{
  font-family:var(--face-display);font-weight:400;
  text-transform:uppercase;letter-spacing:var(--ls-display);
  line-height:var(--lh-display);margin:0;text-wrap:balance;
}
/* .86 is the right leading for a poster headline and it cuts descenders and
   diacritics below the baseline: «FRANÇAISE» printed as «FRANCAISE» on /fr/,
   because .wipe carries overflow:hidden for the line mask. The line keeps its
   tight leading and gets the room back under it — the padding is cancelled by
   the negative margin, so the block occupies exactly what it did. 29.08.2026 */
/* .86 is a single-line poster leading. A headline that wraps — and every
   pageHero headline wraps — closes its lines onto each other, and anything
   below the baseline lands on the next line: «FRANÇAISE» printed on /fr/ with
   its cedilla buried under the A of ARRIVE, and .wipe{overflow:hidden} cut
   what was left. The recorded lesson of 28.08 says headings run at .9; h1 was
   the one that never moved. It moves now, and the mask keeps a little room
   under each line so a diacritic is never the thing that gets clipped. */
h1{font-size:var(--fs-d1);line-height:var(--lh-display)}
h1 .wipe > i,h2 .wipe > i,h3 .wipe > i{padding-bottom:.08em}
h2{font-size:var(--fs-d2);line-height:.94}
h3{font-size:var(--fs-d3);line-height:.96}
h4{font-size:var(--fs-d4);line-height:1}
p{margin:0}
p + p{margin-top:.7em}
strong,b{font-weight:700}
a{color:inherit}

.mono{
  font-family:var(--face-mono);font-size:var(--fs-mono);font-weight:600;
  letter-spacing:var(--ls-mono);text-transform:uppercase;line-height:1.5;
  /* balanced, a register line never leaves a two-letter word hanging on a line
     of its own — «…AND WHAT IT / IS». The measure is set where the line has a
     column of its own (a section head, a table caption, a hero note), never
     here: a note under a full-width strip is entitled to the full width. */
  text-wrap:balance;
}
.mono--lg{font-size:var(--fs-mono-lg)}
.lede{font-size:var(--fs-lede);line-height:1.5;max-width:52ch}
.body{font-size:var(--fs-body);line-height:1.6;max-width:60ch}
.small{font-size:var(--fs-small);line-height:1.55}
/* the quiet step is a colour, not alpha — see components.css §1. */
.dim,.dimmer{color:var(--type-2,currentColor)}

/* long-form copy column */
.prose{max-width:62ch;font-size:var(--fs-body);line-height:1.65}
.prose > * + *{margin-top:1.1em}
.prose h2{margin-top:1.6em}
.prose h3{margin-top:1.4em}
.prose ul,.prose ol{padding-left:1.1em;margin-block:0}
.prose li + li{margin-top:.45em}
.prose a{text-decoration:none;border-bottom:var(--rule) solid currentColor;
  transition:background var(--t-micro),color var(--t-micro)}
.prose a:hover{background:var(--type);color:var(--ground)}

/* ══ layout ══════════════════════════════════════════════════════════════ */
.wrap{max-width:var(--max);margin-inline:auto;padding-inline:var(--gut);width:100%}

/* 12-column grid. Children take .col-<n> and collapse to full width below 900px. */
.grid{display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));gap:var(--gap)}
.col-1{grid-column:span 12}.col-2{grid-column:span 12}.col-3{grid-column:span 12}
.col-4{grid-column:span 12}.col-5{grid-column:span 12}.col-6{grid-column:span 12}
.col-7{grid-column:span 12}.col-8{grid-column:span 12}.col-9{grid-column:span 12}
.col-10{grid-column:span 12}.col-11{grid-column:span 12}.col-12{grid-column:span 12}
@media(min-width:900px){
  .col-1{grid-column:span 1}.col-2{grid-column:span 2}.col-3{grid-column:span 3}
  .col-4{grid-column:span 4}.col-5{grid-column:span 5}.col-6{grid-column:span 6}
  .col-7{grid-column:span 7}.col-8{grid-column:span 8}.col-9{grid-column:span 9}
  .col-10{grid-column:span 10}.col-11{grid-column:span 11}.col-12{grid-column:span 12}
  .start-2{grid-column-start:2}.start-3{grid-column-start:3}
  .start-4{grid-column-start:4}.start-6{grid-column-start:6}.start-7{grid-column-start:7}
}

/* vertical stacks */
.stack > * + *{margin-top:var(--stack)}
.stack-s > * + *{margin-top:12px}
.stack-l > * + *{margin-top:clamp(28px,3.6vw,52px)}

/* ══ utilities ═══════════════════════════════════════════════════════════ */
.vh{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0 0 0 0);white-space:nowrap;border:0}
.nowrap{white-space:nowrap}
.rule-top{border-top:var(--rule) solid currentColor;padding-top:16px}
.rule-bottom{border-bottom:var(--rule) solid currentColor;padding-bottom:16px}
.full{width:100%}
.scroll-x{overflow-x:auto;-webkit-overflow-scrolling:touch}

/* ══ motion base ═════════════════════════════════════════════════════════
   The only entrance on this site is the ink flood (see components.css) and
   the headline line-mask below. fade-up is forbidden by DESIGN.md.        */
.wipe{display:block;overflow:hidden}
.wipe > i{display:block;font-style:normal}
html.js .wipe > i{transform:translateY(104%);transition:transform var(--t-wipe) var(--snap)}
html.js .in .wipe > i{transform:none}
html.js .in .wipe:nth-of-type(2) > i{transition-delay:.07s}
html.js .in .wipe:nth-of-type(3) > i{transition-delay:.14s}
html.js .in .wipe:nth-of-type(4) > i{transition-delay:.21s}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
  html.js .band::after{clip-path:inset(100% 0 0 0)!important}
  html.js .wipe > i{transform:none!important}
}

@media print{
  .mast,.curtain,.parade,.skip{display:none!important}
  body{background:var(--paper);color:var(--ink)}
  .band{background:var(--paper)!important;color:var(--ink)!important}
  .band::after,.seam{display:none!important}
}
