/* ═══════════════════════════════════════════════════════════
   KGOSIGADI NETWORK
   Design system: "Royal Connection"
   Pillars — Empowerment · Prestige · Collective Growth
   ═══════════════════════════════════════════════════════════ */

/* ── Tokens ────────────────────────────────────────────── */
:root {
  /* Brand */
  --royal-gold:      #D4AF37;
  --deep-earth:      #3B2712;
  --warm-ivory:      #FAF9F6;
  --success-emerald: #2D5A27;

  /* Surfaces */
  --surface:                   #fcf9f8;
  --surface-dim:               #dcd9d9;
  --surface-container-lowest:  #ffffff;
  --surface-container-low:     #f6f3f2;
  --surface-container:         #f0eded;
  --surface-container-high:    #eae7e7;
  --surface-container-highest: #e5e2e1;
  --inverse-surface:           #313030;
  --inverse-on-surface:        #f3f0ef;

  /* Content */
  --on-surface:         #1c1b1b;
  --on-surface-variant: #51443a;
  --outline:            #847469;
  --outline-variant:    #d6c3b6;

  /* Primary / Secondary / Tertiary */
  --primary:              #552c00;
  --on-primary:           #ffffff;
  --primary-container:    #704214;
  --on-primary-container: #f1b179;
  --inverse-primary:      #fbb980;
  --primary-fixed:        #ffdcc1;
  --secondary:            #735c00;
  --secondary-container:  #fed65b;
  --tertiary:             #3a362c;
  --tertiary-container:   #514d42;
  --on-tertiary-container:#c5beb0;
  --error:                #ba1a1a;

  /* Shape — Soft edges, Level 1 */
  --r-sm: 0.125rem;
  --r:    0.25rem;   /* buttons, inputs */
  --r-md: 0.375rem;
  --r-lg: 0.5rem;    /* cards, containers, imagery */
  --r-xl: 0.75rem;
  --r-full: 9999px;

  /* Rhythm — 8px base */
  --u: 8px;
  --container-max: 1200px;
  --gutter: 24px;
  --margin-mobile: 16px;
  --margin-desktop: 64px;
  --section-y: 96px;

  /* Motion — ease-out-quart. Decelerates into place instead of the browser's
     symmetric `ease`, which reads faintly springy on a page this restrained. */
  --ease: cubic-bezier(0.25, 1, 0.5, 1);

  /* Elevation — ambient brown glow, never grey */
  --glow-soft: 0 12px 32px rgba(59, 39, 18, 0.06);
  --glow-lift: 0 16px 40px rgba(59, 39, 18, 0.08);

  /* Type */
  --serif: 'Libre Caslon Text', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans:  'Hanken Grotesk', 'Helvetica Neue', Arial, system-ui, sans-serif;

  /* ── Gold is ground-dependent ──────────────────────────
     Metallic gold reads bright on dark and dense on light; leaf on paper is
     bronze, not yellow. One hex cannot do both and stay legible, so the value
     follows the ground while the role stays constant. Royal Gold is unchanged
     and still owns every rule, border, fill, and all type on Deep Earth.

       --gold-text     small gold type and links   ≥4.5:1
       --gold-display  large gold numerals/lockup  ≥3:1
       --focus-ring    keyboard focus indicator    ≥3:1 non-text          */
  --gold-text:    var(--secondary);  /* #735c00 — the brand's own secondary */
  --gold-display: #9c7a16;           /* "dark gold on white", copy brief §10 */
  --focus-ring:   var(--secondary);

  /* Muted label ink. --outline is a border token; below ~16px it only reaches
     4.06:1, so small labels get their own text value. */
  --ink-muted: #7a6a61;

  color-scheme: light;
  accent-color: var(--secondary);
}

/* On Deep Earth and near-black, gold returns to full brightness. Custom
   properties inherit, so anything nested in these sections follows. */
.section-dark,
.site-footer,
.strip {
  --gold-text:    var(--royal-gold);
  --gold-display: var(--royal-gold);
  --focus-ring:   var(--royal-gold);
  --ink-muted:    rgba(250, 249, 246, .72);
}

/* ── Reset & base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 112px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--warm-ivory);
  color: var(--on-surface);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* Subtle "paper" tactility. On its own fixed layer rather than a
   background-attachment: fixed on <body>, which repaints the whole viewport
   on every scroll frame. Same image, no per-frame cost. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 60% at 78% -8%, rgba(212, 175, 55, 0.07), transparent 62%),
    radial-gradient(ellipse 70% 50% at 0% 12%, rgba(59, 39, 18, 0.035), transparent 60%);
}

img, svg { max-width: 100%; }
a { color: inherit; }

::selection { background: var(--royal-gold); color: var(--deep-earth); }

.sr-only {
  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(--deep-earth); color: var(--warm-ivory);
  padding: 12px 20px; border-radius: 0 0 var(--r) 0;
  font: 700 12px/16px var(--sans); letter-spacing: .05em; text-transform: uppercase;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ── Layout ────────────────────────────────────────────── */
