/* ==========================================================================
   Wes Freeman for Arkansas — styles
   Design: navy/red/cream GOP palette, Merriweather + Inter type pair
   ========================================================================== */

/* Tokens --------------------------------------------------------------- */
:root {
  --color-red: #B8202E;
  --color-red-dark: #8B1821;
  --color-red-soft: #E85567;
  --color-navy: #0A2540;
  --color-navy-dark: #041830;
  --color-navy-soft: #1F3A5F;
  --color-cream: #FAF7F2;
  --color-cream-dark: #F0EBE0;
  --color-paper: #FFFFFF;
  --color-ink: #1A1A1A;
  --color-ink-soft: #555;
  --color-rule: #E5E1D8;
  --color-focus: #3B82F6;

  --font-serif: 'Merriweather', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 3px rgba(10, 37, 64, 0.08);
  --shadow-md: 0 4px 12px rgba(10, 37, 64, 0.12);
  --shadow-lg: 0 12px 32px rgba(10, 37, 64, 0.15);

  --container-max: 1200px;
  --content-max: 65ch;

  --nav-height: 108px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 900;
  line-height: 1.15;
  color: var(--color-navy);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--color-red);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 120ms ease;
}
a:hover { color: var(--color-red-dark); }
a:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* Skip link (a11y) ---------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-navy);
  color: var(--color-paper);
  padding: 0.75rem 1rem;
  z-index: 100;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Layout helpers ------------------------------------------------------ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.section {
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.section-alt { background: var(--color-paper); }
.section-navy { background: var(--color-navy); color: var(--color-cream); }
.section-navy h1, .section-navy h2, .section-navy h3 { color: var(--color-paper); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-red);
  margin: 0 0 1rem;
}

.lede {
  font-size: clamp(1.0625rem, 1.75vw, 1.25rem);
  color: var(--color-ink-soft);
  max-width: var(--content-max);
}

/* Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-red);
  color: var(--color-paper);
}
.btn-primary:hover {
  background: var(--color-red-dark);
  color: var(--color-paper);
  box-shadow: var(--shadow-md);
}

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

.section-navy .btn-secondary {
  color: var(--color-paper);
  border-color: var(--color-paper);
}
.section-navy .btn-secondary:hover {
  background: var(--color-paper);
  color: var(--color-navy);
}

/* Header / nav -------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-rule);
}

.site-header nav {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
  flex-shrink: 1;
  min-width: 0;
  transition: opacity 120ms ease;
  padding: 6px 0;
}
.brand img {
  display: block;
  height: auto;
  width: auto;
  max-height: 88px;
  max-width: 420px;
  object-fit: contain;
  image-rendering: auto;
}
.brand:hover { opacity: 0.82; }
@media (max-width: 600px) {
  .brand img { max-height: 64px; max-width: 290px; }
}
@media (max-width: 400px) {
  .brand img { max-height: 50px; max-width: 210px; }
}

.nav-links {
  display: none;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--color-navy);
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem 0;
  position: relative;
}
.nav-links a:hover { color: var(--color-red); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--color-red);
}

/* Donate button in nav (desktop) */
@media (min-width: 768px) {
  .nav-links a.btn-donate-nav {
    background: var(--color-red);
    color: var(--color-paper);
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    transition: background 120ms ease, transform 120ms ease, box-shadow 120ms ease;
  }
  .nav-links a.btn-donate-nav:hover {
    background: var(--color-red-dark);
    color: var(--color-paper);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
  }
  .nav-links a.btn-donate-nav.active::after { display: none; }
}
/* Donate button in nav (mobile drawer) */
@media (max-width: 767px) {
  .nav-links a.btn-donate-nav {
    background: var(--color-red);
    color: var(--color-paper);
    margin: 0.75rem clamp(1rem, 4vw, 2rem);
    padding: 0.875rem 1rem !important;
    text-align: center;
    border-radius: var(--radius-md);
    font-weight: 700;
  }
  .nav-links a.btn-donate-nav:hover { background: var(--color-red-dark); color: var(--color-paper); }
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-navy);
  transition: transform 200ms ease, opacity 200ms ease;
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

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

