/* Fonts — self-hosted variable woff2 (SIL OFL 1.1, licence texts alongside).
   Space Grotesk covers wght 400–700; Work Sans covers 400–600 as used. */
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-latin-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("/assets/fonts/work-sans-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   Unyven — Plain Speech
   Full-width bands of flat colour, one statement per band, type doing the
   structural work. Palette and type scale taken from the approved design.
   ========================================================================== */

:root {
  --bone:        #F0EDE3;
  --surface:     #F7F5EE;
  --ultramarine: #2941A3;
  --haze:        #C1D7EE;
  --haze-ink:    #1B2C63;
  --haze-soft:   #384D73;
  --ink:         #171D29;
  --rule:        #DCD7C9;
  --rule-soft:   #E4E0D4;
  --text-soft:   #4A5364;

  --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --body:    "Work Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --shell:  1240px;
  --gutter: clamp(1.25rem, 4.5vw, 3.5rem);
  --band:   clamp(3.5rem, 8vw, 7rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

svg { display: block; }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 60;
  background: var(--ink); color: var(--bone);
  padding: 0.75rem 1.25rem; text-decoration: none;
}
.skip:focus { left: 0; }

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

/* ---------- identity mark ---------- */

.mark { width: 1.55em; height: 1.55em; color: var(--ultramarine); flex: none; }
.lockup {
  display: inline-flex; align-items: center; gap: 0.5rem;
  text-decoration: none; color: inherit;
}
.lockup-word {
  font-family: var(--display);
  font-size: 1.4rem; font-weight: 500; letter-spacing: -0.035em;
}

/* ---------- masthead ---------- */

.masthead { border-bottom: 1px solid var(--rule); }
.masthead-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 4.75rem;
}
.nav { display: flex; gap: clamp(1.25rem, 3vw, 2.75rem); }
.nav a {
  font-size: 16px; text-decoration: none; color: var(--ink);
  padding-bottom: 3px; border-bottom: 1px solid transparent;
}
.nav a:hover { border-color: var(--ultramarine); }
.nav a[aria-current] { color: var(--ultramarine); border-color: var(--ultramarine); }

/* ---------- hero ---------- */

.hero { padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 6vw, 5rem); }

.hero-title {
  font-family: var(--display);
  font-size: clamp(2.6rem, 1.1rem + 6.2vw, 5.4rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin: 0 0 clamp(1.75rem, 3.5vw, 2.75rem);
  max-width: 16ch;
}
.hero-title strong { font-weight: 700; }

.hero-foot {
  display: grid; gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}
@media (min-width: 860px) {
  .hero-foot { grid-template-columns: minmax(0, 1fr) auto; }
}

.hero-sub { margin: 0; max-width: 46ch; color: var(--text-soft); font-size: 18px; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }

.button {
  font-family: var(--display);
  font-size: 16px; font-weight: 500;
  background: var(--ultramarine); color: var(--bone);
  border: 1px solid var(--ultramarine);
  padding: 0.85rem 1.6rem; text-decoration: none; cursor: pointer;
  border-radius: 2px;
}
.button:hover:not(:disabled) { background: var(--haze-ink); border-color: var(--haze-ink); }
.button:disabled { opacity: 0.45; cursor: not-allowed; }

.link-action {
  font-family: var(--display); font-size: 16px; font-weight: 500;
  text-decoration: none; color: var(--ink);
  padding-bottom: 4px; border-bottom: 2px solid var(--ultramarine);
}

/* ---------- statement strip ---------- */

.strip { background: var(--ultramarine); color: var(--bone); }
.strip-inner {
  display: flex; flex-wrap: wrap; gap: 0.75rem 2rem;
  align-items: baseline; justify-content: space-between;
  padding-block: clamp(1.5rem, 2.6vw, 2rem);
}
.strip-lead {
  font-family: var(--display);
  font-size: clamp(1.15rem, 0.85rem + 1.2vw, 1.6rem);
  font-weight: 500; letter-spacing: -0.02em; margin: 0;
}
.strip-note { margin: 0; font-size: 16px; color: #C7D2F0; }

/* ---------- bands ---------- */

.band { padding-block: var(--band); }
.band-haze { background: var(--haze); color: var(--haze-ink); }

.eyebrow {
  font-family: var(--display);
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ultramarine); margin: 0 0 0.65rem;
}
.band-haze .eyebrow { color: var(--haze-soft); }

.band-head {
  display: grid; gap: clamp(1rem, 3vw, 3rem); align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
@media (min-width: 900px) {
  .band-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.band-title {
  font-family: var(--display);
  font-size: clamp(1.9rem, 1.1rem + 2.6vw, 3.1rem);
  font-weight: 400; line-height: 1.08; letter-spacing: -0.035em;
  margin: 0; max-width: 18ch;
}
.band-title strong { font-weight: 700; }
.band-intro { margin: 0; color: var(--text-soft); max-width: 52ch; }
.band-haze .band-intro { color: var(--haze-soft); }

/* ---------- three columns ---------- */

.columns {
  display: grid; gap: 0;
  border-top: 1px solid var(--ink);
}
@media (min-width: 820px) {
  .columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .columns > * + * { border-left: 1px solid var(--rule); }
}

.column { padding: clamp(1.5rem, 2.6vw, 2.25rem) 0; }
@media (min-width: 820px) {
  .column { padding-inline: clamp(1.25rem, 2.4vw, 2rem); }
  .column:first-child { padding-left: 0; }
  .column:last-child { padding-right: 0; }
}
@media (max-width: 819px) {
  .column + .column { border-top: 1px solid var(--rule); }
}

.column h3 {
  font-family: var(--display);
  font-size: 21px; font-weight: 500; letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}
.column p { margin: 0; color: var(--text-soft); font-size: 16px; }

.status {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem;
  margin: clamp(1.75rem, 3vw, 2.5rem) 0 0;
  font-size: 16px; color: var(--text-soft);
}
.status b { font-weight: 600; color: var(--ink); }

/* ---------- facts + method ---------- */

.split { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); }
@media (min-width: 900px) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.sublabel {
  font-family: var(--display);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--haze-soft);
  margin: 0 0 0.5rem; padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--haze-ink);
}

