/* ============================================================
   Michael Garman for State Representative — Design System
   Tokens documented in DESIGN.md
   ============================================================ */

:root {
  /* --- Color: brand (OKLCH, hex fallback in comments) --- */
  --navy:        oklch(0.30 0.09 265);   /* ~#142e63 — drench color, hero/bands */
  --navy-800:    oklch(0.24 0.075 265);  /* ~#0f2350 — deeper navy, footer base */
  --navy-700:    oklch(0.36 0.095 265);  /* ~#1c3c80 — hover/lighter panel on navy */
  --navy-600:    oklch(0.42 0.09 265);   /* ~#2a4d9e — borders/dividers on navy */

  --gold:        oklch(0.83 0.17 85);    /* ~#FDB913 — sole action/accent color */
  --gold-600:    oklch(0.74 0.17 80);    /* darker gold — hover state */
  --gold-ink:    oklch(0.22 0.05 85);    /* near-black ink for text set on gold */

  --off-white:   oklch(0.97 0.005 265);  /* true off-white, cool (not cream) */
  --white:       #ffffff;

  --ink:         oklch(0.20 0.03 265);   /* body text on light surfaces */
  --muted-light: oklch(0.40 0.03 265);   /* secondary text on light surfaces */
  --muted-navy:  oklch(0.86 0.03 265);   /* secondary text on navy (near-white, cool) */
  --line-light:  oklch(0.88 0.008 265);  /* hairline dividers on light */

  /* --- Type --- */
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Source Serif 4", Georgia, serif;

  --fs-h1: clamp(2.75rem, 2rem + 3.6vw, 5.5rem);
  --fs-h2: clamp(2.1rem, 1.7rem + 1.8vw, 3.4rem);
  --fs-h3: clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem);
  --fs-lead: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --fs-quote: clamp(1.4rem, 1.15rem + 1.1vw, 2.1rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;

  --tracking-display: -0.02em;

  /* --- Spacing / rhythm --- */
  --space-section: clamp(3.5rem, 3rem + 3vw, 7rem);
  --space-block: clamp(1.75rem, 1.5rem + 1vw, 3rem);
  --content-max: 1200px;
  --measure: 66ch;

  --radius: 2px;
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, p, blockquote, figure { margin: 0; }
input { font: inherit; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  background: var(--off-white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--tracking-display);
  text-transform: uppercase;
  text-wrap: balance;
  line-height: 1.02;
}

h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; }

p { text-wrap: pretty; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  z-index: 200;
  transition: top 0.2s var(--ease-out-quart);
}
.skip-link:focus { top: 1rem; }

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

.section-inner {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 1rem;
  padding: 0.85em 1.6em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: transform 0.15s var(--ease-out-quart), background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  background: var(--gold);
  color: var(--gold-ink);
}
.btn-gold:hover { background: var(--gold-600); }

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

.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

.chip {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.9rem;
  color: var(--gold-ink);
  background: var(--gold);
  padding: 0.4em 0.9em;
  border-radius: var(--radius);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid var(--navy-600);
}

.header-inner {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 0.75rem clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  margin-right: auto;
  color: var(--white);
}
.wordmark-name {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
}
.wordmark-sub {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--muted-navy);
  letter-spacing: 0.01em;
}

.primary-nav {
  display: none;
  gap: clamp(1rem, 2vw, 2rem);
}
.primary-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: var(--white);
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease;
}
.primary-nav a:hover { border-color: var(--gold); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--navy-600);
  border-radius: var(--radius);
}

.btn-donate { padding: 0.6em 1.3em; font-size: 0.9rem; }

/* Mobile nav drawer */
.primary-nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--navy);
  padding: 1rem clamp(1.25rem, 4vw, 3rem) 1.5rem;
  border-bottom: 1px solid var(--navy-600);
  gap: 0.25rem;
}
.primary-nav.is-open a { padding: 0.6rem 0; }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .primary-nav {
    display: flex;
    position: static;
    background: none;
    padding: 0;
    border: 0;
  }
}

