/* ==========================================================================
   Oklahoma is OURS. — site styles
   Brand: teal #004250 · gold #F6AE00 · cream #F4EFE9 · ink #251A17
   Type:  Raleway (400/500/700/800) · Permanent Marker (accent)
   ========================================================================== */

:root {
  --teal:  #004250;
  --gold:  #F6AE00;
  --cream: #F4EFE9;
  --ink:   #251A17;
  --white: #FFFFFF;

  --ink-70: rgba(37, 26, 23, 0.75);
  --ink-60: rgba(37, 26, 23, 0.60);
  --ink-28: rgba(37, 26, 23, 0.28);
  --white-85: rgba(255, 255, 255, 0.85);
  --white-72: rgba(255, 255, 255, 0.72);

  --font-body: 'Raleway', Helvetica, Arial, sans-serif;
  --font-accent: 'Permanent Marker', cursive;

  --gutter: clamp(16px, 4vw, 56px);
  --shell: 1200px;
}

/* --------------------------------------------------------------- reset -- */

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--teal);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; }

/* author `display` rules otherwise beat the UA [hidden] rule */
[hidden] { display: none !important; }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--ink); }

::selection { background: var(--gold); color: var(--ink); }

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

/* sticky footer: the footer never leaves a bare strip under short pages */
.page {
  background: var(--cream);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page > main { flex: 1 0 auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--gold); color: var(--ink);
  font-weight: 800; font-size: 14px; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 14px 20px;
}
.skip-link:focus { left: 0; }

/* shared bits */
.eyebrow {
  font-weight: 700; font-size: 11px; letter-spacing: 0.24em;
  text-transform: uppercase; margin: 0 0 16px;
}
.eyebrow--teal { color: var(--teal); }
.eyebrow--gold { color: var(--gold); }

.btn {
  display: inline-block;
  font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  transition: background 140ms ease, color 140ms ease;
}
.btn--teal {
  background: var(--teal); color: var(--white);
  font-size: 14px; letter-spacing: 0.12em; padding: 15px 26px;
}
.btn--teal:hover { background: var(--gold); color: var(--ink); }
.btn--gold {
  background: var(--gold); color: var(--ink);
  font-size: 15px; padding: 17px 30px;
}
.btn--gold:hover { background: var(--cream); color: var(--ink); }

/* --------------------------------------------------------------- header -- */

.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px clamp(12px, 2vw, 24px);
  padding: 12px var(--gutter);
  background: var(--teal); color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.brand { display: flex; align-items: center; gap: 11px; padding: 2px 0; }
.brand__mark { display: block; width: 34px; height: auto; flex: none; }
.brand__word {
  font-weight: 800; font-size: 22px; line-height: 0.9;
  letter-spacing: 0.01em; text-transform: uppercase; color: var(--white);
}
.brand:hover .brand__word { color: var(--gold); }

.site-nav {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px clamp(12px, 2.2vw, 28px);
  font-size: clamp(11px, 1.1vw, 13px); font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
}
.site-nav a { color: var(--white-72); transition: color 140ms ease, background 140ms ease; }
.site-nav a:hover { color: var(--gold); }
.site-nav__cta {
  background: var(--gold); color: var(--ink);
  padding: 9px 18px; font-weight: 800; letter-spacing: 0.1em;
}
.site-nav__cta:hover { background: var(--white); color: var(--ink); }

/* ----------------------------------------------------------------- hero -- */

.hero {
  background: var(--teal); color: var(--white);
  padding: clamp(48px, 7vw, 104px) var(--gutter) clamp(52px, 8vw, 110px);
}
.hero__inner {
  max-width: var(--shell); margin: 0 auto;
  display: grid; gap: clamp(36px, 5vw, 72px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  align-items: start;
}

.lockup {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: clamp(18px, 3vw, 34px);
  margin-bottom: clamp(28px, 4vw, 44px);
}
.lockup__mark { display: block; width: clamp(88px, 12vw, 136px); height: auto; flex: none; }
.lockup__text { display: grid; gap: 2px; }
.lockup__eyebrow {
  font-weight: 700; font-size: clamp(11px, 1.1vw, 14px);
  letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold);
}
.lockup__word {
  font-weight: 800; font-size: clamp(54px, 8.4vw, 112px);
  line-height: 0.82; letter-spacing: -0.01em; text-transform: uppercase;
}
.lockup__script {
  font-family: var(--font-accent); font-size: clamp(24px, 3.2vw, 42px);
  color: var(--gold); margin-top: 14px;
  transform: rotate(-2deg); transform-origin: left center;
}

