/* Whitefield Consulting
 * Midnight and paper. The night colour and the W come from the logo;
 * amber is reserved for one meaning: "now".
 */

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-var.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-var.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Night: the logo's background and its blue */
  --night: oklch(0.155 0.028 252);
  --night-raise: oklch(0.205 0.034 250);
  --night-rule: oklch(0.3 0.032 250);
  --brand: oklch(0.32 0.065 248);
  --brand-lift: oklch(0.76 0.07 238);
  --on-night: oklch(0.96 0.006 240);
  --on-night-soft: oklch(0.83 0.018 245);
  --on-night-mute: oklch(0.66 0.024 245);
  --on-ink: var(--on-night);

  /* Paper */
  --paper: oklch(0.995 0.002 85);
  --paper-sunk: oklch(0.962 0.006 85);
  --white: oklch(1 0 0);
  --ink: oklch(0.2 0.03 252);
  --ink-soft: oklch(0.38 0.026 252);
  --ink-mute: oklch(0.5 0.02 252);
  --rule: oklch(0.9 0.006 85);
  --rule-input: oklch(0.78 0.01 85);
  --accent: oklch(0.42 0.09 248);
  --accent-wash: oklch(0.95 0.02 248);

  --signal: oklch(0.8 0.14 70);
  --error: oklch(0.5 0.16 28);
  --error-wash: oklch(0.96 0.02 28);
  --todo: oklch(0.93 0.12 95);

  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --text-caption: 0.8125rem;
  --text-small: 0.9375rem;
  --text-body: 1.0625rem;
  --text-lead: 1.1875rem;
  --text-h3: 1.5rem;
  --text-h2: clamp(2.125rem, 1.35rem + 2.5vw, 3.5rem);
  --text-statement: clamp(2rem, 1.1rem + 3vw, 4rem);
  --text-display: clamp(2.375rem, 0.6rem + 6.6vw, 7rem);

  --gutter: 16px;
  --section-space: 72px;
  --radius: 3px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --section-space: 112px; }
}
@media (min-width: 1200px) {
  :root { --gutter: 48px; --section-space: 144px; }
}

/* Base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--night);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--text-body);
  line-height: 1.6;
  font-synthesis: none;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }

a { color: inherit; }

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

::selection { background: oklch(0.88 0.05 240); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

[id] { scroll-margin-top: 24px; }

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

.skip {
  position: absolute;
  inset-inline-start: var(--gutter);
  top: 8px;
  z-index: 10;
  padding: 8px 14px;
  background: var(--paper);
  color: var(--ink);
  font-size: var(--text-small);
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

.label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.plain-list { list-style: none; }

mark.todo {
  background: var(--todo);
  color: var(--ink);
  padding: 0 0.2em;
}

kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 1px 5px;
  border: 1px solid var(--rule-input);
  border-bottom-width: 2px;
  border-radius: 3px;
  background: var(--white);
  font: 500 0.6875rem/1.5 var(--mono);
  text-align: center;
  color: var(--ink-soft);
}

/* Links and buttons */

.prose a,
.text-link,
.contact a,
.form a {
  text-decoration-line: underline;
  text-decoration-thickness: from-font;
  text-underline-offset: 0.22em;
  text-decoration-color: var(--rule-input);
  transition: text-decoration-color 150ms ease-out;
}
.text-link { text-decoration-color: var(--accent); font-weight: 500; }
.text-link--light { text-decoration-color: var(--brand-lift); color: var(--on-night); }

@media (hover: hover) {
  .prose a:hover,
  .contact a:hover,
  .form a:hover,
  .text-link:hover { text-decoration-color: currentColor; }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--on-night);
  font: 500 var(--text-small)/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: background-color 150ms ease-out, transform 120ms var(--ease-out);
}
.button:active { transform: scale(0.97); }
.button[aria-busy="true"] { opacity: 0.72; cursor: progress; }
.button--small { min-height: 38px; padding: 0 16px; font-size: 0.875rem; }
.button--light { background: var(--on-night); color: var(--night); }