/* ============================================================
   Hero
   Mobile-first: solid navy text block, then the portrait as a
   natural inline image below it (no scrim — face fully visible).
   ≥900px: portrait becomes the full-bleed background with a
   side-weighted navy scrim; text sits left, face stays clear.
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--navy);
  overflow: hidden;
}

.hero-inner {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding: clamp(2.5rem, 6vh, 4rem) clamp(1.25rem, 4vw, 3rem) clamp(2.25rem, 5vh, 3.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  color: var(--white);
}

.hero-media {
  width: 100%;
}
.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3; /* gentle crop of the landscape frame — face stays whole */
  object-fit: cover;
  object-position: 55% top;
}

/* Scrim only exists for the desktop overlay treatment */
.hero-scrim { display: none; }

.hero .chip { align-self: flex-start; }

.hero h1 {
  font-size: var(--fs-h1);
  color: var(--white);
  max-width: 14ch;
}

.hero-sub {
  font-size: var(--fs-lead);
  max-width: 42ch;
  color: var(--muted-navy);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.hero-district {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.9rem;
  color: var(--muted-navy);
  margin-top: 0.75rem;
}

/* Tablet: image keeps its natural landscape frame — no crop at all */
@media (min-width: 600px) and (max-width: 899px) {
  .hero-media img {
    aspect-ratio: 2500 / 1669;
    object-position: center top;
  }
}

@media (min-width: 900px) {
  .hero {
    flex-direction: row;
    align-items: center;
    min-height: 92vh;
  }
  .hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
  }
  .hero-media img {
    height: 100%;
    aspect-ratio: auto;
    object-position: 78% 15%;
  }
  .hero-scrim {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, oklch(0.30 0.09 265 / 0.96) 0%, oklch(0.30 0.09 265 / 0.86) 38%, oklch(0.30 0.09 265 / 0.25) 68%, oklch(0.30 0.09 265 / 0.05) 100%);
  }
  .hero-inner {
    position: relative;
    z-index: 2;
    padding-block: 0;
  }
  .hero h1 { max-width: 11ch; }
}

/* Hero load reveal — pure CSS, safe with no JS */
.hero-reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: hero-rise 0.8s var(--ease-out-quart) both;
}
.hero-reveal-1 { animation-delay: 0.05s; }
.hero-reveal-2 { animation-delay: 0.16s; }
.hero-reveal-3 { animation-delay: 0.28s; }
.hero-reveal-4 { animation-delay: 0.4s; }
.hero-reveal-5 { animation-delay: 0.5s; }

@keyframes hero-rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Scroll reveals (progressive enhancement)
   Visible by default; only hidden once JS confirms it's running.
   ============================================================ */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out-quart), transform 0.7s var(--ease-out-quart);
}
.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Priorities
   ============================================================ */
.priorities-section {
  background: var(--off-white);
  padding-block: var(--space-section);
}

.priorities-section h2 { margin-bottom: var(--space-block); max-width: 16ch; }

.priorities-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.priority-featured {
  background: var(--navy);
  color: var(--white);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius);
}
.priority-featured .priority-label { color: var(--gold); }
.priority-featured .priority-text { color: var(--muted-navy); font-size: var(--fs-lead); max-width: 46ch; }

.priority-list {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2rem);
}
.priority-list li {
  padding-block: clamp(1.25rem, 2.5vw, 1.75rem);
  border-top: 1px solid var(--line-light);
}
.priority-list li:last-child { border-bottom: 1px solid var(--line-light); }

.priority-label {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.7rem);
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.priority-text {
  color: var(--muted-light);
  max-width: var(--measure);
}

@media (min-width: 900px) {
  .priorities-grid {
    grid-template-columns: 1.1fr 1fr;
    align-items: start;
  }
}

.priorities-link {
  margin-top: var(--space-block);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.05rem;
}
.priorities-link a {
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.1em;
}
.priorities-link a:hover { color: var(--gold-600); }

/* ============================================================
   Meet Michael
   ============================================================ */
.meet-section {
  background: var(--white);
  padding-block: var(--space-section);
}

.meet-section h2 { margin-bottom: var(--space-block); }

/* Opener + headshot share the top of the section: no dead zones.
   Full-bleed like the rent band, since it now carries the street
   scene behind it (see "Story scenes" system below). */
.meet-intro {
  display: grid;
  gap: clamp(1.75rem, 3vw, 3rem);
  align-items: center;
  margin-inline: calc(clamp(1.25rem, 4vw, 3rem) * -1);
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  padding-block: clamp(3rem, 6vw, 5rem);
  margin-bottom: var(--space-section);
  min-height: clamp(26rem, 46vw, 34rem);
}

