/*
 * Protn — one stylesheet for the whole site.
 *
 * The app carries its look in four shared pieces (ScreenGradient, Node, the
 * glass surfaces, the type scale) rather than by convention, because a screen
 * restyled by hand drifts. The site follows the same rule: these tokens are
 * copied from constants/themes.ts and constants/tokens.ts, and nothing below
 * redefines a colour or a weight inline.
 *
 * Dark only. The app ships userInterfaceStyle: "dark" for v1, so there is no
 * light palette to match yet.
 */

/* ---------------------------------------------------------------- tokens -- */

:root {
  color-scheme: dark;

  /* constants/themes.ts — DarkColors */
  --bg: #0D0D0D;
  --wash: #16330B;          /* brandWash: the bottom of the gradient */
  --green: #6FE040;
  --green-dim: #2D5A1B;
  --card: #1A1A1A;
  --card-border: #2A2A2A;
  --text: #FFFFFF;
  --text-secondary: #BBBBBB;
  --text-muted: #8A8A8A;

  /* A surface standing on the gradient. Flat `card` reads as a hole punched
     in the wash; glass lets it show through. */
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.14);

  /* The accent at the opacities the node motif needs. */
  --green-halo: rgba(111, 224, 64, 0.10);
  --green-rail: rgba(111, 224, 64, 0.18);
  --green-edge: rgba(111, 224, 64, 0.40);

  /* constants/tokens.ts — Radius */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* The node motif, at the app's exact sizes. */
  --node: 40px;
  --halo: 56px;
  --rail: 14px;
  --rail-tail: 28px;

  --measure: 66ch;          /* ~65 characters of body copy */
  --gutter: 20px;
  --shell: 1120px;
  --nav-h: 64px;

  /* Tinted rather than black: a neutral shadow over the wash goes grey. */
  --shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.7);
  --glow: 0 0 40px rgba(111, 224, 64, 0.18), 0 8px 24px rgba(0, 0, 0, 0.45);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --z-grain: 1;
  --z-nav: 20;
  --z-drawer: 30;
  --z-skip: 40;
}

/* ------------------------------------------------------------ foundation -- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  min-height: 100%;
  font-family: Geist, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;

  /* ScreenGradient.tsx, three stops not two: flat near-black holds across the
     top 45% so headlines sit on black, then gathers to the brand wash at the
     bottom where the primary action is. Document-length rather than
     viewport-fixed, so the deep green lands on the closing CTA. */
  background-color: var(--bg);
  background-image: linear-gradient(180deg, var(--bg) 0%, var(--bg) 45%, var(--wash) 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

/* Breaks the flatness of a large single gradient. Fixed and inert. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { max-width: 100%; }
img { height: auto; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--green-dim); color: var(--text); }

.skip {
  position: absolute;
  left: 16px;
  top: -200px;
  z-index: var(--z-skip);
  padding: 12px 18px;
  border-radius: var(--r-pill);
  background: var(--green);
  color: var(--bg);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip:focus { top: 16px; }

.sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ----------------------------------------------------------------- type -- */
/*
 * Weights sit at 500-600. Headings and body separate by colour and size, not
 * weight. The one exception is a label on a filled green button, which stays
 * at 800 because dark-on-green goes soft below that.
 */

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 7.2vw, 4.1rem); letter-spacing: -0.034em; }
h2 { font-size: clamp(1.75rem, 4.4vw, 2.6rem); letter-spacing: -0.028em; }
h3 { font-size: clamp(1.15rem, 2.3vw, 1.4rem); font-weight: 500; letter-spacing: -0.016em; line-height: 1.25; }
h4 { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }

p { margin: 0; text-wrap: pretty; }

.lede {
  font-size: clamp(1.05rem, 2.1vw, 1.3rem);
  line-height: 1.55;
  font-weight: 400;
  color: var(--text-secondary);
  max-width: var(--measure);
}

.accent { color: var(--green); }
.muted { color: var(--text-muted); }
.secondary { color: var(--text-secondary); }

/* Type.slotLabel — the app's section label. */
.label {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.num { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------- layout -- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell--narrow { max-width: 760px; }

section { position: relative; }

.band { padding-block: clamp(64px, 11vw, 136px); }
.band--tight { padding-block: clamp(48px, 7vw, 88px); }

/* A hairline between bands. Lighter than --card-border so it does not read as
   a card edge over the gradient. */
.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.10) 20%, rgba(255, 255, 255, 0.10) 80%, transparent);
}

