@charset "utf-8";
/* ============================================================================
   Oolong Tea Home — design system v2
   ----------------------------------------------------------------------------
   Direction: specialty-tea editorial. Think a printed tea journal, not a blog.
   - Type: Fraunces (display, optical-size axis) + Newsreader (text serif).
     No system-sans anywhere in reading surfaces.
   - Colour: deep pine ink on warm paper; aged brass as the single accent.
   - Layout: asymmetric editorial grid, generous margins, real hierarchy.
   - Motion: short, ease-out, never bouncy.

   Contents
     01 tokens
     02 reset
     03 typography scale
     04 layout primitives
     05 header / nav
     06 hero
     07 editorial blocks (tldr, direct-answer, note)
     08 data display (tables, stat strip, kv, num-list)
     09 figures / charts / icon tiles
     10 navigation aids (crumbs, toc, jump grid, related)
     11 footer
     12 forms, 404, utilities
     13 motion
     14 responsive
   ========================================================================== */

/* ---------------------------------------------------------------- 01 tokens */
:root {
  /* ink — cool pine, never pure black */
  --ink-900: #0f1f18;
  --ink-800: #16301f;
  --ink-700: #1d4030;
  --ink-600: #2a5540;
  --ink-500: #3a6b52;
  --ink-400: #5c8870;
  --ink-300: #8fae9c;
  --ink-200: #c2d6ca;
  --ink-100: #e0eae3;
  --ink-50:  #f0f5f1;

  /* paper — warm, never pure white */
  --paper:      #fbf8f2;
  --paper-2:    #f4efe4;
  --paper-3:    #ece5d6;
  --paper-card: #fffdf9;

  /* brass — the single accent, used sparingly */
  --brass:      #a8802c;
  --brass-lite: #c9a24a;
  --brass-wash: #f6eeda;

  /* text — three levels, all >= 4.5:1 on --paper (checked by _build/a11y.js) */
  --text:       #17231c;
  --text-2:     #3c4d43;
  --text-3:     #5a6b61;
  --text-on-dark:      #f2ece0;
  --text-on-dark-2:    #c3d0c6;

  /* lines */
  --rule:       #ded5c4;
  --rule-2:     #eae3d5;
  --rule-dark:  rgba(242, 236, 224, .18);

  /* type */
  --display: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --text-serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --ui: "Newsreader", Georgia, serif;

  /* modular scale — 1.25 (major third), fluid at the top end */
  --t-xs:   0.78rem;
  --t-sm:   0.9rem;
  --t-base: 1.075rem;
  --t-md:   1.28rem;
  --t-lg:   clamp(1.5rem, 1.2rem + 1.1vw, 1.95rem);
  --t-xl:   clamp(1.95rem, 1.5rem + 1.9vw, 2.75rem);
  --t-2xl:  clamp(2.5rem, 1.7rem + 3.4vw, 4.1rem);
  --t-3xl:  clamp(3rem, 1.6rem + 6vw, 6rem);

  /* space — line-height is the base unit */
  --lh: 1.72;
  --s-1: 0.5rem;
  --s-2: 0.85rem;
  --s-3: 1.35rem;
  --s-4: 2.1rem;
  --s-5: 3.2rem;
  --s-6: 4.8rem;
  --s-7: 7rem;

  /* --- the grid -----------------------------------------------------------
     Two right edges only. Reading measured the whole design: with six
     different box widths (1200 / 1104 / 826 / 806 / 791 / 688) the page had
     no vertical line to hold it together and every figure looked like it was
     escaping the column.
       --measure      reading column. Prose measure ~66 characters.
       --col-figure   the breakout. Figures, tables and pull quotes are
                      ALLOWED past the text column - that is what a printed
                      feature does - but by a controlled 30%, not by 74%.
     Band elements (hero, banner, related, jump grid) stay full width on
     purpose: they are section openers and closers, not reading content.

     These MUST be rem, not em. max-width in em resolves against the
     ELEMENT's own font-size, so an "em" column silently means something
     different on a 24px pull quote than on 17px body text - which is how
     six different widths got shipped in the first place. */
  --measure: 41rem;      /* ~689px at 16px root: prose measure ≈ 66 chars */
  --col-figure: 53.6rem; /* ~898px, a controlled 30% breakout */
  --maxw: 1240px;
  --wide: 1480px;

  /* depth — warm-tinted, never neutral grey */
  --sh-1: 0 1px 2px rgba(23, 35, 28, .05);
  --sh-2: 0 2px 4px rgba(23, 35, 28, .05), 0 8px 20px -8px rgba(23, 35, 28, .10);
  --sh-3: 0 4px 8px rgba(23, 35, 28, .05), 0 24px 48px -16px rgba(23, 35, 28, .16);
  --sh-inset: inset 0 1px 0 rgba(255, 255, 255, .6);
}