.letter-opener {
  font-size: var(--fs-quote);
  font-style: italic;
  font-weight: 500;
  line-height: 1.35;
  color: var(--navy);
  max-width: 36ch;
}
/* On-scene: opener now sits over the College Hill street scene */
.meet-intro .letter-opener { color: var(--white); }
.meet-intro .story-portrait img {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

@media (min-width: 800px) {
  .meet-intro {
    grid-template-columns: 1.15fr 1fr;
  }
}

.story-block-solo {
  max-width: var(--measure);
  margin-bottom: var(--space-section);
}
.story-block-solo.story-scene {
  max-width: none;
  margin-inline: calc(clamp(1.25rem, 4vw, 3rem) * -1);
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  padding-block: clamp(3rem, 6vw, 5rem);
  min-height: clamp(22rem, 42vw, 30rem);
  display: flex;
  align-items: flex-end;
}
.story-block-solo.story-scene .story-scene-content {
  max-width: var(--measure);
}

.story-label {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.story-body {
  color: var(--muted-light);
  max-width: var(--measure);
}

.pull-quote {
  position: relative;
  font-size: var(--fs-quote);
  font-style: italic;
  font-weight: 500;
  line-height: 1.3;
  color: var(--navy);
  max-width: 26ch;
  margin-top: 1rem;
}
.pull-quote::before {
  content: "\201C";
  color: var(--gold);
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 700;
  margin-right: 0.05em;
}
/* On-scene: pull-quote sits on a duotoned photo instead of white/off-white */
.pull-quote-on-scene { color: var(--white); }

.story-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  aspect-ratio: 2091 / 1672;
}

/* The signature moment: full-width navy band, oversized quote */
.rent-band {
  position: relative;
  background: var(--navy);
  color: var(--white);
  margin-inline: calc(clamp(1.25rem, 4vw, 3rem) * -1);
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  padding-block: clamp(3.5rem, 7vw, 6rem);
  margin-block: var(--space-section);
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  overflow: hidden;
}
.rent-band-inner {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}
.story-label-on-navy { color: var(--gold); }
.pull-quote-signature {
  color: var(--white);
  font-size: clamp(1.9rem, 1.1rem + 3.2vw, 3.75rem);
  line-height: 1.12;
  max-width: 24ch;
  margin-top: 0.75rem;
}
.pull-quote-signature::before { color: var(--gold); }
.story-body-on-navy {
  color: var(--muted-navy);
  margin-top: 2rem;
  max-width: 58ch;
}

/* ============================================================
   Story scenes — "Two Rhode Islands" imagery system
   One shared duotone/scrim recipe for every story background
   image. Convention: each scene is a stack of
     .story-scene-placeholder  (quiet navy gradient + label — the
                                 default, always in the DOM)
     .story-scene-img          (the real photo; a plain <img src>
                                 with onerror hiding itself, so a
                                 missing file just reveals the
                                 placeholder underneath — no JS
                                 required for the fallback)
     .story-scene-tint         (navy multiply — desaturation lives
                                 on the img's filter, see below)
     .story-scene-scrim        (directional gradient scrim, one
                                 modifier per block for where its
                                 text sits)
   Dropping a correctly-named JPEG into assets/ activates it with
   zero code changes — the <img src> already points at the final
   filename.
   ============================================================ */
.story-scene { position: relative; isolation: isolate; }

.story-scene-media,
.story-scene-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.story-scene-placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-800) 100%);
}
.story-scene-placeholder span {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--muted-navy);
  opacity: 0.6;
  padding: 0.6em 1.1em;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
}

/* Oversized so the parallax translateY never exposes an edge */
.story-scene-img {
  position: absolute;
  top: -12%;
  left: 0;
  width: 100%;
  height: 124%;
  object-fit: cover;
  z-index: 1;
  /* Desaturate 60–80%, darken, so photos read as atmosphere, not stock photography */
  filter: grayscale(72%) contrast(1.08) brightness(0.82) saturate(1.15);
  will-change: transform;
}

.story-scene-tint {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--navy);
  mix-blend-mode: multiply;
  opacity: 0.55;
}

