/* ==========================================================================
   ActiveCitizen — Countering Polarisation. Rebuilding Civic Cohesion.
   Design system stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Webfonts (self-hosted variable fonts — no external requests)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/fraunces-latin.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/fraunces-latin-ext.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/public-sans-latin.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/public-sans-latin-ext.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Public Sans";
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/public-sans-latin-italic.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Palette */
  --background:          oklch(97.5% 0.006 250);
  --foreground:          oklch(22% 0.035 255);
  --card:                oklch(99.3% 0.003 250);
  --card-foreground:     oklch(22% 0.035 255);
  --primary:             oklch(37.63% 0.1225 254.7); /* #004080 - logo navy */
  --primary-foreground:  oklch(98% 0.006 250);
  --secondary:           oklch(93.5% 0.014 250);
  --muted:               oklch(95.5% 0.01 250);
  --muted-foreground:    oklch(48% 0.035 253);
  --clay:                oklch(53% 0.125 70);          /* deep amber - accent text */
  --clay-foreground:     oklch(20% 0.04 255);
  --gold:                oklch(80.51% 0.1659 74.7);    /* #FDAD18 - logo amber */
  --gold-foreground:     oklch(20% 0.04 255);
  --sand:                oklch(94.5% 0.016 248);
  --sand-soft:           oklch(94.5% 0.016 248 / 0.6);
  --ink:                 oklch(20% 0.04 255);
  --border:              oklch(88.5% 0.014 250);
  --input:               oklch(88.5% 0.014 250);
  --ring:                oklch(37.63% 0.1225 254.7);

  /* On dark bands */
  --on-dark:             oklch(98% 0.006 250);
  --on-dark-80:          oklch(98% 0.006 250 / 0.8);
  --on-dark-70:          oklch(98% 0.006 250 / 0.7);
  --on-dark-60:          oklch(98% 0.006 250 / 0.6);
  --on-dark-border:      oklch(98% 0.006 250 / 0.18);

  /* Type */
  --font-sans:    "Public Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  /* Shape + shadow */
  --radius: 0.25rem;
  --shadow-soft: 0 1px 2px oklch(22% 0.035 255 / 0.06),
                 0 12px 32px -18px oklch(22% 0.035 255 / 0.35);

  /* Layout */
  --container: 1216px;
  --gutter: 24px;
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--foreground);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis-weight: none;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; background: none; border: 0; padding: 0; }

