/* Carademy: carademy.us
   Fonts: Fraunces and Inter, self-hosted (SIL Open Font License 1.1, see /fonts/LICENSE.txt). */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin-opsz-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin-opsz-italic.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #14213d;
  --ink-2: #2b3756;
  --muted: #4a5468;
  --paper: #eeeeee;
  --paper-2: #e3e7eb;
  --line: #d3d9df;
  --white: #fff;

  --primary: #015f93;       /* brand blue: buttons, links, adult learning (6.9:1 with white) */
  --primary-dark: #014a73;  /* hover */
  --primary-soft: #dcebf5;
  --accent: #fdc30a;        /* brand yellow: family learning, highlights. Never text or lines on a light ground
                               (1.4:1 on paper); ink on it is 9.9:1. */
  --accent-soft: #fbefc6;
  --focus: var(--ink);      /* focus ring; overridden on dark and coloured grounds below */

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 20px;
  --wrap: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
/* scroll-padding-top keeps link targets clear of the sticky header (81px; 110px on phones, where the nav wraps). */
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
@media (max-width: 640px) { html { scroll-padding-top: 128px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
/* The ring keeps at least 3:1 against the ground it sits on (WCAG 2.2, 1.4.11): ink on paper and white
   (13.8:1, 16:1), paper on the blue card and contact band (5.9:1), ink on the yellow card (9.9:1),
   yellow on the ink footer (9.9:1). */
.journey-adult, .contact { --focus: var(--paper); }
.site-footer { --focus: var(--accent); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 860px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px;
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 14px;
}
.section-title {
  font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 4.2vw, 3.1rem);
  letter-spacing: -.015em; font-variation-settings: "opsz" 96; max-width: 20ch;
}
.section-intro { font-size: 1.2rem; color: var(--ink-2); max-width: 62ch; margin-top: 18px; }
/* One concrete example under the approach intro: a link down to the three sample questions. */
.approach-example {
  max-width: 62ch; margin-top: 26px; padding: 18px 22px; background: var(--white);
  border: 1px solid var(--line); border-left: 6px solid var(--accent); border-radius: 14px; color: var(--ink-2);
}
.approach-example .journey-link { display: inline; white-space: nowrap; }
.fine { font-size: .9rem; color: var(--muted); margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .45em;
  padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  text-decoration: none; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 6px 18px -8px rgba(1,95,147,.7); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-link { padding-left: 6px; padding-right: 6px; color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--primary); }
.btn-link:hover { color: var(--primary); }
.btn-light { background: var(--paper); color: var(--ink); font-size: 1.1rem; }
.btn-light:hover { background: var(--white); transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover { transition: none; transform: none; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 16px; }
.wordmark {
  display: inline-flex; align-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 1.65rem; letter-spacing: -.02em;
  text-decoration: none; color: var(--ink); font-variation-settings: "opsz" 72;
}
.wordmark .dot { color: var(--primary); }
/* The logo is a full square (logo.svg), shown with rounded corners; scripts/render-images.mjs rounds the favicon to match. */
.wordmark .logo { flex: none; width: 56px; height: 56px; margin-right: 12px; border-radius: 22%; }
.nav { list-style: none; display: flex; align-items: center; gap: clamp(10px, 2.4vw, 30px); margin: 0; padding: 0; }
.nav a { text-decoration: none; font-weight: 500; font-size: .98rem; color: var(--ink-2); }
.nav a:hover { color: var(--primary); }
@media (max-width: 640px) {
  .header-row { height: auto; padding-top: 14px; padding-bottom: 12px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .wordmark .logo { width: 48px; height: 48px; margin-right: 10px; }
  .nav { gap: 18px; flex-wrap: wrap; }
  .nav a { font-size: .95rem; }
}
@media (max-width: 359px) {
  /* Keep the four links on one row at 320px: about 252px of text in 280px. */
  .header-row nav { align-self: stretch; }
  .nav { justify-content: space-between; gap: 8px; }
  .nav a { font-size: .9rem; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: clamp(24px, 5vw, 64px); }
.hero h1 {
  font-family: var(--serif); font-weight: 600; letter-spacing: -.025em;
  font-size: clamp(2.8rem, 7vw, 5.4rem); line-height: 1.02; font-variation-settings: "opsz" 144;
  margin-bottom: 26px;
}
.lead { font-size: clamp(1.15rem, 1.7vw, 1.32rem); color: var(--ink-2); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 34px; }
.hero-note { margin-top: 18px; font-size: .95rem; color: var(--muted); max-width: 36em; }
@media (max-width: 400px) { .hero-actions .btn-primary { padding-left: 16px; padding-right: 16px; font-size: .9rem; } } /* one line at 375px */
.hero-art { margin: 0; }
.hero-art svg { width: 100%; height: auto; overflow: visible; }

.life-path { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.2s .2s cubic-bezier(.6,.1,.2,1) forwards; }
.ms { opacity: 0; animation: pop .5s .6s ease-out forwards; }
.ms-1 { animation-delay: .75s; } .ms-2 { animation-delay: .9s; } .ms-3 { animation-delay: 1.05s; }
.ms-4 { animation-delay: 1.2s; } .ms-5 { animation-delay: 1.35s; }
.ms-label { opacity: 0; animation: fade .8s 1.5s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .life-path { animation: none; stroke-dashoffset: 0; }
  .ms, .ms-label { animation: none; opacity: 1; }
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; }
}
@media (max-width: 480px) {
  /* The illustration shrinks to phone width; larger label text keeps it near 11 to 15px on screen. */
  .ms-label text { font-size: 20px; }
  .ms-label text:last-child { font-size: 25px; }
  .ms-label text:nth-child(2) { transform: translateX(-24px); } /* "Life skills" clears the path */
}

/* ---------- Journeys ---------- */
.journeys { padding-bottom: var(--section); }
.journeys .section-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.journey-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.5vw, 28px); }
.journey {
  position: relative; border-radius: calc(var(--radius) + 6px); padding: clamp(28px, 4vw, 48px);
  color: var(--white); display: flex; flex-direction: column; min-height: 100%;
}
.journey-adult { background: var(--primary); }
.journey-family { background: var(--accent); color: var(--ink); }
.journey .eyebrow { color: rgba(255,255,255,.86); }
.journey h3 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  letter-spacing: -.015em; margin-bottom: 14px; font-variation-settings: "opsz" 120;
}
.journey p { color: rgba(255,255,255,.92); font-size: 1.08rem; max-width: 34em; }
.journey-art { width: 200px; margin-bottom: 26px; }
.journey .tags li { background: rgba(0,0,0,.16); color: var(--white); }
.journey .journey-link { color: var(--white); margin-top: auto; padding-top: 26px; text-decoration-color: var(--accent); }
.journey .journey-link:hover { color: var(--white); text-decoration-color: var(--white); }
/* The family card is yellow: dark text throughout. */
.journey-family .eyebrow { color: var(--ink-2); }
.journey-family p { color: var(--ink); }
.journey-family .tags li { background: rgba(20,33,61,.12); color: var(--ink); }
.journey-family .journey-link, .journey-family .journey-link:hover { color: var(--ink); text-decoration-color: var(--ink); }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 20px 0 0; }
.tags li {
  font-size: .86rem; font-weight: 600; padding: 6px 13px; border-radius: 999px;
  background: var(--paper-2); color: var(--ink-2);
}
.journey-link {
  display: inline-flex; gap: .4em; font-weight: 700; text-decoration: underline;
  text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--primary);
  color: var(--ink);
}
.journey-link:hover { color: var(--primary); }