.shell {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--margin-mobile);
}
@media (min-width: 768px)  { .shell { padding-inline: 40px; } }
@media (min-width: 1100px) { .shell { padding-inline: var(--margin-desktop); } }

.section { padding-block: 64px; }
@media (min-width: 768px) { .section { padding-block: var(--section-y); } }

.section-tint {
  background: var(--surface-container-low);
  border-block: 1px solid var(--outline-variant);
}

.section-dark {
  background: var(--deep-earth);
  color: var(--inverse-on-surface);
}
.section-dark .headline { color: var(--warm-ivory); }
.section-dark .section-intro { color: rgba(250, 249, 246, .74); }

.section-head { max-width: 62ch; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .btn-row { margin-top: 32px; }

.section-intro {
  font-size: 18px; line-height: 28px;
  color: var(--on-surface-variant);
  margin: 16px 0 0;
}

.split { display: grid; gap: 40px; }
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 7fr; gap: var(--gutter); column-gap: 64px; }
  .split-aside { position: sticky; top: 128px; align-self: start; }
}

.grid-2, .grid-3, .grid-4 { display: grid; gap: var(--gutter); }
@media (min-width: 700px)  { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.stack { display: grid; gap: var(--gutter); align-content: start; }

/* ── Typography ────────────────────────────────────────── */
.display {
  font-family: var(--serif);
  font-size: clamp(34px, 6.2vw, 48px);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--deep-earth);
  margin: 0 0 24px;
}

.headline {
  font-family: var(--serif);
  font-size: 28px; line-height: 36px; font-weight: 700;
  color: var(--deep-earth);
  margin: 0;
}
@media (min-width: 768px) { .headline { font-size: 32px; line-height: 40px; } }

.subhead {
  font-family: var(--serif);
  font-size: 20px; line-height: 28px; font-weight: 700;
  color: var(--deep-earth);
  margin: 56px 0 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--outline-variant);
}

.card-title {
  font-family: var(--serif);
  font-size: 20px; line-height: 28px; font-weight: 700;
  margin: 0 0 12px;
  color: var(--deep-earth);
}
.card-dark .card-title { color: var(--warm-ivory); }

.eyebrow {
  font: 700 12px/16px var(--sans);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  margin: 0 0 16px;
}
.eyebrow em { font-style: italic; text-transform: none; letter-spacing: 0.02em; }
.eyebrow-gold { color: var(--gold-text); }

.body-lg { font-size: 18px; line-height: 28px; color: var(--on-surface-variant); margin: 0 0 20px; }
.body-lg strong { color: var(--deep-earth); font-weight: 600; }

.lede {
  font-size: 18px; line-height: 30px;
  color: var(--on-surface-variant);
  max-width: 52ch;
  margin: 0 0 32px;
}
.lede strong { color: var(--deep-earth); font-weight: 600; }

.dateline {
  font: 700 12px/16px var(--sans);
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--gold-text);
  margin: 0 0 20px;
}

.pull {
  margin: 40px 0 0;
  padding: 28px 0 4px;
  border-top: 1.5px solid var(--royal-gold);
}
.pull p {
  font-family: var(--serif);
  font-size: 24px; line-height: 34px;
  color: var(--deep-earth);
  margin: 0 0 16px;
}
.pull cite {
  font: 400 14px/20px var(--sans);
  font-style: normal;
  color: var(--ink-muted);
}

.note { font-size: 14px; line-height: 20px; color: var(--ink-muted); font-style: italic; }
.card-dark .note { color: rgba(250, 249, 246, .55); }

/* ── Navigation ────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 249, 246, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--outline-variant);
}

.nav-shell {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; border-radius: var(--r-full); flex: none; }
.brand-mark-sm { width: 56px; height: 56px; }
.brand-word { display: grid; line-height: 1; }
.brand-name {
  font-family: var(--serif); font-weight: 700; font-size: 19px;
  color: var(--deep-earth); letter-spacing: -0.01em;
}
.brand-sub {
  font: 700 11px/16px var(--sans);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-text);
}

.primary-nav ul {
  display: flex; align-items: center; gap: 28px;
  list-style: none; margin: 0; padding: 0;
}
.primary-nav a {
  position: relative;
  font: 700 12px/16px var(--sans);
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--on-surface-variant);
  text-decoration: none;
  padding-block: 6px;
  transition: color .18s var(--ease);
}
.primary-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1.5px; background: var(--royal-gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .22s var(--ease);
}
.primary-nav a:hover { color: var(--deep-earth); }
.primary-nav a:hover::after { transform: scaleX(1); }
/* aria-current="page" = the current document; "true" = a page inside that section (a post under Updates). */
.primary-nav a[aria-current]:not(.nav-cta) { color: var(--deep-earth); }
.primary-nav a[aria-current]:not(.nav-cta)::after { transform: scaleX(1); }
.primary-nav a[aria-current="page"]:not(.nav-cta)::after { height: 2px; }