ul, ol { list-style: none; padding: 0; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 12px 20px;
  font-size: 14px;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Vertical rhythm helpers */
.py-16 { padding-block: 64px; }
.py-20 { padding-block: 80px; }
.py-24 { padding-block: 96px; }
.py-28 { padding-block: 80px; }

@media (min-width: 768px) {
  .py-28 { padding-block: 112px; }
}

/* Band backgrounds */
.band-sand      { background-color: var(--sand); }
.band-sand-soft { background-color: var(--sand-soft); }
.band-cream     { background-color: var(--background); }
.band-primary   { background-color: var(--primary); }
.band-ink       { background-color: var(--ink); }

.band-primary,
.band-ink { color: var(--on-dark); }

.band-primary h1, .band-primary h2, .band-primary h3,
.band-ink h1, .band-ink h2, .band-ink h3 { color: var(--on-dark); }

/* Two-column editorial splits */
.split {
  display: grid;
  gap: 40px;
}
@media (min-width: 1024px) {
  .split          { grid-template-columns: 1fr 1fr; gap: 48px; }
  .split--hero    { grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
  .split--aside   { grid-template-columns: 1.1fr 1fr; gap: 56px; }
  .split--form    { grid-template-columns: 1.15fr 1fr; gap: 56px; }
  .split--feature { grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
  .split--media   { grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
}

.stack > * + * { margin-top: 24px; }
.stack-sm > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 32px; }

.measure    { max-width: 672px; }
.measure-sm { max-width: 576px; }
.measure-lg { max-width: 768px; }

/* --------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
}
.band-primary .eyebrow,
.band-ink .eyebrow { color: var(--gold); }

.eyebrow--muted { color: var(--muted-foreground); }
.band-primary .eyebrow--muted,
.band-ink .eyebrow--muted { color: var(--on-dark-60); }

.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(2.25rem, 4.6vw, 3.75rem);
  line-height: 1.03;
}

.display--lg {
  font-size: clamp(2.25rem, 4.6vw, 3.75rem);
  line-height: 1.03;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.11;
}

.h2--band {
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1;
}

.h2--sm {
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  line-height: 1.2;
}

.h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1.25rem;
  line-height: 1.375;
}

.h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1.125rem;
  line-height: 1.4;
}

.lead {
  font-size: 1.125rem;
  line-height: 1.556;
  color: var(--muted-foreground);
}
.band-primary .lead,
.band-ink .lead { color: var(--on-dark-70); }

.body {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}
.band-primary .body,
.band-ink .body { color: var(--on-dark-70); }

.body--strong {
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--foreground);
}
.band-primary .body--strong,
.band-ink .body--strong { color: var(--on-dark); }

.small {
  font-size: 0.875rem;
  line-height: 1.43;
  color: var(--muted-foreground);
}
.band-primary .small,
.band-ink .small { color: var(--on-dark-70); }

.caption {
  font-size: 0.75rem;
  line-height: 1.333;
  color: var(--muted-foreground);
}

.pull {
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.556;
  font-weight: 400;
  color: var(--primary);
}
.band-primary .pull,
.band-ink .pull { color: var(--on-dark); }

.serif-inline {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--foreground);
}
.band-primary .serif-inline,
.band-ink .serif-inline { color: var(--on-dark); }

/* --------------------------------------------------------------------------
   5. Buttons + links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-size: 0.875rem;
  line-height: 1.43;
  font-weight: 500;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 0;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  text-align: center;
}

.btn--primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}
.btn--primary:hover { background-color: oklch(31% 0.11 255); }

.btn--outline {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn--outline:hover { background-color: var(--primary); color: var(--primary-foreground); }

.btn--clay {
  background-color: var(--gold);
  color: var(--gold-foreground);
}
.btn--clay:hover { background-color: oklch(73% 0.16 73); }

.btn--outline-light {
  background-color: transparent;
  border-color: var(--on-dark-border);
  color: var(--on-dark);
}
.btn--outline-light:hover { background-color: oklch(98% 0.006 250 / 0.1); }

.btn--sm { padding: 8px 16px; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Underlined text link */
.link {
  display: inline-block;
  font-size: 0.875rem;
  line-height: 1.43;
  font-weight: 500;
  color: var(--muted-foreground);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.15s ease;
}
.link:hover { color: var(--foreground); }

.band-primary .link,
.band-ink .link { color: var(--on-dark-80); }
.band-primary .link:hover,
.band-ink .link:hover { color: var(--on-dark); }

.link--plain {
  text-decoration: none;
  color: var(--primary);
}
.link--plain:hover { text-decoration: underline; text-underline-offset: 4px; }

.link--mail {
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: oklch(97.5% 0.006 250 / 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

/* Brand lockup — the logo file already carries the wordmark, so no text name */
.brand__logo {
  flex: 0 0 auto;
  height: 44px;
  width: auto;
  display: block;
}

@media (min-width: 1024px) {
  .brand__logo { height: 52px; }
}


.site-nav {
  display: none;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  font-size: 0.875rem;
  line-height: 1.43;
  color: var(--muted-foreground);
  transition: color 0.15s ease;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--foreground); }
.site-nav a[aria-current="page"] { color: var(--foreground); }

.site-nav .btn { color: var(--gold-foreground); }
.site-nav .btn:hover { color: var(--gold-foreground); }

.nav-toggle {
  font-size: 0.875rem;
  line-height: 1.43;
  padding: 8px 12px;
  border: 1px solid var(--border);
  color: var(--foreground);
  background-color: transparent;
}
.nav-toggle:hover { background-color: var(--muted); }

@media (min-width: 1024px) {
  .site-nav { display: flex; }
  .nav-toggle { display: none; }
}

/* Mobile panel */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background-color: var(--background);
}
.mobile-nav.is-open { display: block; }

.mobile-nav ul { border-top: 0; }

.mobile-nav a {
  display: block;
  padding: 14px 0;
  font-size: 1rem;
  color: var(--foreground);
  border-bottom: 1px solid var(--border);
}
.mobile-nav li:last-child a { border-bottom: 0; }
.mobile-nav a:hover { color: var(--primary); }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero__figure { margin: 0; }

/* Below the two-column breakpoint the hero stacks. Lead with the photograph
   so the page opens on an image rather than a wall of type. */
@media (max-width: 1023px) {
  .split--hero > .hero__figure { order: -1; }
  .split--hero { gap: 32px; }
  /* 96px of dead space above a leading image reads as a loading error */
  .hero-shell { padding-block: 32px 64px; }
}

.hero__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero__figure figcaption { margin-top: 12px; }

/* --------------------------------------------------------------------------
   8. Cards + grids
   -------------------------------------------------------------------------- */

/* Hairline grid: 1px gaps that read as shared rules */
.rule-grid {
  display: grid;
  gap: 1px;
  background-color: var(--border);
  border: 1px solid var(--border);
}

.rule-grid > * {
  background-color: var(--card);
  padding: 32px;
}

.rule-grid__cell--accent { background-color: var(--sand); }

@media (min-width: 640px)  { .rule-grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 640px)  { .rule-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px)  { .rule-grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .rule-grid--4 { grid-template-columns: repeat(4, 1fr); } }

.numeral {
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--clay);
  letter-spacing: 0.02em;
}

/* Story cards */
.card-grid {
  display: grid;
  gap: 40px;
}
@media (min-width: 640px)  { .card-grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px)  { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .card-grid--2.card-grid--wide { gap: 48px; } }

.story-card img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}
.story-card__body { margin-top: 20px; }
.story-card .eyebrow { display: block; margin-bottom: 10px; }
.story-card .h3 { margin-bottom: 10px; }
.story-card .small { margin-bottom: 16px; }

/* Panel card */
.panel {
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 32px;
}
.panel--lg { padding: 40px; }
.panel--sand { background-color: var(--sand); }
.panel--primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--on-dark);
}
.panel--primary .eyebrow { color: var(--gold); }
.panel--primary .body,
.panel--primary .small { color: var(--on-dark-80); }
.panel--soft { box-shadow: var(--shadow-soft); }

