/* ============================================================
   Charlotte Drake, business strategist and adviser
   Design system from the 2026 art direction: independent
   publishing house, not consultancy website.

   Palette roles (contrast-checked, see §2):
     paper + green + charcoal = core
     clay   = warmth, rules, large accents  (never small text on green)
     lavender = editorial annotation, on dark fields only
   ============================================================ */

/* ---- 1. Fonts -------------------------------------------------
   Fraunces stands in for Recoleta, Inter for Suisse Int'l.
   Both are self-hosted variable subsets. To swap in the licensed
   originals: drop the .woff2 files into assets/fonts/, change the
   src below, then --font-display / --font-body. Nothing else
   references a font name.
   -------------------------------------------------------------- */
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin.woff2') format('woff2');
  font-weight: 300 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin-ext.woff2') format('woff2');
  font-weight: 300 700; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'InterVar';
  src: url('../fonts/inter-latin.woff2') format('woff2');
  font-weight: 300 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'InterVar';
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  font-weight: 300 700; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- 2. Tokens ------------------------------------------------
   Every text colour below was measured against the field it is
   actually used on. Ratios in comments are real, not aspirational.
   -------------------------------------------------------------- */
:root {
  /* Approved palette */
  --paper:      #F7F4EC;
  --paper-warm: #F0ECE1;
  --green:      #2F4C3E;
  --clay:       #C46A4A;
  --charcoal:   #1F1F1F;
  --lavender:   #DCCCF3;

  /* Derived, contrast-safe */
  --ink:        var(--charcoal);          /* 15.0:1 on paper */
  --ink-soft:   #5F5A50;                  /*  6.2:1 on paper */
  --green-ink:  var(--green);             /*  8.6:1 on paper */
  --clay-ink:   #A55236;                  /*  5.0:1 on paper, clay for small text */
  --on-dark:    var(--paper);             /*  8.6:1 on green */
  --on-dark-mu: #CBCFC6;                  /*  6.0:1 on green */
  --on-dark-ann: var(--lavender);         /*  6.3:1 on green, annotation only */

  --rule:       rgba(31, 31, 31, 0.13);
  --rule-soft:  rgba(31, 31, 31, 0.07);
  --rule-dark:  rgba(247, 244, 236, 0.20);
  --rule-clay:  rgba(196, 106, 74, 0.45);

  --font-display: 'Fraunces', 'Recoleta', Georgia, 'Times New Roman', serif;
  --font-body:    'InterVar', 'Suisse Int\'l', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Fluid type scale */
  --step--2: clamp(0.69rem, 0.67rem + 0.10vw, 0.75rem);
  --step--1: clamp(0.80rem, 0.77rem + 0.14vw, 0.88rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.20vw, 1.13rem);
  --step-1:  clamp(1.20rem, 1.12rem + 0.38vw, 1.44rem);
  --step-2:  clamp(1.44rem, 1.30rem + 0.70vw, 1.94rem);
  --step-3:  clamp(1.73rem, 1.47rem + 1.28vw, 2.62rem);
  --step-4:  clamp(2.07rem, 1.62rem + 2.26vw, 3.53rem);
  --step-5:  clamp(2.49rem, 1.71rem + 3.90vw, 4.77rem);

  --wrap: 1180px;
  --wrap-narrow: 720px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section: clamp(4rem, 9vw, 8rem);
  --radius: 2px;
}