.primary-nav .nav-cta {
  background: var(--deep-earth); color: var(--warm-ivory);
  padding: 10px 18px; border-radius: var(--r);
  transition: background .18s var(--ease), transform .18s var(--ease);
}
.primary-nav .nav-cta::after { display: none; }
.primary-nav .nav-cta:hover { background: var(--primary); color: var(--warm-ivory); transform: scale(1.02); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid var(--outline-variant);
  border-radius: var(--r);
  padding: 10px 12px;
  cursor: pointer;
}
.nav-toggle-bars { display: grid; gap: 4px; }
.nav-toggle-bars i { display: block; width: 20px; height: 1.5px; background: var(--deep-earth); transition: transform .2s var(--ease), opacity .2s var(--ease); }
.nav-toggle[aria-expanded="true"] { border-color: var(--royal-gold); }
.nav-toggle[aria-expanded="true"] i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 979px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--warm-ivory);
    border-bottom: 1px solid var(--outline-variant);
    box-shadow: var(--glow-lift);
    display: none;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul {
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--margin-mobile);
  }
  .primary-nav li + li { border-top: 1px solid var(--surface-container-high); }
  .primary-nav a { display: block; padding: 16px 4px; }
  .primary-nav a::after { display: none; }
  .primary-nav .nav-cta { text-align: center; margin-top: 12px; padding: 14px 18px; }
}

/* ── Buttons ───────────────────────────────────────────── */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 12px/16px var(--sans);
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 15px 26px;
  border-radius: var(--r);
  text-decoration: none;
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}

.btn-primary {
  background: var(--deep-earth);
  color: var(--warm-ivory);
  border: 1.5px solid var(--deep-earth);
}
.btn-primary:hover {
  background: var(--primary); border-color: var(--primary);
  transform: scale(1.02);
  box-shadow: var(--glow-lift);
}

.btn-ghost {
  background: transparent;
  color: var(--deep-earth);
  border: 1.5px solid var(--royal-gold);
}
.btn-ghost:hover {
  background: rgba(212, 175, 55, 0.12);
  transform: scale(1.02);
}
.section-dark .btn-ghost { color: var(--warm-ivory); }

.link-gold {
  display: inline-block;
  /* 16px line + 6/3 padding = 25px tall, clearing the 24px minimum.
     margin trimmed by the padding added, so the rhythm is unchanged. */
  margin-top: 2px;
  padding-top: 6px;
  font: 700 12px/16px var(--sans);
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--gold-text);
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  padding-bottom: 3px;
  transition: border-color .18s var(--ease);
}
.link-gold:hover { border-bottom-color: var(--royal-gold); }

/* ── Hero ──────────────────────────────────────────────── */
.hero { padding-block: 56px 64px; }
@media (min-width: 900px) { .hero { padding-block: 88px 104px; } }

.hero-shell { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) {
  .hero-shell { grid-template-columns: 7fr 5fr; gap: 64px; }
}

.hero-facts {
  list-style: none; margin: 48px 0 0; padding: 24px 0 0;
  border-top: 1px solid var(--outline-variant);
  display: grid; gap: 20px;
}
@media (min-width: 560px) { .hero-facts { grid-template-columns: repeat(3, 1fr); gap: var(--gutter); } }
.hero-facts li { display: grid; gap: 6px; }
.fact-key {
  font: 700 12px/16px var(--sans);
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink-muted);
}
.fact-val {
  font-family: var(--serif); font-size: 20px; line-height: 28px; font-weight: 700;
  color: var(--deep-earth);
}

.hero-art { position: relative; }
.lineart {
  display: block; width: 100%; height: auto;
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-top: 1.5px solid var(--royal-gold);
  border-radius: var(--r-lg);
  box-shadow: var(--glow-soft);
}
.art-caption {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  background: var(--on-surface); color: var(--warm-ivory);
  font: 700 13px/16px var(--sans);
  letter-spacing: .06em; text-transform: uppercase;
  padding: 12px 22px;
  border-radius: var(--r-md);
  white-space: nowrap;
}

