/* ==========================================================
   GET DEBATING: site styles (shared by every page)

   1. SETTINGS   colours and fonts. Change the palette here.
   2. BASE       page defaults, headings, links
   3. LAYOUT     wrap, sections, colour bands
   4. PARTS      logo, buttons, header, footer, cards,
                 photo placeholders, quotes, forms
   5. HOME PAGE  hero and home-only sections
   ========================================================== */


/* ---------- 1. SETTINGS ---------------------------------- */
/* Layout idea: a tidy software-site grid on cream, with poster-size
   headlines and hard-edged colour blocks that carry an offset shadow. */

:root {
  /* PALETTE: change these four and the whole site follows. */
  --ink:    #14213D;   /* navy: text, borders, dark bands   */
  --coral:  #FF5A3C;   /* main action colour                */
  --cream:  #FFF6E5;   /* page background                   */
  --yellow: #FFC93C;   /* accent and second action colour   */
  --white:  #FFFFFF;

  /* Mixed from the palette above. No need to edit. */
  --ink-soft:   color-mix(in srgb, var(--ink) 80%, var(--cream));
  --cream-deep: color-mix(in srgb, var(--cream) 90%, var(--ink));
  --line:       color-mix(in srgb, var(--ink) 18%, transparent);

  /* FONTS: headline font and body font. */
  --font-display: "Bricolage Grotesque", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Atkinson Hyperlegible", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Shapes and spacing */
  --wrap:    1180px;
  --gutter:  clamp(1.125rem, 4vw, 2.5rem);
  --border:  3px;
  --radius:  4px;
  --section: clamp(3.5rem, 8vw, 6.5rem);

  color-scheme: light;
}


/* ---------- 2. BASE -------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

[hidden] { display: none !important; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.75rem, 10.5vw, 7rem); line-height: 0.95; }
h2 { font-size: clamp(2rem, 5.2vw, 3.5rem);   line-height: 1; }
h3 { font-size: 1.5rem; line-height: 1.1; letter-spacing: -0.015em; }

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; }

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 3px; }

:focus-visible {
  outline: 3px solid var(--focus, var(--ink));
  outline-offset: 3px;
  border-radius: 2px;
}

:target { scroll-margin-top: 8rem; }   /* clears the sticky header */

.lead { font-size: clamp(1.125rem, 2.2vw, 1.3125rem); line-height: 1.5; max-width: 34em; }
.measure { max-width: 38em; }

.kicker {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink); color: var(--cream); font-weight: 700;
}
.skip-link:focus { top: 1rem; }

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


/* ---------- 3. LAYOUT ------------------------------------ */

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.6); }

/* Colour bands */
.on-white  { background: var(--white); }
.on-coral  { background: var(--coral); }
.on-yellow { background: var(--yellow); }
.on-ink    { background: var(--ink); color: var(--cream); --focus: var(--yellow); }

.section-head {
  display: flex; flex-direction: column; gap: 0.75rem;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}
.section-head--row { gap: 1.25rem; }
@media (min-width: 800px) {
  .section-head--row { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .section-head--row > .text-link { flex: none; }
}

.stack { display: flex; flex-direction: column; gap: 1.25rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.875rem 1rem; }


/* ---------- 4. PARTS ------------------------------------- */

/* Logo (image files in images/logo/). The height sets the size; the width follows. */
.wordmark { display: inline-flex; flex: none; }
.wordmark img { width: auto; height: 6rem; }
@media (max-width: 599px) { .site-header .wordmark img { height: 4.75rem; } }   /* phones: keeps logo, button and Menu on one row */
.wordmark--large img { height: 8rem; }        /* footer */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem;
  padding: 0.7rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.0625rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  background: var(--coral);
  border: var(--border) solid var(--edge, var(--ink));
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--edge, var(--ink));
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover  { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--edge, var(--ink)); }
.btn:active { transform: translate(2px, 2px);   box-shadow: 2px 2px 0 var(--edge, var(--ink)); }

