/* ==========================================================================
   gexforsenate.com
   Single stylesheet. Replaces ~621 KB of generated Duda CSS.
   Design values carried over from the 2022 site so the rebuild matches.
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------ */
:root {
  --navy: #002e5c;
  --navy-deep: #0e2d52;
  --red: #d81324;
  --red-bright: #b3101e;
  --ink: #1e1306;
  --muted: #6b6b6b;
  --slate: #5a6472;
  --wash: #f6f6f6;
  --rule: rgba(0, 0, 0, 0.1);
  --white: #fff;

  --font-sans: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Merriweather", Georgia, "Times New Roman", serif;
  --font-display: "Cardo", Georgia, "Times New Roman", serif;

  --shell: 1200px;
  --measure: 72ch;
  --gutter: clamp(1rem, 4vw, 3rem);
}

/* --- Reset -------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  /* Short pages: keep the footer at the bottom of the screen. */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1 0 auto; }

img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; line-height: 1.2; }
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1.15em; padding-left: 1.4em; }
a { color: inherit; }

/* --- Accessibility ------------------------------------------------------ */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 20px;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* Red ring on light backgrounds, white on dark ones (red measured under 3:1 there). */
.site-footer, .signup, .hero, .page-head { --focus-ring: var(--white); }
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--focus-ring, var(--red));
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Anchored headings clear the sticky header when it is in use. */
[id] { scroll-margin-top: 1.5rem; }
@media (min-width: 1320px) { [id] { scroll-margin-top: 170px; } }

/* --- Layout ------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section--wash { background: var(--wash); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  text-align: center;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-block;
  padding: 16px 34px;
  min-width: 270px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: #003d78; }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-bright); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.85); }
.btn--ghost:hover { background: var(--white); color: var(--navy); }
.btn--auto { min-width: 0; }
.btn--small { min-width: 0; padding: 12px 22px; font-size: 14px; }
.btn:disabled,
.btn[aria-disabled="true"] { opacity: 0.6; cursor: progress; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.btn-row--center { justify-content: center; }

/* --- Site header -------------------------------------------------------- */
/* Under 960px: logo, Menu button and Donate on one row; the menu opens below
   as a full-width list.
   960-1319px: logo + Donate on one row, the whole menu on one row below.
   1320px+: everything on one row, sticky. */
.site-header {
  background: var(--white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding-block: 12px;
}
.site-header__logo { flex: none; margin-right: auto; }
.site-header__logo img { width: 132px; height: auto; }
.site-header__donate { order: 2; }

/* min-width: 0 keeps a long menu from stretching the page. */
.nav { order: 3; flex: 0 0 100%; min-width: 0; }
.nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  display: inline-block;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
  text-decoration: none;
  padding-block: 6px;
}
.nav a:hover { color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); font-weight: 600; box-shadow: inset 0 -2px 0 var(--red); }

.nav-toggle { display: none; }

@media (min-width: 1320px) {
  .site-header { position: sticky; top: 0; z-index: 100; }
  /* The full menu needs ~1150px; the 1200px page column leaves 1104. */
  .site-header .shell { max-width: 1320px; }
  .site-header__inner { flex-wrap: nowrap; min-height: 146px; }
  .site-header__logo { margin-right: 0; }
  .site-header__logo img { width: 160px; }
  .nav { order: 2; flex: 1 1 auto; }
  .nav ul { flex-wrap: nowrap; justify-content: flex-end; gap: 1.15rem; }
  .site-header__donate { order: 3; }
}

@media (max-width: 959px) {
  .site-header__inner { gap: 0.75rem; }
  .site-header__logo img { width: 112px; }

  .nav-toggle {
    order: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 48px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--navy);
    background: var(--white);
    border: 2px solid var(--navy);
    cursor: pointer;
  }
  .nav-toggle { -webkit-tap-highlight-color: transparent; }
  .nav-toggle:hover,
  .nav-toggle[aria-expanded="true"] { background: var(--wash); }
  .nav-toggle__icon { fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; }
  .nav-toggle__close { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline; }

  .site-header__donate { order: 3; min-height: 48px; display: inline-flex; align-items: center; }

  .nav { order: 4; display: none; }
  .nav:target,
  .nav.nav--open { display: block; }
  .js .nav:target:not(.nav--open) { display: none; }
  .nav ul { display: block; border-top: 1px solid var(--rule); }
  .nav li { border-bottom: 1px solid var(--rule); }
  .nav a {
    display: block;
    padding: 14px 12px;
    font-size: 15px;
    color: var(--ink);
  }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--red); }
}