/* Divided list (spotlight items, roles, partners) */
/* Fully ruled block: rules above, between and below */
.ruled-block {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ruled-block > li,
.ruled-block > div {
  padding-block: 16px;
  border-bottom: 1px solid var(--border);
}
.ruled-block > :last-child { border-bottom: 0; }

/* Simple divided list: rules between items only */
.divided-list > li {
  font-size: 0.875rem;
  line-height: 1.43;
  color: var(--foreground);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.divided-list > li + li { margin-top: 12px; }
.divided-list > li:last-child { border-bottom: 0; padding-bottom: 0; }

/* Definition list of roles */
.role-list dt {
  font-size: 0.875rem;
  line-height: 1.43;
  font-weight: 500;
  color: var(--foreground);
}
.role-list dd {
  margin: 2px 0 0;
  font-size: 0.875rem;
  line-height: 1.43;
  color: var(--muted-foreground);
}
.role-list dd + dt { margin-top: 20px; }

.item__title {
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--foreground);
}
.item__meta {
  margin-top: 4px;
  font-size: 0.875rem;
  line-height: 1.43;
  color: var(--muted-foreground);
}

/* --------------------------------------------------------------------------
   9. Stats / impact tracker
   -------------------------------------------------------------------------- */
.stat-grid {
  display: grid;
  gap: 32px;
}
@media (min-width: 640px)  { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }

.stat {
  border-top: 1px solid var(--border);
  padding: 20px 0 0;
}

.stat__value {
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1.111;
  font-weight: 400;
  color: var(--primary);
}

.stat__label {
  margin-top: 8px;
  font-size: 0.875rem;
  line-height: 1.43;
  color: var(--muted-foreground);
}

/* Metric cell inside a hairline grid */
.metric__title {
  font-size: 0.875rem;
  line-height: 1.43;
  font-weight: 500;
  color: var(--foreground);
}
.metric__value {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1.111;
  font-weight: 400;
  color: var(--primary);
}
.metric__label {
  margin-top: 4px;
  font-size: 0.75rem;
  line-height: 1.333;
  color: var(--muted-foreground);
}

/* Narrative counters */
.counter__value {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  font-weight: 400;
  color: var(--primary);
}
.counter__label {
  margin-top: 8px;
  font-size: 0.875rem;
  line-height: 1.43;
  color: var(--muted-foreground);
}
.counter__bar {
  margin-top: 20px;
  height: 6px;
  background-color: var(--secondary);
  overflow: hidden;
}
.counter__bar span {
  display: block;
  height: 100%;
  background-color: var(--clay);
}

.dash {
  display: block;
  width: 28px;
  height: 2px;
  background-color: var(--primary);
}

/* --------------------------------------------------------------------------
   10. Insights comparison bars
   -------------------------------------------------------------------------- */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}