/* ---- 3. Base --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--green-ink);
  margin: 0 0 0.6em;
  font-variation-settings: 'SOFT' 0, 'WONK' 1;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.005em; }
h4 { font-size: var(--step-0); }

p { margin: 0 0 1.1em; max-width: 62ch; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: underline; text-underline-offset: 0.22em;
    text-decoration-thickness: 1px; text-decoration-color: var(--rule-clay);
    transition: color 0.18s ease, text-decoration-color 0.18s ease; }
a:hover { color: var(--clay-ink); text-decoration-color: currentColor; }

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

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

:focus-visible {
  outline: 2px solid var(--clay-ink);
  outline-offset: 3px;
  border-radius: var(--radius);
}
.panel--dark :focus-visible, .site-footer :focus-visible, .skip-link:focus-visible {
  outline-color: var(--lavender);
}

.skip-link {
  position: fixed; top: 0; left: 0; z-index: 200;
  background: var(--green); color: var(--on-dark);
  padding: 0.85rem 1.4rem; font-size: var(--step--1);
  text-decoration: none; letter-spacing: 0.08em; text-transform: uppercase;
  transform: translateY(-110%);
}
.skip-link:focus { transform: translateY(0); }

/* ---- 4. Layout ------------------------------------------------- */
.wrap { width: min(100% - (var(--gutter) * 2), var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - (var(--gutter) * 2), var(--wrap-narrow)); margin-inline: auto; }

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4.5rem); }

/* Editorial split: a label/annotation rail beside the content.
   The rail is deliberately narrow and it always carries something:
   a section number, a note, a small image. Never dead space. */
.split { display: grid; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 62rem) {
  .split { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: clamp(3rem, 6vw, 6rem); }
  .split__rail { position: sticky; top: 6.5rem; }
  .split--wide { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); }
  .split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
  .split--flip .split__rail { order: 2; }
}

.stack > * + * { margin-top: var(--flow, 1.1em); }
.stack--lg { --flow: 1.8em; }

/* ---- 5. Editorial devices -------------------------------------- */
.kicker {
  display: block;
  font-size: var(--step--2);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
}
.panel--dark .kicker, .site-footer .kicker { color: var(--on-dark-mu); }

/* Folio number, the small editorial numeral in the rail */
.folio {
  font-family: var(--font-body);
  font-size: var(--step--2);
  letter-spacing: 0.18em;
  color: var(--clay-ink);
  font-variant-numeric: tabular-nums;
  display: block;
  margin-bottom: 0.6rem;
}
.panel--dark .folio { color: var(--on-dark-ann); }

/* Marginal note, the annotation voice */
.note {
  font-size: var(--step--1);
  line-height: 1.55;
  color: var(--ink-soft);
  border-left: 1px solid var(--rule-clay);
  padding-left: 1rem;
  max-width: 34ch;
}
.panel--dark .note { color: var(--on-dark-mu); border-left-color: var(--on-dark-ann); }

.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink); max-width: 46ch; }
.panel--dark .lede { color: var(--on-dark); }

.muted { color: var(--ink-soft); }
.panel--dark .muted, .site-footer .muted { color: var(--on-dark-mu); }

.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }
.rule-short { width: 3rem; height: 1px; background: var(--clay); border: 0; margin: 0 0 1.5rem; }
.panel--dark .rule { background: var(--rule-dark); }
.panel--dark .rule-short { background: var(--on-dark-ann); }

/* ---- 6. Fields (paper / warm / green) --------------------------- */
.panel--warm { background: var(--paper-warm); }
.panel--dark { background: var(--green); color: var(--on-dark); }
.panel--dark h1, .panel--dark h2, .panel--dark h3, .panel--dark h4 { color: var(--on-dark); }
.panel--dark a { text-decoration-color: rgba(220, 204, 243, 0.5); }
.panel--dark a:hover { color: var(--lavender); }
.panel--dark .rule-soft { background: var(--rule-dark); }

/* ---- 7. Header / navigation ------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
/* backdrop-filter only above the mobile breakpoint. It creates a
   containing block for fixed-position descendants, which would trap
   the full-screen mobile nav inside the header. */
