/* axi0.art: one stylesheet for every page. No framework, no build step.
 *
 * Idea: the page reads like a clear statement. Warm paper, green-black ink, one ledger green, rules instead of
 * boxes, tabular figures wherever money appears. Fraunces (display) + Instrument Sans (text), both SIL OFL,
 * self-hosted and cut down to the characters and features the pages use.
 *
 * Contrast on --paper: ink 15.3:1, muted 6.8:1, accent 6.0:1, danger 6.5:1. Field borders 3.3:1.
 */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-axi0-v1.woff2") format("woff2");
  font-weight: 380 640;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-axi0-v1.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
/* Local fallbacks scaled to the web fonts' metrics, so text barely moves when the real fonts arrive. */
@font-face {
  font-family: "Instrument Sans Fallback";
  src: local("Arial"), local("ArialMT"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 100.45%;
  ascent-override: 96.57%;
  descent-override: 24.89%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Fraunces Fallback";
  src: local("Georgia"), local("Times New Roman"), local("Times");
  size-adjust: 104%;
  ascent-override: 94%;
  descent-override: 24.6%;
  line-gap-override: 0%;
}

:root {
  color-scheme: light;
  --paper: #f7f5ef;
  --paper-2: #eeebe2;
  --card: #fffdf8;
  --ink: #16201c;
  --muted: #4d5853;
  --rule: rgb(22 32 28 / 0.14);
  --rule-strong: rgb(22 32 28 / 0.32);
  --field-border: #78817c;
  --accent: #1d6a50;
  --accent-deep: #17604a;
  --accent-wash: #e1ebe3;
  --danger: #a8261d;
  --danger-wash: #f7e4df;
  --on-ink: #f7f5ef;
  --on-ink-muted: #b8c1bc;
  --on-ink-accent: #8fd1b5;

  --font-display: "Fraunces", "Fraunces Fallback", Georgia, "Times New Roman", serif;
  --font-text: "Instrument Sans", "Instrument Sans Fallback", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  /* fluid between 360px and 1440px viewports */
  --step--1: clamp(0.84rem, 0.82rem + 0.09vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.19vw, 1.125rem);
  --step-1: clamp(1.15rem, 1.07rem + 0.37vw, 1.4rem);
  --step-2: clamp(1.35rem, 1.2rem + 0.65vw, 1.8rem);
  --step-3: clamp(1.7rem, 1.4rem + 1.3vw, 2.6rem);
  --step-4: clamp(2.2rem, 1.62rem + 2.6vw, 4.25rem);

  --gutter: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
  --section: clamp(4rem, 2.8rem + 5vw, 7.5rem);
  --radius: 6px;
  --header-h: 4rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---- reset + base ---------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure, ol, ul, dl, dd, blockquote { margin: 0; }
ol, ul { padding: 0; }
img, picture, svg { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
input, button, textarea, select { font: inherit; color: inherit; }

html {
  background: var(--paper);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.2; }
p, li, dd, figcaption { text-wrap: pretty; }
a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--accent-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--accent-wash); color: var(--ink); }
strong { font-weight: 600; }

main { flex: 1 0 auto; }
.wrap { width: min(100% - 2 * var(--gutter), 76rem); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--gutter); top: -10rem; z-index: 50;
  padding: 0.6rem 1rem; background: var(--ink); color: var(--on-ink); border-radius: var(--radius);
}
.skip:focus { top: 0.75rem; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.num { font-variant-numeric: tabular-nums lining-nums; }

/* ---- buttons --------------------------------------------------------------------------------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.7rem 1.35rem;
  border: 1px solid var(--ink); border-radius: var(--radius);
  background: var(--ink); color: var(--on-ink);
  font-weight: 600; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.button:hover { background: var(--accent); border-color: var(--accent); color: #fff; text-decoration: none; }
.button:active { transform: translateY(1px); }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.button.secondary:hover { background: var(--card); border-color: var(--ink); color: var(--ink); }
.button.small { min-height: 44px; padding: 0.55rem 1rem; font-size: var(--step--1); }
.button:disabled { opacity: 0.65; cursor: progress; }

/* ---- header ---------------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 1rem;
  min-height: var(--header-h);
}
.wordmark {
  display: inline-flex; align-items: center; gap: 0.75rem;
  min-height: 44px; color: var(--ink); text-decoration: none;
}
.wordmark:hover { color: var(--ink); }
/* The wordmark is Fraunces drawn as paths, with a dot in the zero so axi0 never reads as axio. */
.logo { display: block; width: auto; height: 1.85rem; flex: none; }
.logo-dot { fill: var(--accent); }
.wordmark .by { display: none; font-size: var(--step--1); color: var(--muted); padding-top: 0.2rem; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 0.25rem; }
.site-nav ul { display: none; list-style: none; gap: 0.25rem; }
.site-nav a:not(.button) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.7rem;
  color: var(--ink); text-decoration: none; font-weight: 500;
}
.site-nav a:not(.button):hover { color: var(--accent); text-decoration: underline; }
@media (min-width: 34rem) { .site-nav ul { display: flex; } }
@media (min-width: 64rem) { .wordmark .by { display: inline; } .site-nav { gap: 0.75rem; } }

