/* =====================================================================================
   LEDESMITH — site-final shared design system (body sections, nav, footer, inner pages)
   Locked palette only: aubergine #38233F · coral #EE6A4D · blush #E9B7B0 · cream #F1E6D6
   Fonts: Fraunces (display) + Hanken Grotesk (text), local WOFF2 files in ../assets/fonts/.
   The homepage film keeps its own inline CSS; everything below the film, and every inner
   page, uses ONLY these rules (plus page-specific additions that never redefine a token).
   ===================================================================================== */

@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --aub: #38233F;
  --coral: #EE6A4D;
  --blush: #E9B7B0;
  --cream: #F1E6D6;

  /* inks as alpha blends of the four (no new hues) */
  --aub-70: rgba(56,35,63,.70);
  --aub-45: rgba(56,35,63,.45);
  --aub-18: rgba(56,35,63,.18);
  --aub-10: rgba(56,35,63,.10);
  --cream-75: rgba(241,230,214,.75);
  --cream-45: rgba(241,230,214,.45);
  --cream-16: rgba(241,230,214,.16);
  --blush-70: rgba(233,183,176,.70);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --wrap: 1280px;
  --measure: 62ch;

  /* type scale (fluid) */
  --t-display: clamp(52px, 8.2vw, 128px);   /* film statements, closing wordmark */
  --t-h1: clamp(40px, 5.6vw, 84px);         /* inner-page H1, body statements */
  --t-h2: clamp(30px, 3.6vw, 52px);
  --t-h3: clamp(22px, 2.2vw, 30px);
  --t-pull: clamp(30px, 4.2vw, 64px);
  --t-lead: clamp(18px, 1.45vw, 22px);
  --t-body: clamp(16px, 1.15vw, 18px);
  --t-small: 14px;
  --t-kick: 11px;

  --ease: cubic-bezier(.625, .05, 0, 1);     /* the house ease ("press"), shared with the film */
  --rise: 640ms;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body { margin: 0; background: var(--cream); color: var(--aub); font-family: var(--sans); font-size: var(--t-body); line-height: 1.55; font-optical-sizing: auto; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--coral); color: var(--cream); }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 12px; background: var(--aub); color: var(--cream); padding: 8px 14px; z-index: 200; }
.skip:focus { left: 12px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.015em; line-height: 1.02; margin: 0; }
p { margin: 0; }
.stop { color: var(--coral); }
.nowrap { white-space: nowrap; }
.serif { font-family: var(--serif); }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- grounds ---------- */
[data-ground="cream"] { background: var(--cream); color: var(--aub); }
[data-ground="plum"]  { background: var(--aub);  color: var(--cream); }
[data-ground="plum"] .kick { color: var(--blush); }
[data-ground="plum"] .kick .n { color: var(--coral); }
[data-ground="plum"] .muted { color: var(--cream-75); }
[data-ground="cream"] .muted { color: var(--aub-70); }
[data-ground="plum"] .rule { border-color: var(--cream-16); }
[data-ground="cream"] .rule { border-color: var(--aub-18); }