@media (min-width: 62rem) {
  .site-header {
    background: rgba(247, 244, 236, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}
.site-header.is-stuck { border-bottom-color: var(--rule); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-block: 1.1rem;
}

.brand { text-decoration: none; display: block; line-height: 1.1; padding: 0.35rem 0; }
.brand:hover { color: inherit; }
.brand__name {
  font-family: var(--font-display); font-size: 1.18rem; color: var(--green-ink);
  letter-spacing: -0.01em; display: block;
}
.brand__role {
  display: block; font-size: 0.62rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-soft); margin-top: 0.22rem;
}

.nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.5vw, 2.25rem); }
.nav a {
  text-decoration: none; font-size: var(--step--1); color: var(--ink);
  padding: 0.7rem 0; position: relative; letter-spacing: 0.01em;
}
.nav a:not(.btn)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0.35rem;
  height: 1px; background: var(--clay); transform: scaleX(0);
  transform-origin: left; transition: transform 0.22s ease;
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--green-ink); }
.nav .btn { padding: 0.7em 1.35em; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 0; color: var(--ink);
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close, .nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 61.99rem) {
  .nav-toggle { display: flex; }
  /* Keep the brand and the close button above the open overlay,
     both sit inside the header's stacking context alongside it. */
  .brand, .nav-toggle { position: relative; z-index: 95; }
  .nav {
    position: fixed; inset: 0; z-index: 90;
    background: var(--paper);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0; padding: 6rem var(--gutter) 3rem;
    visibility: hidden; opacity: 0;
    transition: opacity 0.24s ease, visibility 0.24s ease;
    overflow-y: auto;
  }
  .nav.is-open { visibility: visible; opacity: 1; }
  .nav a { font-size: var(--step-1); padding: 1.05rem 0; border-bottom: 1px solid var(--rule-soft); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 1.75rem; border-bottom: 0; justify-content: center; font-size: var(--step--1); }
}

/* ---- 8. Buttons and links -------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-size: var(--step--1); font-weight: 500;
  letter-spacing: 0.09em; text-transform: uppercase;
  padding: 0.95em 1.7em; border-radius: 100px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; min-height: 44px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn--primary { background: var(--green); color: var(--on-dark); border-color: var(--green); }
.btn--primary:hover { background: var(--charcoal); border-color: var(--charcoal); color: var(--paper); }
.btn--ghost { background: transparent; color: var(--green-ink); border-color: var(--rule); }
.btn--ghost:hover { background: var(--green); border-color: var(--green); color: var(--on-dark); }

/* Currently unused, kept so a lavender CTA is a one-word change.
   Apply with class="btn btn--accent".
   Lavender alone is only 1.37:1 against paper, so the green edge is
   what makes the control perceivable (8.6:1). do not remove it.
   Green label reads 6.3:1 on the lavender fill. */
.btn--accent {
  background: var(--lavender); color: var(--green-ink); border-color: var(--green);
}
.btn--accent:hover { background: var(--green); color: var(--on-dark); border-color: var(--green); }

/* On dark fields the ghost button needs its own border and text.
   without these it inherits a border the same colour as the field. */
.panel--dark .btn--ghost, .site-footer .btn--ghost {
  color: var(--on-dark); border-color: rgba(247, 244, 236, 0.45);
}
.panel--dark .btn--ghost:hover, .site-footer .btn--ghost:hover {
  background: var(--paper); color: var(--green-ink); border-color: var(--paper);
}
.panel--dark .btn--primary, .site-footer .btn--primary {
  background: var(--paper); color: var(--green-ink); border-color: var(--paper);
}
.panel--dark .btn--primary:hover, .site-footer .btn--primary:hover {
  background: var(--lavender); border-color: var(--lavender); color: var(--charcoal);
}

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: var(--step--1); letter-spacing: 0.09em; text-transform: uppercase;
  font-weight: 500; text-decoration: none; color: var(--green-ink);
  padding: 0.55rem 0; border-bottom: 1px solid var(--rule-clay);
  min-height: 44px; transition: border-color 0.2s ease, color 0.2s ease;
}
.arrow-link::after { content: '→'; transition: transform 0.2s ease; }
.arrow-link:hover { color: var(--clay-ink); border-bottom-color: var(--clay); }
.arrow-link:hover::after { transform: translateX(4px); }
.panel--dark .arrow-link { color: var(--on-dark); border-bottom-color: var(--rule-dark); }
.panel--dark .arrow-link:hover { color: var(--lavender); border-bottom-color: var(--lavender); }