@media (max-width: 820px) { .journey-grid { grid-template-columns: 1fr; } }

/* ---------- Purpose band ---------- */
.purpose { background: var(--ink); color: var(--paper); padding: var(--section) 0; text-align: center; }
.purpose h2 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(2.3rem, 5.4vw, 4.2rem);
  letter-spacing: -.02em; font-variation-settings: "opsz" 144; margin-bottom: 22px;
}
.purpose em { font-style: italic; color: var(--accent); }
.purpose p { font-size: clamp(1.15rem, 1.8vw, 1.35rem); color: #d8d4ca; max-width: 34em; margin: 0 auto; }

/* ---------- Approach ---------- */
.approach { padding: var(--section) 0; }
.approach .section-title { max-width: 24ch; }
.stages {
  list-style: none; margin: clamp(40px, 6vw, 64px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; position: relative;
}
.stages::before {
  content: ""; position: absolute; left: 26px; right: 10%; top: 26px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
}
.stages li { position: relative; }
.stage-num {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--ink); font-family: var(--serif); font-weight: 700;
  font-size: 1.4rem; margin-bottom: 20px;
}
.stages li:last-child .stage-num { background: var(--ink); color: var(--paper); }
.stages h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; }
.stages p { color: var(--muted); font-size: .98rem; }

