:root {
  --royal: #013286;
  --royal-deep: #011f53;
  --royal-tint: #eaf0fa;
  --gold: #ffe84b;
  --ground: #fafafa;
  --ink: #16202e;
  --ink-soft: #4a5568;
  --rule: #d8dee9;
  --measure: 68ch;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

h1, h2, h3 {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

.wrap {
  width: min(100% - 2.5rem, 62rem);
  margin-inline: auto;
}

/* ---- header ---- */
.masthead {
  background: var(--royal);
  padding: 1.25rem 0;
}
.wordmark {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0;
}
.wordmark span { color: var(--gold); }

/* ---- hero ---- */
.hero {
  background: linear-gradient(180deg, var(--royal) 0%, var(--royal-deep) 100%);
  color: #fff;
  padding: clamp(3rem, 9vw, 5.5rem) 0;
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  max-width: 20ch;
  color: #fff;
}
.hero p {
  max-width: 46ch;
  margin: 1.25rem 0 0;
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  color: #d6e0f2;
}
.datebar {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 2.25rem;
  padding: 0.85rem 1.4rem;
  border-left: 5px solid var(--gold);
  background: rgba(255, 255, 255, 0.08);
}
.datebar .label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.datebar .value { font-size: 1.2rem; font-weight: 600; color: #fff; }

/* ---- generic section ---- */
section { padding: clamp(2.75rem, 7vw, 4.5rem) 0; }
section > .wrap > h2 {
  font-size: clamp(1.5rem, 3.6vw, 2rem);
  margin-bottom: 0.5rem;
}
.lede { color: var(--ink-soft); max-width: var(--measure); margin: 0 0 2rem; }

/* ---- ballot cards ---- */
.cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
}
.card {
  background: #fff;
  border: 1px solid var(--rule);
  border-top: 4px solid var(--royal);
  border-radius: 3px;
  padding: 1.75rem;
}
.card h3 { font-size: 1.3rem; margin-bottom: 0.35rem; color: var(--royal-deep); }
.card .kicker {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
  display: block;
  margin-bottom: 0.6rem;
}
.card p { margin: 0 0 0.9rem; }
.card p:last-of-type { margin-bottom: 0; }

.slot {
  margin-top: 1.4rem;
  padding: 0.9rem 1.1rem;
  background: var(--royal-tint);
  border-radius: 3px;
  font-size: 0.9375rem;
  color: var(--royal-deep);
}
.slot strong { display: block; margin-bottom: 0.2rem; }

/* ---- dates ---- */
.dates { border-collapse: collapse; width: 100%; max-width: 44rem; }
.dates th, .dates td {
  text-align: left;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid var(--rule);
}
.dates th { font-weight: 600; color: var(--ink-soft); font-size: 0.9375rem; }
.dates td { font-weight: 600; white-space: nowrap; }
.dates tr.highlight td, .dates tr.highlight th { color: var(--royal); }
.dates tr.highlight td { font-size: 1.0625rem; }

/* ---- contact ---- */
.contact { background: var(--royal-tint); }
.btn {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.9rem 1.75rem;
  background: var(--royal);
  color: #fff;
  text-decoration: none;
  border-radius: 3px;
  font-weight: 600;
}
.btn:hover, .btn:focus { background: var(--royal-deep); }

/* ---- footer ---- */
footer {
  background: var(--royal-deep);
  color: #b9c6dd;
  padding: 2.25rem 0;
  font-size: 0.875rem;
}
.disclosure { margin: 0; color: #fff; font-weight: 600; }
.affiliation { margin: 0.4rem 0 0; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