.story-scene-scrim {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.story-scene-content,
.story-showpiece-content {
  position: relative;
  z-index: 4;
}

/* Opener: image reads through the calm upper-left of the frame
   (text column) and goes solid behind the headshot column so the
   two photographs never compete. */
.story-scene-scrim-opener {
  background: linear-gradient(
    100deg,
    oklch(0.24 0.075 265 / 0.62) 0%,
    oklch(0.24 0.075 265 / 0.78) 38%,
    oklch(0.24 0.075 265 / 0.96) 58%,
    oklch(0.24 0.075 265 / 1) 100%
  );
}

/* Single-column story blocks (My Grandma): vignette toward the
   bottom, where the pull-quote needs the most contrast. */
.story-scene-scrim-block {
  background: linear-gradient(
    180deg,
    oklch(0.24 0.075 265 / 0.68) 0%,
    oklch(0.24 0.075 265 / 0.84) 55%,
    oklch(0.24 0.075 265 / 0.92) 100%
  );
}

/* Rent band: heaviest scrim of all — the gold quote must stay the
   loudest thing on the page. */
.story-scene-scrim-rent {
  background: linear-gradient(
    180deg,
    oklch(0.24 0.075 265 / 0.88) 0%,
    oklch(0.24 0.075 265 / 0.95) 100%
  );
}

/* Showpiece crossfade: identical recipe on both layers so the
   text's contrast never changes as the photos dissolve into each
   other — only the photography underneath crossfades. */
.story-scene-scrim-showpiece {
  background: linear-gradient(
    90deg,
    oklch(0.24 0.075 265 / 0.92) 0%,
    oklch(0.24 0.075 265 / 0.82) 45%,
    oklch(0.24 0.075 265 / 0.75) 100%
  );
}

/* ------------------------------------------------------------
   The Farm — showpiece crossfade
   A pinned scroll moment: the sticky viewport stays fixed while
   its ~200vh parent scrolls past, and script.js crossfades the
   two photo layers' opacity based on scroll progress through that
   range (rAF-driven, native scroll only — no scroll-jacking).
   ------------------------------------------------------------ */
.story-showpiece {
  position: relative;
  height: 200vh;
  margin-block: var(--space-section);
  margin-inline: calc(clamp(1.25rem, 4vw, 3rem) * -1);
}
.story-showpiece-sticky {
  position: sticky;
  top: var(--header-h, 4.25rem);
  height: calc(100vh - var(--header-h, 4.25rem));
  min-height: 22rem;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  /* Safety floor: if an image is missing or mid-fade, any bleed-through
     goes dark (on-brand), never a white flash. */
  background: var(--navy, #142e63);
}
.story-scene-layer[data-layer="0"] { opacity: 1; }
.story-scene-layer[data-layer="1"] { opacity: 0; }

.story-showpiece-content {
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  padding-block: clamp(2rem, 5vw, 3.5rem);
  max-width: 42rem;
  color: var(--white);
}
.story-showpiece-content .pull-quote { max-width: 24ch; }

/* Under 768px and prefers-reduced-motion: no pin, no crossfade —
   the two frames render as static stacked blocks with the text
   between them (DOM order is already image / content / image). */
@media (max-width: 767px), (prefers-reduced-motion: reduce) {
  .story-showpiece {
    height: auto;
    margin-block: 0;
  }
  .story-showpiece-sticky {
    position: static;
    height: auto;
    display: block;
  }
  .story-scene-layer {
    position: relative;
    inset: auto;
    height: 15rem;
  }
  .story-scene-layer[data-layer="1"] { opacity: 1; }
  .story-showpiece-content {
    max-width: none;
    background: var(--navy);
    padding-block: clamp(2.25rem, 6vw, 3.5rem);
  }
}

.meet-close {
  max-width: var(--measure);
  color: var(--muted-light);
  margin-bottom: var(--space-block);
}
.meet-close a { color: var(--navy); border-bottom: 1px solid var(--gold); }

.letter-expander {
  border-top: 1px solid var(--line-light);
  padding-top: var(--space-block);
}
.letter-expander summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 1.1rem;
  color: var(--navy);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.letter-expander summary::-webkit-details-marker { display: none; }
.letter-expander summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6em;
  height: 1.6em;
  border: 2px solid var(--gold);
  border-radius: 50%;
  font-size: 1.1em;
  transition: transform 0.2s var(--ease-out-quart);
}
.letter-expander[open] summary::before { content: "\2212"; }

.letter-full {
  max-width: var(--measure);
  margin-top: var(--space-block);
  display: grid;
  gap: 1.1rem;
  color: var(--muted-light);
}
.letter-full p:first-child,
.letter-full p:last-child {
  font-family: var(--font-display);
  color: var(--navy);
}

/* ============================================================
   Issues index
   ============================================================ */
.issues-section {
  background: var(--off-white);
  padding-block: var(--space-section);
}
.issues-section h2 { margin-bottom: 0.5rem; }
.section-lead {
  font-size: var(--fs-lead);
  color: var(--muted-light);
  margin-bottom: var(--space-block);
}

.issues-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-light);
}
.issues-list li { border-bottom: 1px solid var(--line-light); }
.issues-list a {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-block: 1.1rem;
  transition: padding-left 0.15s ease;
}
.issues-list a:hover { padding-left: 0.5rem; }
.issue-title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 1.1rem;
  color: var(--navy);
}
.issues-list a:hover .issue-title { color: var(--gold-600); }
.issue-stance {
  color: var(--muted-light);
  font-size: 0.95rem;
}