@media (max-width: 900px) {
  .stages { grid-template-columns: 1fr; gap: 26px; }
  .stages::before { left: 26px; right: auto; top: 10px; bottom: 30px; width: 4px; height: auto;
    background: linear-gradient(180deg, var(--accent), var(--primary)); }
  .stages li { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; }
  .stage-num { grid-row: span 2; margin-bottom: 0; }
  .stages h3 { align-self: end; }
}

.sub-title {
  font-family: var(--serif); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin: clamp(64px, 9vw, 100px) 0 28px; letter-spacing: -.01em;
}
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pillar { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.pillar-icon { width: 34px; height: 34px; color: var(--primary); margin-bottom: 18px; }
.pillar h4 { font-size: 1.08rem; font-weight: 700; margin-bottom: 10px; }
.pillar p { color: var(--muted); font-size: .98rem; }
@media (max-width: 1000px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Products ---------- */
.products { padding: var(--section) 0; background: var(--paper-2); }
.product {
  background: var(--white); border-radius: calc(var(--radius) + 4px); padding: clamp(26px, 3.6vw, 44px);
  border: 1px solid var(--line);
}
.product h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.6rem, 2.8vw, 2.1rem); letter-spacing: -.01em; margin-bottom: 14px; }
@media (max-width: 380px) { .product h3 { font-size: 1.45rem; } } /* "BalanceTheBudget" fits a 320px screen */
.product > p, .product-main > p { color: var(--ink-2); }
.product-sub { font-style: italic; font-weight: 400; color: var(--primary); }
.product-feature {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 56px); align-items: start;
  margin-top: clamp(36px, 5vw, 56px); border-top: 6px solid var(--primary);
}
.feature-list { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.feature-list li { padding: 12px 0 12px 22px; position: relative; color: var(--ink-2); }
.feature-list li::before {
  content: ""; position: absolute; left: -7px; top: 20px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--primary);
}
.feature-list strong { color: var(--ink); }
.feature-note { display: block; margin-top: 4px; font-size: .92rem; color: var(--muted); }
/* A real screen and three sample questions; <details> opens without JavaScript. */
.product-demo {
  grid-column: 1 / -1; display: grid; grid-template-columns: 240px 1fr; gap: clamp(28px, 5vw, 64px);
  align-items: center; border-top: 1px solid var(--line); padding-top: clamp(28px, 4vw, 44px);
}
.phone-shot { margin: 0; }
.phone-shot img {
  width: 100%; height: auto; border-radius: 28px; background: var(--white);
  box-shadow: 0 0 0 6px var(--ink), 0 24px 44px -24px rgba(20,33,61,.6);
}
.phone-shot figcaption { margin-top: 18px; font-size: .88rem; color: var(--muted); text-align: center; }
.sample { max-width: 34em; }
.sample-title { font-family: var(--serif); font-weight: 600; font-size: clamp(1.35rem, 2.2vw, 1.6rem); letter-spacing: -.01em; margin-bottom: 8px; }
.sample-intro { color: var(--muted); margin-bottom: 18px; }
.sample-q { border: 1px solid var(--line); border-radius: 14px; background: var(--paper); margin-bottom: 12px; }
.sample-q summary {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px;
  padding: 14px 18px; cursor: pointer; font-weight: 600; list-style: none;
}
.sample-q summary::-webkit-details-marker { display: none; }
.sample-reveal { font-size: .88rem; color: var(--primary); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.sample-q[open] .sample-reveal { display: none; }
.sample-q summary:focus-visible { outline-offset: -3px; border-radius: 14px; } /* inside the card, clear of the answer */
.sample-q p { padding: 0 18px 14px; color: var(--primary); font-weight: 600; }
.sample-more { margin-top: 18px; }
.sample-more .journey-link { display: inline; } /* the arrow follows the text when the link wraps */
@media (max-width: 640px) {
  .product-demo { grid-template-columns: 1fr; }
  .phone-shot { max-width: 220px; margin: 0 auto; }
}
/* Card actions: a filled button, then a text link, wrapping on narrow screens. */
.product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 22px; }
/* The two BalanceTheBudget editions sit side by side, subtitles on their own line, actions level. */
.product-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.5vw, 28px); margin-top: clamp(18px, 2.5vw, 28px); }
.product-row .product { display: flex; flex-direction: column; align-items: flex-start; }
.product-row .product-sub { display: block; margin-top: 4px; }
.product-row .product-actions { margin-top: auto; padding-top: 22px; }
.product-federal { border-top: 6px solid var(--ink); }
.product-family { border-top: 6px solid var(--accent); }
.product-note { font-weight: 600; color: var(--ink); }
.product-roadmap { margin-top: clamp(18px, 2.5vw, 28px); border-style: dashed; border-top: 6px solid var(--line); }