/* ---- 9. Media -------------------------------------------------- */
.figure { margin: 0; }
.figure img { width: 100%; object-fit: cover; border-radius: var(--radius); }
.figure figcaption {
  font-size: var(--step--2); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); margin-top: 0.85rem;
}
.panel--dark .figure figcaption { color: var(--on-dark-mu); }

.figure--portrait img { aspect-ratio: 2 / 3; }
.figure--tall img { aspect-ratio: 3 / 4; }
.figure--square img { aspect-ratio: 1 / 1; }
.figure--wide img { aspect-ratio: 16 / 10; }

/* A full-bleed visual moment between quiet text sections.
   Sources are portrait, so the focal point is set per image with
   --focus rather than relying on a centred crop. */
.band { position: relative; }
.band img {
  width: 100%; aspect-ratio: 2 / 1; object-fit: cover;
  object-position: 50% var(--focus, 50%);
}
@media (max-width: 48rem) { .band img { aspect-ratio: 5 / 4; } }

/* ---- 10. Hero -------------------------------------------------- */
.hero { padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 7vw, 6rem); }
.hero__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 56rem) {
  .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(3rem, 6vw, 5.5rem); }
}
.hero h1 { font-size: var(--step-5); margin-bottom: 0.5em; max-width: 15ch; }
.hero__intro { max-width: 48ch; }

.page-hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(1.75rem, 3.5vw, 3rem); }
.page-hero h1 { max-width: 19ch; }
.page-hero .lede { margin-top: 1.5rem; }

/* ---- 11. Row lists (tenets, offers, evidence) ------------------- */
/* Rows, not cards. Cards only where the thing is genuinely a card. */
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li { border-top: 1px solid var(--rule); padding: clamp(1.5rem, 3vw, 2.25rem) 0; }
.rows > li:last-child { border-bottom: 1px solid var(--rule); }
.panel--dark .rows > li { border-color: var(--rule-dark); }

.row { display: grid; gap: 0.5rem 2rem; align-items: start; }
@media (min-width: 48rem) {
  .row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
  .row--num { grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 1.6fr); }
}
.row h3 { margin: 0; }
.row p { margin: 0; color: var(--ink-soft); font-size: var(--step-0); }
.panel--dark .row p { color: var(--on-dark-mu); }
.row__n {
  font-size: var(--step--2); letter-spacing: 0.16em; color: var(--clay-ink);
  font-variant-numeric: tabular-nums; padding-top: 0.35em;
}
.panel--dark .row__n { color: var(--on-dark-ann); }

/* ---- 12. Offer blocks (For Founders / For Organisations) -------- */
.offer { padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--rule); }
.offer:first-of-type { border-top: 0; }
.panel--dark .offer { border-color: var(--rule-dark); }
.offer h2 { font-size: var(--step-2); margin-bottom: 0.35em; }
.offer__strap { color: var(--ink-soft); max-width: 40ch; }
.panel--dark .offer__strap { color: var(--on-dark-mu); }

.offer__meta { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 0.75rem;
               border-top: 1px solid var(--rule-soft); padding-top: 1.5rem; }
.panel--dark .offer__meta { border-top-color: var(--rule-dark); }
.offer__meta li { margin: 0; display: grid; gap: 0.15rem 1.25rem; font-size: var(--step--1); }
@media (min-width: 34rem) { .offer__meta li { grid-template-columns: 9rem minmax(0, 1fr); gap: 1.25rem; } }
.offer__meta dt, .offer__meta .lbl {
  font-size: var(--step--2); letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 500;
}
.offer__meta dd, .offer__meta .val { margin: 0; color: var(--ink); }
/* Dark-field overrides, both halves, or the block goes unreadable */
.panel--dark .offer__meta dt, .panel--dark .offer__meta .lbl { color: var(--on-dark-ann); }
.panel--dark .offer__meta dd, .panel--dark .offer__meta .val { color: var(--on-dark); }