@media (min-width: 760px) {
  .issues-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
  }
  .issues-list li:nth-child(odd) { border-right: 1px solid var(--line-light); padding-right: 1.5rem; }
  .issues-list li:nth-child(even) { padding-left: 1.5rem; }
}

/* ============================================================
   From the campaign trail
   ============================================================ */
.trail-section {
  background: var(--navy);
  padding-block: var(--space-section);
}
.trail-section h2 {
  color: var(--white);
  margin-bottom: 0.5rem;
}
.trail-section .section-lead {
  color: var(--muted-navy);
  margin-bottom: var(--space-block);
}
.trail-section .section-lead a {
  color: var(--gold);
  text-decoration-color: var(--gold-600);
}
.trail-section .section-lead a:hover { color: var(--gold-600); }

.trail-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.trail-item figure { margin: 0; }
.trail-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
}

.trail-caption {
  margin-top: 0.85rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted-navy);
  max-width: 32ch;
}
.trail-date {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

@media (min-width: 860px) {
  .trail-grid { grid-template-columns: repeat(4, 1fr); }
  /* Gentle editorial stagger; margin (not transform) so it doesn't
     fight the data-reveal transition */
  .trail-item:nth-child(even) { margin-top: clamp(1.25rem, 3vw, 2.75rem); }
}

/* ============================================================
   Get involved
   ============================================================ */
.involved-section {
  background: var(--white);
  padding-block: var(--space-section);
}
.involved-section h2 { max-width: 18ch; margin-bottom: var(--space-block); }

/* Varied treatment: two lightweight action rows + one featured
   navy Donate panel (deliberately NOT an identical card grid) */
.involved-layout {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-section);
}

.action-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-light);
}
.action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: clamp(1.5rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line-light);
}
.action-copy h3 { color: var(--navy); margin-bottom: 0.35rem; }
.action-copy p { color: var(--muted-light); max-width: 40ch; }

.donate-panel {
  background: var(--navy);
  color: var(--white);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}
.donate-panel h3 { color: var(--gold); }
.donate-panel p { color: var(--muted-navy); max-width: 32ch; }
.donate-panel .btn { margin-top: 0.5rem; }

@media (min-width: 860px) {
  .involved-layout {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}

.email-capture {
  max-width: 34rem;
}
.email-status {
  margin-top: 0.75rem;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--muted-light);
}
.email-status.is-ok { color: var(--navy); font-weight: 600; }
.email-status.is-error { color: var(--navy); }
.email-capture label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.email-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.email-row input {
  padding: 0.85em 1em;
  border: 2px solid var(--line-light);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}
.email-row input:focus {
  border-color: var(--navy);
  outline: none;
}
@media (min-width: 560px) {
  .email-row { flex-direction: row; }
  .email-row input { flex: 1; }
}

/* ============================================================
   Endorsements (scaffold — no real endorsements yet)
   ============================================================ */
.endorsements-section {
  background: var(--off-white);
  padding-block: var(--space-section);
}
.endorsements-section h2 { margin-bottom: 0.5rem; max-width: 18ch; }
.endorsements-section .section-lead { margin-bottom: var(--space-block); }

.endorsement-avatar {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  border: 1px solid var(--line-light);
  background: transparent;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-600);
  opacity: 0.55;
}