.button__arrow {
  font-family: var(--mono);
  transition: transform 200ms var(--ease-out);
}

@media (hover: hover) {
  .button:hover { background: oklch(0.3 0.04 252); }
  .button--light:hover { background: var(--white); }
  .button:hover .button__arrow { transform: translateX(3px); }
}

/* Header */

.site-header {
  background: var(--night);
  color: var(--on-night);
  border-bottom: 1px solid var(--night-rule);
}
.site-header--home { border-bottom-color: transparent; position: relative; z-index: 2; }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.wordmark__mark { width: 27px; height: auto; flex: none; fill: currentColor; }
.wordmark__name {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 520;
  letter-spacing: -0.012em;
  line-height: 1;
}
.wordmark__suffix {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-night-mute);
  line-height: 1;
  padding-top: 4px;
}

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav__link {
  display: none;
  font-size: var(--text-small);
  text-decoration: none;
  color: var(--on-night-soft);
  transition: color 150ms ease-out;
}
@media (hover: hover) {
  .site-nav__link:hover { color: var(--on-night); }
}
@media (min-width: 900px) {
  .site-nav__link { display: inline; }
}
@media (max-width: 420px) {
  .wordmark__suffix { display: none; }
}

/* Hero: the logo, set large and quiet behind the headline */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--night);
  color: var(--on-night);
}

.hero__glow {
  position: absolute;
  z-index: -2;
  top: -30%;
  right: -25%;
  width: min(1100px, 140vw);
  aspect-ratio: 1;
  background: radial-gradient(closest-side,
    oklch(0.34 0.07 248 / 0.7) 0%,
    oklch(0.32 0.065 248 / 0.46) 30%,
    oklch(0.28 0.055 249 / 0.22) 58%,
    oklch(0.24 0.045 250 / 0.07) 80%,
    oklch(0.2 0.04 250 / 0) 100%);
  pointer-events: none;
}

.hero__mark {
  position: absolute;
  z-index: -1;
  top: 24px;
  right: -14vw;
  width: min(92vw, 980px);
  height: auto;
  fill: oklch(0.32 0.065 248 / 0.3);
  stroke: oklch(0.76 0.07 238 / 0.22);
  stroke-width: 1;
  pointer-events: none;
}
.hero__mark path { vector-effect: non-scaling-stroke; }

.hero__grid {
  display: grid;
  gap: 40px;
  padding-block: 56px var(--section-space);
}

.hero__title {
  font-family: var(--serif);
  font-size: var(--text-display);
  font-weight: 330;
  line-height: 0.98;
  letter-spacing: -0.034em;
  font-optical-sizing: auto;
}
.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.hero__title .line > span { display: inline-block; }
.hero__title-soft { color: var(--brand-lift); }

.hero__lead {
  max-width: 50ch;
  font-size: var(--text-lead);
  line-height: 1.6;
  color: var(--on-night-soft);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 36px;
}

@media (min-width: 768px) {
  .hero__grid { padding-top: 96px; gap: 56px; }
  .hero__mark { top: 40px; right: -6vw; width: min(70vw, 980px); }
}
@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 72px 32px;
  }
  .hero__title { grid-column: 1 / span 11; }
  .hero__copy { grid-column: 1 / span 6; }
}

/* Intro: plays once per session (see intro.js) */

@keyframes rise { from { transform: translateY(108%); } }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }
@keyframes draw {
  from { stroke-dashoffset: 1; fill-opacity: 0; }
  60% { fill-opacity: 0; }
}

.intro .hero__title .line > span { animation: rise 1000ms var(--ease-out) both; }
.intro .hero__title .line:nth-child(2) > span { animation-delay: 90ms; }
.intro .hero__title .line:nth-child(3) > span { animation-delay: 180ms; }
.intro .hero__copy { animation: fade 700ms var(--ease-out) 450ms both; }
.intro .hero__mark path {
  stroke-dasharray: 1;
  animation: draw 1800ms cubic-bezier(0.65, 0, 0.35, 1) both;
}

