/* ─────────────────────────────────────────────────────────────────
   ADVOCACY
   Civic weight without the flags. Oxblood and navy on ivory.
   ───────────────────────────────────────────────────────────────── */
:root {
  --ground:      #FCFBF9;
  --raised:      #FFFFFF;
  --ink:         #141C33;
  --ink-soft:    #4F5872;
  --ink-faint:   #838BA1;
  --accent:      #7A2233;
  /* Hover DEEPENS the oxblood. Lightening it lands on a dusty rose, which
     is a different palette wearing this one's name. */
  --accent-soft: #5A1825;
  --on-accent:   #FFFFFF;
  --rule:        #E2E1E6;
  --band:        #141C33;
  --on-band:     #F3F1EC;
  --on-band-soft:#A6ADC4;

  --display: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  --ui: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', 'SF Mono', Consolas, monospace;

  --measure: 33rem;
  --gutter: clamp(1.5rem, 5vw, 4rem);
  --shell: 74rem;
}

/* SINGLE-THEME ON PURPOSE.
   Advocacy is an ivory page with a navy band and an oxblood accent. There
   was a dark variant here and it was a mistake: on a phone set to dark the
   ground went navy and the oxblood had to lift to stay legible, which put
   it on a dusty rose — a different palette wearing this one's name.
   A personal identity should not change color with an OS setting.
   `color-scheme: light` also stops mobile browsers auto-darkening it. */