.endorsement-featured {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 3rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.endorsement-avatar-featured {
  width: clamp(4.5rem, 6vw, 6rem);
  height: clamp(4.5rem, 6vw, 6rem);
}
.endorsement-avatar-icon {
  width: 55%;
  height: 55%;
}
.endorsement-featured-copy { flex: 1 1 auto; min-width: 12rem; }
.endorsement-quote {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 500;
  font-size: var(--fs-lead);
  color: var(--muted-light);
  max-width: 40ch;
}
.endorsement-reserved-label {
  margin-top: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--gold-600);
  opacity: 0.75;
}

.endorsement-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2rem);
}
.endorsement-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
}
.endorsement-slot .endorsement-avatar {
  width: 2.75rem;
  height: 2.75rem;
}
.endorsement-slot-label {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.7rem;
  color: var(--muted-light);
  opacity: 0.75;
}

@media (min-width: 640px) {
  .endorsement-row { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   Vote strip
   ============================================================ */
.vote-strip {
  background: var(--navy-800);
  color: var(--white);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.vote-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}
.vote-inner-text {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.vote-headline {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--fs-h3);
  color: var(--gold);
}
.vote-body {
  color: var(--muted-navy);
  max-width: 56ch;
}
.vote-countdown {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.85rem;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

@media (min-width: 760px) {
  .vote-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 2rem; }
  .vote-headline, .vote-body { max-width: 34ch; }
}

/* ------------------------------------------------------------
   District 1 map (inside the vote strip)
   Boundary data: assets/district1.json (US Census TIGER 2024).
   ------------------------------------------------------------ */
.district-map-wrap {
  display: grid;
  gap: clamp(1.75rem, 3vw, 2.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--navy-600);
}

.district-map-figure {
  position: relative;
  width: 100%;
  aspect-ratio: 700 / 334.6;
}
.district-map-figure svg.district-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.district-shape {
  fill: var(--navy);
  stroke: var(--gold);
  stroke-width: 3;
}

.district-map-star {
  position: absolute;
  transform: translate(-12%, -50%);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 58%;
  pointer-events: none;
}
.star-icon {
  flex-shrink: 0;
  color: var(--gold);
  font-size: 1rem;
  line-height: 1;
}
.star-label {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 0.62rem;
  line-height: 1.2;
  color: var(--gold);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.district-hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--muted-navy);
  transition: color 0.15s ease-out;
}
.hotspot-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--navy-600);
  border: 2px solid var(--off-white);
  transition: background-color 0.15s ease-out, border-color 0.15s ease-out, transform 0.15s ease-out;
}
.hotspot-label {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 0.7rem;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}
.district-hotspot:hover .hotspot-dot,
.district-hotspot:focus-visible .hotspot-dot {
  background: var(--white);
  transform: scale(1.15);
}
.district-hotspot:hover .hotspot-label,
.district-hotspot:focus-visible .hotspot-label {
  color: var(--white);
}
.district-hotspot[aria-pressed="true"] .hotspot-dot {
  background: var(--gold);
  border-color: var(--gold);
}
.district-hotspot[aria-pressed="true"] .hotspot-label {
  color: var(--gold);
}

.district-panel {
  background: var(--navy-700);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.district-panel-heading {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 1.15rem;
  color: var(--gold);
}
.district-panel-line {
  color: var(--white);
  max-width: 42ch;
}
.district-panel-voting {
  color: var(--muted-navy);
  font-size: 0.9rem;
  max-width: 54ch;
  border-top: 1px solid var(--navy-600);
  padding-top: 0.85rem;
}
.district-panel-voting a {
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
}

.district-map-source {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--muted-navy);
  opacity: 0.75;
}

@media (min-width: 900px) {
  .district-map-wrap {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--navy-800);
  color: var(--muted-navy);
  padding-block: var(--space-block);
  border-top: 1px solid var(--navy-600);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  font-size: 1.1rem;
}
.footer-contact a:hover { color: var(--gold); }
.disclosure {
  font-size: 0.85rem;
  max-width: 60ch;
  margin-top: 0.5rem;
}
.credit {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .js-reveal [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn, .skip-link, .letter-expander summary::before {
    transition: none;
  }
  .district-hotspot,
  .district-hotspot .hotspot-dot,
  .district-hotspot .hotspot-label {
    transition: none;
  }
  .district-hotspot:hover .hotspot-dot,
  .district-hotspot:focus-visible .hotspot-dot {
    transform: none;
  }
}
