/* The only place a color, a size, a space, a radius, a shadow or a duration is defined. The system and its reasons
   are in _brief/system.md. Palette: AEA brand bible v4.2 (locked by Anthony 2026-10-15). One Highlighter Yellow
   payoff per screen. */
:root {
  /* color */
  --ink: #0B0B0F;
  --panel: #15151C;
  --panel-2: #14101F;
  --violet: #8B3DFF;
  --violet-glow: #A259FF;
  --violet-deep: #2A0F57;
  --yellow: #FFF01F;
  --white: #FFFFFF;
  --text: #ECEEF4;
  --muted: #A3A8B8;

  --ink-rgb: 11 11 15;
  --panel-2-rgb: 20 16 31;
  --violet-rgb: 139 61 255;
  --violet-glow-rgb: 162 89 255;
  --violet-deep-rgb: 42 15 87;
  --white-rgb: 255 255 255;
  --black-rgb: 0 0 0;
  --glow: rgb(var(--violet-rgb) / .55);
  --haze: rgb(var(--violet-rgb) / .3);
  --line: rgb(var(--white-rgb) / .11);
  --line-hi: rgb(var(--white-rgb) / .22);
  --glass: rgb(var(--white-rgb) / .06);
  --tint: rgb(var(--violet-rgb) / .16);
  --scrim: rgb(var(--ink-rgb) / .82);

  /* type: seven steps; 1rem is the reader's own setting */
  --display: "Anton", "Anton Fallback", "Anton Fallback Sans", Impact, "Arial Narrow", sans-serif;
  --body: "Liberation Sans", Arial, Helvetica, sans-serif;
  --fs-1: .875rem;                                     /* labels and tags only, never sentences */
  --fs-2: 1.0625rem;                                   /* body, buttons, notes */
  --fs-3: clamp(1.125rem, 1rem + .5vw, 1.375rem);      /* lead, brand, numerals in badges */
  /* Display steps are also capped by the screen width, so a long word fits even at 200 percent text. */
  --fs-4: min(clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem), 11vw);      /* small display: offer name */
  --fs-5: min(clamp(2.5rem, 1.4rem + 4vw, 5.75rem), 12vw);        /* door titles, course card, bridge */
  --fs-6: min(clamp(2.75rem, 1.6rem + 4.8vw, 6.5rem), 12.5vw);    /* section heads, kit title, price figure, 404, phone hero title (12.5vw keeps "IT NAMED ME ZERO" on one line at 320 px in Anton and its fallbacks alike) */
  --fs-7: min(clamp(3.75rem, 2.4rem + 7.5vw, 9.25rem), 16vw);     /* hero title, episode numerals */
  --lh-body: 1.6;
  --lh-tight: .92;
  --stroke: clamp(.3rem, .2rem + .35vw, .6rem);

  /* space: one scale, two fluid steps */
  --s1: .25rem;
  --s2: .5rem;
  --s3: .75rem;
  --s4: 1rem;
  --s5: 1.5rem;
  --s6: 2rem;
  --s7: 3rem;
  --s8: 4.5rem;
  --s9: clamp(4rem, 2.5rem + 6vw, 7.5rem);
  --s-gap: clamp(1.5rem, .5rem + 3.5vw, 4.5rem);
  --s-pad: min(clamp(1.5rem, .5rem + 4vw, 4rem), 6vw);  /* capped by the screen, so 200 percent text keeps its line length */
  --btn-pad: min(var(--s6), 6vw);
  --box-pad: min(var(--s5), 4vw);  /* inner boxes: the chart and the offer */
  --gutter: clamp(1rem, .5rem + 2.5vw, 3rem);

  /* measures and fixed objects */
  --max: 77.5rem;
  --measure: 34rem;
  --measure-s: 24rem;
  --tap: 2.75rem;
  --tap-px: 44px;  /* the target minimum in CSS px, for the phone mark: large text grows the mark itself, not its box */
  --tap-l: 3.5rem;
  --lockup: 15rem;  /* the horizontal lockup's minimum width, 240 px */
  --lockup-h: calc(var(--lockup) * 175 / 720);  /* lockup-720.png is 720 x 175 */
  --mark-s: 2.3rem;  /* the mark alone on phones; mark.png is 211 x 240, so this keeps it at least 32 px wide */
  --disc: 6.5rem;
  --disc-s: 4.5rem;
  --medal: clamp(5.75rem, 4rem + 4vw, 7.5rem);
  --figure: clamp(7.5rem, 5rem + 6vw, 10.5rem);
  --hero-band: clamp(12rem, min(28vw, 36svh), 22rem);
  --hero-band-short: clamp(6rem, 30svh, 22rem);  /* sideways phones */
  --hero-ratio: 2.29;  /* the widened hero art, 3512 x 1536 */
  --header-h: calc(var(--lockup-h) + 2 * var(--s4));  /* the header row: the lockup plus its padding (phones: base.css) */
  --hero-max: 52rem;
  --hero-phone-art: min(104vw, 50svh);  /* the phone hero art is 780 x 814 (104vw tall), cropped from the bottom on short screens so the first action shows */
  --hero-phone-overlap: calc(var(--hero-phone-art) - 22vw);  /* the title starts 22vw up into the art */
  --title-ems: 3.95;  /* eight of Anton's zeros (0.494em each); in em, not ch, so a fallback face cannot rewrap the hero title */
  --title-measure: calc(var(--title-ems) * 1em);
  --buy-text-min: 14rem;
  --row-text-min: 12rem;
  --check-max: 46rem;  /* the hero search in one row: two fields and the button */
  --strip-min: 9rem;
  --lost-min: 70svh;
  --chart-ratio: 5 / 3.6;  /* the example chart's shape */
  --chart-fit: 56svh;  /* the chart's height on a short sideways screen, so its start dot and end label share the view */

  /* shape: three radii plus the arch, the doors' one signature shape */
  --r-md: 1.125rem;
  --r-lg: 1.75rem;
  --r-pill: 999px;
  --arch: clamp(8rem, 3rem + 14vw, 17rem);
  --rim: .75rem;
  --rule: 1px;
  --rule-bold: 2px;
  --focus: 3px;
  --blur-glow: 26px;
  --blur-soft: 10px;
  --depth: 1400px;

  /* elevation: a ring, then three levels */
  --ring: 0 0 0 var(--rule) var(--line) inset;
  --ring-hi: 0 0 0 var(--rule) var(--line-hi) inset;
  --e1: 0 0 0 var(--rule) var(--line);
  --e2: 0 0 0 var(--rule) var(--line), 0 1.875rem 3.75rem -1.875rem rgb(var(--black-rgb) / .9);
  --e3: 0 0 0 var(--rule) var(--line), 0 1.25rem 3.5rem -1rem var(--glow);
  --glow-dot: 0 0 .6rem var(--violet);
  --glow-portal: 0 0 0 var(--rule-bold) rgb(var(--white-rgb) / .6), 0 0 4.4rem .25rem var(--glow), 0 0 9.4rem 1rem var(--haze);
  --blur-line: 10px;
  --blur-point: 14px;
  --text-glow: 0 0 2.1rem var(--glow);
  --text-lift: var(--text-glow), .375rem .55rem 0 rgb(var(--black-rgb) / .55);

  /* motion: state changes at 150 to 400 ms; the graph draw is the one signature motion (Showpiece) */
  --t-fast: 150ms;
  --t-mid: 400ms;
  --t-draw: 1600ms;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-draw: cubic-bezier(.55, .1, .25, 1);
  --loop-drift: 18s;
  --loop-rays: 40s;
  --loop-pulse: 2.8s;
  --loop-pulse-count: 3;  /* the play disc calls three times, then rests */
  --swing: 17deg;
}