.stack { display: grid; gap: 14px; justify-items: start; }

/* Blocks that should still fill the column. Without this, `justify-items`
   above would shrink-wrap paragraphs and cards too. */
.stack > p,
.stack > h1, .stack > h2, .stack > h3,
.stack > ul, .stack > ol, .stack > div,
.stack > article, .stack > section, .stack > nav,
.stack > hr, .stack > table, .stack > .glass, .stack > .steps,
.stack > .cards, .stack > .split, .stack > .plans, .stack > .qa,
.stack > .tablewrap, .stack > .meal__items { justify-self: stretch; }
.stack--lg { gap: 22px; }
.stack--xl { gap: 34px; }

.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ------------------------------------------------------------- surfaces -- */

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  padding: clamp(20px, 3vw, 30px);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  /* True glass: a 1px top highlight reads as a refracting edge rather than a
     drawn border. */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

/* Inner surfaces sit tighter than their container. */
.glass .glass { border-radius: var(--r-md); }

.glass--link {
  display: block;
  text-decoration: none;
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease), background 0.22s var(--ease);
}
.glass--link:hover {
  border-color: var(--green-edge);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
}
.glass--link:active { transform: translateY(-1px); }

/* Selected / recommended. greenDim is the app's selected-card fill. */
.glass--on {
  background: var(--green-dim);
  border-color: var(--green);
  border-width: 2px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.pill .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}

/* Square rather than pill: the pill badge is the generic choice. */
.tag {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--green-dim);
  color: var(--green);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* -------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
              border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), color 0.18s var(--ease);
}

/* The one place 800 is correct. */
.btn--primary {
  background: var(--green);
  color: var(--bg);
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: var(--glow);
}
.btn--primary:hover { background: #7DEA52; transform: translateY(-2px); }
.btn--primary:active { transform: translateY(0) scale(0.985); }

.btn--ghost {
  background: var(--glass);
  border-color: var(--glass-border);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--green-edge); background: rgba(255, 255, 255, 0.09); }
.btn--ghost:active { transform: scale(0.985); }

.btn--sm { padding: 10px 18px; font-size: 14px; }

/* A third tier, so not every pairing is filled + ghost. */
.textlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--green);
  text-decoration: none;
  transition: gap 0.18s var(--ease);
}
.textlink:hover { gap: 11px; }
.textlink .i { width: 16px; height: 16px; }

/* ------------------------------------------------------------------ nav -- */