/* ------------------------------------------------------------------ 02 reset */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  margin: 0;
  font-family: var(--text-serif);
  font-size: var(--t-base);
  line-height: var(--lh);
  color: var(--text);
  background: var(--paper);
  /* faint paper tooth: two offset hairlines, effectively invisible but kills
     the flat #fff plastic feel on large areas */
  background-image:
    repeating-linear-gradient(0deg, rgba(23,35,28,.014) 0 1px, transparent 1px 3px);
  overflow-x: hidden;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
img { height: auto; }

a { color: var(--ink-600); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

::selection { background: var(--brass-wash); color: var(--ink-900); }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --------------------------------------------------------- 03 type scale */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -.015em;
  text-wrap: balance;
}

h1 {
  font-size: var(--t-2xl);
  line-height: 1.06;
  letter-spacing: -.028em;
  margin: 0 0 var(--s-3);
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 96;
}

h2 {
  font-size: var(--t-xl);
  line-height: 1.14;
  letter-spacing: -.022em;
  margin: var(--s-6) 0 var(--s-3);
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 72;
}

h3 {
  font-size: var(--t-lg);
  line-height: 1.2;
  margin: var(--s-5) 0 var(--s-2);
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 36;
}

h4 {
  font-size: var(--t-md);
  line-height: 1.3;
  margin: var(--s-4) 0 var(--s-2);
}

p { margin: 0 0 var(--s-3); max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 var(--s-3); padding-left: 1.35em; max-width: var(--measure); }
li { margin-bottom: .5em; }
li::marker { color: var(--ink-400); }

strong { font-weight: 600; color: var(--ink-900); }

em { font-style: italic; }

small { font-size: var(--t-sm); }

code, .num {
  font-variant-numeric: tabular-nums lining-nums;
}

abbr[title] {
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  cursor: help;
}

/* small-caps label — the workhorse of the editorial voice */
.label {
  font-family: var(--ui);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-500);
  display: block;
}

.drop-cap::first-letter {
  float: left;
  font-family: var(--display);
  font-size: 3.9em;
  line-height: .82;
  font-weight: 600;
  padding: .06em .1em 0 0;
  color: var(--ink-700);
}

/* ------------------------------------------------------ 04 layout primitives */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.15rem, 4vw, 2.5rem);
}
.wrap-wide { max-width: var(--wide); }

main.wrap { padding-bottom: var(--s-7); }

/* reading column — asymmetric: content + a sticky rail on wide screens */
.prose { max-width: var(--measure); }

/* --- the reading grid ----------------------------------------------------
     Every text-bearing element snaps to --measure so the page has ONE right
     edge for prose. Anything that genuinely needs more room (figures, data
     tables, pull quotes, the source list) snaps to --col-figure, which is
     30% wider — enough to read as a deliberate breakout, not enough to look
     like it escaped the column. Band elements (hero, banner, related, jump
     grid, stat strip) stay full width; they are section markers, not prose. */
main h1, main h2, main h3, main h4,
main p, main ul, main ol, main li,
main .page-head, main .page-lede,
main .callout, main .note, main .faq, main .faq-item,
main .num-list, main .toc, main .prose, main .drop-cap {
  max-width: var(--measure);
}

/* Section headings belong to the text column, not to the page grid. A
   full-bleed h2 is the single clearest tell that nobody set the type. The
   one exception is a heading inside a full-width band (.related), which
   cannot be narrower than its own background. */
main .related h2,
main .related h3,
main .related ul { max-width: none; }

main .viz,
main .table-scroll,
main .direct-answer,
main .tldr,
main .icon-row,
main .vs-grid,
main .swatches,
main .sources {
  max-width: var(--col-figure);
}

/* Breakouts are legible as a grid only because EVERY figure is exactly the
   same width — one stray full-width chart is what made the old page look
   accidental. No hairline in the margin: the prose is ragged-right, so a
   rule out there would line up with nothing and just float. */

/* hairline that reads as a printed rule, not a border */
.rule {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin: var(--s-6) 0 0;
}
.rule::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--rule);
}
.rule .label { flex: 0 0 auto; }