/* ── Marquee strip ─────────────────────────────────────── */
.strip {
  background: var(--deep-earth);
  color: var(--royal-gold);
  overflow: hidden;
  border-block: 1px solid var(--primary-container);
  padding-block: 14px;
}
.strip-inner {
  display: flex; align-items: center; gap: 28px;
  width: max-content;
  animation: drift 42s linear infinite;
  font: 700 12px/16px var(--sans);
  letter-spacing: .18em; text-transform: uppercase;
}
.strip-inner i { font-style: normal; opacity: .45; font-size: 8px; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Cards ─────────────────────────────────────────────── */
.card {
  position: relative;
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-top: 1.5px solid var(--royal-gold);   /* The Golden Standard */
  border-radius: var(--r-lg);
  padding: 32px 28px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { transform: scale(1.01); box-shadow: var(--glow-soft); }
.card > p { color: var(--on-surface-variant); margin: 0 0 16px; }
.card > p:last-child { margin-bottom: 0; }

.card-dark {
  background: rgba(250, 249, 246, 0.045);
  border-color: rgba(212, 175, 55, 0.3);
  border-top-color: var(--royal-gold);
}
.card-dark:hover { box-shadow: none; }
.card-dark > p { color: rgba(250, 249, 246, .78); }

.card-num {
  display: block;
  font-family: var(--serif);
  font-size: 32px; line-height: 1;
  color: var(--gold-display);
  margin-bottom: 20px;
}

/* A tag pressed into the paper, not drawn on top of it. The peach fill
   (--primary-fixed) read as a highlighter at 13-to-a-page density on Our Work,
   so the colour comes out and the shape stays: warm Deep Earth tint, hairline
   edge, ink at full strength. Pill and label type are both pinned by DESIGN.md. */
.chip {
  display: inline-block;
  font: 700 11px/16px var(--sans);
  letter-spacing: .05em; text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--r-full);
  background: rgba(85, 44, 0, 0.055);
  border: 1px solid rgba(85, 44, 0, 0.14);
  color: var(--primary);
}
.tag-row { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; }

/* Same move on Deep Earth: the bright --secondary-container yellow was the
   loudest note in the dark cards. Gold ink on a barely-lifted surface instead. */
.role-chip {
  display: inline-block;
  font: 700 11px/16px var(--sans);
  letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: rgba(250, 249, 246, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.38);
  color: var(--royal-gold);
  margin-bottom: 10px;
}

.people { list-style: none; margin: 28px 0 0; padding: 24px 0 0; border-top: 1px solid rgba(212, 175, 55, .28); display: grid; gap: 24px; }
.people li { display: grid; justify-items: start; gap: 4px; }
.people strong { font-family: var(--serif); font-size: 18px; color: var(--warm-ivory); font-weight: 700; }
.people span:last-child { font-size: 15px; line-height: 23px; color: rgba(250, 249, 246, .72); }

/* ── Host card ─────────────────────────────────────────── */
.host-card {
  display: grid; gap: 24px; align-items: start;
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-lg);
  padding: 32px 28px;
}
@media (min-width: 640px) { .host-card { grid-template-columns: 128px 1fr; gap: 32px; } }

.host-avatar {
  width: 112px; height: 112px;
  border-radius: var(--r-full);
  border: 2px solid var(--royal-gold);   /* Premium member treatment */
  overflow: hidden;
  background: var(--surface-container-low);
}
.host-avatar svg { display: block; width: 100%; height: 100%; }
.host-body p:last-child { color: var(--on-surface-variant); margin: 0; }

/* ── Episodes ──────────────────────────────────────────── */
.episodes { list-style: none; margin: 0; padding: 0; display: grid; }

.episode {
  display: grid; gap: 8px;
  padding: 28px 0;
  border-bottom: 1px solid var(--outline-variant);
  transition: transform .2s var(--ease);
}
.episode:first-child { border-top: 1px solid var(--outline-variant); }
.episode:hover { transform: translateX(8px); }
@media (min-width: 760px) {
  .episode { grid-template-columns: 200px 1fr; gap: var(--gutter); }
}

.ep-meta { display: grid; gap: 4px; align-content: start; }
.ep-num {
  font: 700 12px/16px var(--sans);
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--gold-text);
}
.ep-date { font-size: 14px; line-height: 20px; color: var(--ink-muted); }

.ep-body h4 {
  font-family: var(--serif);
  font-size: 22px; line-height: 30px; font-weight: 700;
  color: var(--deep-earth);
  margin: 0 0 6px;
}
.ep-role {
  font-size: 14px; line-height: 22px;
  color: var(--success-emerald);
  font-weight: 600;
  margin: 0 0 10px;
}
.ep-body > p:last-child { color: var(--on-surface-variant); margin: 0; max-width: 62ch; }

.episode-bonus .ep-num { color: var(--secondary); }

/* ── Subscribe form ────────────────────────────────────── */
.subscribe {
  margin-top: 40px;
  padding: 32px 28px;
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-top: 1.5px solid var(--royal-gold);
  border-radius: var(--r-lg);
}