/* ---- hero ------------------------------------------------------------------------------------ */
.hero { padding-block: clamp(2.75rem, 1.5rem + 5vw, 6.5rem) clamp(2rem, 1rem + 3vw, 4rem); }
.hero .wrap { display: grid; gap: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); align-items: center; }
@media (min-width: 62rem) {
  .hero .wrap { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
}
.hero h1 {
  margin-top: 1rem;
  font-size: var(--step-4);
  font-weight: 460;
  line-height: 1.02;
  letter-spacing: -0.022em;
  max-width: 17ch;
}
.hero .lede { margin-top: 1.5rem; max-width: 36rem; font-size: var(--step-1); line-height: 1.5; color: var(--muted); }
.hero .lede strong { color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero .aside-note { margin-top: 1rem; font-size: var(--step--1); color: var(--muted); }

/* The worked-example statement next to the headline */
.statement {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 var(--rule), 0 24px 48px -32px rgb(22 32 28 / 0.35);
  padding: clamp(1.25rem, 1rem + 1vw, 2rem);
}
.statement figcaption { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.statement figcaption .eyebrow { color: var(--muted); }
.statement figcaption strong { font-family: var(--font-display); font-size: var(--step-2); font-weight: 500; line-height: 1.1; }
.statement dl { margin-top: 1.25rem; border-top: 1px solid var(--ink); }
.statement dl > div {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.25rem 1rem; align-items: baseline;
  padding-block: 0.8rem; border-bottom: 1px dashed var(--rule-strong);
}
.statement dt { color: var(--muted); }
.statement dd { font-variant-numeric: tabular-nums lining-nums; font-weight: 600; text-align: right; }
.statement .fee dd { color: var(--accent); }
.statement .aside dd { font-weight: 400; color: var(--muted); font-size: var(--step--1); max-width: 13rem; }
.statement .total { border-bottom: 3px double var(--ink); }
.statement .total dt { color: var(--ink); font-weight: 600; }
.statement .note { margin-top: 1rem; font-size: var(--step--1); color: var(--muted); }

/* ---- sections -------------------------------------------------------------------------------- */
.section { padding-block: var(--section); }
.band { background: var(--paper-2); }
.section-head { display: grid; gap: 0.9rem; max-width: 46rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: var(--step-1); line-height: 1.5; }

/* ---- work ------------------------------------------------------------------------------------ */
.feature { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 3rem); align-items: start; }
@media (min-width: 62rem) { .feature { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; } }
.shot { display: grid; gap: 0.6rem; }
.shot picture, .shot img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: var(--radius); background: #111;
}
.shot picture { border: 1px solid var(--rule); box-shadow: 0 24px 48px -30px rgb(22 32 28 / 0.45); overflow: hidden; }
.shot figcaption { font-size: var(--step--1); color: var(--muted); }

.case { display: grid; gap: 0.75rem; }
.case-no { font-family: var(--font-mono); font-size: var(--step--1); color: var(--muted); font-variant-numeric: tabular-nums; }
.case h3 { font-size: var(--step-2); }
.case .what { font-weight: 600; }
.case .part { font-size: var(--step--1); color: var(--muted); }
.case .part b { color: var(--ink); font-weight: 600; }
.score { display: flex; align-items: baseline; gap: 0.6rem; }
.score b {
  font-size: var(--step-3); font-weight: 600; line-height: 1;
  font-variant-numeric: tabular-nums lining-nums; color: var(--accent);
}
.score span { font-size: var(--step--1); color: var(--muted); line-height: 1.35; }
.case .link { font-size: var(--step--1); }
.case .link a { font-weight: 600; }

.ledger { list-style: none; margin-top: clamp(3rem, 2rem + 3vw, 5rem); border-top: 1px solid var(--ink); }
.ledger > li { padding-block: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); border-bottom: 1px solid var(--rule); }
@media (min-width: 56rem) {
  .ledger .case {
    grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 1.5fr) 10rem;
    grid-template-areas:
      "no  name body score"
      "no  what body score"
      "no  link part score";
    column-gap: clamp(1rem, 0.5rem + 1.5vw, 2.25rem);
    row-gap: 0.4rem;
    align-items: start;
  }
  .ledger .case-no { grid-area: no; padding-top: 0.45rem; }
  .ledger .case h3 { grid-area: name; }
  .ledger .case .what { grid-area: what; }
  .ledger .case .link { grid-area: link; }
  .ledger .case .body { grid-area: body; }
  .ledger .case .part { grid-area: part; }
  .ledger .case .score { grid-area: score; flex-direction: column; gap: 0.35rem; }
}
.method { margin-top: 1.5rem; font-size: var(--step--1); color: var(--muted); max-width: 52rem; }