/* Small phones: tighten so logo, Menu and Donate still share one row. */
@media (max-width: 379px) {
  .site-header__inner { gap: 0.5rem; }
  .site-header__logo img { width: 84px; }
  .nav-toggle,
  .site-header__donate { padding-inline: 10px; font-size: 13px; letter-spacing: 0.04em; }
}

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(88vh, 760px);
  background-color: var(--navy-deep);
  background-position: center 20%;
  background-size: cover;
  background-repeat: no-repeat;
  background-image: image-set(
    url("/assets/img/hero-960.webp") type("image/webp"),
    url("/assets/img/hero-960.jpg") type("image/jpeg")
  );
}
@media (min-width: 961px) {
  .hero {
    background-image: image-set(
      url("/assets/img/hero.webp") type("image/webp"),
      url("/assets/img/hero.jpg") type("image/jpeg")
    );
  }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Dark enough behind the name and subtitle for 4.5:1+ at every width; the face stays bright. */
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.6) 55%, rgba(0, 0, 0, 0) 85%);
}
.hero__inner { position: relative; z-index: 1; padding-block: clamp(2.5rem, 7vw, 5rem); }
.hero__title {
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 7.5vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}
.hero__subtitle {
  margin: 0.4rem 0 2rem;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.hero__actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

/* --- Letter / two-column content ---------------------------------------- */
.letter { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 860px) {
  .letter { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
}
.letter__figure { margin: 0; }
.letter__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1rem;
}
.letter__title--statement { font-size: clamp(1.75rem, 3.6vw, 2.4rem); line-height: 1.15; margin-bottom: 1.25rem; }
.letter__lede { font-size: 1.15rem; font-weight: 600; margin-bottom: 1.1em; }
.letter__body strong { font-weight: 700; }
.letter__sign { margin-top: 1.5rem; font-family: var(--font-display); font-size: 1.25rem; }

/* --- Long-form text ----------------------------------------------------- */
.prose { max-width: var(--measure); margin-inline: auto; }
/* On a .shell the gutter padding sits inside max-width, so allow for it. */
.shell.prose { max-width: calc(var(--measure) + 2 * var(--gutter)); }
.prose--center { text-align: center; }
.prose h2:not(.section-title) {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.6vw, 1.55rem);
  margin: 2.75rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--navy);
}
.prose--center .section-title { margin-bottom: 1.25rem; }
.prose a:not(.btn) { color: var(--navy); }
.prose ul:not(.sources) li { margin-bottom: 0.4em; }
/* The section already has top padding; a leading heading should not add more. */
.prose > h2:first-child { margin-top: 0; }
.lede { font-size: 1.2rem; font-weight: 600; }
.note { font-size: 15px; color: var(--slate); }
.link-note { font-size: 0.85em; font-weight: 400; white-space: nowrap; }

/* Links out to the enacted law or official source for a claim. */
.sources { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.sources li { margin-bottom: 0.5rem; }
.sources a { font-weight: 600; }
/* Non-breaking space keeps the arrow on the same line as the link text. */
.sources a::after { content: "\00a0\2192"; content: "\00a0\2192" / ""; }

/* --- Cards -------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
.cards--projects { max-width: calc(var(--measure) * 1.45); margin: 2rem auto; }
.card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--white);
  border-top: 4px solid var(--red);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.card--plain { background: var(--wash); box-shadow: none; border-top-color: var(--navy); margin-bottom: 1.25rem; }
.card__title { font-family: var(--font-serif); font-size: 1.2rem; margin-bottom: 0.75rem; }
.card__link {
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--navy);
}
.card__link::after { content: "\00a0\2192"; content: "\00a0\2192" / ""; }

/* --- Photo strip -------------------------------------------------------- */
.strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 10px;
}
.strip--spaced { margin-top: clamp(2.5rem, 6vw, 4rem); }
.strip picture { display: block; }
.strip img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--wash); }