.sec-label {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin: var(--s-6) 0 var(--s-3);
}
.sec-label h2 { margin: 0; }
.sec-label::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--rule);
}
.sec-label .ico-wrap {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--paper-card);
  flex: 0 0 auto;
  color: var(--ink-600);
}

/* ------------------------------------------------------------ 05 header/nav */
.skip {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -140%);
  z-index: 100;
  background: var(--ink-900);
  color: var(--paper);
  font-family: var(--ui);
  font-size: var(--t-sm);
  padding: .7rem 1.3rem;
  border-radius: 0 0 3px 3px;
  transition: transform .2s;
}
.skip:focus { transform: translate(-50%, 0); text-decoration: none; }

.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.site-head.stuck {
  border-bottom-color: var(--rule);
  box-shadow: 0 1px 0 rgba(23,35,28,.02), 0 10px 30px -22px rgba(23,35,28,.4);
}

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex: 0 0 auto;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand img {
  width: 236px;
  height: auto;
  display: block;
}
.brand .mark {
  width: 34px; height: 34px;
  flex: 0 0 auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(.5rem, 1.6vw, 1.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list li { margin: 0; }
.nav-list a {
  position: relative;
  display: block;
  padding: .45rem 0;
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--text-2);
  white-space: nowrap;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .1rem;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .34s cubic-bezier(.22,.61,.36,1);
}
.nav-list a:hover { color: var(--ink-800); text-decoration: none; }
.nav-list a:hover::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] { color: var(--ink-900); font-weight: 600; }
.nav-list a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: .5rem .6rem;
  cursor: pointer;
  line-height: 0;
  color: var(--ink-800);
  transition: background .2s, border-color .2s;
}
.nav-toggle:hover { background: var(--paper-2); border-color: var(--ink-300); }
.nav-toggle svg { width: 20px; height: 20px; stroke: currentColor; }

/* ----------------------------------------------------------------- 06 hero */
.hero-full {
  position: relative;
  margin: 0 0 var(--s-3);
  border-radius: 4px;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink-900);
  box-shadow: var(--sh-3);
}
.hero-full img {
  width: 100%;
  height: auto;
  min-height: 460px;
  max-height: 78vh;
  object-fit: cover;
  object-position: 50% 45%;
}
.hero-full::after {
  /* vignette + warm floor so the type never sits on raw photo */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(9,22,15,.94) 4%, rgba(9,22,15,.72) 34%, rgba(9,22,15,.24) 66%, rgba(9,22,15,.42) 100%),
    radial-gradient(120% 90% at 50% 110%, rgba(9,22,15,.6), transparent 60%);
  pointer-events: none;
}
.hero-copy {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: clamp(2rem, 5vw, 3.6rem) clamp(1.4rem, 4.5vw, 3.4rem) clamp(1.6rem, 4vw, 2.8rem);
  color: var(--text-on-dark);
  max-width: 62rem;
}
.hero-copy .kicker {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: var(--t-xs);
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--brass-lite);
  margin-bottom: var(--s-3);
}
.hero-copy .kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--brass-lite);
  opacity: .8;
}
.hero-copy h1 {
  color: #fff;
  font-size: var(--t-3xl);
  line-height: 1.02;
  letter-spacing: -.03em;
  margin: 0 0 var(--s-3);
  max-width: 17ch;
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 144;
  text-shadow: 0 2px 30px rgba(0,0,0,.4);
}
.hero-copy .sub {
  font-size: clamp(1rem, .95rem + .35vw, 1.2rem);
  line-height: 1.62;
  color: var(--text-on-dark-2);
  margin: 0 0 var(--s-4);
  max-width: 46ch;
  font-weight: 300;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; }
.hero-cta a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .72rem 1.35rem;
  border-radius: 999px;
  font-size: .93rem;
  font-weight: 600;
  font-family: var(--ui);
  background: var(--brass);
  color: #22160a;
  border: 1px solid var(--brass);
  transition: transform .22s cubic-bezier(.22,.61,.36,1), background .22s, box-shadow .22s;
}
.hero-cta a:hover {
  text-decoration: none;
  transform: translateY(-2px);
  background: var(--brass-lite);
  color: #22160a;
  border-color: var(--brass-lite);
  box-shadow: 0 10px 26px -10px rgba(168,128,44,.7);
}
.hero-cta a.ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.42);
}
.hero-cta a.ghost:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.7);
  box-shadow: none;
}

/* page banner (inner pages).
   Deliberately short: the banner is a chapter opener, not the main event —
   the H1 and the lede are. Capping the height keeps the first screen from
   being 80% picture. */
