/* ============================================================
   So French! — ingehouden tricolore
   Logo: BioRhyme Expanded 700. Koppen: BioRhyme 400.
   Tekst en interface: Instrument Sans.
   ============================================================ */

:root {
  --bg:            #EDEBE4;
  --bg-alt:        #E4E2D9;
  --surface:       #F6F5F0;
  --band-blue:     #E2E5EC;
  --band-red:      #EEE4E1;

  --ink:           #101C33;
  --ink-2:         #47536E;
  --ink-3:         #7A8298;
  --line:          #D2CFC4;
  --line-strong:   #B4B0A2;

  --rouge:         #C0302A;
  --rouge-text:    #A82820;
  --bleu:          #2F4B9B;
  --bleu-soft:     #7C8CB8;

  --deep:          #0C1626;
  --deep-2:        #142137;
  --deep-fg:       #ECEAE2;
  --deep-fg-2:     #9BA6BC;
  --deep-rouge:    #E4544A;

  --display: "BioRhyme", "Rockwell", Georgia, serif;
  --logo:    "BioRhyme Expanded", "Rockwell", Georgia, serif;
  --sans:    "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --measure: 63ch;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --maxw: 1180px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1220; --bg-alt: #0F1829; --surface: #131E32;
    --band-blue: #101B2F; --band-red: #1B1622;
    --ink: #E9E7DF; --ink-2: #A7B0C4; --ink-3: #79839A;
    --line: #22304A; --line-strong: #33425F;
    --rouge: #E4544A; --rouge-text: #F0776C;
    --bleu: #8AA0DE; --bleu-soft: #4A5C8C;
    --deep: #05090F; --deep-2: #0C1626;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

h1, h2, h3, h4, .disp {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.14;
  text-wrap: balance;
  margin: 0;
}
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--rouge); outline-offset: 3px; }

/* ---------- layout ---------- */

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
main { display: block; }
.sec { padding: clamp(2.5rem, 5.5vw, 4.5rem) 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.sec-head h2 { font-size: clamp(1.45rem, 2.5vw, 2.05rem); }
.sec-head .more,
.more {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--rouge-text); text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px;
}

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--rouge-text); }

.tricolore { display: flex; height: 3px; width: 100%; }
.tricolore i { display: block; height: 100%; }
/* Lighter than the old --bleu/--line-strong/--rouge trio: the muted grey
   middle band read as smudge, not white, so the strip didn't say "flag". */