/* ---- 13. Checklist --------------------------------------------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.checklist li { position: relative; padding-left: 1.6rem; color: var(--ink-soft); }
.checklist li::before {
  content: ''; position: absolute; left: 0; top: 0.6em;
  width: 0.45rem; height: 0.45rem; border: 1px solid var(--clay); border-radius: 50%;
}
.panel--dark .checklist li { color: var(--on-dark-mu); }
.panel--dark .checklist li::before { border-color: var(--on-dark-ann); }

/* ---- 14. Route cards (the two audiences) ----------------------- */
.routes { display: grid; gap: 1.25rem; }
@media (min-width: 48rem) { .routes { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }
.route {
  display: flex; flex-direction: column; gap: 0.75rem;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  background: rgba(247, 244, 236, 0.07);
  border: 1px solid var(--rule-dark);
  border-radius: var(--radius);
  text-decoration: none; color: inherit;
  transition: background-color 0.22s ease, border-color 0.22s ease;
}
/* Hover tint stays at 0.09, above that, the muted paragraph colour
   inside the card drops below 4.5:1 against the lightened field. */
.route:hover { background: rgba(247, 244, 236, 0.09); border-color: rgba(247, 244, 236, 0.4); color: inherit; }
.route h3 { margin: 0; font-size: var(--step-1); }
.route p { margin: 0; color: var(--on-dark-mu); font-size: var(--step--1); }
.route .arrow-link { margin-top: auto; padding-top: 1.25rem; align-self: flex-start; }

/* ---- 15. Pull quote -------------------------------------------- */
.pull {
  font-family: var(--font-display); font-size: var(--step-2); line-height: 1.25;
  color: var(--green-ink); max-width: 24ch; margin: 0;
  font-variation-settings: 'SOFT' 0, 'WONK' 1;
}
.panel--dark .pull { color: var(--on-dark); }
.pull cite { display: block; font-family: var(--font-body); font-size: var(--step--2);
             letter-spacing: 0.14em; text-transform: uppercase; font-style: normal;
             color: var(--ink-soft); margin-top: 1.25rem; }
.panel--dark .pull cite { color: var(--on-dark-mu); }

/* ---- 15b. Proof: a client story with the quote that came out of it
   The story does the persuading, it names a decision. The quote is
   the corroboration, not the other way round. */
.proof {
  margin: 2.5rem 0 0; padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
  display: grid; gap: 1.1rem;
}
.panel--dark .proof { border-top-color: var(--rule-dark); }
.proof__story { margin: 0; font-size: var(--step--1); line-height: 1.6; color: var(--ink-soft); max-width: 60ch; }
.panel--dark .proof__story { color: var(--on-dark-mu); }
.proof blockquote { margin: 0; }
.proof blockquote p {
  margin: 0; max-width: 34ch;
  font-family: var(--font-display); font-size: var(--step-1); line-height: 1.35;
  color: var(--green-ink); font-variation-settings: 'SOFT' 0, 'WONK' 1;
}
.panel--dark .proof blockquote p { color: var(--on-dark); }
.proof figcaption {
  font-size: var(--step--2); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft);
}
.panel--dark .proof figcaption { color: var(--on-dark-mu); }

/* ---- 16. Philosophy diagram ------------------------------------ */
.venn { width: 100%; height: auto; max-width: 34rem; margin-inline: auto; display: block; }
.venn text { font-family: var(--font-body); }
/* Sized generously: the SVG scales down to ~350px on a phone, so
   anything under ~17px here becomes unreadable there. */
