@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/caveat-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/caveat-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lexend';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/lexend-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lexend';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/lexend-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --primary: #1834a6;
  --navy: #0f1f5c;
  --accent: #e01e2b;
  --sky: #9cc8f0;
  --text: #0f1f5c;
  --muted: #4a5578;
  --bg: #f7f9fc;
  --card: #ffffff;
  --border: #e3e8f2;
  --shadow: 0 10px 30px -12px rgba(15, 31, 92, .22);
  --font: 'Lexend', system-ui, sans-serif;
  --script: 'Caveat', cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }

.container { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.container--narrow { max-width: 56rem; }
.accent { color: var(--accent); }
.script { font-family: var(--script); font-weight: 700; }

h2 {
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
}

/* red swoosh underline */
.swoosh {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 9 Q 60 2 198 5' stroke='%23e01e2b' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left bottom / 100% .35em;
  padding-bottom: .15em;
  white-space: nowrap;
}

/* number badge */
.num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  line-height: 1;
}
.num--sm { width: 2rem; height: 2rem; font-size: 1.125rem; }
.num--md { width: 3rem; height: 3rem; font-size: 1.5rem; }
.num--xl { width: 5rem; height: 5rem; font-size: 3rem; box-shadow: 0 0 0 4px #fff; }
.num--ring { width: 7rem; height: 7rem; font-size: 4.5rem; margin-top: 1.5rem; box-shadow: 0 0 0 8px rgba(255,255,255,.2); }

/* header */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(247, 249, 252, .85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(227, 232, 242, .6);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; padding-top: .75rem; padding-bottom: .75rem; }
.topbar__brand { display: flex; align-items: center; gap: .75rem; font-size: .875rem; font-weight: 600; }
.topbar__brand img { height: 2.25rem; width: auto; }
.topbar__brand span { display: none; }
.topbar__nav { display: flex; align-items: center; gap: 1.25rem; font-size: .875rem; font-weight: 500; }
.topbar__nav a { display: none; transition: color .2s; }
.topbar__nav a:hover { color: var(--accent); }
.topbar__vote { display: flex; align-items: center; gap: .5rem; font-weight: 700; }
.topbar__vote-desktop { display: none; }

/* hero */
.hero {
  position: relative;
  padding-top: 6rem;
  background: linear-gradient(180deg, #cfe3f7 0%, #e3eefa 45%, var(--bg) 100%);
}
.hero__grid { display: grid; gap: 1.5rem; align-items: end; }
.hero__text { position: relative; z-index: 2; padding: 2rem 0 2.5rem; }
.eyebrow { font-size: .875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .15em; color: var(--navy); }
.hero__name { display: flex; align-items: flex-start; gap: 1.25rem; margin-top: 2rem; }
.hero__badges { display: flex; flex-direction: column; align-items: center; gap: 1rem; margin-top: .5rem; flex-shrink: 0; }
.hero__erb { height: 5rem; width: auto; }
.hero__title { font-size: 1.125rem; font-weight: 500; }
.hero h1 {
  font-size: clamp(2.25rem, 8.5vw, 4.5rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.025em;
  color: var(--primary);
}
.hero__role { margin-top: 1.25rem; font-size: 1.25rem; color: var(--navy); }
.hero__slogan {
  display: inline-block;
  margin-top: 2.5rem;
  padding: .75rem 1.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
  font-family: var(--script);
  font-size: clamp(1.6rem, 7.5vw, 2.25rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}
.hero__slogan span { color: var(--accent); }
.hero__photo { position: relative; z-index: 2; display: flex; justify-content: center; margin-bottom: -1px; }
.hero__photo img { width: min(70vw, 300px); height: auto; filter: drop-shadow(0 25px 25px rgba(0,0,0,.15)); }
.hero__bg {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 45%;
  object-fit: cover;
  opacity: .9;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 35%, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 35%, #000 70%, transparent);
}

/* about */
.about { padding-top: 6rem; padding-bottom: 6rem; }
.about__body { margin-top: 2rem; font-size: 1.125rem; line-height: 1.75; color: var(--muted); }
.about__body p + p { margin-top: 1.25rem; }
.about__lead { font-size: 1.25rem; font-weight: 600; color: var(--text); }
.about__quote { border-left: 4px solid var(--accent); padding-left: 1.25rem; color: var(--text); }

/* results */
.results { background: var(--primary); color: #fff; padding: 6rem 0; scroll-margin-top: 4rem; }
.results__kicker { font-size: 2.25rem; color: var(--sky); line-height: 1.2; }
.results__grid {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.results__grid li {
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 3.25rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, .1);
  line-height: 1.4;
}
.results__grid li::before {
  content: "";
  position: absolute;
  left: 1.25rem;
  top: 1.3rem;
  width: 1.25rem;
  height: 1.25rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239cc8f0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* program */
.program { padding-top: 6rem; padding-bottom: 6rem; }
.program__title { font-size: clamp(2.25rem, 6vw, 3.75rem); }
.program__intro { margin-top: 1rem; font-size: 1.125rem; color: var(--muted); }
.program__grid { display: grid; gap: 1.5rem; margin-top: 3.5rem; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.card__head { display: flex; align-items: center; gap: 1rem; }
.card__head > div { flex: 1; }
.card h3 { font-size: 1.25rem; font-weight: 700; color: var(--primary); line-height: 1.3; }
.card__when { font-size: .875rem; color: var(--muted); }
.card__icon {
  align-self: flex-start;
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card__list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.card__list li { position: relative; padding-left: 1.25rem; }
.card__list li + li { margin-top: .625rem; }
.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--accent);
}

/* cta */
.cta { position: relative; overflow: hidden; }
.cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta::after { content: ""; position: absolute; inset: 0; background: rgba(15, 31, 92, .75); }
.cta__inner { position: relative; z-index: 1; max-width: 56rem; margin: 0 auto; padding: 7rem 1.25rem; text-align: center; color: #fff; }
.cta__slogan { font-size: clamp(3rem, 9vw, 4.5rem); line-height: 1.1; transform: rotate(-2deg); }
.cta__text { margin-top: 2rem; font-size: 1.25rem; }

/* footer */
.footer { background: var(--navy); color: #fff; padding: 2rem 0; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.footer__inner img { height: 3rem; width: auto; }
.footer__name { border-left: 1px solid rgba(255,255,255,.3); padding-left: 1rem; }
.footer__name p:last-child { font-size: .875rem; opacity: .75; }
.footer .num { margin-left: auto; }

section[id] { scroll-margin-top: 4rem; }

@media (min-width: 640px) {
  .topbar__brand span { display: block; }
  .results__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .topbar__nav a { display: block; }
  .topbar__vote-mobile { display: none; }
  .topbar__vote-desktop { display: inline; }
  .hero__grid { grid-template-columns: 1.15fr 1fr; }
  .hero__text { padding-bottom: 10rem; }
  .hero__photo img { width: auto; max-height: 640px; }
  .num--xl { width: 7rem; height: 7rem; font-size: 4.5rem; }
  .hero__erb { height: 7rem; }
  .hero__slogan { font-size: 3rem; }
  .program__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .results__grid { grid-template-columns: repeat(3, 1fr); }
}

/* motion */
.card { transition: transform .3s ease, box-shadow .3s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -14px rgba(15, 31, 92, .3); }
.results__grid li { transition: background-color .3s ease; }
.results__grid li:hover { background: rgba(255, 255, 255, .16); }
.pulse { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 8px rgba(255,255,255,.2), 0 0 0 0 rgba(224,30,43,.6); }
  50% { box-shadow: 0 0 0 8px rgba(255,255,255,.2), 0 0 0 22px rgba(224,30,43,0); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse { animation: none; }
  .card:hover { transform: none; }
}
