:root {
  color-scheme: light dark;
  /* palette */
  --c-paper-50: #FCFAF5;
  --c-paper-100: #F7F4EC;
  --c-paper-200: #ECE7DA;
  --c-paper-300: #DAD3C2;
  --c-ink-400: #8A8D87;
  --c-ink-450: #6B6E68;
  --c-ink-500: #5A5D58;
  --c-ink-700: #2C3330;
  --c-ink-800: #1E2421;
  --c-ink-900: #151A18;
  --c-ink-950: #0E1210;
  --c-leaf-100: #E3F0E7;
  --c-leaf-300: #A9CDB5;
  --c-leaf-500: #60A37B;
  --c-leaf-700: #2F6B47;
  --c-leaf-800: #24563A;
  --c-leaf-on-dark: #8ED1A8;
  --c-leaf-on-dark-pressed: #B0E0C2;
  --c-clay-100: #F6E3D8;
  --c-clay-300: #E3AE91;
  --c-clay-500: #C4693F;
  --c-clay-700: #A34E2B;
  --c-clay-on-dark: #E8A07A;

  /* semantic roles, light */
  --c-bg: #F7F4EC;
  --c-surface: #FCFAF5;
  --c-surface-inset: #ECE7DA;
  --c-line: #DAD3C2;
  --c-text: #1E2421;
  --c-text-muted: #5A5D58;
  --c-text-faint: #6B6E68;
  --c-action: #2F6B47;
  --c-action-pressed: #24563A;
  --c-action-tint: #E3F0E7;
  --c-action-border: #A9CDB5;
  --c-on-action: #FCFAF5;
  --c-ornament: #A9CDB5;
  --c-mark: #60A37B;
  --c-highlight: #A34E2B;
  --c-highlight-tint: #F6E3D8;
  --c-highlight-rule: #C4693F;
  --c-code-bg: #ECE7DA;
  --c-code-text: #1E2421;
  --c-footer-bg: #151A18;
  --c-footer-text: #ECE7DA;
  --c-footer-faint: #8A8D87;

  /* type */
  --c-font-brand: "Fira Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  --c-font-display: "Literata", Georgia, "Times New Roman", serif;
  --c-font-body: "Fira Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  --c-font-mono: "Fira Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --c-display-family: var(--c-font-display);
  --c-display-weight: 600;
  --c-display-size: 58px;
  --c-display-min: 38px;
  --c-display-line: 1.1379;
  --c-display-tracking: -0.015em;
  --c-title-family: var(--c-font-display);
  --c-title-weight: 600;
  --c-title-size: 32px;
  --c-title-line: 1.25;
  --c-title-tracking: -0.01em;
  --c-subhead-family: var(--c-font-body);
  --c-subhead-weight: 600;
  --c-subhead-size: 20px;
  --c-subhead-line: 1.4;
  --c-subhead-tracking: 0em;
  --c-lede-family: var(--c-font-body);
  --c-lede-weight: 400;
  --c-lede-size: 21px;
  --c-lede-line: 1.5238;
  --c-lede-tracking: 0em;
  --c-body-family: var(--c-font-body);
  --c-body-weight: 400;
  --c-body-size: 18px;
  --c-body-line: 1.5556;
  --c-body-tracking: 0em;
  --c-caption-family: var(--c-font-body);
  --c-caption-weight: 400;
  --c-caption-size: 15px;
  --c-caption-line: 1.4667;
  --c-caption-tracking: 0em;
  --c-label-family: var(--c-font-body);
  --c-label-weight: 600;
  --c-label-size: 13px;
  --c-label-line: 1.2308;
  --c-label-tracking: 0.12em;
  --c-code-family: var(--c-font-mono);
  --c-code-weight: 400;
  --c-code-size: 15px;
  --c-code-line: 1.6;
  --c-code-tracking: 0em;

  /* space */
  --c-space-xs: 4px;
  --c-space-sm: 8px;
  --c-space-md: 12px;
  --c-space-lg: 16px;
  --c-space-xl: 24px;
  --c-space-xxl: 40px;
  --c-space-xxxl: 64px;

  /* radius */
  --c-radius-input: 6px;
  --c-radius-card: 10px;
  --c-radius-card-large: 16px;
  --c-radius-pill: 999px;

  /* buttons */
  --c-button-md-font-size: 17px;
  --c-button-md-min-height: 44px;
  --c-button-md-padding-vertical: 10px;
  --c-button-md-padding-horizontal: 20px;
  --c-button-lg-font-size: 19px;
  --c-button-lg-min-height: 52px;
  --c-button-lg-padding-vertical: 12px;
  --c-button-lg-padding-horizontal: 28px;

  /* the one shadow */
  --c-shadow-card: 0 1px 3px rgba(21, 26, 24, 0.06);
  --c-breakpoint-compact: 520px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --c-bg: #151A18;
    --c-surface: #1E2421;
    --c-surface-inset: #0E1210;
    --c-line: #2C3330;
    --c-text: #F7F4EC;
    --c-text-muted: #DAD3C2;
    --c-text-faint: #8A8D87;
    --c-action: #8ED1A8;
    --c-action-pressed: #B0E0C2;
    --c-action-tint: #2C3330;
    --c-action-border: #2F6B47;
    --c-on-action: #151A18;
    --c-ornament: #2F6B47;
    --c-mark: #60A37B;
    --c-highlight: #E8A07A;
    --c-highlight-tint: #2C3330;
    --c-highlight-rule: #C4693F;
    --c-code-bg: #0E1210;
    --c-code-text: #F7F4EC;
    --c-footer-bg: #0E1210;
    --c-footer-text: #ECE7DA;
    --c-footer-faint: #8A8D87;
  }
}

