/* =========================================================
   Not4Iowa — zachlahnnot4iowa.com
   ========================================================= */

:root {
  --bg: #0b0b0f;
  --bg-2: #12121a;
  --bg-3: #1a1a26;
  --ink: #f5f5f0;
  --ink-soft: #b8b8a8;
  --ink-mute: #78786e;
  --line: #2a2a38;
  --gold: #d4a012;
  --gold-deep: #8b6914;
  --gold-glow: rgba(212, 160, 18, 0.3);
  --gold-faint: rgba(212, 160, 18, 0.08);
  --maxw: 1080px;
  --r: 10px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

/* ---- reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  background-image: radial-gradient(
    ellipse 80% 50% at 50% 0%,
    rgba(212, 160, 18, 0.04) 0%,
    transparent 60%
  );
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.01em;
}

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

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
a:hover {
  color: var(--ink);
}

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

/* ---- utility ---- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}

/* =========================================================
   TOPBAR
   ========================================================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 60px;
  display: flex;
  align-items: center;
  background: rgba(11, 11, 15, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0;
}
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 0 6px var(--gold-glow);
}
.tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border: 1px solid var(--line);
  padding: 4px 12px;
  border-radius: 4px;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  display: flex;
  align-items: center;
  position: relative;
  padding: 60px 0 0;
  overflow: hidden;
  background: var(--bg);
}
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: clamp(24px, 4vw, 48px);
}
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: center;
  position: relative;
  z-index: 2;
}
.hero-headline {
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.hl {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-intro {
  margin-top: 28px;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 480px;
  line-height: 1.7;
}

/* hero cutout figure */
.hero-figure {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  align-self: end;
  position: relative;
  z-index: 1;
}
.hero-figure::before {
  content: "";
  position: absolute;
  inset: -20% -30%;
  background: radial-gradient(
    ellipse 70% 60% at 50% 55%,
    rgba(180, 30, 30, 0.5) 0%,
    rgba(140, 20, 20, 0.3) 50%,
    transparent 90%
  );
  z-index: 0;
  pointer-events: none;
}
.hero-cutout {
  position: relative;
  z-index: 1;
}
.hero-cutout {
  width: 130%;
  max-width: none;
  height: auto;
  filter: grayscale(0.8) contrast(1.1);
  mask-image: linear-gradient(to top, transparent 1%, black 10%);
  -webkit-mask-image: linear-gradient(to top, transparent 1%, black 10%);
}

/* =========================================================
   FACT SECTIONS
   ========================================================= */
.fact-section {
  padding: clamp(60px, 10vw, 120px) 0;
  border-top: 1px solid var(--line);
}
.fact-section--alt {
  background: var(--bg-2);
}

.fact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.fact-grid--reverse .fact-text {
  order: 2;
}
.fact-grid--reverse .fact-image {
  order: 1;
}

/* fact text column */
.fact-text {
  border-left: 4px solid var(--gold);
  padding-left: clamp(20px, 3vw, 32px);
}
.fact-num {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.fact-headline {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.fact-body {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 24px;
}
.fact-body .quote {
  color: var(--gold);
  font-style: italic;
}

/* citations */
.fact-cite {
  border-top: 2px solid var(--gold);
  padding-top: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--ink-mute);
  line-height: 1.6;
}
.fact-cite a {
  color: var(--ink-mute);
  text-decoration: underline;
  text-decoration-color: var(--gold-deep);
}
.fact-cite a:hover {
  color: var(--gold);
}
.fact-cite--pending {
  border-top-style: dashed;
  border-top-color: var(--ink-mute);
}

/* fact images */
.fact-image {
  aspect-ratio: 4 / 3;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg-3);
}
.fact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.8) contrast(1.1);
  transition: filter 0.4s ease;
}

/* =========================================================
   CTA SECTION
   ========================================================= */
.cta-section {
  padding: clamp(80px, 12vw, 160px) 0;
  text-align: center;
  border-top: 1px solid var(--line);
  background: var(--bg);
  background-image: radial-gradient(
    ellipse 60% 40% at 50% 100%,
    rgba(212, 160, 18, 0.05) 0%,
    transparent 70%
  );
}
.cta-section h2 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 700px;
  margin: 0 auto 20px;
}
.cta-section p {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 500px;
  margin: 0 auto;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}
.footer .brand {
  font-size: 0.85rem;
}
.footer .links {
  display: flex;
  gap: 20px;
  margin-left: auto;
}
.footer .links a {
  font-size: 0.8rem;
  color: var(--ink-mute);
  text-decoration: none;
}
.footer .links a:hover {
  color: var(--gold);
}
.paidfor {
  width: 100%;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--ink-mute);
  text-align: center;
  line-height: 1.6;
}

/* =========================================================
   PRIVACY / LEGAL PAGE
   ========================================================= */
.page-head {
  padding: 100px 0 40px;
  border-bottom: 1px solid var(--line);
}
.page-head h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
}
.effective {
  margin-top: 8px;
  color: var(--ink-mute);
  font-size: 0.85rem;
}
.section {
  padding: 48px 0 80px;
}
.legal h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--ink);
}
.legal .section-divider {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 2px solid var(--gold);
}
.legal p,
.legal li {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 12px;
}
.legal ul {
  padding-left: 24px;
  margin-bottom: 16px;
}
.legal .lede-block {
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 24px;
}

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
  .hero-split {
    min-height: auto;
  }
  .hero {
    min-height: auto;
    padding: 40px 0 0;
  }
  .fact-grid {
    grid-template-columns: 1fr;
  }
  .fact-grid--reverse .fact-text {
    order: 1;
  }
  .fact-grid--reverse .fact-image {
    order: 2;
  }
  .fact-image {
    aspect-ratio: 16 / 9;
  }
  .footer .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer .links {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: auto;
    padding: 20px 0 0;
  }
  .hero-split {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
  }
  .hero-content {
    padding: 24px 0 24px;
    align-items: center;
  }
  .hero-intro {
    max-width: 100%;
  }
  .hero-figure {
    justify-content: center;
  }
  .hero-figure::before {
    background: radial-gradient(
      ellipse 70% 60% at 50% 55%,
      rgba(180, 30, 30, 0.5) 0%,
      rgba(140, 20, 20, 0.3) 50%,
      transparent 90%
    );
  }
  .hero-cutout {
    width: 100%;
    max-width: none;
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