.tricolore i:nth-child(1) { flex: 30; background: #4A6BC4; }
.tricolore i:nth-child(2) { flex: 33; background: var(--deep-fg); }
.tricolore i:nth-child(3) { flex: 37; background: var(--deep-rouge); }
.tricolore.on-deep i:nth-child(1) { background: #4A6BC4; }
.tricolore.on-deep i:nth-child(2) { background: var(--deep-fg); }
.tricolore.on-deep i:nth-child(3) { background: var(--deep-rouge); }

.swipe {
  background-image: linear-gradient(transparent 76%, var(--deep-rouge) 76%, var(--deep-rouge) 94%, transparent 94%);
  background-repeat: no-repeat;
}

/* ---------- buttons ---------- */

.btn, button[type="submit"] {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--sans); font-size: 0.88rem; font-weight: 600;
  padding: 0.72rem 1.25rem;
  border: 1.5px solid currentColor; border-radius: 999px;
  background: none; color: inherit; text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.btn:hover, button[type="submit"]:hover { transform: translateY(-1px); }
.btn-solid, button[type="submit"] { background: var(--rouge); border-color: var(--rouge); color: #FFF7F5; }
.btn-solid:hover, button[type="submit"]:hover { background: var(--rouge-text); border-color: var(--rouge-text); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-on-deep { color: var(--deep-fg); }
.btn-on-deep:hover { background: var(--deep-fg); color: var(--deep); }

/* ---------- header ---------- */

.topbar-outer { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); }
.topbar {
  max-width: var(--maxw); margin: 0 auto; padding: 0.8rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap;
}
.wordmark {
  font-family: var(--logo); font-weight: 700; letter-spacing: -0.005em;
  font-size: clamp(0.95rem, 2.2vw, 1.3rem); line-height: 1;
  text-decoration: none; color: var(--ink); white-space: nowrap;
  display: inline-flex; align-items: baseline; gap: 0.14em;
}
.wordmark .bang { color: var(--rouge); font-size: 1.22em; line-height: 0.8; display: inline-block; transform: rotate(7deg) translateY(0.03em); }
.nav { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.nav a {
  text-decoration: none; font-size: 0.86rem; font-weight: 500; letter-spacing: 0.04em;
  color: var(--ink-2); border-bottom: 2px solid transparent; padding-bottom: 0.15rem;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current] { color: var(--ink); border-bottom-color: var(--rouge); font-weight: 600; }
.search { display: flex; align-items: center; gap: 0.5rem; border-bottom: 1.5px solid var(--line-strong); padding-bottom: 3px; }
.search input { border: 0; background: none; font: inherit; font-size: 0.85rem; color: var(--ink); width: 8.5rem; padding: 0; }
.search input::placeholder { color: var(--ink-3); }
.search input:focus { outline: none; }
.search:focus-within { border-bottom-color: var(--rouge); }
.search button { border: 0; background: none; padding: 0; cursor: pointer; color: var(--ink-3); display: grid; place-items: center; }
.search button:hover { color: var(--rouge-text); }

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

.hero { position: relative; background: var(--deep); color: var(--deep-fg); overflow: hidden; }
.hero-flag { position: absolute; inset: 0; display: flex; pointer-events: none; }
.hero-flag i:nth-child(1) { flex: 30; background: linear-gradient(180deg, rgba(58,92,190,.30), rgba(58,92,190,.06)); }
.hero-flag i:nth-child(2) { flex: 33; background: linear-gradient(180deg, rgba(236,234,226,.10), rgba(236,234,226,.02)); }
.hero-flag i:nth-child(3) { flex: 37; background: linear-gradient(180deg, rgba(200,48,42,.30), rgba(200,48,42,.05)); }
.hero-inner { position: relative; max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) var(--gutter) clamp(2.5rem, 6vw, 4.5rem); }
.hero h1 { font-size: clamp(2rem, 5vw, 3.9rem); line-height: 1.12; margin: 1.1rem 0 0; max-width: 17ch; }
.hero h1 .mark { color: var(--deep-rouge); }
.hero .lede { margin-top: 1.4rem; max-width: 46ch; font-size: 1.06rem; color: var(--deep-fg-2); }
.hero .lede p { margin: 0 0 0.7rem; }
.hero .eyebrow { color: var(--deep-rouge); }
.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.9rem; }

.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-copy { min-width: 0; }

.hero-latest {
  min-width: 0; background: rgba(236,234,226,.05); border: 1px solid rgba(236,234,226,.14);
  border-radius: 18px; padding: clamp(1.5rem, 2.6vw, 2.1rem);
}
.hero-latest .metaline { margin-top: 0.7rem; color: var(--deep-fg-2); }
.hero-latest .metaline .n { color: var(--deep-rouge); }
.hero-latest .metaline .sep { background: rgba(236,234,226,.25); }
.hero-latest h2 { font-size: clamp(1.2rem, 2.2vw, 1.55rem); line-height: 1.22; margin: 0.6rem 0 0; }
.hero-latest h2 a { color: var(--deep-fg); text-decoration: none; }
.hero-latest h2 a:hover { color: var(--deep-rouge); }
.hero-latest .player { margin-top: 1.3rem; }
.hero-latest .player button { background: rgba(236,234,226,.08); border: 1px solid rgba(236,234,226,.2); }
.hero-latest .player button:hover { background: var(--deep-rouge); border-color: var(--deep-rouge); }
.hero-latest .player .play { border-color: var(--deep-fg); }
.hero-latest .audio { background: #fff; border-radius: 10px; padding: 2px; }
.hero-latest-notes {
  display: inline-block; margin-top: 1rem; font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.04em; color: var(--deep-fg-2); text-decoration: none; border-bottom: 1.5px solid transparent;
}
.hero-latest-notes:hover { color: var(--deep-fg); border-bottom-color: var(--deep-rouge); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-latest { margin-top: 0.5rem; }
}

.hero-foot {
  position: relative; border-top: 1px solid rgba(236,234,226,.14);
  max-width: var(--maxw); margin: 0 auto; padding: 1rem var(--gutter);
  display: flex; gap: 1.6rem; flex-wrap: wrap; align-items: center;
  font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--deep-fg-2);
}

/* ---------- tiles ---------- */

.tile {
  position: relative; aspect-ratio: 1; display: flex; align-items: flex-end;
  background: var(--deep-2); overflow: hidden; color: var(--deep-fg); border-radius: 4px;
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* soft gaussian veil between the photo and the numeral */
.tile .veil {
  position: absolute; left: 0; right: 0; bottom: 0; height: 62%;
  pointer-events: none;
  backdrop-filter: blur(14px) saturate(0.85);
  -webkit-backdrop-filter: blur(14px) saturate(0.85);
  background: linear-gradient(to top, rgba(16,16,18,.5), rgba(16,16,18,.12) 55%, rgba(16,16,18,0));
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 28%, transparent 100%);
  mask-image: linear-gradient(to top, #000 0%, #000 28%, transparent 100%);
}
.tile .bands { position: absolute; inset: 0; display: flex; }
/* Same lightening as .tricolore: the middle band was 9% opacity, essentially
   invisible on the dark tile, so placeholder covers read as navy/grey/maroon
   rather than the flag. */
.tile .bands i:nth-child(1) { flex: 30; background: rgba(74,107,196,.42); }
.tile .bands i:nth-child(2) { flex: 33; background: rgba(236,234,226,.20); }
.tile .bands i:nth-child(3) { flex: 37; background: rgba(228,84,74,.42); }
.tile .num {
  position: relative; z-index: 2; font-family: var(--logo); font-weight: 700;
  letter-spacing: -0.02em; line-height: 0.8;
  font-size: clamp(3.4rem, 11vw, 6.6rem); padding: 0 0 0.12em 0.12em;
}
.tile .num .year { font-size: 0.46em; letter-spacing: 0.01em; }
.tile .num sup { font-size: 0.3em; vertical-align: super; font-weight: 400; opacity: .8; }
.tile .cap { position: absolute; top: 0.9rem; right: 1rem; font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--deep-fg-2); }
.tile.small .cap { display: none; }
.tile.small .num { font-size: clamp(1.9rem, 5vw, 2.6rem); }
.tile.has-cover .num { color: #fff; text-shadow: 0 1px 14px rgba(0,0,0,.45); }
.tile.small .veil { height: 66%; backdrop-filter: blur(9px) saturate(0.85); -webkit-backdrop-filter: blur(9px) saturate(0.85); }

/* ---------- featured episode ---------- */

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.feature h3 { font-size: clamp(1.5rem, 2.9vw, 2.25rem); margin-bottom: 1rem; }
.feature h3 a { text-decoration: none; }
.feature h3 a:hover { color: var(--rouge-text); }
.feature .sum { margin-top: 1rem; color: var(--ink-2); max-width: 52ch; }
.feature .actions { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 1.7rem; }

.metaline {
  display: flex; gap: 0.85rem; flex-wrap: wrap; align-items: center;
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3); font-variant-numeric: tabular-nums;
}
.metaline .n { color: var(--rouge-text); }
.metaline .sep { width: 14px; height: 1px; background: var(--line-strong); }

/* ---------- episode rows ---------- */

.eplist { display: flex; flex-direction: column; }
.ep {
  display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) auto;
  gap: clamp(1rem, 3vw, 2.5rem); align-items: start;
  padding: 1.9rem 0; border-top: 1px solid var(--line);
}
.ep h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); margin: 0.55rem 0 0; }
.ep h3 a { text-decoration: none; }
.ep:hover h3 a { color: var(--rouge-text); }
.ep p { margin-top: 0.7rem; color: var(--ink-2); font-size: 0.95rem; max-width: 58ch; }
.ep .rowlinks { display: flex; flex-direction: column; gap: 0.7rem; align-items: flex-start; padding-top: 0.4rem; }
.rowlink {
  display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-2); white-space: nowrap;
}
.rowlink:hover { color: var(--rouge-text); }
.rowlink .circle { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; flex: none; }

