/* Wea for Williams — independent supporter site */

:root {
  --navy: #0b2a5b;
  --navy-deep: #071d40;
  --blue: #1f4fbf;
  --yellow: #ffd23f;
  --yellow-soft: #fff6d1;
  --ink: #142033;
  --muted: #4d5b70;
  --line: #dfe5ee;
  --paper: #ffffff;
  --paper-alt: #f4f7fb;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 42, 91, .06), 0 6px 20px rgba(11, 42, 91, .07);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 104px; }
@media (max-width: 720px) { html { scroll-padding-top: 116px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); }
h2 { font-family: var(--serif); font-size: clamp(1.6rem, 4.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--yellow); color: var(--navy); padding: 8px 12px; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- Independent label ---------- */
.indie-bar {
  background: var(--yellow);
  color: var(--navy-deep);
  font-size: .875rem;
  text-align: center;
  padding: 7px 16px;
  line-height: 1.4;
}
@media (max-width: 720px) { .indie-bar { font-size: .8rem; padding: 6px 12px; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; }

.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}
.brand span { font-style: italic; font-weight: 400; color: var(--blue); }

.nav { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav a {
  display: block; padding: 8px 10px; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500;
}
.nav a:hover { background: var(--paper-alt); color: var(--navy); }
.nav .nav-cta { background: var(--navy); color: #fff; font-weight: 600; }
.nav .nav-cta:hover { background: var(--blue); color: #fff; }

@media (max-width: 720px) {
  .nav li:not(:last-child) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(31, 79, 191, .55), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding: 48px 0 56px;
}
.hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) {
  .hero { padding: 72px 0 80px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 48px; }
}

.eyebrow {
  text-transform: uppercase; letter-spacing: .08em;
  font-size: .8rem; font-weight: 600; color: var(--yellow); margin-bottom: 14px;
}
.hero h1 {
  font-family: var(--serif);
  color: #fff;
  font-size: clamp(2.4rem, 8vw, 4rem);
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 24px;
}
.h1-sub {
  display: block;
  font-family: var(--sans);
  font-size: clamp(1.05rem, 3.2vw, 1.4rem);
  font-weight: 500;
  letter-spacing: 0;
  color: #d5def0;
  margin-top: 8px;
}

.slogan {
  margin: 0 0 28px;
  padding: 16px 20px;
  border-left: 4px solid var(--yellow);
  background: rgba(255, 255, 255, .06);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.slogan figcaption { font-size: .85rem; color: #c3cee4; margin-bottom: 4px; }
.slogan blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 4.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
}
.slogan mark { background: none; color: var(--yellow); }
.slogan .u { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 5px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 1rem;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-yellow { background: var(--yellow); color: var(--navy-deep); }
.btn-yellow:hover { background: #ffe175; color: var(--navy-deep); }
.btn-ghost { border: 2px solid rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }
@media (max-width: 480px) { .btn { width: 100%; } }

/* ---------- Photo placeholders ---------- */
.ph {
  display: grid; place-items: center;
  border-radius: var(--radius);
  border: 2px dashed rgba(11, 42, 91, .25);
  background:
    repeating-linear-gradient(45deg, rgba(11, 42, 91, .04) 0 12px, transparent 12px 24px),
    var(--paper-alt);
  color: var(--muted);
  font-size: .9rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  min-height: 220px;
}
.ph-hero {
  aspect-ratio: 4 / 3; min-height: 0;
  border-color: rgba(255, 255, 255, .3);
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .05) 0 12px, transparent 12px 24px),
    rgba(255, 255, 255, .04);
  color: #c3cee4;
}
.ph-tall { aspect-ratio: 4 / 5; min-height: 0; max-height: 520px; }

/* ---------- Countdown strip ---------- */
.strip { background: var(--yellow-soft); border-bottom: 1px solid #f1e3a6; }
.strip-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 4px 24px; padding-top: 14px; padding-bottom: 14px; font-size: .98rem;
}
.strip p { margin: 0; }
.countdown strong { color: var(--navy); font-size: 1.05rem; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section.alt { background: var(--paper-alt); }
.section.tight { padding: 44px 0; }
@media (min-width: 860px) { .section { padding: 80px 0; } .section.tight { padding: 56px 0; } }

.kicker {
  text-transform: uppercase; letter-spacing: .1em;
  font-size: .78rem; font-weight: 700; color: var(--blue); margin-bottom: 10px;
}
.lede { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }
.fine { font-size: .875rem; color: var(--muted); }

/* Pull quotes */
.pull {
  margin: 28px 0;
  padding: 0 0 0 22px;
  border-left: 4px solid var(--yellow);
}
.pull p { font-family: var(--serif); font-size: clamp(1.15rem, 3.2vw, 1.4rem); line-height: 1.45; color: var(--navy); margin-bottom: 10px; }
.pull.small p { font-size: 1.15rem; }
.pull cite { font-style: normal; font-size: .9rem; color: var(--muted); }

.note-card {
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 8px;
}
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { position: relative; padding-left: 28px; margin-bottom: 6px; font-weight: 600; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--yellow); box-shadow: inset 0 0 0 3px var(--navy);
}

/* Quote grid */
.quotes { display: grid; gap: 18px; margin: 28px 0 14px; }
@media (min-width: 760px) { .quotes { grid-template-columns: 1fr 1fr; } }
.quote {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
}
.quote blockquote { margin: 0; font-family: var(--serif); font-size: 1.15rem; line-height: 1.5; color: var(--ink); }
.quote figcaption { font-size: .875rem; color: var(--muted); }
.quote .topic { display: block; font-weight: 700; color: var(--navy); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }

/* About */
.about-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .about-grid { grid-template-columns: 1.2fr .8fr; gap: 56px; } }
.facts { list-style: none; padding: 0; margin: 0 0 8px; }
.facts li { padding: 12px 0 12px 30px; border-bottom: 1px solid var(--line); position: relative; }
.facts li::before {
  content: "\2605"; position: absolute; left: 0; top: 11px;
  color: var(--blue); font-size: 1rem;
}

/* Trustee cards */
.cards { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 620px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 6px;
}
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); font-size: .98rem; }
.card-board { background: var(--yellow-soft); border-color: #f1e3a6; }
.card-board p { color: var(--ink); }

/* Records links */
.links { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.links li {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px 4px;
}
.links a { font-weight: 700; font-size: 1.08rem; display: inline-block; margin-bottom: 4px; }
.links a span { display: block; font-weight: 400; font-size: .85rem; color: var(--muted); }
.links p { color: var(--muted); font-size: .98rem; }

/* ---------- How to vote ---------- */
.vote { background: var(--navy); color: #e8eef9; }
.vote h2 { color: #fff; }
.vote .lede { color: #c3cee4; }
.kicker-light { color: var(--yellow); }
.vote a { color: #fff; text-decoration-color: var(--yellow); }
.vote a:hover { color: var(--yellow); }

.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: 1fr 1fr; } }
.step {
  counter-increment: step;
  position: relative;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  padding: 20px 20px 6px 66px;
}
.step::before {
  content: counter(step);
  position: absolute; left: 18px; top: 18px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--yellow); color: var(--navy-deep); font-weight: 800;
}
.step h3 { color: #fff; }

.vote-callouts { display: grid; gap: 14px; margin-top: 14px; }
@media (min-width: 760px) { .vote-callouts { grid-template-columns: 1fr 1fr; } }
.callout { border-radius: var(--radius); padding: 20px 20px 6px; background: #fff; color: var(--ink); }
.callout h3 { color: var(--navy); }
.callout-yellow { background: var(--yellow); }
.callout-yellow h3, .callout-yellow p { color: var(--navy-deep); }

.verified { margin-top: 24px; font-size: .85rem; color: #aebbd4; }

/* ---------- Why ---------- */
.why p { font-size: 1.12rem; }
.why p:first-of-type::first-letter { font-family: var(--serif); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #c3cee4; padding: 44px 0 24px; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--yellow); }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.brand-footer { color: #fff; margin-bottom: 12px; }
.brand-footer span { color: var(--yellow); }
.disclaimer {
  border: 2px solid rgba(255, 255, 255, .7);
  border-radius: 8px;
  padding: 14px 16px;
  color: #fff;
  font-weight: 600;
  line-height: 1.5;
}
.disclaimer p { margin: 0; }
.updated { margin: 28px 0 0; font-size: .8rem; color: #8797b5; }
