/* Come On America, We Can Do This
   Brand tokens pulled from the official trailer: studio black, chrome, anthem blue. */

:root {
  --black: #000000;
  --graphite: #15171c;
  --rule: #2a2d35;
  --chrome: #c9cdd6;
  --steel: #8a8f9c;
  --white: #f4f5f8;
  --red: #d9223f;
  --blue: #4b50e3;
  --blue-bright: #6a6ff0;
  --lavender: #b3bcf7;
  /* Red, white, and blue title lettering, measured from the v5 trailer */
  --title-gradient: linear-gradient(90deg, #d9223f 0%, #ea6a7c 13%, #f3e9ec 32%, #bcbef0 56%, #7d81e8 80%, #4c51e0 100%);
  --chrome-gradient: linear-gradient(180deg, #f6f7fa 0%, #b7bcc7 45%, #7d8391 55%, #dfe2e8 100%);

  --display: "Cinzel", "Trajan Pro", "Cormorant SC", Georgia, serif;
  --body: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --measure: 66ch;
  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

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

html { scroll-padding-top: calc(5rem + env(safe-area-inset-top, 0px)); scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
[hidden] { display: none !important; }

a { color: var(--lavender); text-underline-offset: 0.2em; }
a:hover { color: var(--white); }

:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -999px; top: 0.5rem;
  background: var(--white); color: var(--black); padding: 0.5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0.5rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.25rem; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 0.7rem;
  font-family: var(--display); font-weight: 600; font-size: 1rem;
  color: var(--white); text-decoration: none; letter-spacing: 0.02em;
}
.brand img { width: 34px; height: 34px; }
.brand span { line-height: 1.15; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(1rem, 3vw, 2rem); }
.site-nav a {
  font-family: var(--display); font-size: 0.95rem; color: var(--chrome);
  text-decoration: none; padding: 0.35rem 0; border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--white); }
.site-nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--blue-bright); }

/* ---------- Waveform signature ---------- */
.waveform {
  height: 64px;
  background: url("../img/waveform.svg") center / 100% 100% no-repeat;
  opacity: 0.8;
}
.waveform--thin { height: 36px; opacity: 0.55; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 2rem; }
.hero-grid {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
}
.show-title { margin: 0; font-family: var(--display); font-weight: 400; line-height: 0.98; }
.show-title .line {
  display: block;
  font-size: clamp(3rem, 8.5vw, 6.25rem);
  /* One gradient spans the width of "America" and is shared by all three words,
     so every line starts red on the left, just like the trailer */
  background: var(--title-gradient) 0 0 / 4.46em 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.show-title .tagline {
  display: block; margin-top: 0.6rem;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem); color: var(--white); line-height: 1.1;
}
.show-title .kind {
  display: block; margin-top: 0.35rem;
  font-family: var(--body); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.3em; color: var(--steel);
}
.hero-lede { max-width: 38ch; margin: 1.75rem 0 0; color: var(--chrome); font-size: 1.1rem; }

.premiere { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1.2rem; }
.premiere-date { font-family: var(--display); font-size: 1.35rem; color: var(--white); }
.premiere-count { color: var(--lavender); font-weight: 500; }
.premiere--election { margin-top: 0.9rem; }

.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.9rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--body); font-weight: 600; font-size: 0.95rem;
  padding: 0.85rem 1.4rem; border-radius: 999px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-bright); color: #fff; }
.btn-ghost { border-color: var(--steel); color: var(--white); background: transparent; }
.btn-ghost:hover { border-color: var(--white); color: var(--white); }
.btn svg { width: 18px; height: 18px; }