/* ---- services -------------------------------------------------------------------------------- */
.services { list-style: none; border-top: 1px solid var(--ink); }
.services > li {
  display: grid; gap: 0.6rem;
  padding-block: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); border-bottom: 1px solid var(--rule);
}
.services .cadence { font-family: var(--font-mono); font-size: var(--step--1); color: var(--accent); }
@media (min-width: 56rem) {
  .services > li { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) 11rem; column-gap: clamp(1.5rem, 1rem + 2vw, 3rem); align-items: baseline; }
  .services .cadence { text-align: right; }
}
.services-head { display: none; }
@media (min-width: 56rem) {
  .services-head {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) 11rem; column-gap: clamp(1.5rem, 1rem + 2vw, 3rem);
    padding-bottom: 0.6rem; font-family: var(--font-mono); font-size: var(--step--1); color: var(--muted);
    text-transform: uppercase; letter-spacing: 0.06em;
  }
  .services-head span:last-child { text-align: right; }
}

/* ---- pricing --------------------------------------------------------------------------------- */
.pricing-grid { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 4.5rem); align-items: start; }
@media (min-width: 62rem) { .pricing-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.pricing-grid .section-head { margin-bottom: 0; }
.terms { margin-top: 2rem; border-top: 1px solid var(--ink); }
.terms > div { display: grid; gap: 0.3rem; padding-block: 1rem; border-bottom: 1px solid var(--rule); }
@media (min-width: 40rem) { .terms > div { grid-template-columns: 11rem minmax(0, 1fr); gap: 1.5rem; } }
.terms dt { font-weight: 600; }
.terms dd { color: var(--muted); }

.example {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: clamp(1.25rem, 1rem + 1vw, 2rem);
}
.example table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums lining-nums; }
.example caption { text-align: left; font-family: var(--font-display); font-size: var(--step-2); font-weight: 500; line-height: 1.15; padding-bottom: 1rem; }
.example th { text-align: left; font-weight: 500; font-size: var(--step--1); color: var(--muted); padding: 0 0 0.6rem; vertical-align: bottom; }
.example th:last-child, .example td:last-child { text-align: right; }
.example thead tr { border-bottom: 1px solid var(--ink); }
.example td { padding: 0.85rem 0; border-bottom: 1px dashed var(--rule-strong); font-size: var(--step-1); }
.example td:last-child { font-weight: 600; color: var(--accent); }
.example tbody tr:last-child td { border-bottom: 3px double var(--ink); }
.example figcaption { margin-top: 1rem; font-size: var(--step--1); color: var(--muted); }