.field { position: relative; margin-bottom: 16px; }
.field input {
  width: 100%;
  font: 400 16px/24px var(--sans);
  color: var(--on-surface);
  background: var(--surface-container-lowest);
  border: 1.5px solid var(--outline-variant);
  border-radius: var(--r);
  padding: 24px 16px 10px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field input:focus {
  outline: none;
  border-color: var(--royal-gold);
  box-shadow: inset 0 0 0 2px rgba(212, 175, 55, 0.16);
}
.field label {
  position: absolute; left: 17px; top: 17px;
  font: 400 16px/24px var(--sans);
  color: var(--ink-muted);
  pointer-events: none;
  transform-origin: left top;
  transition: transform .16s var(--ease), color .16s var(--ease);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label {
  transform: translateY(-11px) scale(0.72);
  color: var(--on-surface-variant);
  font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.field input[aria-invalid="true"] { border-color: var(--error); }

.subscribe .btn { width: 100%; }
@media (min-width: 520px) { .subscribe .btn { width: auto; } }

.form-note { font-size: 14px; line-height: 20px; margin: 14px 0 0; min-height: 20px; }
.form-note.ok  { color: var(--success-emerald); font-weight: 600; }
.form-note.err { color: var(--error); font-weight: 600; }

.form-alt { font-size: 14px; line-height: 22px; color: var(--ink-muted); margin: 12px 0 0; }
.form-alt a { color: var(--primary); text-underline-offset: 3px; }

/* ── Tiles ─────────────────────────────────────────────── */
.tile {
  display: grid; gap: 8px; align-content: center;
  min-height: 128px;
  padding: 24px;
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-top: 1.5px solid var(--royal-gold);
  border-radius: var(--r-lg);
  text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.tile:hover { transform: scale(1.02); box-shadow: var(--glow-lift); }
.tile-key {
  font: 700 12px/16px var(--sans);
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink-muted);
}
.tile-val {
  font-family: var(--serif); font-size: 19px; line-height: 27px; font-weight: 700;
  color: var(--deep-earth);
  overflow-wrap: anywhere;
}

/* Larger tile with a description and an affordance line. */
.tile-lg {
  /* flex column so .tile-go can be pushed to the bottom edge */
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 10px;
  min-height: 184px;
  padding: 28px;
}
.tile-lg .tile-val { font-size: 22px; line-height: 30px; }
.tile-note {
  font-size: 15px; line-height: 23px;
  color: var(--on-surface-variant);
}
.tile-go {
  margin-top: auto;
  padding-top: 8px;
  font: 700 12px/16px var(--sans);
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--gold-text);
}

.section-foot { margin-top: 40px; display: flex; justify-content: center; }

/* ── Page header (interior pages) ──────────────────────── */
.page-hero {
  padding-block: 48px 56px;
  border-bottom: 1px solid var(--outline-variant);
}
@media (min-width: 768px) { .page-hero { padding-block: 64px 72px; } }
.page-hero .display { margin-bottom: 20px; }

.lede-wide { max-width: 62ch; }

.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-bottom: 24px;
  font: 700 12px/16px var(--sans);
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink-muted);
}
.breadcrumb a { display: inline-block; padding-block: 4px 2px; color: var(--on-surface-variant); text-decoration: none; border-bottom: 1.5px solid transparent; }
.breadcrumb a:hover { border-bottom-color: var(--royal-gold); }
.breadcrumb [aria-current="page"] { color: var(--gold-text); }

.jump-nav {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; gap: 12px;
}
@media (min-width: 700px) { .jump-nav { grid-template-columns: repeat(3, 1fr); gap: var(--gutter); } }
.jump-nav a {
  display: flex; align-items: baseline; gap: 12px;
  padding: 18px 20px;
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-lg);
  text-decoration: none;
  font-family: var(--serif); font-size: 18px; font-weight: 700;
  color: var(--deep-earth);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.jump-nav a:hover { border-color: var(--royal-gold); transform: scale(1.02); }
.jump-key {
  font: 700 12px/16px var(--sans);
  letter-spacing: .05em;
  color: var(--gold-text);
}

.subhead-flush { margin-top: 0; }
.section-dark .subhead { color: var(--warm-ivory); border-bottom-color: rgba(212, 175, 55, .28); }

/* ── Downloads ─────────────────────────────────────────── */
.downloads { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }

.dl {
  display: grid; gap: 16px;
  padding: 24px;
  background: rgba(250, 249, 246, 0.045);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-top: 1.5px solid var(--royal-gold);
  border-radius: var(--r-lg);
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
@media (min-width: 700px) {
  .dl { grid-template-columns: 1fr 120px; align-items: center; gap: var(--gutter); }
}
.dl:not(.dl-pending):hover { background: rgba(250, 249, 246, 0.08); }

.dl-main { display: grid; gap: 8px; text-decoration: none; }
.dl-title {
  font-family: var(--serif); font-size: 19px; line-height: 27px; font-weight: 700;
  color: var(--warm-ivory);
}
.dl:not(.dl-pending) a.dl-main:hover .dl-title { color: var(--royal-gold); }
.dl-desc { font-size: 15px; line-height: 23px; color: rgba(250, 249, 246, .72); max-width: 62ch; }

.dl-side { display: flex; align-items: center; gap: 10px; }
@media (min-width: 700px) { .dl-side { flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; } }

.dl-type {
  font: 700 11px/16px var(--sans);
  letter-spacing: .08em;
  padding: 5px 11px;
  border-radius: var(--r-full);
  background: var(--royal-gold);
  color: var(--deep-earth);
}
.dl-size {
  font: 400 13px/18px var(--sans);
  color: rgba(250, 249, 246, .55);
  font-variant-numeric: tabular-nums;
}
.dl-status {
  font: 700 11px/16px var(--sans);
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--inverse-primary);
}