/* =============================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, svg { max-width: 100%; }
a { color: inherit; }
/* Never set overflow on one axis alone — see CLAUDE.md. */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* =============================================================================
   Ground
   ========================================================================== */
body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--c-body-family);
  font-weight: var(--c-body-weight);
  font-size: var(--c-body-size);
  line-height: var(--c-body-line);
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.page { flex: 1; display: flow-root; }

/* =============================================================================
   Type
   ========================================================================== */
.t-display, .t-title, .t-subhead { text-wrap: balance; }
.t-display {
  font-family: var(--c-display-family);
  font-weight: var(--c-display-weight);
  font-size: clamp(var(--c-display-min), 7vw, var(--c-display-size));
  line-height: var(--c-display-line);
  letter-spacing: var(--c-display-tracking);
}
/* One phrase per page may be wrapped in *asterisks*: set in the action green. */
.t-display em { font-style: normal; color: var(--c-action); }
.t-title {
  font-family: var(--c-title-family);
  font-weight: var(--c-title-weight);
  font-size: var(--c-title-size);
  line-height: var(--c-title-line);
  letter-spacing: var(--c-title-tracking);
}
.t-subhead {
  font-family: var(--c-subhead-family);
  font-weight: var(--c-subhead-weight);
  font-size: var(--c-subhead-size);
  line-height: var(--c-subhead-line);
  margin-bottom: var(--c-space-sm);
}
.t-body { font-size: var(--c-body-size); line-height: var(--c-body-line); }
.t-caption { font-size: var(--c-caption-size); line-height: var(--c-caption-line); color: var(--c-text-faint); }
.t-label {
  font-family: var(--c-label-family);
  font-weight: var(--c-label-weight);
  font-size: var(--c-label-size);
  line-height: var(--c-label-line);
  letter-spacing: var(--c-label-tracking);
  text-transform: uppercase;
  color: var(--c-text-muted);
}
/* Eyebrows and section labels carry the complementary clay. */
.eyebrow, .section__head > .t-label { color: var(--c-highlight); }

/* Code: Fira Mono, on its own ground. Inline in prose, or a block. */
code, pre {
  font-family: var(--c-code-family);
  font-size: var(--c-code-size);
  line-height: var(--c-code-line);
}
:not(pre) > code {
  background: var(--c-code-bg);
  color: var(--c-code-text);
  border-radius: var(--c-radius-input);
  padding: 0.1em 0.35em;
  font-size: 0.88em;
}
.code {
  margin: 0;
  background: var(--c-code-bg);
  color: var(--c-code-text);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-highlight-rule);
  border-radius: var(--c-radius-card);
  padding: var(--c-space-lg) var(--c-space-xl);
  /* Long lines scroll inside the block on both axes, never the page. */
  overflow: auto;
  tab-size: 2;
}
.code-caption { margin-top: var(--c-space-sm); }