/* Mobile nav drawer --------------------------------------------------- */
@media (max-width: 767px) {
  .nav-links {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-cream);
    border-bottom: 1px solid var(--color-rule);
    flex-direction: column;
    padding: 1rem 0;
    gap: 0;
    box-shadow: var(--shadow-md);
  }
  .nav-links li { border-top: 1px solid var(--color-rule); }
  .nav-links li:first-child { border-top: none; }
  .nav-links a {
    display: block;
    padding: 1rem clamp(1rem, 4vw, 2rem);
  }
  .nav-links:not(.open) { display: none; }
  .nav-links.open { display: flex; }
}

/* Hero ---------------------------------------------------------------- */
.hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem);
  background:
    linear-gradient(180deg, var(--color-cream) 0%, var(--color-cream-dark) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(184, 32, 46, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(10, 37, 64, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.hero-copy h1 {
  margin-top: 0.5rem;
}

.hero-sub {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--color-ink-soft);
  max-width: 32ch;
}

.primary-date {
  display: inline-flex;
  flex-direction: column;
  background: var(--color-paper);
  border-left: 4px solid var(--color-red);
  padding: 1rem 1.25rem;
  margin: 1.75rem 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-sm);
}
.primary-date strong {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--color-navy);
  letter-spacing: -0.005em;
}
.primary-date span {
  color: var(--color-ink-soft);
  font-size: 0.9375rem;
  margin-top: 0.25rem;
}

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

/* Hero photo / placeholder ------------------------------------------- */
.hero-photo {
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background:
    linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-soft) 100%);
  position: relative;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-photo img.missing { display: none; }

/* Why Wes section ----------------------------------------------------- */
.why-wes {
  background: var(--color-navy);
  color: var(--color-cream);
}
.why-wes h2 {
  color: var(--color-paper);
}
.why-wes .lede {
  color: rgba(250, 247, 242, 0.85);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.55;
}
.why-wes .credentials {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-top: 3rem;
}
@media (min-width: 700px) {
  .why-wes .credentials { grid-template-columns: repeat(3, 1fr); }
}
.credential {
  background: var(--color-navy-soft);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border-top: 3px solid var(--color-red);
}
.credential h3 {
  color: var(--color-paper);
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}
.credential p {
  color: rgba(250, 247, 242, 0.8);
  font-size: 0.9375rem;
  margin: 0;
}

/* Meet Wes section ---------------------------------------------------- */
.meet-wes .meet-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .meet-wes .meet-grid {
    grid-template-columns: 1fr 1.3fr;
  }
}
.meet-photo {
  margin: 0;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-dark) 100%);
  position: relative;
}
.meet-photo img { width: 100%; height: 100%; object-fit: cover; }
.meet-photo img.missing { display: none; }

/* Issues section ------------------------------------------------------ */
.issues-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin-top: 2.5rem;
}
@media (min-width: 600px) {
  .issues-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .issues-grid { grid-template-columns: repeat(3, 1fr); }
}

.issue-card {
  background: var(--color-paper);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  border-top: 4px solid var(--color-red);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.issue-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: inherit;
}
.issue-card h3 {
  color: var(--color-navy);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.issue-card p {
  color: var(--color-ink-soft);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  flex-grow: 1;
}
.issue-card .read-more {
  color: var(--color-red);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}
.issue-card:hover .read-more { text-decoration: underline; }

/* Get Involved section ----------------------------------------------- */
.get-involved {
  background: var(--color-cream-dark);
}
/* Donate callout (in Get Involved section) */
.donate-callout {
  max-width: 560px;
  margin: 2.5rem auto 0;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--color-paper);
  border-radius: var(--radius-lg);
  border-top: 4px solid var(--color-red);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.donate-callout h3 {
  margin: 0 0 0.5rem;
  font-size: 1.375rem;
}
.donate-callout p {
  color: var(--color-ink-soft);
  margin: 0 0 1.25rem;
  font-size: 1rem;
}
.donate-callout .legal {
  font-size: 0.8125rem;
  color: var(--color-ink-soft);
  margin-top: 1rem;
  margin-bottom: 0;
  font-style: italic;
}

.section-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 560px;
  margin: 2rem auto 0;
  color: var(--color-ink-soft);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-rule);
}