.legend__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--foreground);
}
.legend__swatch { width: 22px; height: 8px; }
.legend__swatch--se { background-color: var(--primary); }
.legend__swatch--nc { background-color: var(--clay); }

.finding-table {
  border: 1px solid var(--border);
  background-color: var(--card);
}
.finding {
  display: grid;
  gap: 16px;
  padding: 28px 32px;
  border-top: 1px solid var(--border);
  align-items: center;
}
.finding:first-child { border-top: 0; }

@media (min-width: 768px) {
  .finding { grid-template-columns: 1fr 1.35fr; gap: 32px; }
}

.finding__label {
  font-size: 1rem;
  line-height: 1.4;
  color: var(--foreground);
}

.finding__bars > * + * { margin-top: 12px; }

.bar {
  display: grid;
  grid-template-columns: 1fr 48px;
  align-items: center;
  gap: 16px;
}
.bar__track {
  height: 10px;
  background-color: var(--sand);
  overflow: hidden;
}
.bar__fill {
  display: block;
  height: 100%;
  width: 0;
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.bar__fill--se { background-color: var(--primary); }
.bar__fill--nc { background-color: var(--clay); }
.bar__value {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-align: left;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   11. Timeline (news & events)
   -------------------------------------------------------------------------- */
.timeline {
  position: relative;
  border-left: 1px solid var(--border);
  padding-left: 32px;
}
@media (min-width: 768px) { .timeline { padding-left: 48px; } }

.timeline > li {
  position: relative;
  padding-bottom: 56px;
}
.timeline > li:last-child { padding-bottom: 0; }

.timeline > li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: -36px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background-color: var(--clay);
}
@media (min-width: 768px) { .timeline > li::before { left: -52px; } }

.timeline__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.badge {
  display: inline-block;
  padding: 5px 10px;
  background-color: var(--sand);
  color: var(--foreground);
  font-size: 11px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.timeline__place {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
}

/* --------------------------------------------------------------------------
   12. Resource cards
   -------------------------------------------------------------------------- */
.resource__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.resource__meta {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  white-space: nowrap;
}
.resource .h3 { margin-bottom: 12px; }
.resource .small { margin-bottom: 24px; }

.btn--ghost {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
  padding: 10px 20px;
}
.btn--ghost:hover { background-color: var(--primary); color: var(--primary-foreground); }

/* --------------------------------------------------------------------------
   13. Editorial list rows (stories index)
   -------------------------------------------------------------------------- */
.post-rows { border-top: 1px solid var(--border); }

.post-row {
  display: grid;
  gap: 8px;
  padding-block: 28px;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 1024px) {
  .post-row {
    grid-template-columns: 160px 1fr 180px;
    gap: 24px;
    align-items: baseline;
  }
  .post-row__author { text-align: right; }
}

.post-row .h4 { margin-bottom: 6px; }

/* Featured story */
.feature__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.article-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin-bottom: 20px;
}
.article-card .eyebrow { display: block; margin-bottom: 10px; }
.article-card .h3 { margin-bottom: 12px; }

/* --------------------------------------------------------------------------
   14. Forms
   -------------------------------------------------------------------------- */
.field { display: block; }

.field__label {
  display: block;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--foreground);
  margin-bottom: 10px;
}

.input,
.textarea {
  width: 100%;
  background-color: var(--background);
  border: 1px solid var(--input);
  border-radius: 0;
  padding: 12px 14px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--foreground);
  transition: border-color 0.15s ease;
}
.input::placeholder,
.textarea::placeholder { color: var(--muted-foreground); opacity: 0.8; }
.input:focus,
.textarea:focus { outline: none; border-color: var(--primary); }

.textarea { min-height: 160px; resize: vertical; }

.field-row { display: grid; gap: 24px; }
@media (min-width: 640px) { .field-row { grid-template-columns: repeat(2, 1fr); } }

.choice-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .choice-grid { grid-template-columns: repeat(2, 1fr); } }