/* Trailer frame: chrome bezel like the mic in the video */
.trailer {
  margin: 0; padding: 6px; border-radius: 14px;
  background: var(--chrome-gradient);
  box-shadow: -30px 30px 80px rgba(217, 34, 63, 0.10), 30px 30px 80px rgba(75, 80, 227, 0.20);
}
.trailer video { width: 100%; aspect-ratio: 16 / 9; border-radius: 9px; background: #000; }
.trailer figcaption { font-size: 0.8rem; color: #2b2e36; padding: 0.45rem 0.35rem 0.1rem; font-weight: 600; }

/* One orchestrated page-load moment: the title rises line by line */
@media (prefers-reduced-motion: no-preference) {
  .show-title .line, .show-title .tagline, .show-title .kind {
    opacity: 0; transform: translateY(18px);
    animation: rise 0.9s cubic-bezier(.2,.7,.2,1) forwards;
  }
  .show-title .line:nth-child(1) { animation-delay: 0.05s; }
  .show-title .line:nth-child(2) { animation-delay: 0.25s; }
  .show-title .line:nth-child(3) { animation-delay: 0.45s; }
  .show-title .tagline { animation-delay: 0.8s; }
  .show-title .kind { animation-delay: 1s; }
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.1rem); line-height: 1.12; margin: 0 0 1.5rem;
  max-width: 22ch;
}
.section p { max-width: var(--measure); color: var(--chrome); }
.section p.lead { font-size: 1.2rem; color: var(--white); }

/* Why: narrative beside the framed promise */
.why-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }

/* Chrome bracket frame, echoing the NONPARTISAN plate in the trailer */
.plate {
  position: relative; padding: 2.25rem 1.75rem; text-align: center;
  background: linear-gradient(180deg, #2c2f36 0%, #1a1c21 55%, #25282e 100%);
  border-top: 2px solid var(--chrome); border-bottom: 2px solid var(--chrome);
}
.plate::before, .plate::after {
  content: ""; position: absolute; left: 0; right: 0; height: 10px;
  border-left: 3px solid var(--white); border-right: 3px solid var(--white);
}
.plate::before { top: -12px; }
.plate::after { bottom: -12px; }
.plate strong {
  display: block; font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.1; color: var(--white);
}
.plate span { display: block; margin-top: 0.75rem; color: var(--steel); font-size: 0.9rem; }

/* Commitments list */
.commitments {
  list-style: none; margin: 2.5rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 4rem);
}
.commitments li { padding: 1.6rem 0; border-top: 1px solid var(--rule); }
.commitments h3 { margin: 0 0 0.4rem; font-family: var(--display); font-weight: 600; font-size: 1.3rem; color: var(--white); }
.commitments p { margin: 0; }

/* Voices: a typographic roll call */
.voices { background: var(--graphite); }
.roll { list-style: none; margin: 2rem 0 0; padding: 0; }
.roll li {
  font-family: var(--display); font-size: clamp(1.8rem, 5.5vw, 3.6rem); line-height: 1.25;
  color: var(--white); padding: 0.35rem 0; border-bottom: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap;
}
.roll li small { font-family: var(--body); font-size: 0.95rem; color: var(--steel); max-width: 36ch; }

/* Host */
.host-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.host-photo {
  aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: #000;
  border: 1px solid var(--rule);
}
.host-photo img { width: 100%; height: 100%; object-fit: cover; }
.host-role { font-family: var(--display); color: var(--lavender); font-size: 1.15rem; margin: -0.75rem 0 1.25rem; }