/* Blocks: every section after the hero shares one header pattern */

.block {
  position: relative;
  padding-block: var(--section-space);
  background: var(--paper);
}
.block--sunk { background: var(--paper-sunk); }

.block__head {
  display: grid;
  gap: 24px;
  margin-bottom: 64px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

.block__title {
  margin-top: 20px;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 1.3rem + 3.8vw, 5.25rem);
  font-weight: 330;
  line-height: 1.02;
  letter-spacing: -0.032em;
  font-optical-sizing: auto;
  text-wrap: balance;
}

.block__intro {
  max-width: 42ch;
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--ink-soft);
  text-wrap: pretty;
}

@media (min-width: 768px) {
  .block__title { max-width: 15ch; }
}
@media (max-width: 767px) {
  .block__mark { display: none; }
}
@media (min-width: 1024px) {
  .block__head {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 32px;
    margin-bottom: 96px;
  }
  .block__head > div { grid-column: 1 / span 7; }
  .block__intro { grid-column: 8 / span 5; align-self: end; }
}

.arrow-link {
  font-weight: 600;
  color: var(--ink);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
  text-decoration-color: var(--rule-input);
  transition: text-decoration-color 150ms ease-out;
}
.arrow-link span {
  display: inline-block;
  margin-left: 10px;
  color: var(--accent);
  transition: transform 200ms var(--ease-out);
}
@media (hover: hover) {
  .arrow-link:hover { text-decoration-color: currentColor; }
  .arrow-link:hover span { transform: translateX(4px); }
}

/* What we do: three numbered columns */

.columns {
  list-style: none;
  display: grid;
  gap: 64px;
}
.column {
  display: flex;
  flex-direction: column;
  padding-top: 28px;
  border-top: 2px solid var(--ink);
}
.column__num {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.column__title {
  margin-top: 40px;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 1.4rem + 0.9vw, 2.25rem);
  font-weight: 380;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.column__text {
  margin-top: 16px;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.column__list {
  list-style: none;
  margin-top: 28px;
  font-size: var(--text-small);
}
.column__list li {
  padding-block: 12px;
  border-top: 1px solid var(--rule);
}
.column .arrow-link { margin-top: auto; padding-top: 32px; align-self: flex-start; }

@media (min-width: 1024px) {
  .columns { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 48px; }
  .column {
    display: grid;
    grid-row: span 5;
    grid-template-rows: subgrid;
    row-gap: 0;
    align-items: start;
  }
  .column .arrow-link { align-self: end; justify-self: start; }
}

/* How we work: the night band, with the hero's W */

.block--night {
  overflow: hidden;
  isolation: isolate;
  background: var(--night);
  color: var(--on-night);
}
.block--night .eyebrow { color: var(--brand-lift); }
.block--night .block__intro { color: var(--on-night-soft); }
.block--night ::selection { background: oklch(0.42 0.08 245); color: var(--on-night); }

.block__mark {
  position: absolute;
  z-index: -1;
  right: -8vw;
  bottom: -12%;
  width: min(80vw, 860px);
  height: auto;
  fill: oklch(0.32 0.065 248 / 0.22);
  stroke: oklch(0.76 0.07 238 / 0.14);
  stroke-width: 1;
  pointer-events: none;
}
.block__mark path { vector-effect: non-scaling-stroke; }

.steps {
  list-style: none;
  display: grid;
  gap: 48px;
}
.step {
  display: flex;
  flex-direction: column;
  padding-top: 24px;
  border-top: 1px solid var(--night-rule);
}
.step__num {
  font-family: var(--serif);
  font-size: 4rem;
  font-weight: 280;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--brand-lift);
  font-variant-numeric: lining-nums;
}
.step__title {
  margin-top: 32px;
  font-family: var(--serif);
  font-size: 1.875rem;
  font-weight: 380;
  line-height: 1.1;
  letter-spacing: -0.018em;
}
.step__time {
  margin-top: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-night-mute);
}
.step__text {
  margin-top: 16px;
  font-size: var(--text-small);
  color: var(--on-night-soft);
  text-wrap: pretty;
}
.step__keep {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--night-rule);
  font-weight: 500;
  line-height: 1.4;
}
.step__keep span {
  display: block;
  margin-bottom: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-lift);
}