.btn--fund  { background: var(--yellow); }                       /* second action */
.btn--ink   { background: var(--ink); color: var(--cream); box-shadow: 4px 4px 0 var(--cream); }
.btn--ink:hover  { box-shadow: 6px 6px 0 var(--cream); }
.btn--ink:active { box-shadow: 2px 2px 0 var(--cream); }
.btn--plain { background: transparent; box-shadow: none; }
.btn--plain:hover, .btn--plain:active { box-shadow: none; transform: none; background: color-mix(in srgb, var(--ink) 10%, transparent); }
.btn--small { min-height: 2.75rem; padding: 0.5rem 0.95rem; font-size: 0.9375rem; box-shadow: 3px 3px 0 var(--edge, var(--ink)); }

.on-ink .btn { --edge: var(--cream); }

.text-link { font-weight: 700; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--cream);
  border-bottom: var(--border) solid var(--ink);
}
.site-header__bar {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0 0.75rem;
  min-height: 4.25rem;
  padding-block: 0.125rem;
}
.site-header .wordmark { margin-right: auto; order: 1; }
.header-book { order: 2; }
.nav-toggle  { order: 3; }
.site-nav    { order: 4; flex-basis: 100%; }

.header-book { white-space: nowrap; }

.nav-toggle {
  display: none;
  min-height: 2.75rem;
  padding: 0.5rem 0.85rem;
  font: 700 0.9375rem/1 var(--font-body);
  color: var(--ink);
  background: transparent;
  border: var(--border) solid var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
}
.js .nav-toggle { display: inline-flex; align-items: center; }
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }

.site-nav ul {
  display: flex; flex-direction: column;
  padding: 0.5rem 0 1.25rem;
  border-top: 1px solid var(--line);
}
.site-nav a:not(.btn) {
  display: block;
  padding: 0.8rem 0;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.site-nav a:not(.btn):hover { text-decoration: underline; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--coral); }

@media (min-width: 1160px) {
  .site-header .wordmark { margin-right: 0; }
  .js .nav-toggle, .nav-toggle { display: none; }
  .js .site-nav, .site-nav { display: block; order: 2; flex: 1 1 auto; }
  .header-book { order: 3; }
  .site-nav ul {
    flex-direction: row; justify-content: center; gap: 0 1.35rem;
    padding: 0; border: 0;
  }
  .site-nav a:not(.btn) { padding: 0.5rem 0; border: 0; font-size: 0.9375rem; }
}

/* Photo placeholders.
   To swap in a real photo: delete the <div class="photo-slot">…</div>
   and un-comment the <img> line that sits just under it. */
.photo {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--white);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius);
}
.photo--4x3 { aspect-ratio: 4 / 3; }
.photo--1x1 { aspect-ratio: 1 / 1; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

.photo-slot {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.35rem;
  padding: 1rem;
  text-align: center;
  background: repeating-linear-gradient(-45deg, var(--cream) 0 16px, var(--cream-deep) 16px 32px);
}
.photo-slot__kicker {
  padding: 0.2rem 0.6rem;
  background: var(--ink); color: var(--cream);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
}
.photo-slot__what { max-width: 24em; font-weight: 700; line-height: 1.3; }
.photo-slot__size { font-size: 0.9375rem; font-variant-numeric: tabular-nums; }

/* Text placeholders: anything still waiting for real content. */
.ph {
  padding: 0.05em 0.35em;
  background: color-mix(in srgb, var(--yellow) 45%, transparent);
  outline: 2px dashed currentColor;
  outline-offset: -1px;
  border-radius: 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.ph-note { font-size: 0.875rem; opacity: 0.85; }

/* Cards */
.card-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr));
}
.card-grid--three { grid-template-columns: 1fr; }      /* three cards: stacked, then one row */
@media (min-width: 860px) { .card-grid--three { grid-template-columns: repeat(3, 1fr); } }
.card-grid--two { grid-template-columns: 1fr; }        /* two cards: stacked, then side by side */
@media (min-width: 760px) { .card-grid--two { grid-template-columns: repeat(2, 1fr); } }
.card {
  position: relative;
  display: flex; flex-direction: column; gap: 0.9rem;
  padding: 1.5rem 1.35rem 1.35rem;
  background: var(--white);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--ink);
}
.card--featured { background: var(--yellow); }
.card__flag {
  position: absolute; top: -0.95rem; left: 1rem;
  padding: 0.25rem 0.6rem;
  background: var(--coral);
  border: 2px solid var(--ink);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  transform: rotate(-2deg);
}
.card__link { margin-top: auto; padding-top: 0.25rem; font-weight: 700; }