/* Follow band */
.follow { text-align: left; }
.follow .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; }
.social-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.social-list a {
  display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none;
  color: var(--white); border: 1px solid var(--rule); border-radius: 999px;
  padding: 0.7rem 1.15rem; font-weight: 500; font-size: 0.95rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.social-list a:hover { border-color: var(--blue-bright); background: rgba(75, 80, 227, 0.14); }
.social-list svg { width: 20px; height: 20px; flex: none; }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: clamp(3rem, 7vw, 5rem) 0 1.5rem; }
.page-head h1 {
  margin: 0; font-family: var(--display); font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 1.02;
  background: var(--title-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
  max-width: 16ch; width: fit-content;
}
.page-head p { max-width: 58ch; color: var(--chrome); font-size: 1.1rem; margin-top: 1.25rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: 0.4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
label { font-weight: 600; font-size: 0.92rem; color: var(--white); }
.hint { font-size: 0.85rem; color: var(--steel); font-weight: 400; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--white);
  background: var(--graphite); border: 1px solid #3a3e48; border-radius: 10px;
  padding: 0.8rem 0.95rem;
}
textarea { min-height: 11rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue-bright); box-shadow: 0 0 0 3px rgba(106, 111, 240, 0.35); }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: #ff7a7a; }
.botcheck { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5rem; font-weight: 500; }
.form-status[data-state="success"] { color: #8fe3b0; }
.form-status[data-state="error"] { color: #ff9a9a; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.aside-block { border-top: 1px solid var(--rule); padding-top: 1.5rem; margin-bottom: 2rem; }
.aside-block h2 { font-family: var(--display); font-weight: 600; font-size: 1.25rem; margin: 0 0 0.5rem; }
.aside-block p { margin: 0 0 0.75rem; color: var(--chrome); }

/* ---------- Episodes ---------- */
.empty-state {
  border: 1px solid var(--rule); border-radius: 14px; padding: clamp(1.75rem, 5vw, 3rem);
  background: var(--graphite); max-width: 760px;
}
.empty-state h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 0 0 0.75rem; }
.empty-state p { color: var(--chrome); margin: 0 0 1.5rem; }
.episode-list { list-style: none; margin: 0; padding: 0; }
.episode { display: grid; grid-template-columns: 7rem 1fr; gap: 1.5rem; padding: 2rem 0; border-top: 1px solid var(--rule); }
.episode-number { font-family: var(--display); font-size: 2.4rem; color: var(--lavender); line-height: 1; }
.episode h3 { font-family: var(--display); font-weight: 600; font-size: 1.5rem; margin: 0 0 0.35rem; }
.episode-meta { font-size: 0.88rem; color: var(--steel); margin: 0 0 0.75rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding: 3rem 0 2.5rem; color: var(--steel); font-size: 0.9rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
.footer-title { font-family: var(--display); color: var(--white); font-size: 1.1rem; margin: 0 0 0.35rem; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-nav a { color: var(--chrome); text-decoration: none; }
.footer-nav a:hover { color: var(--white); }
.site-footer .legal { margin-top: 2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .why-grid, .host-grid, .contact-grid, .follow .wrap { grid-template-columns: 1fr; }
  .host-photo { max-width: 320px; }
  .commitments { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .episode { grid-template-columns: 1fr; gap: 0.5rem; }
  .brand span { font-size: 0.9rem; }
  .site-header .wrap { padding: 0.6rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Inner pages: less space between the page head and content */
.section.section--tight { padding-top: 1.5rem; }
.hero-actions.hero-actions--flush { margin-top: 0; }

/* Trademark mark beside the show name: one quarter of the adjacent text size */
.tm {
  font-family: var(--body); font-size: 0.25em; font-weight: 600;
  letter-spacing: 0.02em; line-height: 0; vertical-align: super;
  margin-left: 0.1em; -webkit-text-fill-color: currentColor;
}

/* ---------- Full-page backdrop ----------
   One continuous stage behind every section: the trailer's chrome mic,
   a blue studio glow, and the waveform horizon. Fixed so the content
   scrolls over it like text over the trailer. */
body { background: var(--black); }
.backdrop {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(55% 45% at 80% 42%, rgba(75, 80, 227, 0.20), transparent 70%),
    radial-gradient(45% 40% at 6% 100%, rgba(217, 34, 63, 0.10), transparent 70%),
    radial-gradient(30% 25% at 0% 0%, rgba(179, 188, 247, 0.06), transparent 70%),
    var(--black);
}
.backdrop::before {
  content: ""; position: absolute; top: 50%; right: -7vw;
  height: min(118vh, 1200px); aspect-ratio: 760 / 1000;
  transform: translateY(-46%);
  background: url("../img/backdrop-mic.jpg") center / contain no-repeat;
  opacity: 0.22;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
}
.backdrop::after {
  /* Lines up with the dotted horizon that runs through the mic in the trailer */
  content: ""; position: absolute; left: 0; right: 0; height: 90px;
  top: calc(50% + 0.04 * min(118vh, 1200px) - 45px);
  background: url("../img/waveform.svg") center / 100% 100% no-repeat;
  opacity: 0.14;
}

/* Sections sit directly on the stage: no filled panels */
.voices { background: transparent; }
.site-footer { background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.85) 40%); }

/* Text stays crisp over the imagery */
.section p, .hero-lede, .roll li small, .commitments p { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.9); }
.commitments li, .roll li { border-color: rgba(201, 205, 214, 0.16); }

@media (max-width: 900px) {
  .backdrop::before { right: 50%; transform: translate(50%, -46%); height: 85vh; opacity: 0.17; }
  .backdrop::after { top: calc(50% + 0.04 * 85vh - 45px); }
}

/* Supporting text a touch brighter so it reads over the backdrop */
.roll li small { color: #a9aebb; }