/* ---- process --------------------------------------------------------------------------------- */
.steps { list-style: none; counter-reset: step; display: grid; gap: 0; border-top: 1px solid var(--ink); }
.steps > li { counter-increment: step; display: grid; align-content: start; gap: 0.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.steps > li::before {
  content: "0" counter(step);
  font-family: var(--font-mono); font-size: var(--step--1); color: var(--accent);
}
.steps p { color: var(--muted); }
@media (min-width: 56rem) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--rule); }
  .steps > li { padding: 1.5rem 1.5rem 0.5rem 0; border-bottom: 0; }
  .steps > li + li { padding-left: 1.5rem; border-left: 1px solid var(--rule); }
}

/* ---- fit ------------------------------------------------------------------------------------- */
.fit-grid { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 3rem); }
@media (min-width: 48rem) { .fit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fit-col { border-top: 3px solid var(--accent); padding-top: 1.25rem; }
.fit-col.no { border-top-color: var(--ink); }
.fit-col ul { list-style: none; margin-top: 1rem; }
.fit-col li { padding: 0.85rem 0 0.85rem 1.75rem; border-bottom: 1px solid var(--rule); position: relative; }
.fit-col li::before {
  content: "+"; position: absolute; left: 0.2rem; top: 0.75rem;
  font-family: var(--font-mono); font-weight: 700; color: var(--accent);
}
.fit-col.no li::before { content: "\2013"; color: var(--ink); }

/* ---- faq ------------------------------------------------------------------------------------- */
.faq-list { max-width: 50rem; border-top: 1px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  min-height: 56px; padding: 1rem 0;
  font-family: var(--font-display); font-size: var(--step-1); font-weight: 500; line-height: 1.3;
  cursor: pointer; list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; flex: none; width: 2rem; height: 2rem; display: grid; place-items: center;
  border: 1px solid var(--rule-strong); border-radius: 50%;
  font-family: var(--font-text); font-size: 1.15rem; line-height: 1; color: var(--accent);
}
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list summary:hover { color: var(--accent); }
.faq-list details > div { padding: 0 3.5rem 1.5rem 0; color: var(--muted); }
.faq-list details > div p + p { margin-top: 0.75rem; }

/* ---- contact + form -------------------------------------------------------------------------- */
.contact-grid { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 4.5rem); align-items: start; }
@media (min-width: 62rem) { .contact-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }
.contact-intro { display: grid; gap: 1rem; }
.contact-intro p:not(.eyebrow) { color: var(--muted); }
.contact-intro .next { margin-top: 0.5rem; border-top: 1px solid var(--rule-strong); }
.contact-intro .next li { list-style: none; padding: 0.75rem 0; border-bottom: 1px solid var(--rule); color: var(--muted); }
.contact-intro .next b { color: var(--ink); font-weight: 600; }

.form-card {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: 0 1px 0 var(--rule), 0 30px 60px -40px rgb(22 32 28 / 0.4);
  padding: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
}
.form-grid { display: grid; gap: 1.25rem 1.5rem; }
@media (min-width: 40rem) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid .span-2 { grid-column: 1 / -1; }
}
.field { display: grid; gap: 0.4rem; align-content: start; min-width: 0; }
.field > label, .group legend { font-weight: 600; font-size: var(--step--1); }
.optional { font-weight: 400; color: var(--muted); }
.hint { font-size: var(--step--1); color: var(--muted); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.85rem;
  border: 1px solid var(--field-border); border-radius: var(--radius);
  background: #fff; color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { min-height: 8.5rem; resize: vertical; line-height: 1.5; }
.field input:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(29 106 80 / 0.35);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); border-width: 2px; }
.error { color: var(--danger); font-size: var(--step--1); font-weight: 600; }
.error:empty { display: none; }