.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 13, 13, 0.72);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.nav__in {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand img { width: 28px; height: 28px; border-radius: 9px; }

.nav__links { display: flex; align-items: center; gap: 26px; }

.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a[aria-current="page"] { color: var(--text); }

.nav__burger {
  display: none;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: var(--glass);
  color: var(--text);
  cursor: pointer;
}

.nav__drawer { display: contents; }

/* The drawer carries its own CTA for the mobile layout. On desktop the drawer
   is `display: contents`, so without this both it and .nav__cta would render
   and the Download button would appear twice. */
.nav__drawer > .btn { display: none; }

@media (max-width: 820px) {
  .nav__burger { display: inline-flex; }

  .nav__drawer {
    display: block;
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    top: calc(var(--nav-h) + 8px);
    z-index: var(--z-drawer);
    padding: 10px;
    border: 1px solid var(--glass-border);
    border-radius: var(--r-lg);
    background: rgba(18, 18, 18, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
  }
  .nav__drawer[hidden] { display: none; }

  .nav__links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__links a { padding: 13px 14px; border-radius: 11px; font-size: 15px; }
  .nav__links a:hover { background: var(--glass); }

  .nav__cta { display: none; }
  .nav__drawer > .btn { display: flex; width: 100%; margin-top: 8px; }
}

/* ------------------------------------------------- the node/rail motif -- */
/*
 * components/Node.tsx and components/TrialTimeline.tsx: a filled green circle
 * with a soft halo behind it, connected by a thick rail that fades to
 * transparent after the last node. Used wherever something is a sequence.
 *
 * The rail is one element behind the whole list rather than a connector per
 * row, which is the only way the fade below the last node stays continuous.
 */

.steps {
  position: relative;
  display: grid;
  gap: 36px;
  margin: 0;
  padding: 0 0 var(--rail-tail);
  list-style: none;
}

.steps::before {
  content: "";
  position: absolute;
  left: calc((var(--halo) - var(--rail)) / 2);
  top: calc(var(--node) / 2);
  width: var(--rail);
  height: calc(100% - var(--node) / 2);
  border-radius: calc(var(--rail) / 2);
  background: linear-gradient(
    180deg,
    var(--green-rail) 0%,
    var(--green-rail) calc(100% - var(--rail-tail)),
    rgba(111, 224, 64, 0) 100%
  );
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: var(--halo) 1fr;
  align-items: start;
}

.step__node {
  position: relative;
  width: var(--halo);
  height: var(--node);
  display: grid;
  place-items: center;
}

.step__node::before {
  content: "";
  position: absolute;
  width: var(--halo);
  height: var(--halo);
  border-radius: 50%;
  background: var(--green-halo);
}

.step__dot {
  position: relative;
  width: var(--node);
  height: var(--node);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: var(--bg);
}

/* The step not yet reached — the app draws the one that costs money this way. */
.step__dot--open {
  background: var(--card);
  border: 1px solid var(--green-edge);
  color: var(--text-secondary);
}

.step__dot .i { width: 18px; height: 18px; }

.step__body {
  padding-left: 12px;
  padding-top: 9px;
  display: grid;
  gap: 3px;
}

.step__body h3 { font-size: 1.125rem; font-weight: 500; line-height: 1.22; }
.step__body p { font-size: 15px; line-height: 1.4; color: var(--text-muted); max-width: 52ch; }

/* Numbers instead of icons, where the sequence is counted. */
.step__dot .n { font-size: 15px; font-weight: 800; }

/* ---------------------------------------------------------------- icons -- */
/*
 * Outline, one stroke weight, throughout. The sprite carries the stroke
 * attributes so every use site matches.
 */

.i {
  width: 20px;
  height: 20px;
  flex: none;
  display: inline-block;
  vertical-align: middle;
}

.i--lg { width: 24px; height: 24px; }

.iconwrap {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--green-halo);
  color: var(--green);
  flex: none;
}

/* ---------------------------------------------------------------- grids -- */

/* Deliberately not three equal columns. Two columns, and a wide first cell on
   large screens so the row is not a mirror of itself. */
.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards > .span2 { grid-column: span 2; }
}

.split {
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr 0.95fr; }
  .split--flip > :first-child { order: 2; }
}

/* ------------------------------------------------------- the meal card -- */
/*
 * The product, shown rather than described: one protein, one carb, one
 * vegetable, one fat, in human units.
 */

.meal { display: grid; gap: 10px; }

.meal__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.meal__items { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }

.meal__item {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
}

.meal__cat {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.meal__amt { color: var(--text-secondary); font-variant-numeric: tabular-nums; }

.meal__macros {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* The checklist state, which is what the daily job actually looks like. */
.tick {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  border: 1.5px solid var(--text-muted);
  color: transparent;
}
.tick--on { background: var(--green); border-color: var(--green); color: var(--bg); }
.tick .i { width: 14px; height: 14px; }

/* -------------------------------------------------------------- pricing -- */

.plans { display: grid; gap: 14px; }

@media (min-width: 680px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
}

/* Equal footing across the two cards: the price block is a fixed row, so the
   per-month figures and the buttons line up whatever the copy above does. */
.plan {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 16px;
}

.plan__per {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}
.plan__per b { font-size: clamp(2rem, 5vw, 2.5rem); font-weight: 600; letter-spacing: -0.03em; }
.plan__per span { font-size: 15px; color: var(--text-muted); }

.plan__total { font-size: 14px; color: var(--text-secondary); }
.plan__total s { color: var(--text-muted); text-decoration-thickness: 1px; }

.plan__tag { position: absolute; top: 18px; right: 18px; }

/* ----------------------------------------------------------- prose/legal -- */

.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.05em; }

.prose h2 {
  margin-top: 2.4em;
  font-size: clamp(1.3rem, 2.6vw, 1.6rem);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.prose h2:first-child { margin-top: 0; }

.prose h3 { margin-top: 1.9em; font-size: 1.08rem; font-weight: 600; }

.prose p, .prose li { color: var(--text-secondary); line-height: 1.68; }

.prose strong { color: var(--text); font-weight: 600; }

.prose a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.prose ul, .prose ol { margin: 1.05em 0; padding-left: 1.3em; display: grid; gap: 0.5em; }
.prose li::marker { color: var(--text-muted); }

.prose code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  font-size: 0.9em;
}

.prose blockquote {
  margin: 1.4em 0;
  padding: 2px 0 2px 18px;
  border-left: 2px solid var(--green-edge);
  color: var(--text-secondary);
  font-style: normal;
}

/* A legal document needs a table for processors. */
.tablewrap { overflow-x: auto; margin: 1.4em 0; -webkit-overflow-scrolling: touch; }

table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

th, td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  vertical-align: top;
  color: var(--text-secondary);
}