@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 40px; }
}
@media (min-width: 1200px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .step {
    display: grid;
    grid-row: span 5;
    grid-template-rows: subgrid;
    row-gap: 0;
    padding: 0 32px 0 24px;
    border-top: 0;
    border-left: 1px solid var(--night-rule);
  }
  .step__keep { margin-top: 40px; }
}

/* Commitments: four tiles, text settles at the bottom */

.tiles {
  list-style: none;
  display: grid;
  gap: 16px;
}
.tile {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 28px;
  background: var(--paper-sunk);
}
.tile__num {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.tile__title {
  margin-top: auto;
  padding-top: 56px;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 380;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.tile__text {
  margin-top: 12px;
  color: var(--ink-soft);
  text-wrap: pretty;
}

@media (min-width: 768px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { padding: 36px; min-height: 340px; }
}
@media (min-width: 1200px) {
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tile { min-height: 420px; }
}

/* Contact */

.contact { display: grid; gap: 56px; }
.contact__intro > p:not(.contact__direct):not(.eyebrow) {
  max-width: 38ch;
  margin-top: 24px;
  font-size: 1.25rem;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.contact__direct {
  margin-top: 28px;
  font-size: var(--text-small);
  color: var(--ink-soft);
}

.next {
  list-style: none;
  margin-top: 40px;
  font-size: var(--text-small);
}
.next li {
  display: flex;
  gap: 16px;
  padding-block: 14px;
  border-top: 1px solid var(--rule-input);
  color: var(--ink-soft);
}
.next__num {
  flex: none;
  min-width: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

@media (min-width: 1100px) {
  .contact {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 96px;
    align-items: start;
  }
}

/* Form */

.form { display: grid; gap: 20px; }

.form__row { display: grid; gap: 20px; }
@media (min-width: 640px) {
  .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.form__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field { display: grid; gap: 6px; align-content: start; }

.field__label {
  font-size: 0.875rem;
  font-weight: 500;
}
.field__optional {
  margin-inline-start: 6px;
  font-weight: 400;
  color: var(--ink-mute);
}

.field__input {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--rule-input);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: 400 1rem/1.5 var(--sans);
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}
.field__input::placeholder { color: var(--ink-mute); opacity: 1; }
.field__input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px oklch(0.44 0.075 160 / 0.22);
}
.field__input[aria-invalid="true"] { border-color: var(--error); }
.field__input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px oklch(0.5 0.16 28 / 0.2); }

.field__textarea { min-height: 156px; resize: vertical; }

.field__select {
  appearance: none;
  padding-inline-end: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23384050' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.field__select:invalid { color: var(--ink-mute); }

.field__error {
  font-size: 0.875rem;
  color: var(--error);
}

.field--check {
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  font-size: var(--text-small);
  color: var(--ink-soft);
}
.field--check .field__error { grid-column: 2; }
.check {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--ink);
}


/* Notices */

.notice {
  padding: 16px 20px;
  border-inline-start: 3px solid;
  font-size: var(--text-small);
}
.notice__title { font-weight: 600; color: var(--ink); }
.notice p + p { margin-top: 4px; }
.notice--success { border-color: var(--accent); background: var(--accent-wash); }
.notice--error { border-color: var(--error); background: var(--error-wash); }

.form__submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.form__hint {
  display: none;
  font-size: var(--text-caption);
  color: var(--ink-mute);
}
@media (hover: hover) and (pointer: fine) {
  .form__hint { display: block; }
}

/* Footer */

.site-footer {
  background: var(--night);
  color: var(--on-night-soft);
  font-size: var(--text-small);
}
.site-footer a {
  text-decoration-line: underline;
  text-decoration-thickness: from-font;
  text-underline-offset: 0.22em;
  text-decoration-color: var(--night-rule);
  transition: text-decoration-color 150ms ease-out, color 150ms ease-out;
}
@media (hover: hover) {
  .site-footer a:hover { color: var(--on-night); text-decoration-color: currentColor; }
}
.site-footer .label { color: var(--on-night-mute); }

.site-footer__grid {
  display: grid;
  gap: 36px;
  padding-block: 64px 48px;
}
.site-footer__grid .label { margin-bottom: 12px; }
.site-footer__brand { display: grid; gap: 20px; align-content: start; }
.site-footer__mark { width: 44px; height: auto; fill: var(--brand-lift); }
.site-footer__name {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 450;
  color: var(--on-night);
  margin-bottom: 6px;
}
.site-footer li + li { margin-top: 6px; }

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 20px 32px;
  border-top: 1px solid var(--night-rule);
  font-size: var(--text-caption);
  color: var(--on-night-mute);
}

@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}