.choice {
  display: block;
  position: relative;
  border: 1px solid var(--border);
  padding: 16px 18px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.choice:hover { border-color: var(--muted-foreground); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice__title {
  display: block;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--foreground);
}
.choice__hint {
  display: block;
  margin-top: 4px;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--muted-foreground);
}
.choice:has(input:checked) {
  background-color: var(--sand);
  border-color: var(--foreground);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
.consent input {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-top: 3px;
  accent-color: var(--primary);
}
.consent > span {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}

.newsletter {
  display: grid;
  gap: 16px;
}
@media (min-width: 640px) {
  .newsletter { grid-template-columns: 1fr auto; }
}
.newsletter .input { background-color: var(--card); }

.form-note {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.form-status {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid var(--primary);
  background-color: var(--sand);
  font-size: 0.9375rem;
  color: var(--foreground);
}
.form-status[hidden] { display: none; }

/* --------------------------------------------------------------------------
   15. Section headers with side copy
   -------------------------------------------------------------------------- */
.section-head {
  display: grid;
  gap: 20px;
  margin-bottom: 48px;
}
@media (min-width: 1024px) {
  .section-head {
    grid-template-columns: 1.65fr 1fr;
    gap: 48px;
    align-items: start;
  }
}

.section-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
}

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--primary);
  color: var(--on-dark);
}

.site-footer__top {
  display: grid;
  gap: 48px;
  padding-block: 72px;
}
@media (min-width: 640px)  { .site-footer__top { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .site-footer__top { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; } }

.footer-brand__logo {
  height: 58px;
  width: auto;
  display: block;
  margin-bottom: 16px;
}
.footer-brand__tag {
  margin-top: 12px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--on-dark-80);
}
.footer-brand__note {
  margin-top: 20px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--on-dark-70);
}

.footer-col__head {
  font-size: 11px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark-60);
  margin-bottom: 20px;
}

.footer-links li + li { margin-top: 12px; }
.footer-links a,
.footer-links span {
  font-size: 0.875rem;
  line-height: 1.43;
  color: var(--on-dark-80);
  transition: color 0.15s ease;
}
.footer-links a:hover { color: var(--on-dark); }

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 28px;
}
.footer-social a {
  font-size: 0.875rem;
  color: var(--on-dark-80);
}
.footer-social a:hover { color: var(--on-dark); }

.footer-contact a {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--on-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  margin-bottom: 24px;
}

.site-footer__bottom {
  border-top: 1px solid var(--on-dark-border);
  padding-block: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
}
.site-footer__bottom p,
.site-footer__bottom a {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--on-dark-60);
}
.site-footer__bottom a:hover { color: var(--on-dark); }
.site-footer__legal > * + * { margin-top: 6px; }

/* --------------------------------------------------------------------------
   17. Misc
   -------------------------------------------------------------------------- */
.band-cta {
  display: grid;
  gap: 24px;
  align-items: center;
}
@media (min-width: 768px) {
  .band-cta { grid-template-columns: 1fr auto; gap: 40px; }
}

.media-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.note {
  margin-top: 32px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
  max-width: 672px;
}

/* Bulleted prose lists */
.bullets li {
  position: relative;
  padding-left: 24px;
}
.bullets li + li { margin-top: 14px; }
.bullets li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background-color: var(--clay);
}

.text-clay { color: var(--clay); }
.text-primary { color: var(--primary); }

/* --------------------------------------------------------------------------
   16. Utility bar (secondary navigation)
   -------------------------------------------------------------------------- */
.utility-bar {
  background-color: var(--ink);
  color: oklch(98% 0.006 250 / 0.72);
}

.utility-bar__inner {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  height: 36px;
}

.utility-bar a {
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: oklch(98% 0.006 250 / 0.72);
  white-space: nowrap;
  transition: color 0.15s ease;
}
.utility-bar a:hover,
.utility-bar a[aria-current="page"] { color: oklch(98% 0.006 250 / 1); }

@media (min-width: 1024px) {
  .utility-bar__inner { display: flex; }
}

.mobile-nav__group {
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 8px;
}

.mobile-nav__group-head {
  font-size: 11px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
  padding: 12px 0 4px;
}

/* --------------------------------------------------------------------------
   17. Filter chips
   -------------------------------------------------------------------------- */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--border);
  background-color: var(--card);
  font-size: 0.8125rem;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--foreground);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.chip:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}