/* Pending items are inert: no link, no hover, dimmed chip. */
.dl-pending { border-top-color: var(--outline); opacity: .74; }
.dl-pending .dl-type { background: transparent; color: rgba(250, 249, 246, .6); border: 1px solid rgba(250, 249, 246, .3); }

.dl-footnote {
  margin: 32px 0 0;
  font-size: 15px; line-height: 23px;
  color: rgba(250, 249, 246, .72);
}
.link-gold-inline { color: var(--gold-text); text-underline-offset: 3px; }

/* ── Footer ────────────────────────────────────────────── */
.site-footer {
  background: var(--on-surface);
  color: var(--inverse-on-surface);
  padding-top: 64px;
}

.footer-shell { display: grid; gap: 48px; padding-bottom: 48px; }
@media (min-width: 900px) { .footer-shell { grid-template-columns: 4fr 6fr; gap: 64px; } }

.footer-brand p {
  margin: 20px 0 0;
  font-size: 16px; line-height: 26px;
  color: rgba(243, 240, 239, .7);
  max-width: 40ch;
}

.footer-nav { display: grid; gap: 32px; }
@media (min-width: 560px) { .footer-nav { grid-template-columns: repeat(3, 1fr); gap: var(--gutter); } }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-nav a {
  /* 22px line + 8px padding = 30px; gap dropped 12->4 so spacing reads the same. */
  display: inline-block;
  min-width: 24px;
  padding-block: 4px;
  font-size: 15px; line-height: 22px;
  color: rgba(243, 240, 239, .78);
  text-decoration: none;
  transition: color .18s var(--ease);
}
.footer-nav a:hover { color: var(--royal-gold); }

.footer-base {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  justify-content: space-between;
  padding-block: 24px;
  border-top: 1px solid rgba(212, 175, 55, .25);
}
.footer-base p {
  margin: 0;
  font: 700 12px/16px var(--sans);
  letter-spacing: .05em; text-transform: uppercase;
  color: rgba(243, 240, 239, .5);
}
.footer-base em { color: var(--royal-gold); font-style: italic; text-transform: none; letter-spacing: .02em; }

/* ═══════════════════════════════════════════════════════════
   COPY BRIEF ADDITIONS — Aug 2026
   New components only. Existing tokens, type scale, shapes and
   elevation are reused unchanged so the look and feel holds.
   ═══════════════════════════════════════════════════════════ */

/* ── The three-word lockup ─────────────────────────────── */
.lockup {
  font: 700 12px/16px var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin: 0;
}
.lockup-lg {
  color: var(--gold-display);
  font-family: var(--serif);
  font-size: 20px; line-height: 28px; font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
}

/* ── Centred statement band ────────────────────────────── */
.statement { max-width: 60ch; margin-inline: auto; text-align: center; }
.statement p {
  font-family: var(--serif);
  font-size: 22px; line-height: 34px;
  color: var(--deep-earth);
  margin: 0 0 20px;
  text-wrap: balance;
}
@media (min-width: 768px) { .statement p { font-size: 25px; line-height: 38px; } }
.statement p:last-child { margin-bottom: 0; }
.statement .eyebrow {
  font: 700 12px/16px var(--sans);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 20px;
}
.statement .statement-turn {
  font-family: var(--serif);
  font-style: italic;
  color: var(--primary-container);
}
.section-dark .statement p { color: var(--warm-ivory); }
.section-dark .statement .statement-turn { color: var(--royal-gold); }

/* ── Muted card (used for the "what we are not" side) ──── */
.card-muted { border-top-color: var(--outline-variant); }
.card-muted .card-title { color: var(--on-surface-variant); }

/* ── Theory of change triad ────────────────────────────── */
.triad { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 0; }
.triad li {
  display: grid; gap: 6px;
  padding: 24px 0;
  border-top: 1px solid var(--outline-variant);
}
.triad li:last-child { border-bottom: 1px solid var(--outline-variant); }
.triad dt, .triad-term {
  font-family: var(--serif);
  font-size: 20px; line-height: 28px; font-weight: 700;
  color: var(--deep-earth);
}
.triad-def { font-size: 16px; line-height: 26px; color: var(--on-surface-variant); }

/* ── Pillar blocks (Our Work) ──────────────────────────── */
.pillar + .pillar { border-top: 1px solid var(--outline-variant); }
.pillar-num {
  font-family: var(--serif);
  font-size: 40px; line-height: 1;
  color: var(--gold-display);
  display: block;
  margin-bottom: 16px;
}
.looks-like {
  margin: 32px 0 0;
  padding-top: 24px;
  border-top: 1.5px solid var(--royal-gold);
}
.looks-like > .eyebrow { margin-bottom: 12px; }
.looks-like .tag-row { margin-top: 0; }
.growing-note {
  margin: 16px 0 0;
  font-size: 14px; line-height: 22px;
  color: var(--ink-muted);
  font-style: italic;
}