.banded .ep { border-top: 0; padding: 2rem var(--gutter); margin-inline: calc(var(--gutter) * -1); }
.banded .ep:nth-child(odd) { background: var(--band-blue); }
.banded .ep:nth-child(even) { background: var(--band-red); }

/* ---------- chips ---------- */

.filters, .years { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1.6rem 0 2rem; }
.chip, .years a {
  display: inline-block;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.03em;
  padding: 0.42rem 0.95rem; border: 1.5px solid var(--line-strong); border-radius: 999px;
  background: none; color: var(--ink-2); cursor: pointer; font-family: var(--sans); text-decoration: none;
}
.chip:hover, .years a:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-current], .years a[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.years .count, .chip .c { color: var(--ink-3); font-weight: 500; }
.years a[aria-current] .count { color: var(--bleu-soft); }

/* ---------- article ---------- */

.article-head { padding: clamp(2.25rem, 5vw, 3.5rem) 0 2.25rem; border-bottom: 1px solid var(--line); }
.article-head h1 { font-size: clamp(1.7rem, 3.7vw, 2.8rem); max-width: 20ch; margin-top: 1.1rem; }
.article-head .summary { margin-top: 1.2rem; color: var(--ink-2); max-width: var(--measure); }

.twocol { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; padding: 2.5rem 0 3.5rem; }
.prose { max-width: var(--measure); font-size: 1.04rem; }
.prose p, .prose ul, .prose ol { margin-top: 1.05rem; color: var(--ink-2); }
.prose h2, .prose h3 { margin-top: 2.2rem; font-size: 1.35rem; }
.prose a { color: var(--bleu); text-underline-offset: 3px; }
.prose blockquote { margin: 1.6rem 0; padding-left: 1.1rem; border-left: 3px solid var(--rouge); font-family: var(--display); font-size: 1.25rem; line-height: 1.3; color: var(--ink); }

.side h2, .side h4 { font-family: var(--sans); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.9rem; }
.side-block + .side-block { margin-top: 2.2rem; }
.side ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.side li { font-size: 0.92rem; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 0.65rem; }
.side li strong { display: block; color: var(--ink); font-weight: 600; }
.side li a { color: var(--bleu); }

.themes { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.themes span { font-size: 0.75rem; font-weight: 600; padding: 0.32rem 0.8rem; border: 1.5px solid var(--line-strong); border-radius: 999px; color: var(--ink-2); }

.transcript { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.transcript summary { cursor: pointer; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }
.transcript summary:hover { color: var(--rouge-text); }
.transcript p { margin-top: 1rem; color: var(--ink-2); max-width: var(--measure); }

/* ---------- players ---------- */

.player { margin: 1.4rem 0 0; }
.player button {
  width: 100%; display: flex; align-items: center; gap: 1.1rem; text-align: left;
  background: var(--deep); color: var(--deep-fg); border: 0; border-radius: 999px;
  padding: 0.9rem 1.4rem 0.9rem 1rem; cursor: pointer; font: inherit;
}
.player button:hover { background: var(--deep-2); }
.player .play {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--deep-fg);
  display: grid; place-items: center; flex: none; font-size: 0.9rem; line-height: 1;
}
.player button:hover .play { background: var(--deep-rouge); border-color: var(--deep-rouge); }
.player .label { display: flex; flex-direction: column; gap: 0.15rem; }
.player .label strong { font-weight: 600; font-size: 0.95rem; }
.player .label .meta { font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--deep-fg-2); }
.audio { width: 100%; margin: 1.4rem 0 0; }

/* ---------- platforms ---------- */

.platforms { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; }
.platforms a {
  display: inline-flex; align-items: center; gap: 0.45rem; text-decoration: none;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-2); border-bottom: 1.5px solid transparent; padding-bottom: 2px;
}
.platforms a:hover { color: var(--ink); border-bottom-color: var(--rouge); }
.platforms .icon { flex: none; width: 16px; height: 16px; }
.on-deep .platforms a { color: var(--deep-fg-2); }
.on-deep .platforms a:hover { color: var(--deep-fg); border-bottom-color: var(--deep-rouge); }