.banner {
  margin: var(--s-3) 0 0;
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: var(--sh-2);
  line-height: 0;
  background: var(--ink-800);
  aspect-ratio: 21 / 7;
}
.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 52%;
}
.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9,22,15,.34), transparent 58%);
  pointer-events: none;
}

/* The H1 directly under a banner needs air above it or it reads as part of
   the image rather than as the page's headline. */
main > h1:first-of-type,
.crumbs ~ h1 { margin-top: var(--s-4); }

/* Page head: headline + standfirst. The standfirst repeats the meta
   description on-page (fine — Google treats the visible lede as the real
   intro) and gives the title block the two-tier shape a printed feature has. */
.page-head {
  margin: var(--s-3) 0 var(--s-4);
  max-width: var(--col-figure);
}
.page-head h1 { margin: 0 0 var(--s-2); }
.page-lede {
  font-family: var(--text-serif);
  font-size: clamp(1.06rem, 1rem + .35vw, 1.22rem);
  line-height: 1.58;
  color: var(--text-2);
  font-weight: 300;
  font-style: italic;
  max-width: var(--measure);
  margin: 0;
  padding-left: var(--s-3);
  border-left: 2px solid var(--brass);
}

/* ------------------------------------------------- 07 editorial GEO blocks */
/* Direct answer — the money block. Must read as a pull-quote, not a box. */
.direct-answer {
  position: relative;
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.02rem + .55vw, 1.5rem);
  line-height: 1.44;
  font-weight: 400;
  letter-spacing: -.012em;
  color: var(--ink-800);
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--brass);
  border-radius: 2px;
  padding: var(--s-4) clamp(1.2rem, 3vw, 2.1rem);
  margin: 0 0 var(--s-5);
  max-width: 46em;
  box-shadow: var(--sh-1);
}
.direct-answer::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 3px; height: calc(100% + 2px);
  background: linear-gradient(to bottom, var(--brass-lite), var(--brass));
  border-radius: 2px 0 0 2px;
}
.direct-answer em { font-style: italic; }

.tldr {
  background: var(--ink-900);
  color: var(--text-on-dark);
  border-radius: 3px;
  padding: var(--s-4) clamp(1.3rem, 3vw, 2.2rem) var(--s-4);
  margin: 0 0 var(--s-5);
  max-width: var(--col-figure);
  box-shadow: var(--sh-3);
  position: relative;
  overflow: hidden;
}
.tldr::before {
  /* faint oversized quotation glyph, bled off the top-left */
  content: "\201C";
  position: absolute;
  top: -3.1rem; left: .5rem;
  font-family: var(--display);
  font-size: 15rem;
  line-height: 1;
  color: rgba(255,255,255,.045);
  pointer-events: none;
}
.tldr .tldr-title,
.tldr h2 {
  font-family: var(--ui);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: .2em;
  margin: 0 0 var(--s-3);
  color: var(--brass-lite);
  font-weight: 600;
  position: relative;
}
.tldr ul { margin: 0; padding-left: 1.2em; position: relative; }
.tldr li {
  margin-bottom: .7rem;
  font-size: 1.02rem;
  line-height: 1.62;
  color: #e6ded0;
}
.tldr li:last-child { margin-bottom: 0; }
.tldr li::marker { color: var(--brass); }
.tldr strong { color: #fff; font-weight: 600; }
.tldr em { color: #fff; }

.note,
.callout {
  background: var(--brass-wash);
  border: 1px solid color-mix(in srgb, var(--brass) 28%, transparent);
  border-radius: 2px;
  padding: var(--s-3) clamp(1.1rem, 2.5vw, 1.6rem);
  margin: var(--s-4) 0;
  font-size: 1rem;
  line-height: 1.62;
  color: #4a3c1c;
  max-width: var(--measure);
}
.note strong { color: #3b2f12; }

.callout {
  display: flex;
  gap: var(--s-3);
  background: var(--ink-50);
  border-color: var(--ink-200);
  color: var(--text-2);
  max-width: 46em;
}
.callout .ico-wrap { flex: 0 0 auto; color: var(--ink-600); padding-top: .1rem; }
.callout p { margin: 0; }
.callout p strong {
  display: block;
  color: var(--ink-900);
  margin-bottom: .2rem;
  font-family: var(--ui);
  font-size: .95rem;
  letter-spacing: .01em;
}
.callout.warn {
  background: var(--brass-wash);
  border-color: color-mix(in srgb, var(--brass) 32%, transparent);
}
.callout.warn .ico-wrap { color: var(--brass); }
.callout.warn p { color: #4a3c1c; }
.callout.warn p strong { color: #3b2f12; }

/* --------------------------------------------------------- 08 data display */
/* The stat strip overlaps the hero by a fixed amount rather than a negative
   margin that fights .hero-full's own bottom margin. */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0;
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
  margin: calc(-1 * var(--s-5) - 1px) 0 var(--s-5);
  box-shadow: var(--sh-2);
  position: relative;
  z-index: 3;
}
.stat {
  padding: var(--s-3) var(--s-3) calc(var(--s-3) - .2rem);
  text-align: center;
  border-right: 1px solid var(--rule-2);
}
.stat:last-child { border-right: 0; }
.stat .n {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.6rem, 1.3rem + 1.1vw, 2.3rem);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--ink-800);
  font-variant-numeric: tabular-nums lining-nums;
}
.stat .n sup { font-size: .5em; top: -.9em; }
.stat .l {
  display: block;
  font-size: var(--t-xs);
  color: var(--text-2);
  margin-top: .5rem;
  line-height: 1.4;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.table-scroll {
  overflow-x: auto;
  margin: 0 0 var(--s-4);
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--paper-card);
  box-shadow: var(--sh-1);
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: .97rem;
  min-width: 460px;
  font-variant-numeric: tabular-nums lining-nums;
}
caption {
  caption-side: top;
  text-align: left;
  font-family: var(--ui);
  font-size: var(--t-xs);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-2);
  padding: var(--s-3) var(--s-3) var(--s-2);
  border-bottom: 1px solid var(--rule-2);
}
th, td {
  padding: .78rem var(--s-3);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule-2);
  line-height: 1.55;
}
tbody tr:last-child td { border-bottom: 0; }
thead th {
  background: var(--ink-900);
  color: var(--text-on-dark);
  font-family: var(--ui);
  font-weight: 600;
  font-size: var(--t-xs);
  letter-spacing: .13em;
  text-transform: uppercase;
  border-bottom: 0;
  white-space: nowrap;
}
tbody tr { transition: background .18s; }
tbody tr:nth-child(even) { background: color-mix(in srgb, var(--paper-2) 55%, transparent); }
tbody tr:hover { background: var(--brass-wash); }
td strong { color: var(--ink-800); }