th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

tbody tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--text); font-weight: 500; white-space: nowrap; }

.updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

/* An inline contents list for the long legal pages, so a reviewer can find a
   clause without reading the whole thing. */
.toc { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.toc a {
  display: block;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.toc a:hover { background: var(--glass); color: var(--text); }
.toc .num { color: var(--text-muted); margin-right: 9px; }

/* ----------------------------------------------------------- support Q&A -- */
/*
 * A flat side-by-side list, not an accordion. A reviewer looking for the
 * cancellation terms should not have to click anything, and the answers are
 * indexable this way.
 */

.qa { display: grid; gap: 0; }

.qa__item {
  display: grid;
  gap: 8px;
  padding-block: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.qa__item:first-child { border-top: 0; padding-top: 4px; }

.qa__item h3 { font-size: 1.06rem; font-weight: 600; letter-spacing: -0.01em; }

/* The answer is a wrapper div, so the grid `gap` above does not separate the
   blocks inside it. Without this a paragraph after a list runs straight on. */
.qa__item > div > * + * { margin-top: 0.85em; }
.qa__item p { color: var(--text-secondary); line-height: 1.66; max-width: var(--measure); }
.qa__item ol, .qa__item ul { margin: 2px 0 0; padding-left: 1.25em; display: grid; gap: 6px; color: var(--text-secondary); }
.qa__item li::marker { color: var(--text-muted); }
.qa__item a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 900px) {
  .qa__item { grid-template-columns: 0.72fr 1.28fr; gap: 10px 40px; align-items: start; }
  .qa__item h3 { padding-right: 20px; }
}

/* ----------------------------------------------------------------- blog -- */

.posts { display: grid; gap: 14px; }

.post {
  display: grid;
  gap: 10px;
}

.post__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
}
.post__meta .sep { opacity: 0.4; }

.post h3 { font-size: clamp(1.1rem, 2.2vw, 1.3rem); font-weight: 600; }
.post p { font-size: 15px; color: var(--text-secondary); line-height: 1.55; }

/* The lead post earns the full width rather than every card being identical. */
@media (min-width: 760px) {
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .posts > .span2 { grid-column: span 2; }
  .posts > .span2 h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
}

.article__head { display: grid; gap: 18px; max-width: var(--measure); }

/* --------------------------------------------------------------- footer -- */
/*
 * Two groups, not a four-column link farm. The legal links are the ones that
 * have to be here.
 */

.foot {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding-block: 44px 36px;
}

.foot__in {
  display: grid;
  gap: 28px;
  align-items: start;
}

@media (min-width: 760px) {
  .foot__in { grid-template-columns: 1fr auto; gap: 56px; }
}

.foot__links { display: flex; flex-wrap: wrap; gap: 10px 26px; }

.foot__links a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}
.foot__links a:hover { color: var(--text); }

.foot__note { font-size: 13px; color: var(--text-muted); max-width: 58ch; line-height: 1.6; }

/* --------------------------------------------------------------- motion -- */

.reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* Staggered entry rather than everything mounting at once. */
.d1 { transition-delay: 0.07s; }
.d2 { transition-delay: 0.14s; }
.d3 { transition-delay: 0.21s; }
.d4 { transition-delay: 0.28s; }

/* Someone who asked for less motion did not ask for faster motion. */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ------------------------------------------------------------------ 404 -- */

.center {
  min-height: calc(100dvh - var(--nav-h) - 160px);
  display: grid;
  place-content: center;
  justify-items: start;
  gap: 20px;
}

/* ------------------------------------------------------------- printing -- */

@media print {
  body { background: #fff; color: #000; }
  body::before, .nav, .foot, .skip { display: none; }
  .prose p, .prose li, th, td { color: #000; }
  a { text-decoration: underline; }
}