.facts { margin: 0; }
.fact {
  display: grid; gap: 0.15rem 1.5rem;
  padding-block: 0.9rem;
  border-bottom: 1px solid rgba(27, 44, 99, 0.18);
}
@media (min-width: 520px) {
  .fact { grid-template-columns: 11rem minmax(0, 1fr); }
}
.fact dt { color: var(--haze-soft); font-size: 16px; }
.fact dd { margin: 0; font-weight: 600; font-size: 16px; }

.method { list-style: none; margin: 0; padding: 0; counter-reset: m; }
.method li {
  counter-increment: m;
  display: grid; grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.15rem 0.5rem;
  padding-block: 0.9rem;
  border-bottom: 1px solid rgba(27, 44, 99, 0.18);
}
.method li::before {
  content: "0" counter(m);
  font-family: var(--display); font-size: 14px; font-weight: 500;
  color: var(--haze-soft); padding-top: 0.2rem;
  grid-row: span 2;
}
.method b { font-weight: 600; font-size: 17px; }
.method span { font-size: 16px; color: var(--haze-soft); }

/* ---------- contact ---------- */

.contact-grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); }
}
.contact-intro p { color: var(--text-soft); margin: 0 0 1.25rem; max-width: 40ch; }
.contact-intro a { color: var(--ultramarine); text-underline-offset: 3px; }

.form { display: grid; gap: 1.25rem; }
.pair { display: grid; gap: 1.25rem; }
@media (min-width: 620px) { .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.field { display: grid; gap: 0.4rem; }
.field label { font-size: 14px; color: var(--text-soft); }

.field input, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 2px; padding: 0.8rem 0.9rem; width: 100%;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus, .field textarea:focus {
  border-color: var(--ultramarine); outline: none; background: #fff;
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #B03A2E; }

.trap {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.send { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.send small { font-size: 15px; color: var(--text-soft); }

.form-status { font-size: 15px; margin: 0; min-height: 1.3em; }
.form-status[data-state="ok"]    { color: var(--ultramarine); }
.form-status[data-state="error"] { color: #B03A2E; }

/* ---------- footer ---------- */

.footer { background: var(--ink); color: var(--bone); padding-block: 2.25rem; }
.footer .mark { color: var(--bone); }
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 1.25rem 2rem;
  align-items: center; justify-content: space-between;
}
.footer-legal { margin: 0; font-size: 15px; color: #9AA0AC; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-nav a { color: var(--bone); text-decoration: none; font-size: 15px; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Privacy page
   ========================================================================== */

.page-head { padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem); }
.page-head-inner { display: grid; gap: 1rem 3rem; align-items: end; }
@media (min-width: 820px) {
  .page-head-inner { grid-template-columns: minmax(0, 1fr) auto; }
}
.page-title {
  font-family: var(--display);
  font-size: clamp(2.6rem, 1.4rem + 4vw, 4.5rem);
  font-weight: 400; letter-spacing: -0.04em; line-height: 1;
  margin: 0 0 0.75rem;
}
.page-sub { margin: 0; color: var(--text-soft); max-width: 46ch; }
.updated { margin: 0; font-size: 15px; color: var(--text-soft); }

.doc { border-top: 1px solid var(--ink); padding-block: clamp(2.5rem, 5vw, 4rem); }
.doc-grid { display: grid; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
@media (min-width: 900px) { .doc-grid { grid-template-columns: 15rem minmax(0, 1fr); } }

.toc { position: sticky; top: 2rem; }
.toc p {
  font-family: var(--display); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-soft); margin: 0 0 0.75rem;
}
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { border-bottom: 1px solid var(--rule); }
.toc a {
  display: block; padding: 0.65rem 0; font-size: 16px;
  color: var(--ink); text-decoration: none;
}
.toc a:hover { color: var(--ultramarine); }

.doc-body { max-width: 62ch; }
.doc-body h2 {
  font-family: var(--display);
  font-size: clamp(1.4rem, 1.1rem + 0.9vw, 1.85rem);
  font-weight: 500; letter-spacing: -0.025em;
  margin: 2.75rem 0 0.75rem; scroll-margin-top: 2rem;
}
.doc-body h2:first-child { margin-top: 0; }
.doc-body p { color: var(--text-soft); margin: 0 0 1rem; }
.doc-body a { color: var(--ultramarine); text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