/* Shared by every page: fonts, reset, type, buttons, header, footer, notes, numbered rows, the kit page. */
@font-face { font-family: "Anton"; src: url("/fonts/anton-latin.woff2") format("woff2"); font-display: swap; }
/* Local faces sized to Anton, so a late Anton swap barely moves the page: Impact where it exists, else Arial, Roboto
   (Android) or Helvetica. The numbers come from scripts/fallback_metrics.py: Anton's unshaped advance width over the
   local face's, summed over the site's own Anton headings in uppercase (Impact 0.946, Arial 0.689), and Anton's hhea
   ascent and descent divided by that same ratio. */
@font-face { font-family: "Anton Fallback"; src: local("Impact"); size-adjust: 94.6%; ascent-override: 124.3%; descent-override: 34.8%; line-gap-override: 0%; }
@font-face { font-family: "Anton Fallback Sans"; src: local("Arial"), local("Roboto"), local("Helvetica"); size-adjust: 68.9%; ascent-override: 170.7%; descent-override: 47.8%; line-gap-override: 0%; }
@font-face { font-family: "Liberation Sans"; src: url("/fonts/liberation-sans-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Liberation Sans"; src: url("/fonts/liberation-sans-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

* { box-sizing: border-box; }
html { background: var(--ink); color: var(--text); scroll-padding-top: var(--s8); }
body { margin: 0; font: 400 var(--fs-2) / var(--lh-body) var(--body); background: var(--ink); overflow-x: clip; overflow-wrap: break-word; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
p, h3, dd, li { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: var(--focus) solid var(--white); outline-offset: var(--focus); }
main:focus { outline: none; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

.skip { position: absolute; left: var(--s4); top: var(--s4); z-index: 10; display: inline-flex; align-items: center; min-height: var(--tap);
  padding: 0 var(--s4); border-radius: var(--r-md); background: var(--white); color: var(--ink); font-weight: 700; text-decoration: none;
  transform: translateY(-200%); }
.skip:focus { transform: none; }

/* The thumbnail type: white Anton, ink outline, violet glow, hard drop shadow. */
.punch {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: var(--lh-tight);
  letter-spacing: .005em;
  text-wrap: balance;
  hyphens: auto;
  color: var(--white);
  -webkit-text-stroke: var(--stroke) var(--ink);
  paint-order: stroke fill;
  text-shadow: var(--text-lift);
}
.punch .glow { color: var(--violet-glow); }

/* Eyebrow labels: small caps on glass. .solid sits on art, where glass alone would not hold contrast. */
.tag, .eyebrow { font: 700 var(--fs-1) / 1.4 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tag { display: inline-block; padding: var(--s1) var(--s3); border-radius: var(--r-pill); background: var(--glass); box-shadow: var(--ring); }
.tag.solid { color: var(--text); background: var(--scrim); }

.lead { font-size: var(--fs-3); color: var(--text); max-width: var(--measure); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: var(--tap); padding: var(--s2) var(--s5); border-radius: var(--r-pill); border: 0;
  background: var(--violet); color: var(--white); font: 700 var(--fs-2) / 1.2 var(--body); text-align: center;
  text-decoration: none; cursor: pointer;
  box-shadow: var(--ring-hi), var(--e3);
  transition: transform var(--t-fast) ease, filter var(--t-fast) ease;
}
.btn:hover { filter: brightness(1.08); }
@media (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: translateY(1px); }
}
.btn.ghost { background: var(--glass); box-shadow: var(--ring-hi); }
.btn { max-width: 100%; }
.btn.big { min-height: var(--tap-l); padding-inline: var(--btn-pad); }

/* A text link that still makes a 44 px target. */
.link { display: inline-flex; align-items: center; gap: var(--s2); min-height: var(--tap); font-weight: 700; color: var(--white);
  text-underline-offset: .25em; text-decoration-color: var(--violet); text-decoration-thickness: var(--rule-bold); }

.note { max-width: var(--measure); color: var(--text); }

/* Numbered rows: the kit's two tools and the graph section's three steps. */
.numbered { display: grid; gap: var(--s3); width: 100%; counter-reset: row; }
.numbered li { counter-increment: row; display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center;
  padding: var(--s3) var(--s4); border-radius: var(--r-md); background: var(--row-bg, var(--glass)); box-shadow: 0 0 0 var(--rule) var(--row-line, var(--line)) inset;
  color: var(--text); transition: background var(--t-mid) ease, box-shadow var(--t-mid) ease; }
.numbered li::before { content: counter(row); flex: none; display: grid; place-items: center; width: var(--tap); height: var(--tap); border-radius: var(--r-pill);
  font: 400 var(--fs-3) / 1 var(--display); color: var(--white); background: rgb(var(--violet-rgb) / .3); box-shadow: 0 0 0 var(--rule-bold) var(--violet) inset; }
.numbered li > * { flex: 1 1 var(--row-text-min); min-width: 0; }
.numbered strong, .numbered h3 { display: block; font: 700 var(--fs-2) / 1.35 var(--body); color: var(--white); }
.numbered.violet { --row-bg: var(--tint); --row-line: rgb(var(--violet-rgb) / .45); }

/* Header */
.top { position: absolute; inset: 0 0 auto; z-index: 5; }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s4); padding-block: var(--s4); }
/* The approved horizontal lockup at its 240 px minimum; phones show the mark alone (bible v4.2, 02 Logo). */
.brand { display: inline-flex; align-items: center; min-width: var(--tap-px); min-height: var(--tap); }
.brand img { width: var(--lockup); height: auto; }
.top nav { display: flex; gap: var(--s5); align-items: center; }
.top nav a:not(.btn) { display: inline-flex; align-items: center; min-height: var(--tap); text-decoration: none; color: var(--text); }
.top nav .btn { background: var(--scrim); }
.top nav a:not(.btn):hover { color: var(--white); text-decoration: underline; text-underline-offset: .4em; }

/* Footer */
footer { border-top: var(--rule) solid var(--line); padding-block: var(--s5); color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: var(--s3) var(--s5); flex-wrap: wrap; }
footer nav { display: flex; gap: var(--s4); flex-wrap: wrap; }
footer nav a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--text); text-underline-offset: .3em; }

/* Fact chips and the compact course offer */
.facts { display: flex; flex-wrap: wrap; gap: var(--s2); }
.facts li { padding: var(--s1) var(--s3); border-radius: var(--r-md); background: var(--glass); box-shadow: var(--ring); color: var(--text); }

.offer { padding: var(--box-pad); border-radius: var(--r-lg); background: var(--panel); box-shadow: var(--e1); display: grid; gap: var(--s4); align-content: start; }
.offer h2 { font: 700 var(--fs-3) / 1.3 var(--body); color: var(--white); }
.offer .name { font-family: var(--display); font-size: var(--fs-4); line-height: 1; text-transform: uppercase; color: var(--white); }

/* Kit pages: the episode beside the kit on wide screens, a strip below it on phones. */
.kit { padding-block: calc(var(--s8) + var(--s6)) var(--s8); }
.kit .wrap { display: grid; gap: var(--s7); }
.kit-top { display: grid; gap: var(--s5); align-items: start; }
.from { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--strip-min)), 1fr)); gap: var(--s3); align-items: center; padding: var(--s2); border-radius: var(--r-md);
  background: var(--panel); box-shadow: var(--e1); }
