@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/display.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/body.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --paper: #f5efe6;
  --paper-2: #ece3d6;
  --ink: #1f1a16;
  --muted: #5a4f46;
  --rose: #b3152f;
  --rose-deep: #8c0f24;
  --red-bright: #ff5a47;
  --night: #1c1714;
  --night-ink: #f5efe6;
  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --space: clamp(2.25rem, 5vw, 4rem);
  /* Tune these after adding hero.jpg so both faces stay in frame. */
  --hero-pos-mobile: 40% 0%;
  --hero-pos-desktop: 50% 0%;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.65 var(--body);
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--rose-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--rose); }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h2 { font-size: clamp(2.25rem, 7vw, 4.25rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.6rem); line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }

.wrap { width: min(100% - 2 * var(--gutter), 68rem); margin-inline: auto; }
.wrap-wide { width: min(100% - 2 * var(--gutter), 90rem); margin-inline: auto; }
.prose { max-width: 40rem; }
.section { padding-block: var(--space); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--ink); color: var(--paper); padding: 0.75rem 1rem;
}
.skip:focus { top: 1rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.5rem; padding: 0.9rem 2rem;
  background: var(--rose); color: #fff;
  font: 700 1.15rem/1.1 var(--display);
  text-decoration: none; border-radius: 999px;
  box-shadow: 0 2px 0 var(--rose-deep);
  transition: background-color 0.2s, transform 0.2s;
}
.btn:hover { background: var(--rose-deep); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline-color: #fff; box-shadow: 0 0 0 6px var(--rose); }

/* Hero */
.hero {
  position: relative;
  min-height: min(100svh, 62rem);
  display: grid;
  align-items: end;
  background: var(--night);
  color: #fff;
  isolation: isolate;
}
.hero picture { position: absolute; inset: 0; z-index: -2; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-pos-mobile); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgb(20 15 12 / 0.92) 0%, rgb(20 15 12 / 0.7) 38%, rgb(20 15 12 / 0) 70%);
}
.hero-text { padding-block: 5rem 2.5rem; }
.hero-names {
  font-size: clamp(3.4rem, 15vw, 9rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
  margin-bottom: 0.15em;
}
.hero-names > span { display: block; }
.hero-for {
  font: 600 clamp(1.15rem, 3.4vw, 1.6rem)/1.2 var(--display);
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
}
.hero-pitch { font-size: clamp(1.1rem, 2.4vw, 1.35rem); max-width: 34rem; margin-bottom: 1.75rem; }
.hero .btn { width: 100%; }
@media (min-width: 40rem) { .hero .btn { width: auto; } }
/* Desktop: wider crop with the three of them on the right; names over a dark fade on the left */
@media (min-width: 56rem) {
  .hero { align-items: center; }
  .hero-img { object-position: 100% 20%; }
  .hero::after { background: linear-gradient(to right, rgb(20 15 12 / 0.92) 0%, rgb(20 15 12 / 0.75) 28%, rgb(20 15 12 / 0) 52%); }
  .hero-text { width: auto; margin: 0; padding: 4rem clamp(2rem, 5vw, 5rem); max-width: 40rem; }
  .hero-names { font-size: clamp(3.5rem, 6vw, 5.75rem); }
}

/* Platform header: heading on the left, two small tilted photos of the candidates on the right */
.plat-head { display: grid; gap: 1.5rem; align-items: center; }
.duo { display: flex; gap: 0.6rem; height: clamp(8rem, 36vw, 15rem); }
.duo picture:has(.duo-tall) { flex: 974 1 0; rotate: -2deg; }
.duo picture:has(.duo-wide) { flex: 1624 1 0; rotate: 1.5deg; }
.duo img { width: 100%; height: 100%; object-fit: cover; border-radius: 1rem; box-shadow: 0 6px 18px rgb(31 26 22 / 0.18); }
@media (min-width: 56rem) {
  .plat-head { grid-template-columns: 1fr auto; gap: 3rem; }
  .duo { width: 32rem; }
}

/* Platform icons (Phosphor duotone) */
.plank-icon { width: 4.5rem; height: 4.5rem; padding: 0.95rem; border-radius: 50%; background: var(--paper); color: var(--rose); }
.priorities li:hover { transform: translateY(-2px); background: #e6dccd; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .plank-icon { animation: pop linear both; animation-timeline: view(); animation-range: entry 10% cover 30%; }
    @keyframes pop { from { scale: 0.6; opacity: 0; rotate: -12deg; } }
  }
}

