/*
Theme Name: FuckChuck.now
Theme URI: https://fuckchuck.now
Author: NoFuss
Description: One-page advocacy site backing Chris Van Hollen for Senate Democratic Leader. Includes a built-in "add your name" support wall, contact form, and share tools. No plugins required.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: fuckchuck
*/

:root {
  --ink: #0a1b3d;
  --ink-soft: #33415f;
  --paper: #f7f3ea;
  --white: #ffffff;
  --blue: #1d4ed8;
  --yellow: #ffd400;
  --red: #e5322d;
  --line: #0a1b3d;
  --radius: 14px;
  --shadow: 5px 5px 0 var(--ink);
  --wrap: 1080px;
  --display: "Archivo Black", "Arial Black", Impact, sans-serif;
  --body:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: var(--blue);
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--ink);
  transition: color 0.2s ease;
}
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.wrap {
  width: min(var(--wrap), 100% - 40px);
  margin-inline: auto;
}
.narrow {
  width: min(720px, 100% - 40px);
  margin-inline: auto;
}
.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h2 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
}
h3 {
  font-size: 1.35rem;
}
p {
  margin: 0 0 1em;
}

.allcaps {
  display: block;
  margin-bottom: 0.5em;
  text-transform: uppercase;
  text-align: center;
}
.bolder {
  font-weight: 800;
}
.bright {
  font-weight: 900;
  color: var(--yellow);
}
/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: var(--white);
  border-bottom: 3px solid var(--yellow);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}
.brand {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--yellow);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.brand:hover {
  color: var(--white);
  transition: color 0.2s ease;
}
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.nav a:hover {
  color: var(--yellow);
  transition: color 0.2s ease;
}
@media (max-width: 760px) {
  .nav a:not(.btn) {
    display: none;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  cursor: pointer;
  font-family: var(--body);
  font-weight: 800;
  font-size: 1rem;
  padding: 13px 22px;
  border-radius: 999px;
  border: 3px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
  transition:
    transform 0.08s ease,
    box-shadow 0.08s ease;
}
.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
  color: var(--ink);
  transition:
    transform 0.08s ease,
    box-shadow 0.08s ease;
}
.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}
.btn-blue {
  background: var(--blue);
  color: var(--white);
}
.btn.wide,
.btn-ghost.wide {
  display: inline-block;
  min-width: 200px;
  padding-left: 80px;
  padding-right: 80px;
  text-align: center;
}
.btn-blue:hover {
  color: var(--white);
}
.btn-ghost {
  background: var(--white);
}
.btn-small {
  padding: 8px 16px;
  font-size: 0.9rem;
  box-shadow: 2px 2px 0 var(--ink);
}
.site-header .btn {
  border-color: var(--yellow);
  box-shadow: none;
  color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: var(--white);
  padding: clamp(56px, 10vw, 110px) 0 clamp(48px, 8vw, 10px);
  overflow: hidden;
}
.eyebrow {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 6px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.8rem, 9vw, 6.2rem);
  margin-bottom: 0.25em;
}
.hero h1 span {
  color: var(--yellow);
  display: block;
}
.hero .lede {
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  max-width: 40ch;
  color: #dbe4f7;
}
.hero .lede strong {
  color: var(--white);
}

.hero .btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
  box-shadow: 3px 3px 0 var(--yellow);
  padding-left: 80px;
  padding-right: 80px;
}
.hero .btn-ghost:hover {
  color: var(--white);
  box-shadow: 5px 5px 0 var(--yellow);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
  align-items: center;
  margin-top: 70px;
}
.hero-split {
  display: flex;
  flex-direction: row;
  gap: 20px;
}
.hero-text {
  max-width: 600px;
  width: 48%;
}
.hero-video {
  width: 48%;
}
/* Crops the grey side bars: the clip is 9:16 inside a 1106x837 frame,
   so the visible centre is (9/16 * 837) / 1106 = 42.6% of the frame width. */