.onair {
  display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 0.7rem;
  margin-left: auto; padding-left: 1.6rem; border-left: 1px solid rgba(236,234,226,.14);
}
.hero-foot .onair,
.hero-foot .onair span,
.hero-foot .onair a {
  text-transform: none; letter-spacing: normal; font-size: 0.78rem; line-height: 1.35; color: var(--deep-fg-2);
}
.onair-mark { flex: none; display: block; line-height: 0; }
.onair-logo {
  display: block; width: 36px; height: 36px; object-fit: contain; border-radius: 50%;
  transition: transform .15s ease, filter .15s ease;
}
.onair-mark:hover .onair-logo { transform: scale(1.1); filter: drop-shadow(0 0 0 1px var(--deep-rouge)) drop-shadow(0 0 6px rgba(228,84,74,.55)); }
.onair-link { color: var(--deep-fg); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid transparent; }
.onair-link:hover { border-bottom-color: var(--deep-rouge); }
@media (max-width: 640px) {
  .onair { margin-left: 0; padding-left: 0; border-left: 0; }
}

/* ---------- pull quote and people ---------- */

.pullquote { background: var(--bg-alt); }
.pullquote blockquote {
  margin: 0; font-family: var(--display); font-weight: 400; letter-spacing: -0.012em;
  font-size: clamp(1.4rem, 2.8vw, 2.2rem); line-height: 1.24; max-width: 24ch;
}
.pullquote cite { display: block; margin-top: 1.4rem; font-family: var(--sans); font-style: normal; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-3); }