/* ── Coming-soon tiles (Tools Lab categories) ──────────── */
.tile-soon {
  border-top-color: var(--outline-variant);
  background: var(--surface-container-low);
  cursor: default;
}
.tile-soon:hover { transform: none; box-shadow: none; }
.tile-soon .tile-val { color: var(--on-surface-variant); }
.tile-status {
  margin-top: auto;
  padding-top: 8px;
  font: 700 12px/16px var(--sans);
  letter-spacing: .05em; text-transform: uppercase;
  /* --outline is a border token; at 12px it only reaches 4.06:1. */
  color: var(--on-surface-variant);
}

/* ── Contact details ───────────────────────────────────── */
.contact-list { margin: 0; display: grid; gap: 20px; }
.contact-list > div { display: grid; gap: 4px; }
.contact-list dt {
  font: 700 12px/16px var(--sans);
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink-muted);
}
.contact-list dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px; line-height: 27px; font-weight: 700;
  color: var(--deep-earth);
  overflow-wrap: anywhere;
}
.contact-list dd a { text-decoration: none; border-bottom: 1.5px solid var(--royal-gold); padding-bottom: 2px; }
.contact-list dd a:hover { color: var(--primary); }

.signoff {
  margin: 40px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--outline-variant);
  font-family: var(--serif); font-style: italic;
  font-size: 18px; line-height: 28px;
  color: var(--on-surface-variant);
}

/* ── Long-form statement (archived writing) ────────────── */
.statement-doc { max-width: 68ch; }
.statement-doc p { font-size: 18px; line-height: 30px; color: var(--on-surface-variant); margin: 0 0 20px; }
.statement-doc p:last-child { margin-bottom: 0; }

/* ── Footer contact block ──────────────────────────────── */
.footer-contact { margin: 24px 0 0; display: grid; gap: 6px; }
.footer-contact a,
.footer-contact span {
  font-size: 15px; line-height: 24px;
  color: rgba(243, 240, 239, .78);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.footer-contact a:hover { color: var(--royal-gold); }
.footer-brand .lockup { margin: 16px 0 0; }

/* Dark sections: body copy and spaced button rows. */
.section-dark .body-lg { color: rgba(250, 249, 246, .82); }
.section-dark .body-lg strong { color: var(--warm-ivory); }
.btn-row-spaced { margin-top: 32px; }
.section-head.center .btn-row { justify-content: center; }

/* Triad on a dark ground. */
.triad-dark li { border-top-color: rgba(212, 175, 55, .28); }
.triad-dark li:last-child { border-bottom-color: rgba(212, 175, 55, .28); }
.triad-dark .triad-term { color: var(--warm-ivory); }
.triad-dark .triad-def { color: rgba(250, 249, 246, .72); }

/* ── Press states ────────────────────────────────────────
   Hover and focus were covered; nothing acknowledged a press, which is the
   only feedback a touch user gets. Scale down slightly, or settle back out
   of the hover lift. */
.btn:active { transform: scale(0.99); }
.tile:active,
.jump-nav a:active,
.card:active { transform: scale(1); }
.primary-nav .nav-cta:active { transform: scale(0.99); }

/* ── Browser surfaces ───────────────────────────────────────
   Scrollbar, caret, underline offset and numerals ship with defaults that
   belong to no design system. Theme them from the palette. */
html {
  scrollbar-color: var(--outline) transparent;
  scrollbar-width: thin;
}
.field input { caret-color: var(--secondary); }
.form-alt a,
.link-gold-inline,
.contact-list dd a,
.dl-footnote a { text-underline-offset: 3px; }
.ep-date, .dl-size { font-variant-numeric: tabular-nums; }

/* ═══════════════════════════════════════════════════════════
   UPDATES — posts mirrored from Instagram (built from content/posts/)
   Type sizes stay on the DESIGN.md ramp: 12 / 16 / 18 / 20 / 28.
   ═══════════════════════════════════════════════════════════ */

/* ── Post cards ────────────────────────────────────────── */
.post-grid { align-items: start; }
.post-card-link {
  display: grid; height: 100%;
  color: inherit; text-decoration: none;
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-top: 1.5px solid var(--royal-gold);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.post-card-link:hover { transform: scale(1.01); box-shadow: var(--glow-soft); }
.post-card-media { display: block; aspect-ratio: 4 / 5; background: var(--surface-container); }
.post-card-media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.post-card-body { display: grid; gap: 8px; padding: 20px 20px 24px; }
.post-card-body .eyebrow { margin: 0; }
.post-card-title { font: 700 20px/28px var(--serif); color: var(--deep-earth); }
.post-card-link:hover .post-card-title {
  text-decoration: underline; text-decoration-color: var(--royal-gold);
  text-decoration-thickness: 1.5px; text-underline-offset: 4px;
}
.post-card-date {
  font: 700 12px/16px var(--sans); letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink-muted); font-variant-numeric: tabular-nums;
}
.post-card-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-closed {
  background: rgba(186, 26, 26, .06);
  border-color: rgba(186, 26, 26, .28);
  color: var(--error);
}

.statements-more { margin-top: 64px; }
.statements-more > .eyebrow { margin-bottom: 24px; }

/* ── Post page ─────────────────────────────────────────── */
.post-hero { padding-block: 40px 48px; }
.post-title { max-width: 24ch; }
.post-hero .eyebrow a { color: inherit; text-underline-offset: 3px; }
.post-hero .dateline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }

.post-layout { display: grid; gap: 40px; }
@media (min-width: 900px) {
  .post-layout { grid-template-columns: minmax(0, 540px) minmax(0, 1fr); column-gap: 64px; align-items: start; }
  .post-media { position: sticky; top: 104px; }
}

/* Slides: a native scroll-snap row. Swipe, trackpad, or focus it and use the arrow keys. */
.slides {
  display: flex; gap: 12px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  border-radius: var(--r-lg);
}
.slide {
  position: relative; flex: 0 0 100%; margin: 0;
  scroll-snap-align: start;
  aspect-ratio: 4 / 5;
  background: var(--surface-container);
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.slide img { display: block; width: 100%; height: 100%; object-fit: contain; }
.slide-count {
  position: absolute; right: 12px; bottom: 12px;
  padding: 4px 10px; border-radius: var(--r-full);
  background: rgba(28, 27, 27, .72); color: var(--warm-ivory);
  font: 700 12px/16px var(--sans); letter-spacing: .05em; font-variant-numeric: tabular-nums;
}
.slides-hint { margin: 12px 0 0; font-size: 16px; line-height: 24px; color: var(--ink-muted); }

.prose { font-size: 18px; line-height: 30px; color: var(--on-surface-variant); max-width: 62ch; }
.prose p, .prose ul, .prose ol { margin: 0 0 20px; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose > :last-child { margin-bottom: 0; }
.prose a { color: var(--primary); text-underline-offset: 3px; }
.prose strong { color: var(--deep-earth); }

.post-links { margin-top: 32px; }
.closed-note {
  margin: 32px 0 0; padding: 16px 20px;
  border-left: 2px solid var(--outline);
  background: var(--surface-container-low);
  color: var(--on-surface-variant); font-weight: 600;
}
.post-insta { margin: 24px 0 0; font: 700 12px/16px var(--sans); letter-spacing: .05em; text-transform: uppercase; }
.post-insta a { display: inline-block; padding-block: 8px; color: var(--gold-text); text-underline-offset: 3px; }

.transcript { margin-top: 32px; border-block: 1px solid var(--outline-variant); }
.transcript summary {
  cursor: pointer; padding: 16px 0;
  font: 700 12px/16px var(--sans); letter-spacing: .05em; text-transform: uppercase;
  color: var(--on-surface);
}
.transcript ol { margin: 0 0 20px; padding-left: 1.5em; font-size: 16px; line-height: 24px; color: var(--on-surface-variant); }
.transcript li { white-space: pre-line; }
.transcript li + li { margin-top: 12px; }

/* ── Need support? (GBV posts) ─────────────────────────── */
.support {
  --gold-text: var(--royal-gold);
  --focus-ring: var(--royal-gold);
  margin-top: 40px; padding: 28px 24px;
  background: var(--deep-earth); color: var(--inverse-on-surface);
  border-top: 2px solid var(--royal-gold);
  border-radius: var(--r-lg);
}
.support-title { font: 700 28px/36px var(--serif); color: var(--warm-ivory); margin: 0 0 8px; }
.support p { margin: 0; font-size: 16px; line-height: 24px; color: rgba(250, 249, 246, .78); }
.support-list { list-style: none; margin: 20px 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 520px) { .support-list { grid-template-columns: repeat(2, 1fr); } }
.support-list a {
  display: flex; align-items: baseline; gap: 12px;
  min-height: 48px; padding: 12px 16px;
  border: 1px solid rgba(212, 175, 55, .35); border-radius: var(--r);
  color: var(--warm-ivory); text-decoration: none;
}
.support-list a:hover { border-color: var(--royal-gold); background: rgba(250, 249, 246, .05); }
.support-num { font: 700 20px/28px var(--sans); color: var(--royal-gold); font-variant-numeric: tabular-nums; }
.support-who { font-size: 16px; line-height: 24px; }

/* Quick exit: always on screen on GBV pages. Leaves via location.replace (main.js). */
.quick-exit {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  display: inline-flex; align-items: center;
  min-height: 48px; padding: 12px 20px;
  background: var(--error); color: #fff;
  border-radius: var(--r); box-shadow: var(--glow-lift);
  font: 700 16px/24px var(--sans); letter-spacing: .05em; text-transform: uppercase;
  text-decoration: none;
}
.quick-exit:hover { background: #93000a; }
.quick-exit:focus-visible { outline-color: var(--deep-earth); }
body:has(.quick-exit) .site-footer { padding-bottom: 96px; }