/* ---------- layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sec { padding-block: clamp(96px, 14vh, 200px); position: relative; }
.sec--tight { padding-block: clamp(64px, 9vh, 120px); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 3vw, 40px); }
.col-7 { grid-column: span 7; } .col-5 { grid-column: span 5; } .col-8 { grid-column: span 8; } .col-4 { grid-column: span 4; }
.measure { max-width: var(--measure); }
.rule { border: 0; border-top: 1px solid var(--aub-18); margin: 0; }
@media (max-width: 899px) { .grid-2 { grid-template-columns: 1fr; } .col-7, .col-5, .col-8, .col-4 { grid-column: 1 / -1; } }

/* ---------- editorial apparatus ---------- */
.kick { font-family: var(--sans); font-size: var(--t-kick); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--aub-70); display: flex; gap: 14px; align-items: baseline; margin-bottom: clamp(24px, 3vh, 40px); }
.kick .n { font-family: var(--serif); font-weight: 600; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--coral); font-variant-numeric: tabular-nums; }
.stmt { font-family: var(--serif); font-weight: 560; font-size: var(--t-h1); line-height: 1.02; letter-spacing: -0.02em; max-width: 18ch; text-wrap: balance; }
.stmt--wide { max-width: 24ch; }
.h2 { font-size: var(--t-h2); max-width: 22ch; text-wrap: balance; }
.h3 { font-size: var(--t-h3); }
.lead { font-size: var(--t-lead); line-height: 1.5; max-width: var(--measure); }
.para { max-width: var(--measure); }
.para + .para { margin-top: 1.1em; }
.stack > * + * { margin-top: clamp(20px, 3vh, 36px); }
.pull { display: grid; grid-template-columns: 6px 1fr; gap: clamp(20px, 3vw, 44px); }
.pull::before { content: ""; background: var(--coral); border-radius: 2px; }
.pull q, .pull blockquote { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: var(--t-pull); line-height: 1.08; letter-spacing: -0.02em; margin: 0; quotes: "\201C" "\201D"; text-wrap: balance; }
.numeral { font-family: var(--serif); font-weight: 600; font-size: clamp(96px, 16vw, 240px); line-height: .85; letter-spacing: -0.04em; }
.numeral .stop { color: var(--coral); }
.caption { font-size: var(--t-small); color: var(--aub-70); max-width: 34ch; }
[data-ground="plum"] .caption { color: var(--blush-70); }
.byline { font-family: var(--serif); font-weight: 560; font-size: var(--t-h2); font-style: italic; }
.byline-role { font-size: var(--t-kick); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; margin-top: 8px; color: var(--aub-70); }
[data-ground="plum"] .byline-role { color: var(--blush); }
.underline-coral { text-decoration: none; border-bottom: 3px solid var(--coral); padding-bottom: .04em; }

/* rows: numbered editorial rows (never cards) */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--aub-18); }
[data-ground="plum"] .rows { border-color: var(--cream-16); }
.row { display: grid; grid-template-columns: 64px 1fr 1fr auto; gap: clamp(16px, 2.6vw, 40px); align-items: baseline; padding: clamp(24px, 3.2vh, 40px) 0; border-bottom: 1px solid var(--aub-18); }
[data-ground="plum"] .row { border-color: var(--cream-16); }
.row .num { font-family: var(--serif); font-weight: 600; color: var(--coral); font-variant-numeric: tabular-nums; font-size: 18px; }
.row .title { font-family: var(--serif); font-weight: 560; font-size: var(--t-h3); letter-spacing: -0.01em; }
.row .text { max-width: 44ch; }
.row .go { font-size: var(--t-kick); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.row .go::after { content: " →"; color: var(--coral); }
.row .go:hover, .row .go:focus-visible { color: var(--coral); }
@media (max-width: 899px) { .row { grid-template-columns: 40px 1fr; } .row .text, .row .go { grid-column: 2; } }

/* facts row */
.facts { display: flex; flex-wrap: wrap; gap: 12px 40px; font-size: var(--t-small); letter-spacing: .04em; }
.facts li { list-style: none; display: flex; gap: 10px; align-items: center; }
.facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.facts { padding: 0; margin: 0; }

/* proof strip */
.proof { border-top: 1px solid var(--aub-18); border-bottom: 1px solid var(--aub-18); padding: 22px 0; }
.proof ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 0; }
.proof li { font-size: var(--t-kick); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; padding: 0 22px; position: relative; }
.proof li + li::before { content: ""; position: absolute; left: 0; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--coral); transform: translate(-2px, -50%); }

