:root {
  --navy: #14213d;
  --navy-dark: #0c152a;
  --red: #b3202a;
  --red-dark: #8e1820;
  --ink: #1f2933;
  --muted: #52606d;
  --line: #d9dee5;
  --bg: #ffffff;
  --bg-alt: #f4f5f7;
  --heading: "Marcellus", "PT Serif", Georgia, serif;
  --body: "Source Sans 3", "Source Sans Pro", Arial, Helvetica, sans-serif;
  --wrap: 1120px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}

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

a { color: var(--red); }
a:hover { color: var(--red-dark); }

h1, h2, h3 {
  font-family: var(--heading);
  font-weight: 400;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 12px;
}
h1 { font-size: 40px; }
h2 { font-size: 32px; }
h3 { font-size: 22px; }

p { margin: 0 0 16px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

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

/* Hero */
.hero {
  position: relative; color: #fff;
  background: var(--navy-dark) url("../img/hero.jpg") center 60% / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(12, 21, 42, 0.85) 0%, rgba(12, 21, 42, 0.7) 60%, rgba(12, 21, 42, 0.5) 100%);
}
.hero .wrap { position: relative; padding-top: 64px; padding-bottom: 64px; }
.hero-inner { display: flex; align-items: center; gap: 40px; }
.hero-logo { flex: 0 0 auto; width: 220px; background: #fff; border-radius: 4px; padding: 10px; }
.hero-text { flex: 1 1 auto; }
.hero h1 { color: #fff; font-size: 56px; margin-bottom: 14px; }
.hero p { font-size: 22px; margin: 0; }

.btn {
  display: inline-block; background: var(--red); color: #fff; text-decoration: none;
  font-family: var(--body); font-weight: 700; font-size: 16px;
  padding: 12px 24px; border: 0; border-radius: 4px; cursor: pointer;
}
.btn:hover, .btn:focus { background: var(--red-dark); color: #fff; }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head p { color: var(--muted); }

/* Endorsements */
.slate-group { margin-bottom: 36px; }
.slate-group:last-of-type { margin-bottom: 0; }
.slate-group h3 {
  font-size: 15px; font-family: var(--body); font-weight: 700; color: var(--muted);
  letter-spacing: 0.08em; text-transform: uppercase;
  border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 16px;
}
.slate { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.candidate {
  background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  display: flex; flex-direction: column;
}
.candidate img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #eef0f3; }
.plate {
  flex: 1; background: var(--navy); color: #fff; padding: 14px 16px 16px;
  border-top: 4px solid var(--red); text-align: center;
}
.plate .status {
  display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #fff; margin-bottom: 4px;
}
.plate .name {
  display: block; font-family: "Roboto Slab", Georgia, serif; font-weight: 700;
  font-size: 23px; line-height: 1.15; text-transform: uppercase; letter-spacing: 0.01em;
}
.plate .first, .plate .last { display: block; white-space: nowrap; }
.plate .first { color: #d92b32; }
.plate .last { color: #fff; }
.plate .office {
  display: block; margin-top: 8px; white-space: nowrap; font-family: "Roboto Slab", Georgia, serif; font-weight: 700;
  font-size: 14px; text-transform: uppercase; letter-spacing: 0.03em; color: #fff;
}
.plate .office em { font-family: var(--body); font-style: italic; font-weight: 400; text-transform: none; font-size: 15px; margin-right: 2px; }
.plate .dist {
  display: block; font-family: "Roboto Slab", Georgia, serif; font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.03em; color: #d92b32; white-space: nowrap;
}
.kicker {
  display: block; font-size: 15px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--red); margin-bottom: 4px;
}

.vote-note { margin-top: 28px; font-weight: 600; }

/* Election center */
.vote { background: var(--navy); color: #e6e9ef; }
.vote h2 { color: #fff; }
.vote .kicker { color: #d92b32; }
.vote-head { text-align: center; max-width: 720px; margin: 0 auto; }
.vote-head p { color: #d5dbe5; margin: 0; }
.vote-count { display: flex; justify-content: center; gap: 14px; margin: 28px 0 44px; flex-wrap: wrap; }
.tick {
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px; min-width: 96px; padding: 14px 10px 12px; text-align: center;
}
.tick b { display: block; font-family: "Roboto Slab", Georgia, serif; font-size: 40px; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.tick span { display: block; margin-top: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #c3cbd8; }
.vote-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.vote h3 { font-family: var(--body); font-size: 15px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: rgba(255, 255, 255, 0.25); }
.timeline li { position: relative; padding-bottom: 20px; }
.timeline li::before {
  content: ""; position: absolute; left: -26px; top: 5px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--navy); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}
.timeline li.flag::before { background: var(--red); box-shadow: 0 0 0 2px rgba(179, 32, 42, 0.7); }
.timeline b { display: block; font-size: 15px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; }
.timeline p { margin: 2px 0 0; font-size: 15px; color: #d5dbe5; }
.actions { display: grid; gap: 12px; }
.action {
  display: block; text-decoration: none; padding: 14px 18px; border-radius: 4px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 4px solid var(--red); transition: background 0.2s;
}
.action:hover, .action:focus { background: rgba(255, 255, 255, 0.12); }
.action b { display: block; font-size: 15px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #fff; }
.action span { font-size: 14px; color: #c3cbd8; }
.vote-foot { margin: 36px 0 0; text-align: center; font-size: 14px; color: #c3cbd8; }
.vote-foot a { color: #fff; }

/* Form */
.signup { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.signup img { width: 220px; margin-top: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; }
.field-full { grid-column: 1 / -1; }
label { font-weight: 600; font-size: 15px; margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="tel"] {
  font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid #b8c0cc;
  border-radius: 4px; background: #fff; color: var(--ink); width: 100%;
}
input:focus { outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.5; }
.consent input { margin-top: 4px; flex: 0 0 auto; width: 18px; height: 18px; }
.consent label { font-weight: 400; font-size: 14px; margin: 0; }
.hidden { position: absolute; left: -9999px; }
.req { color: var(--red); }

/* Legal pages */
.legal { max-width: 820px; }
.legal h1 { margin-bottom: 8px; }
.legal h2 { font-size: 24px; margin-top: 32px; }
.legal dt { font-weight: 700; margin-top: 12px; }
.legal dd { margin: 4px 0 0; }
.legal .meta { color: var(--muted); }

/* FPPC disclosure */
.disclosure {
  border: 2px solid var(--navy); background: #fff; color: var(--ink);
  padding: 18px 20px; margin: 0 auto; font-size: 17px; line-height: 1.5;
  max-width: 760px; text-align: center;
}
.disclosure p { margin: 0; }
.disclosure p + p { margin-top: 2px; }
.disclosure .disclosure-gap { margin-top: 14px; }

/* Footer */
.site-footer { background: var(--navy); color: #e6e9ef; padding: 40px 0 28px; font-size: 15px; }
.site-footer a { color: #fff; }
.site-footer .disclosure { margin-bottom: 24px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255, 255, 255, 0.18); padding-top: 18px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.social { display: flex; gap: 18px; }

@media (max-width: 980px) {
  .slate { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .vote-cols { grid-template-columns: 1fr; gap: 32px; }
  .signup { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 32px; }
  h2 { font-size: 27px; }
  .wrap { padding: 0 16px; }
  .hero .wrap { padding-top: 40px; padding-bottom: 40px; }
  .hero-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .hero-logo { width: 160px; }
  .hero h1 { font-size: 38px; }
    .hero p { font-size: 18px; }
  .section { padding: 44px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .slate { gap: 12px; }
  .plate { padding: 10px 8px 12px; }
  .plate .name { font-size: 17px; }
  .plate .office, .plate .dist { font-size: 12px; }
  .tick { min-width: 72px; }
  .tick b { font-size: 30px; }
  .plate .office em { font-size: 13px; }
  .disclosure { font-size: 16px; }
}