.status { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; }
.status-live { color: #17654a; }
.status-live .status-dot { background: #1f9d6c; box-shadow: 0 0 0 4px rgba(31,157,108,.18); }
.status-pilot { color: var(--primary); }
.status-pilot .status-dot { background: var(--primary); box-shadow: 0 0 0 4px rgba(1,95,147,.18); }
.status-beta { color: #7a5a12; }
.status-beta .status-dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(253,195,10,.3); }
.status-roadmap { color: var(--muted); }
.status-roadmap .status-dot { background: #9aa5b4; }

@media (max-width: 880px) {
  .product-feature, .product-row { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Trust ---------- */
.trust { padding: var(--section) 0; }
.commitments { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 5vw, 72px); margin-top: clamp(32px, 5vw, 52px); }
.commitments > div { border-top: 1px solid var(--line); padding: 28px 0; }
.commitments h3 { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; margin-bottom: 10px; letter-spacing: -.005em; }
.commitments p { color: var(--muted); }
@media (max-width: 760px) { .commitments { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about { padding: var(--section) 0; background: var(--primary-soft); }
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about-grid > div > p:not(.eyebrow):not(.section-intro) { color: var(--ink-2); max-width: 60ch; }
.about .section-intro { margin-bottom: 1em; }
.mv { margin: 0; display: grid; gap: 18px; }
.mv-item { background: var(--white); border-radius: var(--radius); padding: 28px; border: 1px solid #c3d8e6; }
.mv dt { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); margin-bottom: 10px; }
.mv dd { margin: 0; font-family: var(--serif); font-size: 1.3rem; line-height: 1.4; font-variation-settings: "opsz" 36; }
.principle { margin: clamp(56px, 8vw, 88px) 0 0; padding: 0; text-align: center; }
.principle p {
  font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(1.45rem, 2.8vw, 2.1rem);
  line-height: 1.35; color: var(--ink); font-variation-settings: "opsz" 72;
}
.principle p::before { content: "“"; color: var(--primary); }
.principle p::after { content: "”"; color: var(--primary); }
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { background: var(--primary); color: var(--white); padding: clamp(56px, 8vw, 88px) 0; }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.contact h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 10px; letter-spacing: -.015em; }
.contact p { color: rgba(255,255,255,.9); max-width: 40em; font-size: 1.12rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfd3dc; padding: 64px 0 36px; }
.wordmark-light { color: var(--paper); }
.wordmark-light .dot { color: var(--accent); }
.wordmark-light .logo { width: 64px; height: 64px; margin-right: 14px; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px 64px; flex-wrap: wrap; }
.footer-tag { margin-top: 12px; font-size: .98rem; color: #b6bccb; }
/* Two headed columns of links, stacked vertically (as on passthetest.us/home); they stay side by side on phones. */
.footer-nav { display: grid; grid-template-columns: repeat(2, max-content); gap: 0 clamp(48px, 9vw, 128px); }
.footer-h { margin: 4px 0 0; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #a8afc0; }
.footer-links { list-style: none; display: grid; gap: 4px; padding: 0; margin: 12px 0 0; }
.footer-links a { display: inline-block; padding: 5px 0; text-decoration: none; color: var(--paper); font-weight: 500; }
.footer-links a:hover { color: var(--accent); }
.footer-legal { margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; color: #a8afc0; }
.footer-legal p { margin-bottom: 6px; }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound h1 { font-family: var(--serif); font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 16px; }
.notfound p { color: var(--ink-2); margin-bottom: 28px; }

/* ---------- Legal pages ---------- */
.legal { padding: clamp(40px, 6vw, 80px) 0 var(--section); }
.legal-wrap { max-width: 760px; }
.legal h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.4rem, 5vw, 3.4rem); letter-spacing: -.02em; font-variation-settings: "opsz" 120; }
.legal-meta { color: var(--muted); margin: 12px 0 36px; }
.legal h2 { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; margin: 44px 0 12px; letter-spacing: -.005em; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--primary); text-underline-offset: 3px; }
.legal-summary { background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--primary); border-radius: var(--radius); padding: 26px 30px; }
.legal-summary h2 { margin-top: 0; font-size: 1.2rem; }
.legal-summary ul { margin-bottom: 0; }
.footer-links a[aria-current="page"] { color: var(--accent); }
.notfound .eyebrow { color: var(--primary); margin-bottom: 14px; }