.group { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 0.6rem; }
.group legend { padding: 0; margin-bottom: 0.6rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.55rem;
  min-height: 44px; padding: 0.45rem 0.9rem 0.45rem 0.7rem;
  border: 1px solid var(--field-border); border-radius: 999px; background: #fff;
  font-size: var(--step--1); line-height: 1.25; cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.chip:hover { border-color: var(--ink); }
.chip input { width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--accent); flex: none; }
.chip:has(:checked) { border-color: var(--accent); background: var(--accent-wash); }
.chip:has(:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.chip input:focus-visible { outline: none; }
.group[data-invalid] .chip { border-color: var(--danger); }

.consent { display: grid; gap: 0.4rem; }
.consent label { display: flex; gap: 0.75rem; align-items: flex-start; cursor: pointer; min-height: 44px; padding-top: 0.15rem; }
.consent input { width: 1.25rem; height: 1.25rem; margin: 0.15rem 0 0; accent-color: var(--accent); flex: none; }
.consent input[aria-invalid="true"] { outline: 2px solid var(--danger); outline-offset: 2px; }
.consent .hint { padding-left: 2rem; }

.form-foot { display: grid; gap: 0.75rem; justify-items: start; }
.form-status { min-height: 1.5em; font-size: var(--step--1); font-weight: 600; }
.form-status[data-kind="error"] { color: var(--danger); }
.form-status[data-kind="busy"] { color: var(--muted); }

/* Honeypot: real people never see or reach it. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* No-JS error state: the form service answers a rejected plain POST with 303 to /#form-error; :target shows it. */
.notice {
  display: none; margin-bottom: 1.5rem; padding: 1rem 1.15rem;
  border: 2px solid var(--danger); border-radius: var(--radius);
  background: var(--danger-wash); color: var(--ink);
}
.notice h3 { font-family: var(--font-text); font-size: var(--step-0); font-weight: 700; color: var(--danger); margin-bottom: 0.35rem; }
.notice:target { display: block; }
.notice:focus { outline: none; }

/* ---- footer ---------------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--on-ink-muted); padding-block: clamp(3rem, 2rem + 3vw, 4.5rem); font-size: var(--step--1); }
.site-footer a { color: var(--on-ink); }
.site-footer a:hover { color: var(--on-ink-accent); }
.site-footer :focus-visible { outline-color: var(--on-ink-accent); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; } }
.site-footer .wordmark { color: var(--on-ink); }
.site-footer .wordmark .by { display: inline; color: var(--on-ink-muted); }
.site-footer .logo-dot { fill: var(--on-ink-accent); }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.colophon { margin-top: 0.75rem; max-width: 34rem; }

/* ---- simple pages (thanks, privacy, 404) ----------------------------------------------------- */
.doc { padding-block: clamp(3rem, 2rem + 4vw, 6rem) var(--section); }
.doc .wrap { max-width: 44rem; }
.doc h1 { font-size: var(--step-4); font-weight: 460; line-height: 1.04; margin: 0.75rem 0 1.5rem; }
.doc h2 { font-size: var(--step-2); margin: 2.5rem 0 0.75rem; }
.doc p + p, .doc p + ul, .doc ul + p { margin-top: 0.9rem; }
.doc ul { padding-left: 1.2rem; }
.doc li + li { margin-top: 0.35rem; }
.doc .lede { font-size: var(--step-1); color: var(--muted); line-height: 1.5; }
.doc .meta { margin-top: 3rem; font-size: var(--step--1); color: var(--muted); font-family: var(--font-mono); }
.next-steps { list-style: none; counter-reset: step; margin-top: 2rem; border-top: 1px solid var(--ink); padding-left: 0 !important; }
.next-steps > li { counter-increment: step; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 0.25rem 0.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); margin: 0 !important; }
.next-steps > li::before { content: "0" counter(step); font-family: var(--font-mono); font-size: var(--step--1); color: var(--accent); padding-top: 0.2rem; }
.next-steps p { grid-column: 2; color: var(--muted); margin: 0 !important; }
.next-steps b { grid-column: 2; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}