/* A highlighted aside: clay rule, clay tint. */
.callout {
  background: var(--c-highlight-tint);
  border-left: 3px solid var(--c-highlight-rule);
  border-radius: var(--c-radius-card);
  padding: var(--c-space-lg) var(--c-space-xl);
  max-width: 44rem;
}
.callout .t-label { color: var(--c-highlight); display: block; margin-bottom: var(--c-space-xs); }
.t-muted { color: var(--c-text-muted); }
.t-code { font-family: var(--c-code-family); font-size: var(--c-code-size); line-height: var(--c-code-line); }
.lede {
  max-width: 34em;
  font-family: var(--c-lede-family);
  font-size: clamp(var(--c-body-size), 2.2vw, var(--c-lede-size));
  line-height: var(--c-lede-line);
  color: var(--c-text-muted);
  margin-top: var(--c-space-xl);
}

/* =============================================================================
   Layout
   ========================================================================== */
.wrap { width: 100%; max-width: 68rem; margin-inline: auto; padding-inline: clamp(var(--c-space-lg), 5vw, var(--c-space-xxl)); }
.section { padding-block: clamp(var(--c-space-xxl), 7vw, var(--c-space-xxxl)); }
.section__head { margin-bottom: var(--c-space-xl); }
.section--tight { padding-block: var(--c-space-xl); }
.section__head > .t-label { display: block; margin-bottom: var(--c-space-sm); }
.section__head .t-title + .lede { margin-top: var(--c-space-md); }
.prose { max-width: 38rem; }
.prose > * + * { margin-top: var(--c-space-lg); }
.prose a { color: var(--c-action); text-underline-offset: 0.2em; }
.prose a:hover { color: var(--c-action-pressed); }

/* Between sections: a hairline with the mark, small, in a quiet green. */
.ornament {
  display: flex;
  align-items: center;
  gap: var(--c-space-lg);
  color: var(--c-ornament);
  line-height: 1;
}
.ornament .mark { width: 2.25rem; height: auto; flex: none; }
.ornament::before, .ornament::after { content: ""; flex: 1; border-top: 1px solid var(--c-line); }

/* =============================================================================
   Header and footer
   ========================================================================== */
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--c-space-lg);
  padding-block: var(--c-space-xl);
}
.nav { display: flex; gap: var(--c-space-lg); flex-wrap: wrap; }
.nav a {
  font-weight: 600;
  font-size: var(--c-caption-size);
  color: var(--c-text-muted);
  text-decoration: none;
}
.nav a:hover { color: var(--c-action); }

.site-footer {
  background: var(--c-footer-bg);
  color: var(--c-footer-faint);
  padding-block: var(--c-space-xxl);
  margin-top: var(--c-space-xxl);
}
.site-footer .wordmark { color: var(--c-mark); }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: var(--c-space-xl); align-items: flex-end; justify-content: space-between; }
.site-footer a { color: var(--c-footer-text); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: var(--c-space-lg); font-size: var(--c-caption-size); }
.site-footer__meta { margin-top: var(--c-space-xs); color: var(--c-footer-faint); }

/* =============================================================================
   Buttons. The deep green is the verb: the only colour that means "you can do
   something here". Corners match cards, not pills.
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--c-space-sm);
  font-family: var(--c-font-body);
  font-weight: 600;
  font-size: var(--c-button-md-font-size);
  min-height: var(--c-button-md-min-height);
  padding: var(--c-button-md-padding-vertical) var(--c-button-md-padding-horizontal);
  border: 1px solid transparent;
  border-radius: var(--c-radius-card);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}
.btn--primary { background: var(--c-action); color: var(--c-on-action); }
.btn--primary:hover, .btn--primary:focus-visible { background: var(--c-action-pressed); }
.btn--secondary { background: transparent; color: var(--c-action); border-color: var(--c-action-border); }
.btn--secondary:hover, .btn--secondary:focus-visible { background: var(--c-action-tint); }
.btn--lg {
  font-size: var(--c-button-lg-font-size);
  min-height: var(--c-button-lg-min-height);
  padding: var(--c-button-lg-padding-vertical) var(--c-button-lg-padding-horizontal);
}
:where(a, button, summary):focus-visible {
  outline: 2px solid var(--c-action);
  outline-offset: 3px;
  border-radius: var(--c-radius-input);
}
.actions { display: flex; flex-wrap: wrap; gap: var(--c-space-md); margin-top: var(--c-space-xl); }

/* =============================================================================
   Cards
   ========================================================================== */
