/* ==========================================================================
   Oklahoma is OURS. — site styles
   Brand: teal #0D4251 · gold #F6AE19 · cream #F6F3EC · ink #251916
   (sampled from the logo files in `new logo/` — those are the source of truth)
   Type:  Raleway (400/500/700/800)
   ========================================================================== */

:root {
  --teal:  #0D4251;
  --gold:  #F6AE19;
  --cream: #F6F3EC;
  --ink:   #251916;
  --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;

  --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);
  /* `clip`, not `hidden`. `overflow-x: hidden` forces computed overflow-y to
     `auto`, which makes .page the containing block for position:sticky — and
     since .page never scrolls itself, the sticky header had nothing to stick
     to and scrolled away with the document. `clip` contains the rotated
     "Vote like it." script exactly the same way without creating a scroll
     container, so the header stays put. */
  overflow-x: clip;
  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__logo { display: block; height: 34px; width: auto; flex: none; }
.brand:hover .brand__logo { opacity: 0.85; }

.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;
}

/* The hero lockup is the supplied brand artwork, not text: it carries the
   real "Vote like it." lettering, which the previous build approximated with
   Permanent Marker. */
.lockup {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.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; }




/* ==================================================== Action Network form -- */

/* The embed renders real DOM into .an-form (no iframe), so everything below
   restyles Action Network's own markup in place.

   Their embed stylesheet is served cross-origin (so it can't be read from
   here) and styles these elements with !important on multi-ID selectors.
   Every rule below is therefore anchored to #can_embed_form / #new_answer to
   outrank it. That specificity is deliberate, not cargo-culted — plain
   `.an-form input` loses. */

/* Their h2 + h4 both repeat the heading; the site already has its own. */
.an-form #can_embed_form_inner > h2,
.an-form #can_embed_form_inner > h4 { display: none !important; }

.an-form #can_embed_form,
.an-form #can_embed_form #can_embed_form_inner,
.an-form .can_embed {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  font-family: var(--font-body) !important;
  color: var(--ink);
}

/* Action Network floats the fields and the submit button into two narrow
   columns. Unfloat both so the form runs the full width of the card. */
.an-form #can_embed_form #form_col1,
.an-form #can_embed_form #form_col2 {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.an-form #can_embed_form ul,
.an-form #can_embed_form ol { margin: 0; padding: 0; list-style: none; }

.an-form #can_embed_form li.core_field {
  list-style: none;
  margin: 0 0 18px !important;
  padding: 0 !important;
}

/* ------------------------------------------------------- float labels -- */

/* Action Network puts the label inside the field and floats it up once the
   field has content — which lands close to the design's small uppercase
   labels, so it's styled to match rather than replaced. */
.an-form #can_embed_form .floatlabel-wrapper { position: relative; }

.an-form #can_embed_form .floatlabel-label {
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: var(--ink-60) !important;
}
.an-form #can_embed_form .floatlabel-label-active { font-size: 11px !important; }

/* --------------------------------------------------------------- inputs -- */

.an-form #can_embed_form #new_answer input[type="text"],
.an-form #can_embed_form #new_answer input[type="email"],
.an-form #can_embed_form #new_answer input[type="tel"],
.an-form #can_embed_form #new_answer input[type="number"],
.an-form #can_embed_form #new_answer select,
.an-form #can_embed_form #new_answer textarea {
  width: 100% !important;
  box-sizing: border-box !important;
  background: var(--white) !important;
  border: 1px solid var(--ink-28) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--ink) !important;
  font-family: var(--font-body) !important;
  font-size: 17px !important;
  line-height: 1.3 !important;
  padding: 13px 14px !important;
  height: auto !important;
  outline: none !important;
}

.an-form #can_embed_form #new_answer input[type="text"]:focus,
.an-form #can_embed_form #new_answer input[type="email"]:focus,
.an-form #can_embed_form #new_answer input[type="tel"]:focus,
.an-form #can_embed_form #new_answer select:focus,
.an-form #can_embed_form #new_answer textarea:focus {
  border-color: var(--teal) !important;
  box-shadow: inset 0 0 0 2px var(--gold) !important;
}

/* --------------------------------------------------------------- submit -- */

.an-form #can_embed_form #new_answer input[type="submit"],
.an-form #can_embed_form #can_embed_form_button {
  width: 100% !important;
  margin: 4px 0 0 !important;
  cursor: pointer !important;
  background: var(--teal) !important;
  color: var(--white) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: var(--font-body) !important;
  font-weight: 800 !important;
  font-size: 16px !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  padding: 19px 20px !important;
  height: auto !important;
  transition: background 140ms ease, color 140ms ease;
}
.an-form #can_embed_form #new_answer input[type="submit"]:hover,
.an-form #can_embed_form #can_embed_form_button:hover {
  background: var(--gold) !important;
  color: var(--ink) !important;
}

/* ------------------------------------------- opt-in, notes, fine print -- */

.an-form #can_embed_form #d_sharing {
  margin: 16px 0 0 !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: var(--ink-70) !important;
}
.an-form #can_embed_form #d_sharing label {
  font-family: var(--font-body) !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  color: var(--ink-70) !important;
}
.an-form #can_embed_form #d_sharing input[type="checkbox"] {
  width: auto !important;
  margin-right: 8px !important;
  accent-color: var(--teal);
}

.an-form #can_embed_form .international_link-wrap,
.an-form #can_embed_form .international_link {
  font-family: var(--font-body) !important;
  font-size: 12px !important;
  color: var(--ink-60) !important;
}

.an-form #can_embed_form_inner #action_info,
.an-form #can_embed_form_inner #action_info a,
.an-form #can_embed_form_inner #donate_disclaimer p {
  font-family: var(--font-body) !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  color: var(--ink-60) !important;
  margin: 14px 0 0 !important;
}

/* Action Network's attribution mark stays — just sized to sit quietly under
   the fine print rather than dominating the card. */
.an-form #can_embed_form_inner #logo_wrap {
  margin: 18px 0 0 !important;
  padding: 0 !important;
  background: transparent !important;
  text-align: left !important;
}
.an-form #can_embed_form_inner #logo_wrap svg {
  max-width: 104px !important;
  height: auto !important;
}

/* Validation errors */
.an-form #can_embed_form .error,
.an-form #can_embed_form .errors {
  font-family: var(--font-body) !important;
  color: #B3261E !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}
.an-form #can_embed_form input.error { border-color: #B3261E !important; }

/* --------------------------------------------------- two-up field rows -- */

/* Pair first/last and phone/ZIP once the card is wide enough, matching the
   .form__row rule in the design. :has() targets each row by the field it
   contains, so reordering the form in Action Network can't silently break it. */
@media (min-width: 420px) {
  .an-form #can_embed_form #form_col1 {
    display: flex !important;
    flex-wrap: wrap !important;
    column-gap: 18px;
  }
  .an-form #can_embed_form #form_col1 > * { flex: 0 0 100%; max-width: 100%; }

  .an-form #can_embed_form #form_col1 li.core_field:has(#form-first_name),
  .an-form #can_embed_form #form_col1 li.core_field:has(#form-last_name),
  .an-form #can_embed_form #form_col1 li.core_field:has(#form-phone),
  .an-form #can_embed_form #form_col1 li.core_field:has(#form-zip_code) {
    flex: 0 0 calc(50% - 9px);
    max-width: calc(50% - 9px);
  }
}

/* ---------------------------------------------------------------- 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: grid; gap: 14px; justify-items: start; }
.footer-lockup__logo {
  display: block;
  height: clamp(52px, 7vw, 74px);
  width: auto;
}
.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; }
}