.video-crop {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 9 / 16;
  margin-inline: auto;
  overflow: hidden;
  border: 3px solid var(--yellow);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--yellow);
  background: #000;
}
.video-crop iframe {
  position: absolute;
  top: 0;
  left: 50%;
  width: 236%; /* 100 / 0.426, slightly over to hide edge slivers */
  height: 100%;
  transform: translateX(-50%);
  border: 0;
}
@media (max-width: 760px) {
  .hero-split {
    flex-direction: column;
  }
  .hero-text,
  .hero-video {
    width: 100%;
    max-width: none;
  }
  .video-crop {
    width: min(100%, 360px);
  }
}
@media (max-width: 480px) {
  .brand {
    font-size: 1rem;
  }
  .site-header .btn-small {
    white-space: nowrap;
    padding: 8px 14px;
  }
}
.counter {
  margin-top: 26px;
  margin-bottom: 0;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--yellow);
  text-align: center;
}
.counter b {
  font-family: var(--display);
  font-size: 2rem;
  color: var(--white);
}

.faux-btn {
  color: var(--ink);
  display: block;
  text-decoration: none;
  font-weight: 800;
  background: var(--yellow);
  border-radius: 10px;
  margin-top: 40px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.faux-btn:hover {
  background: var(--ink-soft);
  color: var(--yellow);
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

/* ---------- Sections ---------- */
section {
  padding: clamp(48px, 8vw, 88px) 0;
}
.section-tag {
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 1.5rem;
  color: var(--blue);
  margin-bottom: 10px;
}
.section-intro {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

.cards {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 34px;
}
.card {
  background: var(--white);
  border: 3px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card h3 {
  margin-bottom: 0.4em;
}
.card p:last-child {
  margin-bottom: 0;
}
.card .num {
  font-family: var(--display);
  color: var(--blue);
  font-size: 2.2rem;
  line-height: 1;
  display: block;
  margin-bottom: 10px;
}

.band {
  background: var(--yellow);
  border-block: 3px solid var(--ink);
}
.band-quote {
  font-family: var(--display);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  line-height: 1.15;
  max-width: 22ch;
  margin: 0;
}

.record {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: grid;
  gap: 14px;
}
.record li {
  background: var(--white);
  border: 3px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px 16px 54px;
  position: relative;
  box-shadow: 3px 3px 0 var(--ink);
}
.record li::before {
  content: "\2713";
  position: absolute;
  left: 16px;
  top: 14px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}
.record small {
  display: block;
  color: var(--ink-soft);
  font-size: 0.88rem;
}
.fair {
  margin-top: 30px;
  padding: 20px 24px;
  border-left: 8px solid var(--blue);
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.dark {
  background: var(--ink);
  color: var(--white);
}
.dark .section-tag {
  color: var(--yellow);
}
.dark .section-intro {
  color: #dbe4f7;
}
.dark a {
  color: var(--yellow);
}

/* ---------- Embeds ---------- */
.embeds {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  margin-top: 30px;
  align-items: start;
}
.embed {
  min-width: 0;
}
.embed-video {
  grid-column: 1 / -1;
  position: relative;
  aspect-ratio: 16 / 9;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: #000;
}
.embed-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.embed blockquote.tiktok-embed {
  margin: 0 auto;
}
.embed .twitter-tweet {
  margin-inline: auto !important;
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 34px);
  box-shadow: 6px 6px 0 var(--yellow);
}
.dark .form-card {
  border-color: var(--yellow);
  box-shadow: 6px 6px 0 var(--blue);
}
.form-card h3 {
  margin-bottom: 0.3em;
}
.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: 12px 14px;
  border: 3px solid var(--ink);
  border-radius: 10px;
  background: var(--paper);
}
.field textarea {
  min-height: 150px;
  resize: vertical;
}
.row {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .row.two {
    grid-template-columns: 1fr 1fr;
  }
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
  margin-bottom: 18px;
}
.check input {
  margin-top: 5px;
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}
.fine {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 14px;
}
.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-msg {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  font-weight: 700;
  display: none;
}
.form-msg.show {
  display: block;
}
.form-msg.ok {
  background: #dff7e4;
  border: 3px solid #1c8a3a;
  color: #0d5222;
}
.form-msg.err {
  background: #fde3e2;
  border: 3px solid var(--red);
  color: #8a1511;
}
button[disabled] {
  opacity: 0.6;
  cursor: wait;
}

/* ---------- Letter + share ---------- */
.letter {
  background: var(--paper);
  border: 3px dashed var(--ink);
  border-radius: 10px;
  padding: 20px;
  font-size: 0.98rem;
  white-space: pre-wrap;
  margin: 16px 0;
}
.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.share-row .btn {
  padding: 10px 16px;
  font-size: 0.92rem;
}

/* ---------- Supporters ---------- */
.supporters {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .supporters {
    grid-template-columns: 1fr 1fr;
  }
}
.supporters li {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.supporters .who {
  font-weight: 800;
}
.supporters .where {
  color: var(--ink-soft);
  font-size: 0.95rem;
  text-align: right;
}
.empty {
  padding: 24px;
  border: 3px dashed var(--ink);
  border-radius: 12px;
  background: var(--white);
}
.filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 18px;
}
.filter select {
  font: inherit;
  padding: 10px 12px;
  border: 3px solid var(--ink);
  border-radius: 10px;
  background: var(--white);
}
.pager {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.pager a,
.pager span {
  padding: 8px 14px;
  border: 3px solid var(--ink);
  border-radius: 10px;
  background: var(--white);
  text-decoration: none;
  font-weight: 800;
  color: var(--ink);
}
.pager .current {
  background: var(--ink);
  color: var(--white);
}
.more-link {
  margin-top: 22px;
}

/* ---------- Pages ---------- */
.page-head {
  background: var(--ink);
  color: var(--white);
  padding: 56px 0 44px;
  border-bottom: 3px solid var(--yellow);
}
.page-head h1 {
  font-size: clamp(2rem, 6vw, 3.6rem);
  margin: 0;
}
.page-body {
  padding: 44px 0 70px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #c9d4ee;
  padding: 40px 0;
  font-size: 0.92rem;
  border-top: 3px solid var(--yellow);
}
.site-footer a {
  color: var(--yellow);
}
.site-footer .brand {
  display: inline-block;
  margin-bottom: 10px;
}
.site-footer p {
  max-width: 70ch;
}
.sources {
  font-size: 0.92rem;
}
.sources li {
  margin-bottom: 6px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}

/* ---------- Mobile (760px and below): centered, with breathing room ---------- */
@media (max-width: 760px) {
  /* 28px of space on each side so text never touches the screen edge */
  .wrap,
  .narrow {
    width: calc(100% - 56px);
  }

  /* hero */
  .hero {
    text-align: center;
  }
  .hero .lede {
    margin-inline: auto;
  }
  .hero-actions {
    justify-content: center;
  }

  /* section headings, intros, cards */
  .section-tag,
  section h2,
  .section-intro,
  .more-link {
    text-align: center;
  }
  .section-intro {
    margin-inline: auto;
  }
  .band-quote {
    margin-inline: auto;
    text-align: center;
  }
  .card {
    text-align: center;
  }
  .form-card h3,
  .form-card > p {
    text-align: center;
  }
  .share-row {
    justify-content: center;
  }

  /* footer */
  .site-footer {
    text-align: center;
  }
  .site-footer p {
    margin-inline: auto;
  }
}

/* Standard 16:9 video, full width of its column, no media queries needed */
.video-16x9 {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 3px solid var(--yellow);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--yellow);
  background: #000;
}
.video-16x9 iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Watch section rows ----------
   Each .embed-row is one row inside .embeds. Pick a layout with a modifier class:
   row-full (1 item), row-half (50/50), row-40-60, row-60-40. Stacks on mobile. */
.embed-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}
.row-half {
  --cols: 1fr 1fr;
}
.row-40-60 {
  --cols: minmax(325px, min(550px, 40%)) minmax(0, 1fr);
}
.row-70-30 {
  --cols: minmax(0, 7fr) minmax(0, 3fr);
}
.row-60-40 {
  --cols: minmax(0, 1fr) minmax(325px, min(550px, 40%));
}
@media (min-width: 901px) {
  .embed-row:not(.row-full) {
    grid-template-columns: var(--cols);
  }
}
.embed-row .embed {
  min-width: 0;
}
/* .embed-video spans every column by default (for Bernie); inside a row it must not */
.embed-row .embed-video {
  grid-column: auto;
}
.embed-row .twitter-tweet {
  margin-inline: auto !important;
}
.embed-tweet {
  align-self: center;
}

/* Vertical (9:16) video such as a YouTube Short */
.embed-short {
  aspect-ratio: 9 / 16;
}