.kv {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
  margin: var(--s-4) 0;
  background: var(--paper-card);
  box-shadow: var(--sh-1);
}
.kv > div {
  padding: var(--s-3);
  border-right: 1px solid var(--rule-2);
  border-bottom: 1px solid var(--rule-2);
}
.kv dt, .kv .k {
  font-family: var(--ui);
  font-size: var(--t-xs);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
  margin: 0 0 .35rem;
}
.kv dd, .kv .v {
  margin: 0;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--ink-800);
  font-variant-numeric: tabular-nums lining-nums;
}

.num-list {
  list-style: none;
  margin: var(--s-4) 0 var(--s-4);
  padding: 0;
  counter-reset: nl;
  max-width: var(--measure);
}
.num-list > li {
  counter-increment: nl;
  position: relative;
  padding: 0 0 var(--s-4) 3.6rem;
  margin: 0;
}
.num-list > li::before {
  content: counter(nl, decimal-leading-zero);
  position: absolute;
  left: 0; top: -.1rem;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  color: var(--brass);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.num-list > li::after {
  content: "";
  position: absolute;
  left: .78rem; top: 1.5rem; bottom: .2rem;
  width: 1px;
  background: var(--rule);
}
.num-list > li:last-child { padding-bottom: 0; }
.num-list > li:last-child::after { display: none; }
.num-list b {
  display: block;
  color: var(--ink-900);
  margin-bottom: .25rem;
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -.01em;
}
.num-list p { margin: 0; color: var(--text-2); }

.vs-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--s-3);
  margin: var(--s-4) 0 var(--s-5);
}
.vs-card {
  border: 1px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
  background: var(--paper-card);
  box-shadow: var(--sh-1);
  transition: box-shadow .26s, transform .26s;
}
.vs-card:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.vs-card .hd {
  padding: .8rem var(--s-3);
  font-family: var(--ui);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.vs-card.a .hd { background: var(--ink-700); }
.vs-card.b .hd { background: #7a4426; }
.vs-card .bd { padding: var(--s-3); font-size: .95rem; line-height: 1.6; color: var(--text-2); }
.vs-card .bd dl { margin: 0; }
.vs-card .bd dt {
  font-family: var(--ui);
  font-size: var(--t-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
  margin-top: .9rem;
}
.vs-card .bd dt:first-child { margin-top: 0; }
.vs-card .bd dd { margin: .15rem 0 0; color: var(--ink-800); font-weight: 500; }

/* ------------------------------------------------- 09 figures / icon tiles */
.viz {
  margin: var(--s-5) 0;
  padding: var(--s-4) var(--s-4) var(--s-2);
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--paper-card);
  box-shadow: var(--sh-1);
  overflow: hidden;
}
.viz svg { display: block; width: 100%; height: auto; }
/* The SVG carries its own font-family per <text> so the charts stay correct
   if this file is ever lifted out of the site. This rule is the fallback. */
.viz text { font-family: var(--text-serif); }
.viz-cap {
  padding: var(--s-3) 0 .4rem;
  margin-top: var(--s-3);
  border-top: 1px solid var(--rule-2);
  font-size: var(--t-sm);
  color: var(--text-3);
  line-height: 1.55;
  max-width: var(--measure);
  font-variant-numeric: tabular-nums;
}
.viz-cap::before {
  content: "";
  display: block;
  width: 30px; height: 2px;
  background: var(--brass);
  margin-bottom: .7rem;
}
.viz-cap b {
  display: block;
  color: var(--ink-900);
  font-weight: 600;
  font-size: var(--t-base);
  margin-bottom: .15rem;
  font-family: var(--ui);
}
.viz-cap span { display: block; color: var(--text-2); font-size: var(--t-sm); }

.ico { flex: 0 0 auto; }

.icon-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
  margin: var(--s-4) 0 var(--s-5);
  background: var(--paper-card);
}
.icon-tile {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  padding: var(--s-3);
  border-right: 1px solid var(--rule-2);
  border-bottom: 1px solid var(--rule-2);
  transition: background .2s;
}
.icon-tile:hover { background: var(--brass-wash); }
.icon-tile .ico-wrap {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--ink-900);
  color: var(--brass-lite);
  flex: 0 0 auto;
}
.icon-tile b {
  display: block;
  font-family: var(--ui);
  font-size: .93rem;
  color: var(--ink-900);
  font-weight: 600;
  margin-bottom: .1rem;
}
.icon-tile span { font-size: var(--t-sm); color: var(--text-2); line-height: 1.45; }