.volunteer-form {
  max-width: 560px;
  margin: 1.5rem auto 0;
  background: var(--color-paper);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.volunteer-form h3 {
  margin-top: 0;
  text-align: center;
}
.volunteer-form .note {
  text-align: center;
  color: var(--color-ink-soft);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.form-field {
  margin-bottom: 1.25rem;
}
.form-field label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.375rem;
  color: var(--color-navy);
  font-size: 0.9375rem;
}
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"] {
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: 1.5px solid var(--color-rule);
  border-radius: var(--radius-sm);
  background: var(--color-paper);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-ink);
  transition: border-color 120ms ease;
}
.form-field input:focus {
  border-color: var(--color-navy);
  outline: none;
}
.checkbox-grid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 1fr;
  margin: 0.75rem 0 0;
}
@media (min-width: 500px) { .checkbox-grid { grid-template-columns: 1fr 1fr; } }

.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 400;
  color: var(--color-ink);
  cursor: pointer;
}
.volunteer-form button[type="submit"] {
  width: 100%;
  margin-top: 0.5rem;
}

/* News / Press list --------------------------------------------------- */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  margin: clamp(1.5rem, 4vw, 3rem) auto 0;
}
.news-item {
  background: var(--color-paper);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-red);
  box-shadow: var(--shadow-sm);
  transition: transform 150ms ease, box-shadow 150ms ease;
  text-decoration: none;
  color: inherit;
  display: block;
}
.news-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: inherit;
}
.news-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.news-source { color: var(--color-red); }
.news-date { color: var(--color-ink-soft); }
.news-item h3 {
  font-size: 1.1875rem;
  margin: 0 0 0.5rem;
  color: var(--color-navy);
}
.news-item p {
  margin: 0;
  color: var(--color-ink-soft);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.news-item .read-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--color-red);
  font-size: 0.9375rem;
}

/* Footer -------------------------------------------------------------- */
.site-footer {
  background: var(--color-navy-dark);
  color: var(--color-cream);
  padding: 3rem 0 2rem;
}
.site-footer .container {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .site-footer .container { grid-template-columns: 1.5fr 1fr 1fr; }
}

.site-footer h4 {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8125rem;
  font-weight: 700;
  color: rgba(250, 247, 242, 0.5);
  margin: 0 0 1rem;
}
.site-footer a {
  color: var(--color-cream);
  text-decoration: none;
}
.site-footer a:hover { color: var(--color-red-soft); }

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 0.5rem; }

.footer-brand {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1.375rem;
  color: var(--color-paper);
  margin: 0 0 0.5rem;
}
.footer-tagline {
  color: rgba(250, 247, 242, 0.7);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  max-width: 40ch;
}
.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.social-links a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: rgba(250, 247, 242, 0.08);
  border-radius: 50%;
  transition: background 120ms ease;
}
.social-links a:hover { background: var(--color-red); }
.social-links svg { width: 18px; height: 18px; fill: currentColor; }

.footer-bottom {
  border-top: 1px solid rgba(250, 247, 242, 0.12);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(250, 247, 242, 0.6);
  font-size: 0.8125rem;
}
.disclaimer {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: rgba(250, 247, 242, 0.85);
}

/* Page hero (for about / issues subpages) ---------------------------- */
.page-hero {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-cream-dark) 100%);
  text-align: center;
}
.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero .lede { margin: 0 auto; }