/* Core course: the big featured card (home page and For schools) */
.card.card--core {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: 8px 8px 0 var(--ink);
  margin: 0 8px 8px 0;
}
.card.card--core h3 { font-size: clamp(2rem, 4.4vw, 3rem); }
.core__grid { display: grid; gap: 1.75rem; }
@media (min-width: 860px) { .core__grid { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; } }
.card--core .ticks { gap: 0.75rem; }

/* "Other options" under the core course */
.other-options { display: grid; gap: 1.5rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.other-options__head { display: grid; gap: 0.75rem; max-width: 46rem; }
.other-options__head h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
.other-options .programme h3 { font-size: clamp(1.5rem, 2.6vw, 1.75rem); }   /* For schools: smaller than the core course */

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chips li {
  padding: 0.2rem 0.55rem;
  font-size: 0.8125rem; font-weight: 700;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
}
.card--featured .chips li { background: var(--white); }
.chips li.ph { border-style: dashed; border-radius: 999px; outline: 0; background: transparent; }

/* Big quote */
.quote { margin: 0; position: relative; padding-top: clamp(3.5rem, 8vw, 5.5rem); }
.quote::before {
  content: "\201C";
  position: absolute; top: 0; left: -0.04em;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(7rem, 16vw, 11rem); line-height: 0.8;
  color: var(--yellow);
}
.quote blockquote { margin: 0; }
.quote blockquote p {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.625rem, 4.4vw, 3rem); line-height: 1.12; letter-spacing: -0.02em;
  text-wrap: balance;
}
.quote figcaption { margin-top: 1.25rem; font-weight: 700; }

/* Logo strip */
.logo-strip {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(45%, 9.5rem), 1fr));
}
.logo-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.15rem;
  aspect-ratio: 2 / 1;
  padding: 0.5rem;
  text-align: center;
  font-size: 0.8125rem; font-weight: 700; line-height: 1.25;
  border: 2px dashed var(--ink);
  border-radius: var(--radius);
  background: repeating-linear-gradient(-45deg, transparent 0 16px, color-mix(in srgb, var(--ink) 5%, transparent) 16px 32px);
}
.logo-slot small { font-weight: 400; font-variant-numeric: tabular-nums; }
.logo-slot img { max-height: 100%; object-fit: contain; }

/* Closing action panel (used at the end of every page) */
.action-panel {
  display: grid; gap: 1.5rem;
  padding: clamp(1.75rem, 5vw, 3.5rem);
  background: var(--yellow);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--ink);
}
@media (min-width: 900px) {
  .action-panel { grid-template-columns: 1.4fr 1fr; align-items: center; gap: 3rem; }
  .action-panel .actions { justify-content: flex-end; }
}

/* Forms */
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-weight: 700; font-size: 0.9375rem; }
.input {
  width: 100%;
  min-height: 3rem;
  padding: 0.6rem 0.8rem;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius);
}
.on-ink .input { border-color: var(--cream); }
.form-status { min-height: 1.5em; font-size: 0.9375rem; font-weight: 700; }