/* Wins: tile grid. Type scales with each tile's width (cqi), so short lines go huge and fill their tile. */
.wins { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.win {
  container-type: inline-size; grid-column: span 2;
  border-radius: 1.25rem; padding: 1.25rem 1.2rem 1.35rem; align-content: center;
  transition: transform 0.3s ease;
}
.win p { margin: 0; font: 700 max(1.2rem, 9.6cqi)/1.08 var(--display); letter-spacing: -0.02em; text-wrap: balance; }
.win em { font-style: normal; font-weight: 800; }
.win.big { grid-column: span 1; padding-inline: 1rem; }
.win.big p { font-size: max(1.3rem, 14.5cqi); line-height: 1; letter-spacing: -0.03em; }
.win.mid p { font-size: max(1.3rem, 11.5cqi); line-height: 1.04; }
.win.wide p { font-size: max(1.75rem, 7.6cqi); line-height: 1.02; letter-spacing: -0.03em; }
@media (min-width: 56rem) {
  .wins { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .win { grid-column: auto; min-height: 10rem; padding: 1.5rem 1.5rem 1.6rem; }
  .win.big { grid-column: auto; padding-inline: 1.5rem; }
  .win.wide { grid-column: span 2; }
}
.win.rose { background: var(--rose); color: #fff; }
.win.rose em { background: linear-gradient(currentColor, currentColor) no-repeat 0 96% / 100% 0.08em; }
.win.dark { background: var(--night); color: var(--night-ink); }
.win.dark em { color: var(--red-bright); }
.win.light { background: var(--paper-2); color: var(--ink); }
.win.light em { color: var(--rose-deep); }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    /* underline sweeps in as the tile scrolls up */
    .win.rose em { animation: sweep linear both; animation-timeline: view(); animation-range: entry 60% cover 45%; }
    @keyframes sweep { from { background-size: 0% 0.08em; } }
  }
}
.win:hover { transform: translateY(-3px) rotate(-0.6deg); }
.win:nth-child(even):hover { transform: translateY(-3px) rotate(0.6deg); }

/* Dark sections */
.dark { background: var(--night); color: var(--night-ink); }
.dark a:not(.btn) { color: var(--red-bright); }

/* Video */
.videos { display: grid; gap: 3.5rem 2.5rem; }
@media (min-width: 40rem) { .videos { grid-template-columns: 1fr 1fr; } }
.video { margin: 0; }
.video figcaption { text-align: center; margin-bottom: 1rem; }
.tagline { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin: 0; }
.video .sub { margin: 0.35rem 0 0; color: #cfc4b8; font-size: 1.05rem; }
.video-frame { display: grid; place-items: center; }
/* The ad is vertical (9:16); cap its height so it fits on screen */
.video-soon { position: relative; width: min(100%, calc(80svh * 9 / 16)); margin-inline: auto; }
.video-soon img { aspect-ratio: 9 / 16; width: 100%; object-fit: cover; }
.video-soon p { position: absolute; left: 50%; bottom: 1rem; translate: -50% 0; margin: 0; padding: 0.4rem 0.9rem; border-radius: 999px; background: rgb(20 15 12 / 0.75); color: #fff; font: 600 0.95rem/1.2 var(--display); white-space: nowrap; }
.video-frame video, .video-soon img, .video-empty { border-radius: 1.25rem; }
.video-frame video { object-fit: cover;  display: block; aspect-ratio: 9 / 16; width: min(100%, calc(80svh * 9 / 16)); height: auto; background: #000; }
.video-empty { aspect-ratio: 9 / 16; width: min(100%, calc(80svh * 9 / 16)); margin-inline: auto; background: #2b241f; color: #cfc4b8; font-family: var(--display); text-align: center; padding: 1rem; }
.video-empty p { margin: 0; }
.credit { margin-top: 1rem; font-size: 0.9rem; color: var(--muted); }

/* Priorities */
.lead { font-size: clamp(1.25rem, 2.6vw, 1.5rem); line-height: 1.45; max-width: 40rem; }
.platforms { display: grid; gap: 2.5rem 3.5rem; margin-top: 2.5rem; }
@media (min-width: 56rem) { .platforms { grid-template-columns: 1fr 1fr; } }
.who { font: 600 0.9rem/1.3 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--rose-deep); margin: 0 0 0.75rem; }
.priorities { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.priorities li {
  background: var(--paper-2); border-radius: 1rem;
  padding: 1.1rem 1.25rem;
  display: grid; grid-template-columns: 4.5rem 1fr; gap: 1.1rem; align-items: center;
  transition: transform 0.25s ease, background-color 0.25s ease;
}
.priorities h4 { font: 800 clamp(1.3rem, 3vw, 1.6rem)/1.15 var(--display); letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
.priorities p { margin: 0; color: var(--muted); max-width: 38rem; }

/* Gallery: 4:3 tiles with one tall and one wide photo, sized so the grid always ends in a full row. */
.gallery { list-style: none; padding: 0; margin: 2.5rem auto 0; display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: dense; gap: 0.6rem; }
@media (min-width: 56rem) { .gallery { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }
.gallery li { aspect-ratio: 4 / 3; }
.gallery li.tall { grid-row: span 2; aspect-ratio: auto; }
.gallery li.wide { grid-column: span 2; aspect-ratio: auto; }
.gallery button { all: unset; display: block; cursor: zoom-in; overflow: hidden; border-radius: 1.25rem; background: var(--paper-2); width: 100%; height: 100%; }
.gallery button:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }
.gallery picture { display: block; width: 100%; height: 100%; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery button:hover img { transform: scale(1.03); }

/* Lightbox */
.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 3.5rem 0.5rem; border: 0;
  background: #0f0b09; color: #fff;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; object-fit: contain; }
.lightbox button {
  position: absolute; width: 3.25rem; height: 3.25rem; border: 0; border-radius: 50%;
  background: rgb(255 255 255 / 0.14); color: #fff; font: 400 2rem/1 var(--display); cursor: pointer;
}
.lightbox button:hover { background: rgb(255 255 255 / 0.28); }
.lightbox button:focus-visible { outline: 3px solid #fff; }
.lb-close { top: 0.5rem; right: 0.5rem; }
.lb-prev, .lb-next { bottom: 0.5rem; }
.lb-prev { left: calc(50% - 3.75rem); }
.lb-next { right: calc(50% - 3.75rem); }
@media (min-width: 56rem) {
  .lightbox { padding: 2rem 5rem; }
  .lb-prev, .lb-next { bottom: auto; top: 50%; translate: 0 -50%; }
  .lb-prev { left: 1rem; }
  .lb-next { right: 1rem; }
}
body:has(.lightbox[open]) { overflow: hidden; }

/* Endorsements: portrait cards with the name over the photo */
.endorse-grid { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.25rem; }
@media (min-width: 56rem) { .endorse-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
.endorse-grid:empty { display: none; }
/* Name and role sit under each photo so they never cover faces in the group shots. */
.endorse-grid picture { display: block; aspect-ratio: 4 / 3; border-radius: 1.25rem; overflow: hidden; background: var(--night); }
.avatar { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.endorse-grid li:hover .avatar { transform: scale(1.04); }
.endorse-grid li div { padding: 0.6rem 0.15rem 0.5rem; display: grid; gap: 0.2rem; }
.endorse-grid strong { font: 800 clamp(1.35rem, 2.4vw, 1.6rem)/1.02 var(--display); letter-spacing: -0.02em; text-wrap: balance; }
.endorse-grid span { font-size: clamp(0.9rem, 1.6vw, 1rem); line-height: 1.25; color: var(--muted); }
.endorse-more { margin-top: 1.5rem; font: 700 1.2rem/1.2 var(--display); }

/* How to vote: rose banner with a huge date, then three step cards */
.vote-banner { container-type: inline-size; background: var(--rose); color: #fff; border-radius: 1.25rem; padding: clamp(1.25rem, 4vw, 2.5rem); }
.vote-banner h2 { font-size: clamp(1.1rem, 2.4vw, 1.5rem); letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 0.5rem; }
.date { margin: 0; font: 800 15cqi/0.9 var(--display); letter-spacing: -0.04em; white-space: nowrap; }
.facts { list-style: none; padding: 0; margin: 0.75rem 0 0; display: grid; gap: 0.75rem; }
.facts li { background: var(--paper-2); border-radius: 1.25rem; padding: 1.25rem; }
.facts h3 { margin: 0.9rem 0 0.35rem; }
.facts p { margin: 0; }
@media (min-width: 56rem) { .facts { grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; } .facts li { padding: 1.5rem; } }

/* Final CTA */
.final { text-align: center; position: relative; isolation: isolate; overflow: hidden; min-height: min(90svh, 52rem); display: grid; align-content: center; }
.final picture { position: absolute; inset: 0; z-index: -2; }
.final-bg { width: 100%; height: 100%; object-fit: cover; object-position: 45% 45%; }
.final::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(20 15 12 / 0.6); }
.final h2 { font-size: clamp(2.5rem, 9vw, 5.5rem); }
.final p { font-size: 1.25rem; margin-bottom: 2rem; }
.final .btn { width: 100%; max-width: 24rem; }


@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
    @keyframes rise { from { opacity: 0; translate: 0 1.5rem; } }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