.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); }
.person .portrait { aspect-ratio: 4/5; background: var(--deep-2); position: relative; overflow: hidden; display: grid; place-items: center; border-radius: 4px; }
.person .portrait img { width: 100%; height: 100%; object-fit: cover; }
.person .portrait .initials { font-family: var(--logo); font-weight: 700; letter-spacing: -0.02em; font-size: clamp(2.4rem, 6vw, 3.6rem); color: var(--deep-fg); position: relative; }
.person h2 { font-size: 1.45rem; margin-top: 1.2rem; }
.person .role { margin-top: 0.4rem; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rouge-text); }
.person .bio { margin-top: 0.8rem; color: var(--ink-2); font-size: 0.96rem; }
.person .bio p { margin-bottom: 0.7rem; }

/* ---------- forms ---------- */

.contact-form { max-width: 34rem; }
.contact-form .field { margin-top: 1.3rem; }
.contact-form label { display: block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.45rem; }
.contact-form input, .contact-form textarea {
  width: 100%; font: inherit; font-size: 0.98rem; padding: 0.7rem 1rem;
  border: 1.5px solid var(--line-strong); border-radius: 14px; background: var(--surface); color: var(--ink);
}
.contact-form textarea { min-height: 9rem; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--rouge); }
.contact-form [aria-invalid] { border-color: var(--rouge); }
.contact-form button { margin-top: 1.6rem; }
.contact-form .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 1rem 1.2rem; border-radius: 14px; margin: 1.5rem 0; max-width: 34rem; }
.notice p:first-child { margin-top: 0; }
.notice-success { border: 1.5px solid #2F6B4F; background: color-mix(in srgb, #2F6B4F 10%, var(--surface)); }
.notice-error { border: 1.5px solid var(--rouge); background: color-mix(in srgb, var(--rouge) 8%, var(--surface)); }

.search-page { max-width: 34rem; margin: 1.6rem 0 2rem; border-bottom-width: 2px; }
.search-page input { flex: 1; width: auto; font-size: 1rem; }

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

.site-footer { background: var(--deep); color: var(--deep-fg); padding: clamp(2.5rem, 5vw, 4rem) 0 2.25rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(150px, 1fr)); gap: 2.5rem; }
.site-footer .wordmark { color: var(--deep-fg); font-size: 1.45rem; }
.site-footer .wordmark .bang { color: var(--deep-rouge); }
.site-footer .blurb { margin-top: 1rem; color: var(--deep-fg-2); font-size: 0.92rem; max-width: 32ch; }
.site-footer h2 { font-family: var(--sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--deep-fg-2); margin: 0 0 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.site-footer a { color: var(--deep-fg); text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { color: var(--deep-rouge); }
.colophon { margin-top: 2.5rem; padding-top: 1.1rem; border-top: 1px solid rgba(236,234,226,.14); font-size: 0.8rem; color: var(--deep-fg-2); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .feature, .twocol { grid-template-columns: 1fr; }
  .ep { grid-template-columns: 6.5rem minmax(0, 1fr); }
  .ep .rowlinks { grid-column: 1 / -1; flex-direction: row; gap: 1.4rem; }
  .search { order: 3; }
}
@media (max-width: 560px) {
  .ep { grid-template-columns: 1fr; }
  .ep .art { max-width: 8rem; }
  .nav { gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Buttons inside prose keep their own colour, the link rule must not win */
.prose .btn { color: var(--ink); text-decoration: none; }
.prose .btn-solid, .prose .btn-solid:hover { color: #FFF7F5; }
.prose .btn-ghost:hover { color: var(--bg); }
.prose .more { color: var(--rouge-text); text-decoration: none; }