/* Footer */
.site-footer { padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.site-footer__grid { display: grid; gap: 2.5rem; }
@media (min-width: 720px)  { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .site-footer__grid { grid-template-columns: 1.3fr 0.8fr 1fr 1.3fr; gap: 3rem; } }

.site-footer h2 {
  margin-bottom: 0.9rem;
  font-family: var(--font-body);
  font-size: 0.875rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--yellow);
}
.site-footer li + li { margin-top: 0.5rem; }
.site-footer a { text-decoration-thickness: 1px; }
.site-footer a:hover { text-decoration-thickness: 2px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }
.site-footer__nonprofit { font-weight: 700; }
.newsletter { display: flex; flex-direction: column; gap: 0.75rem; }
.newsletter__row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.newsletter__row .input { flex: 1 1 12rem; }
.site-footer__base {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between;
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--cream) 30%, transparent);
  font-size: 0.9375rem;
}


/* ---------- 5. HOME PAGE --------------------------------- */

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

.motion-tag {                      /* "This house believes" sticker */
  display: block; width: fit-content;
  margin-bottom: clamp(0.9rem, 2vw, 1.4rem);
  padding: 0.4em 0.75em;
  background: var(--coral);
  border: var(--border) solid var(--ink);
  font-family: var(--font-body);
  font-size: clamp(0.875rem, 1.9vw, 1.25rem);
  font-weight: 700; line-height: 1.1; letter-spacing: 0.09em; text-transform: uppercase;
  transform: rotate(-2deg);
  transform-origin: left center;
}
.hl {                              /* yellow block behind the key words */
  display: inline-block;
  padding: 0.04em 0.14em 0.1em;
  margin-top: 0.08em;
  background: var(--yellow);
  border: var(--border) solid var(--ink);
  line-height: 0.95;
  transform: rotate(-1.5deg);
}

.hero__grid {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  margin-top: clamp(1.75rem, 4vw, 3rem);
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 5fr 7fr; align-items: start; }
}
.photo--hero { box-shadow: 8px 8px 0 var(--coral); margin: 0 8px 8px 0; }
@media (min-width: 900px) { .photo--hero { box-shadow: 14px 14px 0 var(--coral); margin: 0 14px 14px 0; } }

/* Why debating matters */
.why__grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 900px) { .why__grid { grid-template-columns: 1fr 1fr; align-items: end; } }

.blocks { display: grid; gap: 0; margin-top: clamp(2rem, 5vw, 3.5rem); border: var(--border) solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.blocks li {
  padding: clamp(1.25rem, 3.5vw, 2.25rem);
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.75rem, 3.6vw, 2.75rem); line-height: 1; letter-spacing: -0.025em;
}
.blocks li + li { border-top: var(--border) solid var(--ink); }
.blocks li:nth-child(1) { background: var(--coral); }
.blocks li:nth-child(2) { background: var(--yellow); }
.blocks li:nth-child(3) { background: var(--ink); color: var(--cream); }
@media (min-width: 760px) {
  .blocks { grid-template-columns: repeat(3, 1fr); }
  .blocks li + li { border-top: 0; border-left: var(--border) solid var(--ink); }
}

/* How it works */
.steps { display: grid; gap: 2rem; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.steps li {
  counter-increment: step;
  display: flex; flex-direction: column; gap: 0.7rem;
  padding-top: 1.25rem;
  border-top: var(--border) solid var(--ink);
}
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 3.25rem; height: 3.25rem;
  background: var(--yellow);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 800; font-size: 1.75rem; line-height: 1;
}

/* Impact numbers (hidden until real figures are supplied) */
.impact__grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.impact__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.5rem, 7vw, 4.5rem); line-height: 1; font-variant-numeric: tabular-nums; }

/* Small pop-up message */
.toast {
  position: fixed; left: 50%; bottom: 1.25rem; z-index: 90;
  transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 2rem);
  padding: 0.75rem 1rem;
  background: var(--ink); color: var(--cream);
  border: 2px solid var(--cream);
  border-radius: var(--radius);
  font-weight: 700; font-size: 0.9375rem;
}


/* ---------- 6. INNER PAGES ------------------------------- */