/* ---------- buttons & links ---------- */
.pill { display: inline-flex; align-items: center; gap: 10px; font-family: var(--sans); font-weight: 700; font-size: 14px; letter-spacing: .04em; text-decoration: none; background: var(--coral); color: var(--aub); border-radius: 999px; padding: 15px 24px; border: 1.5px solid var(--coral); transition: transform .18s var(--ease), background .18s var(--ease), color .18s var(--ease); }
.pill:hover, .pill:focus-visible { transform: translateY(-1px); }
.pill--ghost { background: transparent; color: inherit; border-color: currentColor; }
.pill--ghost:hover { border-color: var(--coral); color: var(--coral); }
[data-ground="plum"] .pill { color: var(--aub); }
.link-stop { font-family: var(--serif); font-weight: 560; font-size: var(--t-lead); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-stop::after { content: "."; color: var(--coral); }
.link-stop:hover { border-color: var(--coral); }
.cta-row { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; margin-top: clamp(28px, 4vh, 48px); }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 90; display: flex; align-items: center; justify-content: space-between; padding: 22px var(--gutter); pointer-events: none; color: var(--aub); transition: color .2s var(--ease); }
.nav[data-ink="cream"] { color: var(--cream); }
/* the fixed nav takes the ground it sits on, so body copy never scrolls through the wordmark; the homepage film keeps it transparent */
.nav[data-ink="aub"] { background: var(--cream); }
.nav[data-ink="cream"] { background: var(--aub); }
html.film-on .nav { background: transparent; }
.nav a, .nav button { pointer-events: auto; }
.nav__wm { font-family: var(--serif); font-weight: 600; font-size: 24px; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; line-height: 1; }
.nav__links { display: flex; gap: clamp(16px, 2vw, 30px); align-items: center; list-style: none; margin: 0; padding: 0; }
.nav__links a { font-size: var(--t-kick); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; opacity: .92; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav__links a:hover, .nav__links a[aria-current="page"] { border-bottom-color: var(--coral); }
.nav .pill { padding: 11px 18px; font-size: 12px; }
.nav__menu { display: none; background: none; border: 0; color: inherit; font: 700 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; padding: 8px 0; cursor: pointer; }
@media (max-width: 899px) { .nav__links { display: none; } .nav__menu { display: inline-block; } .nav .pill { display: none; } }
.sheet { position: fixed; inset: 0; z-index: 95; background: var(--aub); color: var(--cream); display: none; flex-direction: column; justify-content: center; padding: var(--gutter); }
.sheet[data-open="true"] { display: flex; }
.sheet a { font-family: var(--serif); font-size: clamp(30px, 8vw, 44px); text-decoration: none; padding: 10px 0; line-height: 1.1; }
.sheet .close { position: absolute; top: 22px; right: var(--gutter); background: none; border: 0; color: inherit; font: 700 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; padding: 8px 0; }
.sheet .pill { align-self: flex-start; margin-top: 28px; font: 700 14px/1 var(--sans); letter-spacing: .04em; padding: 15px 24px; line-height: 1; }

/* ---------- inner-page hero ---------- */
.phero { padding-top: clamp(140px, 22vh, 260px); padding-bottom: clamp(56px, 8vh, 110px); }
.phero h1 { font-size: var(--t-h1); max-width: 16ch; text-wrap: balance; }
.phero .lead { margin-top: clamp(22px, 3vh, 36px); }

/* ---------- prose (inner pages) ---------- */
.prose { max-width: var(--measure); }
.prose h2 { font-size: var(--t-h2); margin-top: clamp(56px, 8vh, 96px); margin-bottom: 18px; max-width: 22ch; }
.prose h3 { font-size: var(--t-h3); margin-top: 36px; margin-bottom: 10px; }
.prose p { margin-top: 1.05em; }
.prose h2 + p, .prose h3 + p { margin-top: 0; }
.prose ul { padding-left: 0; list-style: none; margin: 1.1em 0 0; }
.prose li { position: relative; padding-left: 26px; margin-top: .55em; }
.prose li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.prose strong { font-weight: 700; }
.prose .term { font-family: var(--serif); font-weight: 600; }

/* FAQ */
.faq { border-top: 1px solid var(--aub-18); }
.faq details { border-bottom: 1px solid var(--aub-18); padding: 22px 0; }
.faq summary { cursor: pointer; list-style: none; font-family: var(--serif); font-weight: 560; font-size: var(--t-h3); display: flex; justify-content: space-between; gap: 20px; align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--coral); font-family: var(--sans); font-weight: 400; font-size: 26px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 14px; max-width: var(--measure); }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); }
.steps li { counter-increment: step; padding-top: 18px; border-top: 1px solid var(--aub-18); }
[data-ground="plum"] .steps li { border-color: var(--cream-16); }
.steps li::before { content: "0" counter(step); font-family: var(--serif); font-weight: 600; color: var(--coral); display: block; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.steps .t { font-family: var(--serif); font-weight: 560; font-size: var(--t-h3); margin-bottom: 8px; }
@media (max-width: 899px) { .steps { grid-template-columns: 1fr; } }

/* ---------- forms (designed, non-live until the mailbox exists) ---------- */
.form { display: grid; gap: 18px; max-width: 640px; }
.form label { display: grid; gap: 8px; font-size: var(--t-kick); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.form input, .form textarea { font: inherit; font-size: var(--t-body); color: inherit; background: transparent; border: 0; border-bottom: 1px solid var(--aub-45); padding: 10px 0; border-radius: 0; }
[data-ground="plum"] .form input, [data-ground="plum"] .form textarea { border-color: var(--cream-45); }
.form input:focus, .form textarea:focus { outline: none; border-bottom-color: var(--coral); }
.form textarea { min-height: 140px; resize: vertical; }
.form .note { font-size: var(--t-small); color: var(--aub-70); }
[data-ground="plum"] .form .note { color: var(--blush); }
.form button[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }   /* the honeypot: never shown, never tabbed to */
.form .msg { margin-top: 4px; font-size: var(--t-body); max-width: var(--measure); padding: 14px 18px; border-left: 3px solid var(--coral); }
.form .msg--ok { border-color: var(--coral); }
.form .msg--err { border-color: var(--aub); }
.form .msg--note { border-color: var(--aub-45); color: var(--aub-70); }
.form .msg a { color: inherit; }
.form .note a { color: inherit; }

/* ---------- footer ---------- */
.footer { padding-block: clamp(96px, 14vh, 200px) 40px; text-align: center; }
.footer .wm { font-family: var(--serif); font-weight: 600; font-size: clamp(40px, 5.6vw, 84px); letter-spacing: -0.02em; line-height: .95; white-space: nowrap; display: inline-block; }  /* the H1 scale: the closing wordmark was too big (Simon, 14 Sep) */
.footer .wm .stop { color: var(--coral); }
.footer nav ul { list-style: none; margin: clamp(40px, 6vh, 72px) 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 30px; }
.footer nav a { font-size: var(--t-kick); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; }
.footer nav a:hover { color: var(--coral); }
.footer nav .footer__small { margin-top: 18px; gap: 10px 24px; }
.footer nav .footer__small a { font-size: 10px; letter-spacing: .14em; color: var(--aub-70); }
.footer nav .footer__small a:hover { color: var(--coral); }
.footer .contact { margin-top: clamp(32px, 5vh, 56px); display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 36px; font-family: var(--serif); font-weight: 560; font-size: var(--t-lead); letter-spacing: -0.01em; }
.footer .contact a { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.footer .contact a:hover, .footer .contact a:focus-visible { color: var(--coral); border-color: var(--coral); }
.footer .meta { margin-top: 40px; font-size: var(--t-small); color: var(--aub-70); display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; }

/* ---------- reveal (one grammar sitewide) ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity var(--rise) var(--ease), transform var(--rise) var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 90ms; }
.reveal[data-delay="2"] { transition-delay: 180ms; }
.reveal[data-delay="3"] { transition-delay: 270ms; }
.no-js .reveal, .prm .reveal { opacity: 1; transform: none; transition: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .pill { transition: none; } }