/* --- Signup band and forms ---------------------------------------------- */
.signup {
  position: relative;
  background-color: var(--navy-deep);
  background-position: center;
  background-size: cover;
  color: var(--white);
}
.signup::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(14, 45, 82, 0.78);
}
.signup__inner { position: relative; z-index: 1; max-width: 720px; margin-inline: auto; text-align: center; }
.signup__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.5rem;
}
.signup__note { margin-bottom: 1rem; font-size: 1.05rem; }
.signup__note:last-of-type { margin-bottom: 2rem; }

.form { text-align: left; background: rgba(255, 255, 255, 0.08); padding: clamp(1.5rem, 4vw, 2.25rem); }
.form__row { margin-bottom: 1.15rem; }
.form label { display: block; margin-bottom: 0.4rem; font-size: 15px; font-weight: 600; }
.form__optional { font-weight: 400; opacity: 0.85; }
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 0;
}
.form textarea { resize: vertical; min-height: 7rem; }
.form input::placeholder { color: rgba(255, 255, 255, 0.6); }
.form input:focus,
.form textarea:focus { background: rgba(255, 255, 255, 0.14); }

.form fieldset { margin: 0 0 1.5rem; padding: 0; border: 0; }
.form legend { padding: 0; margin-bottom: 0.6rem; font-size: 15px; font-weight: 600; }
.form__checks { display: grid; gap: 0.6rem; }
.form .form__choice { display: flex; align-items: center; gap: 0.6rem; margin: 0; font-size: 16px; font-weight: 400; cursor: pointer; }
.form__choice input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--red); }

.form__actions { text-align: center; margin-top: 0.5rem; }
.form__status { margin-top: 1rem; font-size: 16px; font-weight: 600; text-align: center; }
.form__status:empty { margin: 0; }
.form__fine { margin-top: 1.25rem; font-size: 14px; color: rgba(255, 255, 255, 0.85); }
.form__fine a { color: var(--white); }

/* --- Video -------------------------------------------------------------- */
.video { margin: 2rem 0 2.5rem; }
.video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* The player draws no focus ring of its own on the page. */
.video__frame:focus-within { outline: 3px solid var(--red); outline-offset: 2px; }
.video__caption { margin-top: 0.65rem; font-size: 15px; color: var(--slate); }

/* --- Page intro --------------------------------------------------------- */
.page-head { background: var(--navy-deep); color: var(--white); padding-block: clamp(2.5rem, 6vw, 4rem); text-align: center; }
.page-head__eyebrow {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.75rem;
}
.page-head__sub {
  max-width: 40ch;
  margin: 0.75rem auto 0;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.88);
  text-wrap: balance;
}
.page-head__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  max-width: 22ch;
  margin-inline: auto;
  text-wrap: balance;
}

/* --- Footer ------------------------------------------------------------- */
.site-footer { background: var(--navy-deep); color: var(--white); padding-block: clamp(2.5rem, 6vw, 4rem); }
.site-footer__grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
  text-align: center;
}
@media (min-width: 800px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; text-align: left; }
  .site-footer__info { text-align: right; }
}
.site-footer__logo img { width: 240px; margin-inline: auto; }
@media (min-width: 800px) { .site-footer__logo img { margin-inline: 0; } }
.site-footer__donate { margin-top: 1.5rem; }
.site-footer__info { font-size: 15px; }
.site-footer__info p { margin-bottom: 0.9em; }
.site-footer__info a { color: var(--white); }
.site-footer__name { font-weight: 600; font-size: 16px; }

.site-footer__nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; margin: 1.5rem 0; padding: 0; list-style: none; }
@media (min-width: 800px) { .site-footer__nav ul { justify-content: flex-end; } }
.site-footer__nav a {
  display: inline-block;
  padding-block: 6px;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}
.site-footer__nav a:hover { color: var(--white); text-decoration: underline; }

.social { display: flex; justify-content: center; gap: 1.5rem; }
@media (min-width: 800px) { .social { justify-content: flex-end; } }
.social a { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; color: var(--white); }
.social svg { width: 22px; height: 22px; fill: currentColor; }

.disclaimer {
  margin-top: 3rem;
  text-align: center;
}
.disclaimer p {
  display: inline-block;
  padding: 6px 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.disclaimer img { margin: 1.25rem auto 0; width: 100px; }

/* --- Print -------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .hero__actions, .signup, .btn-row { display: none; }
  body { color: #000; }
  .sources a::after { content: " (" attr(href) ")"; font-weight: 400; }
}