/* Page heading band */
.page-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem); border-bottom: var(--border) solid var(--ink); }
.page-hero .wrap { display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }
.page-hero h1 { font-size: clamp(2.5rem, 8.4vw, 5.25rem); max-width: 13em; }
.on-ink .hl    { color: var(--ink); border-color: var(--cream); }
.on-yellow .hl { background: var(--coral); }
.on-coral .btn--ink { box-shadow: 4px 4px 0 var(--cream); }
.jump { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-weight: 700; }

/* Running text */
.prose { max-width: 40em; }
.prose > * + * { margin-top: 1rem; }
.prose h2 { margin-top: 2.5rem; font-size: clamp(1.5rem, 3.4vw, 2.125rem); }
.prose ul { list-style: disc; padding-left: 1.25rem; }
.prose li + li { margin-top: 0.35rem; }

.ph-block {
  display: block;
  padding: 0.8rem 1rem;
  background: color-mix(in srgb, var(--yellow) 28%, transparent);
  border: 2px dashed currentColor;
  border-radius: var(--radius);
}

.split { display: grid; gap: 2rem; }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; } }

.photo--4x5 { aspect-ratio: 4 / 5; }
.photo--offset { box-shadow: 8px 8px 0 var(--coral); margin: 0 8px 8px 0; }

/* Who we are */
.founder { display: grid; gap: 2rem; }
@media (min-width: 860px) { .founder { grid-template-columns: 4fr 7fr; gap: 4rem; align-items: start; } }
.coach { padding: 1rem 1rem 1.25rem; gap: 0.5rem; }
.coach .photo { margin-bottom: 0.5rem; border-width: 2px; }
.coach__uni { font-weight: 700; }

/* For schools */
.programme { padding: clamp(1.5rem, 3.5vw, 2.25rem); gap: 1.1rem; }
.programme h3 { font-size: clamp(1.75rem, 3.6vw, 2.25rem); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 0.45rem 1.25rem; margin: 0; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
.ticks { display: grid; gap: 0.4rem; }
.ticks li { position: relative; padding-left: 1.5rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.45em;
  width: 0.7rem; height: 0.7rem;
  background: var(--coral); border: 2px solid var(--ink);
}

.faq { max-width: 50rem; }
.faq details { border-top: var(--border) solid var(--ink); }
.faq details:last-child { border-bottom: var(--border) solid var(--ink); }
.faq summary {
  position: relative;
  padding: 1.1rem 3rem 1.1rem 0;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.1875rem, 2.6vw, 1.5rem); line-height: 1.15;
  list-style: none; cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center;
  width: 2rem; height: 2rem;
  background: var(--yellow); border: 2px solid var(--ink); border-radius: var(--radius);
  font-size: 1.375rem; line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq__answer { padding: 0 0 1.4rem; max-width: 40em; }
.faq__answer > * + * { margin-top: 0.75rem; }

/* Forms */
.form-card {
  display: grid; gap: 1.25rem;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  background: var(--white);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--ink);
}
.form-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
select.input { appearance: auto; }
textarea.input { min-height: 7.5rem; resize: vertical; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 0.5rem; font-weight: 700; font-size: 0.9375rem; }
.choices { display: grid; gap: 0.5rem; }
@media (min-width: 640px) { .choices { grid-template-columns: 1fr 1fr; } }
.choice {
  display: flex; align-items: center; gap: 0.65rem;
  min-height: 3rem;
  padding: 0.5rem 0.8rem;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
}
.choice input { width: 1.2rem; height: 1.2rem; margin: 0; accent-color: var(--ink); }
.choice:has(input:checked) { background: var(--yellow); }
.choice:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
.choice--wide { grid-column: 1 / -1; }
.field__hint { font-size: 0.875rem; }
.field__error { font-size: 0.875rem; font-weight: 700; }
.field__error::before { content: "! "; }
.input[aria-invalid="true"] { box-shadow: 0 0 0 3px var(--coral); }