/* Bio intro — photo + opening paragraphs side-by-side ---------------- */
.bio-intro {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: 1fr;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
}
@media (min-width: 800px) {
  .bio-intro { grid-template-columns: 340px 1fr; }
}
.intro-photo { margin: 0; }
.intro-photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}
.intro-photo figcaption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--color-ink-soft);
  font-style: italic;
  line-height: 1.5;
}
.intro-photo figcaption strong {
  font-style: normal;
  font-weight: 600;
  color: var(--color-navy);
}
.intro-text h2 { margin-top: 0; }
.intro-text p {
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* Long-form content (about, issues) ---------------------------------- */
.prose {
  max-width: var(--content-max);
  margin: 0 auto;
}
.prose p { font-size: 1.0625rem; line-height: 1.7; }
.prose h2 { margin-top: 2.5em; }
.prose h3 { margin-top: 2em; }
.prose ul { padding-left: 1.25em; }
.prose li { margin-bottom: 0.5em; }

/* Footnotes (used on Issues page) ------------------------------------ */
.footnote-ref {
  font-size: 0.72em;
  vertical-align: super;
  line-height: 0;
  text-decoration: none;
  color: var(--color-red);
  font-weight: 700;
  padding: 0 0.15em;
}
.footnote-ref:hover { text-decoration: underline; }

.footnotes {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 2rem;
  border-top: 1px solid var(--color-rule);
  font-size: 0.9375rem;
  color: var(--color-ink-soft);
  max-width: var(--content-max);
}
.footnotes h2, .footnotes h3 {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-ink-soft);
  margin: 0 0 1.25rem;
}
.footnotes ol {
  padding-left: 1.25em;
  margin: 0;
}
.footnotes li {
  margin-bottom: 0.875rem;
  line-height: 1.55;
}
.footnotes li:target {
  background: rgba(184, 32, 46, 0.06);
  padding: 0.5rem;
  border-left: 3px solid var(--color-red);
  margin-left: -0.5rem;
}
.footnotes a {
  color: var(--color-red);
  text-underline-offset: 2px;
}
.footnotes a.back-ref {
  text-decoration: none;
  margin-left: 0.4em;
  font-weight: 700;
}

/* Pullquote (used in prose) ------------------------------------------ */
.pullquote {
  margin: clamp(2rem, 4vw, 3rem) 0;
  padding: 0.25em 0 0.25em clamp(1rem, 2.5vw, 1.75rem);
  border-left: 4px solid var(--color-red);
  font-family: var(--font-serif);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(1.1875rem, 2.5vw, 1.5rem);
  line-height: 1.4;
  color: var(--color-navy);
  letter-spacing: -0.005em;
}
.pullquote cite {
  display: block;
  margin-top: 0.875em;
  font-size: 0.9375rem;
  font-style: normal;
  font-weight: 600;
  color: var(--color-red);
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.pullquote cite::before { content: "— "; }

/* Utilities ----------------------------------------------------------- */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.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;
}

/* Site gate (preview password protection) ----------------------------- */
/* To launch publicly: remove class="locked" from each <body> tag.       */
body.locked {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
}
body.locked > *:not(#site-gate) {
  display: none !important;
}
#site-gate {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: clamp(1rem, 4vw, 2rem);
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
}
.gate-card {
  background: var(--color-paper);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3rem);
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.gate-logo {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  background: var(--color-navy);
  color: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1.875rem;
  letter-spacing: -0.02em;
}
.gate-card h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  color: var(--color-navy);
  margin: 0 0 0.5rem;
  line-height: 1.25;
}
.gate-card p {
  color: var(--color-ink-soft);
  font-size: 0.9375rem;
  margin: 0 0 1.5rem;
  line-height: 1.5;
}
.gate-form {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.gate-form input[type="password"] {
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--color-rule);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-ink);
  text-align: center;
  letter-spacing: 0.02em;
  background: var(--color-paper);
  transition: border-color 120ms ease;
}
.gate-form input[type="password"]:focus {
  border-color: var(--color-red);
  outline: none;
}
.gate-error {
  min-height: 1.25em;
  color: var(--color-red);
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0;
}
.gate-form button {
  width: 100%;
}

/* Reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