/* Legal pages */

.legal {
  display: grid;
  gap: 40px;
  padding-block: 56px var(--section-space);
}

.legal__title {
  font-family: var(--serif);
  font-size: var(--text-h2);
  font-weight: 420;
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.legal__summary {
  max-width: 60ch;
  margin-top: 16px;
  font-size: var(--text-lead);
  color: var(--ink-soft);
  text-wrap: pretty;
}
.legal__updated {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: var(--text-caption);
  color: var(--ink-mute);
}

.legal__toc {
  font-size: var(--text-small);
  border-top: 2px solid var(--ink);
  padding-top: 12px;
}
.legal__toc ol {
  list-style: none;
  margin-top: 12px;
  counter-reset: toc;
}
.legal__toc li { counter-increment: toc; }
.legal__toc a {
  display: flex;
  gap: 10px;
  padding-block: 5px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 150ms ease-out;
}
.legal__toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.75rem;
  padding-top: 0.2em;
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
}
@media (hover: hover) {
  .legal__toc a:hover { color: var(--ink); }
}

@media (min-width: 768px) {
  .legal { padding-top: 88px; }
}
@media (min-width: 1024px) {
  .legal {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 56px 32px;
  }
  .legal__header { grid-column: 4 / span 8; }
  .legal__toc {
    grid-column: 1 / span 3;
    align-self: start;
    position: sticky;
    top: 32px;
  }
  .legal__body { grid-column: 4 / span 7; }
}

.prose { max-width: 68ch; }
.prose section + section { margin-top: 48px; }
.prose h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 14px;
}
.prose h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 24px 0 6px;
}
.prose p + p,
.prose p + ul,
.prose ul + p { margin-top: 14px; }
.prose ul { padding-inline-start: 1.25em; margin-top: 10px; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--ink-mute); }

.conspicuous {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.65;
}

.legal-facts > div {
  display: grid;
  gap: 2px 24px;
  padding-block: 12px;
  border-top: 1px solid var(--rule);
}
.legal-facts > div:last-child { border-bottom: 1px solid var(--rule); }
.legal-facts dt { color: var(--ink-mute); font-size: var(--text-small); }
@media (min-width: 640px) {
  .legal-facts > div { grid-template-columns: 12rem 1fr; }
}

/* Not found */

.not-found { padding-block: 96px var(--section-space); }
.not-found .label { margin-bottom: 20px; }
.not-found p:not(.label) {
  max-width: 48ch;
  margin-top: 16px;
  font-size: var(--text-lead);
  color: var(--ink-soft);
}
.not-found .button { margin-top: 32px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation: none !important;
  }
  .button:active { transform: none; }
}