/* Sponsor us */
.logo-wall { grid-template-columns: repeat(auto-fit, minmax(min(45%, 11rem), 1fr)); }

/* Schools and reviews */
.school-list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr)); }
.school {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem;
  padding: 1rem 1.1rem;
  background: var(--white);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius);
}
.school__name { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; line-height: 1.15; }
.badge {
  margin-top: 0.35rem;
  padding: 0.15rem 0.55rem;
  background: var(--yellow);
  border: 2px solid var(--ink);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.quote-group + .quote-group { margin-top: clamp(2.5rem, 6vw, 4rem); }
.quote-group h2 { margin-bottom: 1.5rem; }
.quote-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.quote-card { margin: 0; }
.quote-card::before {
  content: "\201C";
  height: 1.5rem;
  font-family: var(--font-display); font-weight: 800; font-size: 4rem; line-height: 1;
  color: var(--coral);
}
.quote-card blockquote { margin: 0; font-size: 1.1875rem; font-weight: 700; line-height: 1.4; }
.quote-card figcaption { margin-top: auto; font-size: 0.9375rem; }

/* Next steps: motion generator */
.generator { display: grid; gap: 1.75rem; }
@media (min-width: 940px) { .generator { grid-template-columns: 5fr 3fr; align-items: start; } }
.generator__main { display: grid; gap: 1.25rem; }
.filters { display: grid; gap: 1rem; }
@media (min-width: 560px) { .filters { grid-template-columns: 1fr 1fr; } }
.motion-card {
  display: flex; flex-direction: column; gap: 1.25rem;
  min-height: 15rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--ink); color: var(--cream);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--coral);
  margin: 0 8px 8px 0;
}
.motion-card__text {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.75rem, 4.6vw, 3rem); line-height: 1.05; letter-spacing: -0.025em;
  text-wrap: balance;
}
.motion-card .chips { margin-top: auto; }
.motion-card .chips li { background: transparent; border-color: var(--cream); }
.motion-card__side { font-weight: 700; }
.motion-card__side strong { display: inline-block; padding: 0.1rem 0.55rem; background: var(--yellow); color: var(--ink); }
.btn--big { min-height: 4rem; padding-inline: 2rem; font-size: 1.25rem; }
.tool { gap: 1rem; }
.tool h3 { font-size: 1.25rem; }
.timer__display {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3rem, 9vw, 4.25rem); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.timer.is-done .timer__display { width: fit-content; padding: 0 0.15em; background: var(--coral); }
.timer__row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; }
.timer__row .field { flex: 1 1 7rem; }

/* Blog */
.post-list { display: grid; gap: 1.75rem; max-width: 48rem; }
.post-card h2 { font-size: clamp(1.5rem, 3.6vw, 2rem); }
.post-card h2 a { text-decoration: none; }
.post-card h2 a:hover { text-decoration: underline; }
.post { max-width: 44rem; margin-inline: auto; }
.post__head { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.post__head h1 { font-size: clamp(2.25rem, 7vw, 4rem); }
.post__meta { font-weight: 700; }
.post .photo { margin-bottom: 2rem; }
.post-body { white-space: pre-line; font-size: 1.125rem; line-height: 1.65; }
.post-body.is-formatted { white-space: normal; }
.post-body.is-formatted > * + * { margin-top: 1.1rem; }
.post-body h2 { margin-top: 2.25rem; font-size: clamp(1.5rem, 3.4vw, 2rem); }
.post-body ul { list-style: disc; padding-left: 1.25rem; }
.post-body li + li { margin-top: 0.35rem; }
.post__back { margin-top: 2.5rem; font-weight: 700; }


/* ---------- 7. PRINT ------------------------------------ */
@media print {
  .site-header, .site-footer, .skip-link, .toast, .no-print, .btn { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .card { box-shadow: none; break-inside: avoid; }
}


/* ---------- Reduced motion -------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover, .btn:active { transform: none; }
}