.from img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-md); }
.from .title { font-weight: 700; color: var(--white); text-wrap: balance; }
.from .rerun { display: none; }
/* Below the wide layout the episode strip follows the kit, so the kit button is on the first screen. */
.from { order: 1; }
.kit-hero { display: grid; gap: var(--s4); justify-items: start; }
.kit-hero h1 { font-size: var(--fs-6); }
.get { display: grid; gap: var(--s3); justify-items: start; }
.kit-more { display: grid; gap: var(--s7); align-items: start; }

.faq { display: grid; gap: var(--s5); }
.faq h2 { font: 700 var(--fs-3) / 1.3 var(--body); color: var(--white); }
.faq dl { display: grid; gap: var(--s4); }
.faq dt { font-weight: 700; color: var(--white); }
.faq dd { margin: var(--s1) 0 0; color: var(--text); max-width: var(--measure); }

.lost { min-height: var(--lost-min); display: grid; align-content: center; padding-block: calc(var(--header-h) + var(--s7)) var(--s9); }
.lost .wrap { display: grid; gap: var(--s5); justify-items: start; }
.lost h1 { font-size: var(--fs-6); }
.lost .links { display: flex; gap: var(--s3); flex-wrap: wrap; }
/* One column that never grows past the screen, even at 200 percent text. */
.kit .wrap, .kit-top, .kit-hero, .get, .kit-more, .faq, .offer, .lost, .lost .wrap { grid-template-columns: minmax(0, 1fr); }
.lost .lead { overflow-wrap: anywhere; }

@media (min-width: 64em) {
  .kit-top { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "kit from"; gap: var(--s-gap); }
  .kit-hero { grid-area: kit; }
  .from { grid-area: from; grid-template-columns: 1fr; padding: var(--s4); gap: var(--s3); }
  .from .rerun { display: block; color: var(--text); }
  .kit-more { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-gap); }
}

@media (max-width: 47.5em) {
  html { scroll-padding-top: var(--s4); }
  .top nav a:not(.btn) { display: none; }
  :root { --header-h: calc(var(--tap) + 2 * var(--s3)); }
  .top .wrap { padding-block: var(--s3); column-gap: var(--s3); }
  .brand img { width: auto; height: var(--mark-s); }
  .top nav .btn { padding-inline: var(--s3); white-space: nowrap; }
  .kit { padding-top: calc(var(--header-h) + var(--s4)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