.shot {
  position: relative;
  margin: var(--s-5) 0;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: var(--sh-2);
  background: var(--ink-800);
  aspect-ratio: 16 / 9;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--s-4) var(--s-3) var(--s-2);
  background: linear-gradient(to top, rgba(9,22,15,.86), transparent);
  color: #e6ded0;
  font-size: var(--t-sm);
  line-height: 1.5;
}
.shot figcaption b { color: #fff; font-weight: 600; }

/* ------------------------------------------------ 10 navigation aids / TOC */
.crumbs {
  font-family: var(--ui);
  font-size: var(--t-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: var(--s-3) 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.crumbs a { color: var(--text-3); }
.crumbs a:hover { color: var(--brass); }
.crumbs [aria-current] { color: var(--ink-700); }
/* The separator is punctuation, not content — WCAG 1.4.3 exempts it, but a
   1.37:1 slash reads as a rendering glitch, so darken it enough to look
   intentional without competing with the links. */
.crumbs .sep { padding: 0 .55rem; color: var(--ink-400); }

.toc {
  margin: var(--s-3) 0 var(--s-4);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--ink-700);
  border-radius: 2px;
  background: var(--paper-card);
}
.toc-title {
  font-family: var(--ui);
  font-size: var(--t-xs);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
  margin-bottom: .7rem;
}
.toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: var(--s-4); max-width: none; }
.toc li { margin-bottom: .3rem; font-size: .93rem; break-inside: avoid; }
.toc a { color: var(--text-2); }
.toc a:hover { color: var(--ink-800); }

.jump-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
  margin: 0 0 var(--s-5);
  box-shadow: var(--sh-1);
}
.jump {
  display: block;
  padding: var(--s-3) var(--s-3) calc(var(--s-3) - .1rem);
  background: var(--paper-card);
  color: inherit;
  transition: background .24s;
  position: relative;
}
.jump:hover { text-decoration: none; background: var(--ink-900); }
.jump .n {
  display: block;
  font-family: var(--display);
  font-size: .82rem;
  letter-spacing: .1em;
  color: #7d5c17;
  font-weight: 600;
  margin-bottom: .5rem;
  font-variant-numeric: tabular-nums;
}
.jump b {
  display: block;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -.012em;
  color: var(--ink-900);
  margin-bottom: .25rem;
  line-height: 1.2;
}
.jump span {
  font-size: .92rem;
  color: var(--text-2);
  line-height: 1.5;
  display: block;
}
.jump:hover b { color: #fff; }
.jump:hover span { color: var(--text-on-dark-2); }
.jump:hover .n { color: var(--brass-lite); }

.faq { margin: var(--s-6) 0 0; max-width: var(--measure); }
.faq h2 { margin-top: 0; }
.faq-item {
  border-top: 1px solid var(--rule);
  padding: var(--s-3) 0 var(--s-2);
}
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-q {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.16rem;
  line-height: 1.32;
  letter-spacing: -.012em;
  margin: 0 0 .5rem;
  color: var(--ink-900);
  max-width: 40em;
}
.faq-a { margin: 0 0 .4rem; color: var(--text-2); }

.related {
  margin: var(--s-6) 0 0;
  padding: var(--s-4);
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--ink-900);
  color: var(--text-on-dark);
  position: relative;
  overflow: hidden;
}
.related::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 120% at 100% 0%, rgba(168,128,44,.16), transparent 60%);
  pointer-events: none;
}
.related h2 {
  margin: 0 0 var(--s-3);
  font-size: var(--t-md);
  color: var(--brass-lite);
  position: relative;
}
.related ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: .1rem var(--s-4);
  position: relative;
  max-width: none;
}
.related li { margin: 0; border-bottom: 1px solid var(--rule-dark); }
.related li:last-child { border-bottom: 0; }
.related a {
  display: block;
  padding: .6rem 0;
  color: #cdd9d0;
  font-size: .96rem;
  transition: color .2s, padding-left .24s cubic-bezier(.22,.61,.36,1);
}
.related a:hover {
  color: #fff;
  text-decoration: none;
  padding-left: .5rem;
}