:root { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

::selection { background: var(--accent); color: var(--on-accent); }

:where(a, button):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── type ──────────────────────────────────────────────────────── */

h1, h2, h3 { font-weight: 400; text-wrap: balance; margin: 0; }

/* The lower bound of each clamp is what a phone actually gets — vw only
   overtakes it around 600px. Set too high, the headline ran to five lines
   inside a 20px gutter. */
h1 {
  font-size: clamp(2.1rem, 7.2vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.6rem, 4.2vw, 2.75rem);
  line-height: 1.13;
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  line-height: 1.22;
  letter-spacing: -0.014em;
}

p { margin: 0; }

.eyebrow {
  font-family: var(--ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.prose { max-width: var(--measure); display: flex; flex-direction: column; gap: 1.15rem; }
.prose p { color: var(--ink-soft); }
.prose p.lead { color: var(--ink); font-size: 1.2rem; line-height: 1.5; }

/* ── shell ─────────────────────────────────────────────────────── */

.shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* A single hairline running the height of the page, filling as you go.
   It exists because this is one page — it shows how much is left, which
   a one-pager otherwise never tells you. Desktop only; on a phone the
   scrollbar already does this job. */
.spine { display: none; }
@media (min-width: 1080px) {
  .spine {
    display: block;
    position: fixed;
    left: 2.25rem;
    top: 18vh;
    bottom: 18vh;
    width: 1px;
    background: var(--rule);
    z-index: 5;
  }
  .spine__fill {
    position: absolute;
    inset: 0 0 auto 0;
    height: 0;
    background: var(--accent);
    transform-origin: top;
  }
}

/* ── top bar ───────────────────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  /* Nearly opaque on purpose. At 88% the page text showed THROUGH the bar,
     sharply, wherever backdrop-filter is unsupported or disabled — which
     reads as a rendering fault rather than as frosted glass. */
  background: color-mix(in srgb, var(--ground) 97%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.topbar[data-stuck="true"] { border-bottom-color: var(--rule); }

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.topbar__name {
  font-family: var(--ui);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.topbar__nav { display: none; gap: 1.75rem; }
@media (min-width: 760px) { .topbar__nav { display: flex; } }

.topbar__nav a {
  font-family: var(--ui);
  font-size: 0.83rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 150ms ease;
}
.topbar__nav a:hover { color: var(--accent); }

/* ── buttons ───────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.5rem;
  font-family: var(--ui);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  border: 1px solid var(--accent);
  border-radius: 2px;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}
.btn:hover { background: var(--accent-soft); border-color: var(--accent-soft); }
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 0.55rem 1.1rem; font-size: 0.82rem; }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent); color: var(--on-accent); }
/* Solid oxblood on the navy band. A ghost button was the only thing standing
   in for the accent down there, which left the primary call to action as the
   quietest element on the page. */
.btn--on-band { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--on-band:hover { background: var(--accent-soft); border-color: var(--accent-soft); }

/* ── sections ──────────────────────────────────────────────────── */

section { padding-block: clamp(2.75rem, 5.5vw, 4.75rem); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1.9rem;
  max-width: 44rem;
}

/* ── hero ──────────────────────────────────────────────────────── */

.hero { padding-block: clamp(3rem, 7vw, 6rem) clamp(4rem, 9vw, 7rem); }

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; }
}

.hero__copy { display: flex; flex-direction: column; gap: 1.5rem; }

/* Hero with no photograph. Type carries it alone, so the headline is allowed
   to run larger and the measure widens a little to stop the column looking
   stranded in the middle of an empty page. An empty portrait frame would
   read as a failed image, which is worse than no frame at all. */
.hero__solo { display: block; }
.hero__solo .hero__copy { max-width: 46rem; }
.hero__solo h1 { font-size: clamp(2.3rem, 8vw, 5.25rem); }
.hero__solo .hero__role { max-width: 34rem; font-size: 1.06rem; }

.hero__role {
  font-family: var(--ui);
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  max-width: 30rem;
}
.hero__role strong { color: var(--ink); font-weight: 600; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 0.4rem; }
/* Once they stack they should agree on a width — two ragged left-aligned
   blocks read as a mistake rather than a pair. */
@media (max-width: 479px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
}

/* The portrait sits inside a frame whose oxblood rule is offset behind it.
   Any replacement photo drops into the same slot: the frame is sized by
   aspect-ratio, not by this particular file. */
/* The offset rule is paid for with PADDING rather than negative insets.
   Negative insets pushed it outside the container and off the right edge of
   a phone, which gave the whole document a horizontal scroll — every section
   then sat a little off from every other one. The frame now lives inside the
   figure's own box and can never overflow, at any width. */
.portrait {
  position: relative;
  justify-self: center;
  margin: 0;
  width: min(58%, 12.5rem);
  padding: 0 0.7rem 0.7rem 0;
}
.portrait::before {
  content: "";
  position: absolute;
  inset: 0.7rem 0 0 0.7rem;
  border: 1px solid var(--accent);
  border-radius: 2px;
  pointer-events: none;
}
.portrait__img {
  position: relative;
  width: 100%;
  /* `height: auto` IS LOad-BEARING. The width/height attributes on the <img>
     map to CSS presentation hints; overriding only `width` leaves
     `height: 1750px` in force, which beats `aspect-ratio` and rendered the
     photo 350x1750 — a letterbox slot onto a 4:5 image, i.e. a giant
     close-up of her forehead. The attributes stay because they reserve the
     right space before the file loads; this line is what frees the height. */
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 14px 40px -16px color-mix(in srgb, var(--ink) 40%, transparent);
}
@media (min-width: 900px) {
  .portrait { width: min(100%, 21rem); padding: 0 0.95rem 0.95rem 0; }
  .portrait::before { inset: 0.95rem 0 0 0.95rem; }
}

/* ── credentials band ──────────────────────────────────────────── */

.band { background: var(--band); color: var(--on-band); }

/* Two columns even on a phone. Four full-width rows of two short lines each
   is a screen and a half of scrolling to read forty words. */
.creds {
  display: grid;
  gap: 1.4rem 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
}

.cred { display: flex; flex-direction: column; gap: 0.5rem; }
.cred__k {
  font-family: var(--ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-band-soft);
}
.cred__v { font-size: 1.14rem; line-height: 1.32; color: var(--on-band); }

/* ── pull quote ────────────────────────────────────────────────── */

.pull {
  margin: 2.75rem 0 0;
  padding-left: 1.6rem;
  border-left: 2px solid var(--accent);
  font-size: clamp(1.3rem, 2.8vw, 1.7rem);
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 34rem;
}

/* ── two-up ────────────────────────────────────────────────────── */

.two-up {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (min-width: 860px) { .two-up { grid-template-columns: 1.25fr 0.75fr; } }

.aside {
  padding: 1.5rem 1.6rem;
  background: var(--raised);
  border: 1px solid var(--rule);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.aside h3 { font-size: 1.1rem; }
.aside ul { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.aside li { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.5; }

/* ── the path ──────────────────────────────────────────────────── */

/* A timeline, not a list. Without a duration on each rung, four
   qualifications read as though they were all happening this week — which is
   what they looked like before. The time marker is the first thing in each
   row for exactly that reason. */
.path { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }

.path__item {
  position: relative;
  padding: 0 0 1.5rem 1.6rem;
  border-left: 1px solid var(--rule);
}
.path__item:last-child { padding-bottom: 0; border-left-color: transparent; }
.path__item::before {
  content: "";
  position: absolute;
  left: -4.5px;
  top: 0.4rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rule);
}

/* The one rung that is happening now, and the one the page is asking to
   fund. It should be findable without reading a word. */
.path__item--now::before {
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent);
}
.path__item--now { border-left-color: var(--accent); }
.path__now-card {
  background: color-mix(in srgb, var(--accent) 5%, var(--ground));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 3px;
  padding: 0.9rem 1rem 1rem;
  margin-left: -0.35rem;
}

.path__when {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.15rem;
}
.path__when--now { color: var(--accent); font-weight: 600; }

.path__status {
  display: inline-block;
  font-family: var(--ui);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.25rem;
}
.path__status--now { color: var(--accent); }

.path__title { font-size: 1.12rem; line-height: 1.28; margin-bottom: 0.3rem; }
.path__item p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.5; max-width: 30rem; }

/* The arc in one line, under the ladder. */
.path__total {
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
  font-size: 1rem;
  color: var(--ink);
  max-width: 30rem;
}

/* ── KID ───────────────────────────────────────────────────────── */

/* Three terms because the name genuinely is three terms — the structure
   is the content, not an ornament borrowed to fill a row. */
.terms {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.term {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 1.1rem;
  border-top: 2px solid var(--accent);
}
.term__l {
  font-family: var(--display);
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.term__w {
  font-family: var(--ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.term p { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.55; }

/* ── writing ───────────────────────────────────────────────────── */

.essays { display: flex; flex-direction: column; gap: 0; }

/* Each essay is a <details>. The full text is in the document — readable,
   printable, indexable — but three long reads no longer own the scroll for
   anyone who only came to find out who she is. */
.essay { border-top: 1px solid var(--rule); }
.essay:last-child { border-bottom: 1px solid var(--rule); }

.essay__head {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-width: 40rem;
  padding-block: 1.5rem;
  cursor: pointer;
  list-style: none;
}
.essay__head::-webkit-details-marker { display: none; }
.essay__head:hover .essay__head-title { color: var(--accent); }

.essay__tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.essay__head-title { transition: color 150ms ease; }

.essay__dek { color: var(--ink-soft); font-size: 1rem; }

.essay__more {
  font-family: var(--ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.25rem;
}
.essay__more::after { content: "Read \2192"; }
.essay[open] .essay__more::after { content: "Close \2191"; }

.essay__body {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: var(--measure);
  padding-bottom: 2rem;
}
.essay__body p { color: var(--ink-soft); }
.essay__body p:first-child::first-letter {
  font-size: 3.1rem;
  line-height: 0.82;
  float: left;
  padding: 0.18rem 0.6rem 0 0;
  color: var(--accent);
}

/* ── the ask ───────────────────────────────────────────────────── */

.ask__grid { display: flex; flex-direction: column; gap: 1.6rem; max-width: 40rem; }
.ask h2 { color: var(--on-band); }
.ask p { color: var(--on-band-soft); }
/* Oxblood cannot hold against navy at label size, so the eyebrow steps back
   to the band's own soft tone and lets the button carry the accent. */
.ask .eyebrow { color: var(--on-band-soft); }
.ask__note {
  font-family: var(--ui);
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--on-band-soft);
  padding-top: 1.2rem;
  border-top: 1px solid color-mix(in srgb, var(--on-band) 18%, transparent);
  max-width: 34rem;
}

/* ── footer ────────────────────────────────────────────────────── */

.foot {
  padding-block: 3rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: baseline;
  justify-content: space-between;
  font-family: var(--ui);
  font-size: 0.85rem;
  color: var(--ink-faint);
}
.foot a { color: var(--ink-soft); text-decoration: none; }
.foot a:hover { color: var(--accent); }

/* ── reveal ────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); }
  .reveal[data-shown="true"] {
    opacity: 1;
    transform: none;
    transition: opacity 620ms cubic-bezier(.2,.7,.3,1), transform 620ms cubic-bezier(.2,.7,.3,1);
  }
}

/* Toast for an unconfigured link — better than a button that goes nowhere. */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(150%);
  z-index: 50;
  padding: 0.8rem 1.25rem;
  background: var(--band);
  color: var(--on-band);
  font-family: var(--ui);
  font-size: 0.86rem;
  border-radius: 3px;
  box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.5);
  transition: transform 320ms cubic-bezier(.2,.7,.3,1);
  max-width: min(90vw, 26rem);
}
.toast[data-open="true"] { transform: translateX(-50%) translateY(0); }

/* ── KID page ──────────────────────────────────────────────────── */

/* The wordmark is the acronym doing its own explaining: the three letters
   sit above the three words they stand for, so the name is decoded before
   a single sentence of body copy. */
.kid-mark { display: flex; flex-direction: column; gap: 0.5rem; }
.kid-mark__letters {
  font-family: var(--display);
  font-size: clamp(3.5rem, 14vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.kid-mark__words {
  font-family: var(--ui);
  font-size: clamp(0.72rem, 2.6vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Each term gets the page's full measure rather than a narrow column —
   on the home page they are a summary, here they are the argument. */
.kid-terms { display: flex; flex-direction: column; gap: 0; }
.kid-term {
  display: grid;
  gap: 0.4rem 1.5rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--rule);
}
.kid-term:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 700px) {
  .kid-term { grid-template-columns: 7rem 1fr; }
}
.kid-term__l {
  font-family: var(--display);
  font-size: 2.6rem;
  line-height: 0.85;
  color: var(--accent);
}
.kid-term__body { display: flex; flex-direction: column; gap: 0.6rem; max-width: 34rem; }
.kid-term__w {
  font-family: var(--ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.kid-term__body p { color: var(--ink-soft); }

/* Design decisions, each of which is a deliberate departure from how this
   is usually done — so they are stated as a list of choices, not features. */
.choices { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.choice {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-top: 0.95rem;
  border-top: 2px solid var(--accent);
}
.choice h3 { font-size: 1.05rem; }
.choice p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.5; }

/* Numbers that are worth reading as numbers. */
.figures { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.figure { display: flex; flex-direction: column; gap: 0.3rem; }
.figure__n {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--on-band);
  font-variant-numeric: tabular-nums;
}
.figure__l {
  font-family: var(--ui);
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--on-band-soft);
}

/* An honest status note, styled so it cannot be mistaken for a claim. */
.status-note {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.15rem 1.3rem;
  background: var(--raised);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: 0 3px 3px 0;
  max-width: 38rem;
}
.status-note strong { font-family: var(--ui); font-size: 0.92rem; }
.status-note p { color: var(--ink-soft); font-size: 0.94rem; line-height: 1.55; }

/* Back link on the KID page. */
.backlink {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--ui);
  font-size: 0.83rem;
  color: var(--ink-soft);
  text-decoration: none;
}
.backlink:hover { color: var(--accent); }

/* Teaser card for KID on the home page. */
.kid-teaser {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 780px) { .kid-teaser { grid-template-columns: auto 1fr; gap: 2.5rem; } }
.kid-teaser__mark {
  font-family: var(--display);
  font-size: clamp(3rem, 11vw, 4.5rem);
  line-height: 0.9;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.kid-teaser__body { display: flex; flex-direction: column; gap: 0.9rem; max-width: 34rem; }
.kid-teaser__body p { color: var(--ink-soft); }