.grid { display: grid; gap: var(--c-space-lg); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .grid--2 { grid-template-columns: 1fr; } }
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--c-radius-card-large);
  box-shadow: var(--c-shadow-card);
  padding: var(--c-space-xl);
}
.card .t-body { color: var(--c-text-muted); }

/* =============================================================================
   Hero
   ========================================================================== */
.hero { padding-block: clamp(var(--c-space-xxl), 8vw, calc(var(--c-space-xxxl) * 1.5)); }
.eyebrow { display: block; margin-bottom: var(--c-space-lg); }
.hero__subtitle {
  font-family: var(--c-font-display);
  font-size: clamp(var(--c-body-size), 2.6vw, var(--c-subhead-size));
  line-height: var(--c-subhead-line);
  color: var(--c-text-muted);
  margin-top: var(--c-space-md);
}
.hero__figures {
  display: grid;
  gap: var(--c-space-lg);
  grid-template-columns: repeat(3, 1fr);
  margin-block: var(--c-space-xxxl) var(--c-space-xl);
}
.hero__figure { margin: 0; }
/* One shape for all three, whatever the source crop. */
.hero__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1000 / 619;
  object-fit: cover;
  border-radius: var(--c-radius-card-large);
  box-shadow: var(--c-shadow-card);
}
.hero__figures + .lede { margin-top: var(--c-space-xxl); }

/* =============================================================================
   Call to action — an inset panel with a quiet green rule.
   ========================================================================== */
.cta {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  outline: 1px solid var(--c-ornament);
  outline-offset: calc(var(--c-space-sm) * -1);
  border-radius: var(--c-radius-card-large);
  padding: clamp(var(--c-space-xl), 5vw, var(--c-space-xxxl));
  text-align: center;
}
.cta .lede { margin-inline: auto; }
.cta .actions { justify-content: center; }

/* =============================================================================
   Design page specimens
   ========================================================================== */
.swatches { display: grid; gap: var(--c-space-md); grid-template-columns: repeat(auto-fill, minmax(min(100%, 9rem), 1fr)); }
.swatch { border: 1px solid var(--c-line); border-radius: var(--c-radius-card); overflow: hidden; background: var(--c-surface); }
.swatch__chip { height: 4.5rem; }
.swatch__meta { padding: var(--c-space-sm) var(--c-space-md); display: grid; gap: 2px; }
.swatch__meta code { font-size: var(--c-caption-size); color: var(--c-text-muted); }
.specimen { display: grid; gap: var(--c-space-xl); }
.specimen__row { display: grid; gap: var(--c-space-xs); }
.marks { display: flex; flex-wrap: wrap; gap: var(--c-space-xl); align-items: center; }
.marks__tile { width: 6rem; height: 6rem; }
.marks__tile--sm { width: 2rem; height: 2rem; }
.marks__ground { padding: var(--c-space-xl); border-radius: var(--c-radius-card-large); border: 1px solid var(--c-line); }
.marks__ground--ink { background: var(--c-footer-bg); }
.marks__ground--ink .wordmark { color: var(--c-mark); }

/* Skip link */
.skip {
  position: absolute;
  left: var(--c-space-md);
  top: calc(var(--c-space-md) * -10);
  z-index: 20;
  background: var(--c-surface);
  border: 1px solid var(--c-action-border);
  border-radius: var(--c-radius-input);
  padding: var(--c-space-sm) var(--c-space-lg);
}
.skip:focus { top: var(--c-space-md); }

@media (max-width: 520px) {
  .actions .btn { width: 100%; }
  .hero__figures { grid-template-columns: 1fr; }
  .card { padding: var(--c-space-lg); }
}

/* --- the lockup ---------------------------------------------------------- */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-size: var(--c-subhead-size);
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  color: var(--c-mark);
}
.wordmark .mark {
  width: 1.75em;
  height: auto;
  flex: none;
}
.wordmark__word {
  font-family: var(--c-font-brand);
  font-weight: 600;
  letter-spacing: -0.01em;
  /* Fira's x-height sits a touch high next to the mark; nudge to optical centre. */
  margin-top: -0.08em;
}
.wordmark--hero { font-size: var(--c-title-size); }