.sources {
  margin-top: var(--s-6);
  padding: var(--s-4);
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--paper-2);
}
.sources h2 {
  font-family: var(--ui);
  font-size: var(--t-xs);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-2);
  margin: 0 0 var(--s-3);
  font-weight: 600;
}
/* The reference list sits INSIDE .sources, which is already the breakout
   column — leaving it at --col-figure made it overrun its own container by
   the list padding. A citation is reference material, so it returns to
   reading measure. */
.sources ul { margin: 0; padding-left: 1.1em; max-width: var(--measure); }
.sources li {
  font-size: var(--t-sm);
  line-height: 1.6;
  color: var(--text-2);
  margin-bottom: .55rem;
}
.sources li:last-child { margin-bottom: 0; }
.sources a { color: var(--ink-700); font-weight: 500; border-bottom: 1px solid var(--ink-200); }
.sources a:hover { color: var(--brass); border-bottom-color: var(--brass); text-decoration: none; }

/* ---------------------------------------------------------------- 11 footer */
.site-foot {
  margin-top: var(--s-7);
  background: var(--ink-900);
  color: var(--text-on-dark-2);
  padding: var(--s-6) 0 var(--s-5);
  font-size: .95rem;
  position: relative;
}
.site-foot::before {
  /* brass hairline — the one decorative flourish */
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--brass) 0%, var(--brass-lite) 30%, transparent 72%);
}
.foot-inner { display: grid; gap: var(--s-4); }
.foot-brand { display: flex; align-items: center; }
.foot-brand img {
  width: 210px;
  filter: brightness(0) invert(1) opacity(.9);
  opacity: .9;
}
.foot-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: .15rem var(--s-4);
}
.foot-links li { margin: 0; }
.foot-links a {
  display: inline-block;
  padding: .32rem 0;
  color: #cdd9d0;
  font-size: .93rem;
  transition: color .2s;
}
.foot-links a:hover { color: var(--brass-lite); text-decoration: none; }
.foot-note {
  width: 100%;
  max-width: 62ch;
  font-size: var(--t-sm);
  color: var(--ink-200);
  line-height: 1.65;
  border-top: 1px solid var(--rule-dark);
  padding-top: var(--s-3);
  margin: 0;
}
.foot-rule {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  justify-content: space-between;
  font-family: var(--ui);
  font-size: var(--t-xs);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-200);
}

