:root {
  color-scheme: light;
  --paper: #f7f4ee;
  --raised: #fdfbf7;
  --ink: #23201a;
  --ink-soft: #5c564a;
  --muted: #736c5f;
  --line: #e9e4d7;
  --sand: #c9c0ab;
  --gold: oklch(0.66 0.115 80);
  --gold-ink: oklch(0.46 0.105 80);
  --jade: oklch(0.42 0.075 165);
  --jade-tint: oklch(0.95 0.02 165);
  --jade-line: oklch(0.85 0.05 165);
  --clay: oklch(0.49 0.105 45);
  --display: 'Newsreader', Georgia, serif;
  --body: 'Albert Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --gutter: clamp(1.25rem, 5.6vw, 4rem);
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.6 var(--body);
}

a { color: inherit; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
img, svg { display: block; }
h1, h2, h3, p, dl, dd { margin: 0; }

.skip-link {
  position: absolute;
  z-index: 1;
  inset: 0.75rem auto auto 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--raised);
  transform: translateY(-200%);
}

.skip-link:focus { transform: none; }

.site-header, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.site-header { padding: 1.375rem var(--gutter); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 0.625rem; text-decoration: none; }
.site-header .brand { font-size: 1.1875rem; font-weight: 500; letter-spacing: 0.025em; }

.site-nav, .footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.75rem;
  color: var(--ink-soft);
}

.site-nav a, .footer-nav a { font-size: 0.875rem; text-decoration: none; }
.site-nav a:hover, .footer-nav a:hover { text-decoration: underline; text-underline-offset: 0.2em; }

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

.hero, .split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5.2vw, 3.75rem);
  align-items: center;
}

.hero { padding-block: clamp(3rem, 8.3vw, 6rem) clamp(3rem, 7.6vw, 5.5rem); }
.hero-copy, .section-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1.125rem; }
.hero-copy { gap: 1.625rem; }
.hero-visual { display: grid; place-items: center; color: var(--gold); }
.hero-visual svg { width: min(100%, 21.25rem); height: auto; }

h1, h2 {
  font-family: var(--display);
  font-weight: 500;
  text-wrap: balance;
}

h1 { font-size: clamp(2.65rem, 5vw, 3.625rem); line-height: 1.08; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.875rem, 3.1vw, 2.125rem); line-height: 1.2; }
h3 { font-size: 1.0625rem; line-height: 1.35; font-weight: 600; }
p { color: var(--ink-soft); }
.hero-copy p { max-width: 32.5rem; font-size: 1.09375rem; }

small, .access-label { color: var(--muted); font-size: 0.875rem; }
small { font-family: var(--mono); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }

.button {
  display: inline-block;
  padding: 0.75rem 1.375rem;
  background: var(--gold-ink);
  color: var(--paper);
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
}

.button:hover { background: var(--ink); }
.button-ink { background: var(--ink); padding: 0.65rem 1.25rem; }
.button-ink:hover { background: var(--ink-soft); }
.button-light { background: var(--gold); color: var(--ink); }
.button-light:hover { background: var(--paper); }

.text-link { font-weight: 600; text-underline-offset: 0.3em; text-decoration-color: var(--sand); }
.text-link:hover { text-decoration-color: currentColor; }
.link-jade { color: var(--jade); text-decoration-color: var(--jade-line); }
.text-link .access-label { font-weight: 400; }

.section { border-top: 1px solid var(--line); padding-block: clamp(3rem, 6.2vw, 4.5rem); }
.section-raised { background: var(--raised); }
.eyebrow {
  color: var(--muted);
  font: 500 0.875rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow-jade { color: var(--jade); }
.eyebrow-clay { color: var(--clay); }
#how h2 { margin-top: 0.625rem; }

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.how-grid > div { display: grid; gap: 0.625rem; align-content: start; }
.diagram-mark { width: 2.75rem; height: 2.75rem; margin-bottom: 0.25rem; }
.mark-gold { color: var(--gold-ink); }
.mark-clay { color: var(--clay); }

.stat-card {
  padding: clamp(1.5rem, 3.8vw, 2.75rem);
  border: 1px solid var(--jade-line);
  background: var(--jade-tint);
}

.stat-value {
  display: block;
  color: var(--jade);
  font: 500 clamp(4.25rem, 7.6vw, 5.5rem)/1 var(--display);
  margin-bottom: 0.25rem;
}

.measurement-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 1.25rem 2.75rem;
  margin-top: 2.75rem;
  padding: 1.625rem clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  background: var(--raised);
}

.measurement-card h3 { margin-bottom: 0.375rem; }
.measurement-card dl { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; }
.measurement-card dt { color: var(--jade); font: 500 1.625rem/1.2 var(--display); }
.measurement-card dd { color: var(--muted); font-size: 0.875rem; }

.training-split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.training-flow { margin: 0; padding: 0; list-style: none; }
.training-flow li { display: flex; align-items: center; gap: 0.875rem; padding-block: 0.875rem; }
.training-flow li + li { border-top: 1px solid var(--line); }
.training-flow span { color: var(--ink-soft); }
.flow-mark { flex: none; width: 1.625rem; height: 1.625rem; }

.section-dark { background: var(--ink); color: var(--paper); }
.section-dark p { color: var(--sand); }
.section-dark .eyebrow { color: var(--gold); }
.section-dark .access-note { font-size: 0.875rem; }
.test-steps { margin: 0; padding-inline-start: 1.5rem; }
.test-steps li { padding: 0.875rem 0 0.875rem 0.375rem; }
.test-steps li + li { border-top: 1px solid #4a453b; }
.test-steps li::marker { color: var(--gold); font-family: var(--mono); }
.test-steps h3 { margin-bottom: 0.25rem; }
.test-steps a { color: var(--paper); text-underline-offset: 0.2em; }
.test-steps code { color: var(--paper); font: 0.875rem var(--mono); }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { padding-block: 1.75rem; }
.footer-brand { font: 0.875rem var(--mono); color: var(--muted); }
.footer-nav { gap: 0.375rem 1.375rem; }

@media (max-width: 730px) {
  .site-header, .footer-inner { flex-wrap: wrap; }
  .site-nav { gap: 0.5rem 1rem; }
  .hero, .split, .measurement-card { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 1.5rem; }
  .hero-visual svg { width: min(60%, 13.5rem); }
  .training-flow { order: 1; }
}

@media (max-width: 540px) {
  .how-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; margin-top: 1.75rem; }
}