.venn__label { font-size: 17px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; }
.venn__core { font-size: 20px; letter-spacing: 0.04em; font-weight: 500; }
/* The enclosing context field, labelled as annotation, not as a pillar */
.venn__field { font-size: 16px; letter-spacing: 0.26em; text-transform: uppercase; font-weight: 500; }
.venn__note { font-size: 16px; letter-spacing: 0.02em; font-style: italic; }

/* ---- 17. Forms ------------------------------------------------- */
.form { display: grid; gap: 1.5rem; max-width: 34rem; }
.field { display: grid; gap: 0.5rem; }
.field label {
  font-size: var(--step--2); letter-spacing: 0.13em; text-transform: uppercase;
  font-weight: 500; color: var(--ink-soft);
}
.field .hint { text-transform: none; letter-spacing: 0; font-size: var(--step--1); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: var(--step-0); color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 0.85rem 1rem; width: 100%; min-height: 48px;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--green); background: #fff; outline-offset: 1px;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%231F1F1F' stroke-width='1.5' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 12px;
  padding-right: 2.75rem;
}
.field--check { display: flex; align-items: flex-start; gap: 0.85rem; }
/* 24px minimum target, WCAG 2.2 */
.field--check input {
  width: 24px; height: 24px; min-height: 24px; flex: 0 0 24px;
  margin-top: 0.15rem; accent-color: var(--green);
}
.field--check label {
  text-transform: none; letter-spacing: 0; font-weight: 400;
  font-size: var(--step--1); color: var(--ink-soft); line-height: 1.55;
}
.form-status {
  font-size: var(--step--1); padding: 0.9rem 1.1rem; border-radius: var(--radius);
  margin: 0; display: none;
}
.form-status.is-visible { display: block; }
.form-status[data-state="ok"]    { background: rgba(47, 76, 62, 0.09); color: var(--green-ink); }
.form-status[data-state="error"] { background: rgba(165, 82, 54, 0.11); color: var(--clay-ink); }
.form-note { font-size: var(--step--1); color: var(--ink-soft); margin: 0; }

/* Standalone contact links need a comfortable target, unlike links
   sitting inline within a sentence. */
.contact-links a { display: inline-block; padding-block: 0.4rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- 18. Footer ------------------------------------------------ */
.site-footer { background: var(--green); color: var(--on-dark); padding-block: clamp(3.5rem, 7vw, 5.5rem) 2.25rem; }
/* Headings inherit --green-ink globally; on the green field that is
   charcoal-on-green. They must be re-coloured here. */
.site-footer h2, .site-footer h3, .site-footer p, .site-footer li { color: var(--on-dark); }
.site-footer a { color: var(--on-dark); text-decoration-color: rgba(220, 204, 243, 0.45); }
.site-footer a:hover { color: var(--lavender); text-decoration-color: var(--lavender); }
.site-footer .kicker { color: var(--on-dark-mu); }

.footer__grid { display: grid; gap: 2.5rem; }
@media (min-width: 48rem) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 3rem; } }
.footer__cta h2 { font-size: var(--step-2); max-width: 15ch; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.footer__list a { display: inline-block; padding: 0.55rem 0; text-decoration: none; font-size: var(--step--1); }
.footer__list a:hover { text-decoration: underline; }
.footer__base {
  display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between;
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.75rem;
  border-top: 1px solid var(--rule-dark);
}
.footer__base p { margin: 0; font-size: var(--step--1); color: var(--on-dark-mu); }

/* ---- 19. Motion ------------------------------------------------ */
/* Gated behind .js so nothing is ever hidden without JavaScript. */
.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity 0.7s ease, transform 0.7s ease; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal.is-in { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---- 20. Utilities --------------------------------------------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ---- 21. Print ------------------------------------------------- */
@media print {
  .site-header, .site-footer, .btn-row, .nav-toggle, .skip-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .panel--dark { background: #fff !important; color: #000 !important; }
  .panel--dark h1, .panel--dark h2, .panel--dark h3 { color: #000 !important; }
  a { text-decoration: underline; }
  .section { padding-block: 1.5rem; }
}