/* --------------------------------------------------- 12 forms / 404 / misc */
.contact-form {
  display: grid;
  gap: var(--s-3);
  max-width: 34rem;
  margin: var(--s-4) 0;
}
.contact-form label {
  font-family: var(--ui);
  font-size: var(--t-xs);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
}
.contact-form input,
.contact-form textarea {
  font-family: var(--text-serif);
  font-size: 1rem;
  padding: .7rem .9rem;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--paper-card);
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--ink-500);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink-400) 22%, transparent);
}
.contact-form button {
  justify-self: start;
  font-family: var(--ui);
  font-size: .95rem;
  font-weight: 600;
  padding: .8rem 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--ink-800);
  background: var(--ink-800);
  color: var(--paper);
  cursor: pointer;
  transition: background .22s, transform .22s, box-shadow .22s;
}
.contact-form button:hover {
  background: var(--ink-600);
  transform: translateY(-1px);
  box-shadow: var(--sh-2);
}
.form-note { font-size: var(--t-sm); color: var(--text-2); }

.err-box { text-align: center; padding: var(--s-7) 0 var(--s-6); }
.err-code {
  font-family: var(--display);
  font-size: clamp(4.5rem, 3rem + 8vw, 9rem);
  font-weight: 600;
  line-height: .9;
  letter-spacing: -.05em;
  /* was --paper-3 (1.18:1 — effectively invisible). Solid pine with the
     numeral reversed out of it keeps the display scale but stays legible. */
  color: var(--ink-800);
  margin-bottom: var(--s-3);
  -webkit-text-stroke: 1px var(--ink-800);
}
.err-line { font-family: var(--display); font-size: var(--t-xl); margin-bottom: var(--s-2); }

.ico { vertical-align: -.15em; }

/* ------------------------------------------------------------- 13 motion */
/* Progressive enhancement: the reveal starts in the VISIBLE state.
   Only once JS has confirmed it can observe + un-observe does it opt elements
   in. If the script fails to load or IntersectionObserver is missing, the
   content must still be on screen — never opacity:0 forever. */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .62s cubic-bezier(.22,.61,.36,1),
                transform .62s cubic-bezier(.22,.61,.36,1);
  }
  .js-reveal .reveal.in { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* --------------------------------------------------------- 14 responsive */
@media (min-width: 1080px) {
  :root { --maxw: 1280px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .brand img { width: 172px; }
  .head-inner { min-height: 64px; }
  .nav-list {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: .5rem clamp(1.15rem, 4vw, 2.5rem) 1rem;
    box-shadow: var(--sh-3);
  }
  .nav-list.open { display: flex; }
  .nav-list li { border-top: 1px solid var(--rule-2); }
  .nav-list a {
    display: block;
    padding: .85rem 0;
    font-size: 1.02rem;
  }
  .nav-list a::after { display: none; }
  .nav-list a[aria-current="page"] { color: var(--brass); }
}

@media (max-width: 720px) {
  :root { --measure: 100%; }
  h2 { margin-top: var(--s-5); }
  .hero-full {
    border-radius: 0;
    margin-left: calc(-1 * clamp(1.15rem, 4vw, 2.5rem));
    margin-right: calc(-1 * clamp(1.15rem, 4vw, 2.5rem));
  }
  .hero-full img {
    min-height: 0;
    max-height: none;
    /* 3/4 rather than 4/5: at 390px wide a 4/5 frame is 488px tall, the copy
       needs ~460px, and the headline collides with the sticky header. */
    aspect-ratio: 3 / 4;
    object-position: 50% 42%;
  }
  /* On a tall crop the copy fills most of the frame, so the gradient has to be
     much stronger or the headline sits unreadable over the busy middle. */
  .hero-full::after {
    background:
      linear-gradient(to top, rgba(9,22,15,.96) 12%, rgba(9,22,15,.9) 52%, rgba(9,22,15,.72) 80%, rgba(9,22,15,.66) 100%);
  }
  .hero-copy {
    padding: 3.2rem 1.35rem 1.7rem;
  }
  .hero-copy h1 { font-size: clamp(2rem, 1.4rem + 3.4vw, 2.7rem); }
  .banner {
    border-radius: 0;
    margin-left: calc(-1 * clamp(1.15rem, 4vw, 2.5rem));
    margin-right: calc(-1 * clamp(1.15rem, 4vw, 2.5rem));
    aspect-ratio: 16 / 7;
  }
  .stat-strip { grid-template-columns: repeat(2, 1fr); margin-top: 0; }
  .stat { border-bottom: 1px solid var(--rule-2); }
  .toc ol { columns: 1; }
  .related ul { grid-template-columns: 1fr; }
  .foot-links { grid-template-columns: 1fr 1fr; }
  .drop-cap::first-letter { font-size: 3.2em; }
}

@media (max-width: 420px) {
  .foot-links { grid-template-columns: 1fr; }
  .hero-cta a { width: 100%; justify-content: center; }
}