.hero__title {
  font-weight: 800; font-size: clamp(28px, 3.3vw, 44px);
  line-height: 1.06; letter-spacing: -0.01em; text-transform: uppercase;
  margin: 0; max-width: 20ch; text-wrap: balance;
}
.hero__lede {
  font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55;
  max-width: 40ch; margin: 20px 0 0; color: var(--white-85);
}
.hero__date {
  font-weight: 700; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.4;
  margin: 24px 0 0; color: var(--gold); max-width: 30ch;
}

/* ------------------------------------------------------------- join form -- */

.join {
  background: var(--cream); color: var(--ink);
  padding: clamp(24px, 3vw, 40px);
  border-top: clamp(8px, 1vw, 12px) solid var(--gold);
}
.join__title {
  font-weight: 800; font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.02; letter-spacing: -0.005em; text-transform: uppercase;
  margin: 0 0 26px;
}

.form { display: grid; gap: 18px; }
.form__row {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
}

.field { display: grid; gap: 6px; }
.field__label {
  font-weight: 700; font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-60);
}
.field__input {
  width: 100%;
  background: var(--white); border: 1px solid var(--ink-28); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; padding: 13px 14px;
  outline: none; border-radius: 0;
}
.field__input:focus {
  border-color: var(--teal);
  box-shadow: inset 0 0 0 2px var(--gold);
}
.field__input[aria-invalid="true"] { border-color: #B3261E; }

/* honeypot — visually and audibly hidden, still fillable by bots */
.hp {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

.form__error {
  margin: 0; font-size: 14px; font-weight: 700; color: #B3261E;
}

.btn-submit {
  margin-top: 4px; width: 100%; cursor: pointer;
  background: var(--teal); color: var(--white); border: 0;
  font-family: var(--font-body); font-weight: 800; font-size: 16px;
  letter-spacing: 0.14em; text-transform: uppercase; padding: 19px 20px;
  transition: background 140ms ease, color 140ms ease;
}
.btn-submit:hover { background: var(--gold); color: var(--ink); }
.btn-submit[disabled] { opacity: 0.6; cursor: progress; }

.form__fine { font-size: 12px; line-height: 1.5; color: var(--ink-60); margin: 0; }

.join__success {
  min-height: 400px;
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
}
.join__success-title {
  font-weight: 800; font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.02; text-transform: uppercase; margin: 0;
}
.join__success-body {
  font-size: 17px; line-height: 1.55; color: var(--ink-70); margin: 0;
}
.join__success-cta { align-self: flex-start; margin-top: 8px; }

/* JotForm embed sits flush inside the cream card */
#jotform-slot iframe { display: block; width: 100%; border: 0; }

/* TEMPORARY — free-plan branding crop (see cropBranding() in js/main.js).
   The negative margin pulls the slot's content box up by the height of
   JotForm's footer bar and `overflow:hidden` clips it. Because the margin is
   relative to whatever height the embed handler sets, this needs no JS and
   stays correct through every resize. Delete once the account is upgraded. */
#jotform-slot.is-cropped { overflow: hidden; }
#jotform-slot.is-cropped iframe { margin-bottom: -56px; }

/* ---------------------------------------------------------------- watch -- */

.watch { background: var(--gold); padding: clamp(46px, 6vw, 88px) var(--gutter); }
.watch__inner { max-width: 1440px; margin: 0 auto; }
.watch__grid {
  display: grid; gap: clamp(20px, 3vw, 40px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr));
  margin-top: clamp(20px, 2.4vw, 30px);
}

.video-card { margin: 0; }
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--teal);
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.09) 0 2px, transparent 2px 14px);
  border: 1px solid rgba(37, 26, 23, 0.35);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; text-align: center;
  overflow: hidden;
}
.video__placeholder {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; line-height: 1.7; letter-spacing: 0.04em;
  color: var(--white-72);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* click-to-play facade (keeps YouTube from loading until asked) */
.video__facade {
  position: absolute; inset: 0; width: 100%; height: 100%;
  padding: 0; border: 0; cursor: pointer; background: var(--teal);
  display: flex; align-items: center; justify-content: center;
}
.video__facade img { width: 100%; height: 100%; object-fit: cover; }
.video__play {
  position: absolute; width: 72px; height: 72px; border-radius: 50%;
  background: var(--gold); display: flex; align-items: center; justify-content: center;
  transition: transform 140ms ease;
}
.video__facade:hover .video__play { transform: scale(1.08); }
.video__play::after {
  content: ""; width: 0; height: 0; margin-left: 5px;
  border-left: 22px solid var(--ink);
  border-top: 14px solid transparent; border-bottom: 14px solid transparent;
}

.video-card__caption { margin-top: 18px; display: grid; gap: 7px; }
.video-card__title {
  font-weight: 800; font-size: clamp(19px, 1.7vw, 23px);
  letter-spacing: 0.03em; text-transform: uppercase;
}
.video-card__meta { font-size: 15px; color: rgba(37, 26, 23, 0.8); }

/* ------------------------------------------------------------ voter hub -- */

.hub {
  background: var(--teal); color: var(--white);
  padding: clamp(52px, 7vw, 108px) var(--gutter);
}
.hub__inner { max-width: var(--shell); margin: 0 auto; }
.hub__head {
  display: flex; flex-wrap: wrap; gap: 18px 48px;
  align-items: end; justify-content: space-between;
}
.hub__title {
  font-weight: 800; font-size: clamp(30px, 4vw, 52px);
  line-height: 1; letter-spacing: -0.01em; text-transform: uppercase;
  margin: 0; max-width: 18ch;
}
.hub__lede {
  font-size: 17px; line-height: 1.55; max-width: 36ch; margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.hub__grid {
  display: grid; gap: clamp(14px, 1.8vw, 20px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(30px, 4vw, 48px);
}
.hub__card {
  min-height: clamp(200px, 17vw, 240px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
  padding: clamp(20px, 2.4vw, 30px);
  background: var(--cream); color: var(--ink);
  transition: transform 140ms ease, background 140ms ease;
}
.hub__card:hover { background: var(--gold); color: var(--ink); transform: translateY(-4px); }
.hub__icon { display: block; }
.hub__icon svg { display: block; }
.hub__card-title {
  font-weight: 800; font-size: clamp(22px, 2.1vw, 29px);
  line-height: 1; letter-spacing: -0.005em; text-transform: uppercase;
}
.hub__card-body { font-size: 14px; line-height: 1.45; color: var(--ink-70); }

/* --------------------------------------------------------------- footer -- */

.site-footer {
  background: var(--ink); color: var(--cream);
  padding: clamp(44px, 6vw, 80px) var(--gutter) 36px;
}
.site-footer__inner { max-width: var(--shell); margin: 0 auto; display: grid; gap: 34px; }

.site-footer__top {
  display: flex; flex-wrap: wrap; gap: 28px 48px;
  align-items: flex-end; justify-content: space-between;
  border-bottom: 1px solid rgba(244, 239, 233, 0.2);
  padding-bottom: 34px;
}
.footer-lockup { display: flex; gap: clamp(16px, 2.4vw, 26px); align-items: center; }
.footer-lockup__mark { display: block; width: clamp(62px, 8vw, 88px); height: auto; flex: none; }
.footer-lockup__text { display: grid; gap: 2px; }
.footer-lockup__eyebrow {
  font-weight: 700; font-size: 10px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold);
}
.footer-lockup__word {
  font-weight: 800; font-size: clamp(38px, 5vw, 60px);
  line-height: 0.85; text-transform: uppercase;
}
.footer-lockup__url {
  font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase;
  margin-top: 12px; color: rgba(244, 239, 233, 0.72);
}

.site-footer__mid {
  display: flex; flex-wrap: wrap; gap: 18px 40px;
  justify-content: space-between; align-items: flex-start;
}
.site-footer__legal {
  font-size: 12px; line-height: 1.6; margin: 0; max-width: 62ch;
  color: rgba(244, 239, 233, 0.6);
}
.site-footer__social {
  display: flex; flex-wrap: wrap; gap: 22px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.site-footer__social a { color: var(--cream); transition: color 140ms ease; }
.site-footer__social a:hover { color: var(--gold); }
.site-footer__copy { font-size: 12px; margin: 0; color: rgba(244, 239, 233, 0.45); }

/* ------------------------------------------------------------ responsive -- */

@media (max-width: 640px) {
  .hub__grid { grid-template-columns: minmax(0, 1fr); }
  .site-nav { width: 100%; justify-content: flex-start; }
  .join__success { min-height: 0; }
}

@media (max-width: 420px) {
  .site-nav { gap: 8px 14px; }
  .site-nav__cta { padding: 9px 14px; }
}
