/* One Citizen, One Vote — base styles
   Palette: Old Glory Red #B22234 · Old Glory Blue #3C3B6E · White #FFFFFF
   Type: system fonts for reliability + a slab/serif for headlines
*/

:root {
  --red: #B22234;
  --red-dark: #8d1a29;
  --blue: #3C3B6E;
  --blue-dark: #2a2952;
  --blue-soft: #eef0f7;
  --cream: #fbf8f2;
  --ink: #131325;
  --gray: #56586c;
  --line: #d9d8e2;
  --max: 1120px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--red); text-decoration: underline; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--red);
  color: #fff;
  padding: 12px 18px;
  font-weight: 600;
  z-index: 999;
  text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px; outline: 3px solid #fff; }

h1, h2, h3, h4 {
  font-family: "Iowan Old Style", "Apple Garamond", Georgia, "Times New Roman", serif;
  color: var(--blue);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); margin: 1.6em 0 .5em; }
h3 { font-size: 1.25rem; margin: 1.2em 0 .4em; }
.accent { color: var(--red); }

/* Header */
.site-header {
  background: var(--blue);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.brand:hover { color: #fff; text-decoration: none; }
.brand-text { font-family: "Iowan Old Style", Georgia, serif; font-size: 1.2rem; }

.flag {
  width: 36px;
  height: 22px;
  display: inline-block;
  background:
    linear-gradient(#fff 0 11.11%, #B22234 11.11% 22.22%, #fff 22.22% 33.33%, #B22234 33.33% 44.44%, #fff 44.44% 55.55%, #B22234 55.55% 66.66%, #fff 66.66% 77.77%, #B22234 77.77% 88.88%, #fff 88.88% 100%);
  position: relative;
  border: 1px solid rgba(255,255,255,.4);
  flex-shrink: 0;
}
.flag::before {
  content: "";
  position: absolute;
  inset: 0 60% 55% 0;
  background: var(--blue);
  background-image:
    radial-gradient(circle, #fff 0.7px, transparent 1.2px),
    radial-gradient(circle, #fff 0.7px, transparent 1.2px);
  background-size: 20% 35%, 20% 35%;
  background-position: 10% 17%, 20% 50%;
}
.flag-lg {
  width: 110px;
  height: 70px;
}

nav { display: flex; flex-wrap: wrap; gap: 4px 6px; }
nav a {
  color: rgba(255,255,255,.85);
  font-size: .92rem;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 500;
}
nav a:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
nav a.active { background: rgba(255,255,255,.12); color: #fff; }
nav a.cta-link {
  background: var(--red);
  color: #fff;
}
nav a.cta-link:hover { background: var(--red-dark); }

.stripes {
  height: 8px;
  background: repeating-linear-gradient(
    to bottom,
    var(--red) 0 2px,
    #fff 2px 4px
  );
  background:
    linear-gradient(var(--red) 0 25%, #fff 25% 50%, var(--red) 50% 75%, #fff 75% 100%);
}

/* Hero */
.hero {
  background:
    radial-gradient(ellipse at top right, rgba(255,255,255,.08), transparent 60%),
    linear-gradient(180deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero h1 { color: #fff; }
.hero.hero-sm { padding: 56px 0 60px; }
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: .78rem;
  color: rgba(255,255,255,.7);
  margin: 0 0 16px;
  font-weight: 600;
}
.hero .lede { font-size: 1.15rem; max-width: 680px; color: rgba(255,255,255,.92); }
.hero .lede strong { color: #fff; }
.hero .micro { color: rgba(255,255,255,.65); font-size: .85rem; margin-top: 24px; }
.hero .micro a { color: #fff; text-decoration: underline; }

.cta-row { display: flex; gap: 12px; margin: 28px 0 0; flex-wrap: wrap; }
.cta-row.center { justify-content: center; margin-top: 40px; }

.btn {
  display: inline-block;
  padding: 13px 22px;
  font-weight: 600;
  border-radius: 4px;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: transform .08s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.08); color: #fff; }
.section .btn-outline { color: var(--blue); border-color: var(--blue); }
.section .btn-outline:hover { background: var(--blue); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: .85rem; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: #fff; }
.section-flag {
  background:
    linear-gradient(rgba(60,59,110,.96), rgba(60,59,110,.96)),
    repeating-linear-gradient(0deg, var(--red) 0 12px, #fff 12px 24px);
  color: #fff;
}
.section-flag h2, .section-flag h3 { color: #fff; }
.section-flag a { color: #fff; text-decoration: underline; }
.section-flag .btn { color: #fff; }
.section-title { text-align: center; }
.section-sub { text-align: center; color: var(--gray); max-width: 640px; margin: -.4em auto 2.4em; }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  padding: 28px 26px;
  border-radius: 6px;
  box-shadow: 0 4px 18px rgba(20,18,50,.04);
}
.card h3 { margin-top: 0; color: var(--blue); }
.card-num {
  display: inline-block;
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 2.2rem;
  color: var(--red);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}
.link-arrow { font-weight: 600; }

/* Patriot test list */
.patriot-test {
  list-style: none;
  padding: 0;
  margin: 36px 0;
  counter-reset: t;
}
.patriot-test li {
  counter-increment: t;
  background: #fff;
  border-left: 5px solid var(--red);
  padding: 18px 22px 18px 60px;
  margin-bottom: 14px;
  position: relative;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.patriot-test li::before {
  content: counter(t);
  position: absolute;
  left: 18px;
  top: 16px;
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 1.6rem;
  color: var(--blue);
  font-weight: 700;
}
.patriot-test strong { display: block; color: var(--blue); font-size: 1.1rem; margin-bottom: 4px; }
.patriot-test span { color: var(--gray); }

/* Quote block */
.quote-block {
  margin: 48px 0 0;
  text-align: center;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.quote-block blockquote {
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 1.4rem;
  font-style: italic;
  color: var(--blue);
  margin: 0 0 8px;
  line-height: 1.4;
}
.quote-block cite { color: var(--gray); font-style: normal; font-size: .95rem; }

/* Proof list */
.proof-list { list-style: none; padding: 0; margin: 24px 0; }
.proof-list li {
  padding: 14px 0;
  border-bottom: 1px dashed rgba(255,255,255,.2);
  font-size: 1.05rem;
}
.proof-list li:last-child { border-bottom: none; }
.proof-list strong { color: #fff; font-size: 1.1em; }
.section:not(.section-flag) .proof-list li { border-bottom-color: var(--line); }
.section:not(.section-flag) .proof-list strong { color: var(--red); }

/* Demo grid */
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 24px 0; }
@media (max-width: 720px) { .demo-grid { grid-template-columns: 1fr; } }
.demo h4 { margin: 0 0 6px; color: var(--blue); font-size: 1.05rem; }
.demo .result { color: var(--gray); margin: 0 0 12px; font-size: .92rem; }
.districts { display: flex; flex-direction: column; gap: 6px; font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: .9rem; letter-spacing: 0.18em; }
.d {
  padding: 8px 12px;
  border-radius: 3px;
  color: #fff;
  text-align: center;
  font-weight: 700;
}
.d.blue { background: var(--blue); }
.d.red { background: var(--red); }

.callout {
  background: #fff8d6;
  border-left: 5px solid var(--red);
  padding: 16px 22px;
  margin: 24px 0;
  font-size: 1.08rem;
  border-radius: 4px;
}

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.data-table th, .data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.data-table th { background: var(--blue); color: #fff; font-size: .9rem; }
.data-table tr:last-child td { border-bottom: none; }

/* Footer */
.site-footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,.7);
  padding: 32px 0;
  margin-top: 60px;
  font-size: .9rem;
}
.site-footer p { margin: 0 0 6px; }
.micro { font-size: .85rem; color: var(--gray); }
/* On the dark-navy footer, .micro on light pages is too dark to read.
   Override scoped to .site-footer so .micro stays muted-gray on white pages. */
.site-footer .micro { color: rgba(255,255,255,.92) !important; }
.site-footer .micro a { color: #ffffff !important; text-decoration: underline; }
.site-footer p { color: rgba(255,255,255,.92) !important; }

/* Posters (marketing) */
.poster-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin: 24px 0 48px;
}
@media (max-width: 760px) { .poster-grid { grid-template-columns: 1fr; } }
.poster {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(20,18,50,.06);
}
.poster-art {
  aspect-ratio: 4 / 5;
  position: relative;
  color: #fff;
  background: var(--blue);
  overflow: hidden;
}
.poster-stripes {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 35%, var(--blue) 35% 70%, transparent 70%),
    repeating-linear-gradient(0deg, var(--red) 0 18px, #fff 18px 36px);
  opacity: .9;
}
.poster-text {
  position: absolute;
  inset: 0;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  z-index: 2;
}
.poster-text .kicker {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: .8rem;
  color: #fff;
  margin: 0 0 18px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.poster-text h3 {
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #fff;
  margin: 0 0 16px;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.poster-text .tag {
  font-size: .98rem;
  color: rgba(255,255,255,.92);
  max-width: 28ch;
  margin: 0 auto;
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.poster figcaption {
  padding: 12px 18px;
  background: var(--cream);
  font-size: .9rem;
  color: var(--gray);
  border-top: 1px solid var(--line);
}

/* Variants */
.poster-2 .poster-art { background: var(--red); }
.poster-2 .poster-stripes {
  background:
    linear-gradient(90deg, transparent 0 35%, var(--red) 35% 70%, transparent 70%),
    repeating-linear-gradient(0deg, var(--blue) 0 18px, #fff 18px 36px);
}
.poster-3 .poster-art { background: #fff; color: var(--blue); }
.poster-3 .poster-stripes {
  background:
    linear-gradient(90deg, transparent 0 30%, #fff 30% 70%, transparent 70%),
    repeating-linear-gradient(0deg, var(--red) 0 18px, #fff 18px 36px);
}
.poster-3 .poster-text .kicker { color: var(--red); text-shadow: none; }
.poster-3 .poster-text h3 { color: var(--blue); text-shadow: none; }
.poster-3 .poster-text .tag { color: var(--ink); text-shadow: none; }
.poster-4 .poster-art {
  background: linear-gradient(135deg, var(--blue) 0 50%, var(--red) 50% 100%);
}
.poster-4 .poster-stripes { display: none; }

/* Social cards */
.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 18px 0 40px;
}
@media (max-width: 720px) { .social-grid { grid-template-columns: 1fr; } }
.social-card {
  background: var(--blue);
  color: #fff;
  padding: 36px 28px;
  border-radius: 8px;
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.35;
  position: relative;
  border-left: 6px solid var(--red);
}
.social-card::before {
  content: "\201C";
  position: absolute;
  top: -10px; left: 14px;
  font-size: 4rem;
  color: var(--red);
  font-family: Georgia, serif;
  line-height: 1;
}

/* Talking points */
.talking-points {
  padding-left: 0;
  list-style: none;
  counter-reset: tp;
}
.talking-points li {
  counter-increment: tp;
  position: relative;
  background: #fff;
  margin: 0 0 12px;
  padding: 16px 20px 16px 64px;
  border-radius: 4px;
  border: 1px solid var(--line);
}
.talking-points li::before {
  content: counter(tp);
  position: absolute;
  left: 16px; top: 12px;
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 1.7rem;
  color: var(--red);
  font-weight: 700;
}

.press-block {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 6px solid var(--blue);
  padding: 22px 26px;
  border-radius: 4px;
  font-size: 1.02rem;
  margin: 12px 0 32px;
}
.hashtag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.hashtag-row span {
  background: var(--blue-soft);
  color: var(--blue);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .9rem;
}

/* Action cards */
.action-card {
  background: #fff;
  padding: 32px 30px;
  margin: 24px 0;
  border-radius: 6px;
  border-top: 4px solid var(--blue);
  box-shadow: 0 4px 18px rgba(20,18,50,.05);
  position: relative;
}
.action-card .card-num {
  position: absolute;
  top: -22px; left: 24px;
  background: var(--red);
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin: 0;
}
.action-card h2 { margin-top: 8px; }
.action-card blockquote {
  background: var(--blue-soft);
  border-left: 4px solid var(--blue);
  padding: 14px 18px;
  margin: 12px 0;
  font-style: italic;
  color: var(--ink);
}

/* Stat row */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 28px 0;
}
@media (max-width: 760px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: #fff;
  border-top: 4px solid var(--red);
  padding: 18px 16px;
  border-radius: 4px;
  text-align: center;
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
}
.stat .num {
  display: block;
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 2.2rem;
  color: var(--blue);
  line-height: 1;
  font-weight: 700;
}
.stat .label {
  display: block;
  font-size: .85rem;
  color: var(--gray);
  margin-top: 6px;
}

/* Print */
@media print {
  .site-header, .site-footer, .cta-row { display: none; }
  body { background: #fff; }
}
