/* Politics Unleashed — mobile-first styles. No frameworks, no external requests. */

@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-var.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito Sans';
  src: url('/fonts/nunito-sans-var-italic.woff2') format('woff2');
  font-weight: 200 1000;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito Sans';
  src: url('/fonts/nunito-sans-var.woff2') format('woff2');
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #0a0a0a;
  --charcoal: #161616;
  --charcoal-2: #222;
  --line: #333;
  --grey: #9a9a9a;
  --grey-light: #c9c9c9;
  --white: #f7f7f5;
  --paper: #ffffff;
  --ink: #111;
  --accent: #e1e220;
  --error: #ff8a7a;
  --error-ink: #b42318;

  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  /* Body copy: Avenir where installed (Apple devices), otherwise the self-hosted
     Nunito Sans, a free near-match. Avenir itself needs a paid web licence. */
  --body: 'Avenir Next', Avenir, 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: 1.25rem;
  --max: 76rem;
  --radius: 2px;
}

*,
*::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 { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

/* Display type stays in Archivo */
.wordmark, .header-cta, .eyebrow, .hero__title, .signup__title, .button,
.section-title, .benefit__num, .benefit__title, .expect__list dt,
.site-footer__heading, .page h1, .page h2 { font-family: var(--sans); }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--accent); }
p { margin: 0 0 1em; }

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  background: var(--accent);
  color: var(--black);
  padding: 0.6rem 1rem;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--black);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
  gap: 1rem;
}

.logo {
  display: inline-block;
  line-height: 0;
  padding-block: 0.6rem;
}
.logo img { height: 2.75rem; width: auto; }
.logo--footer { padding-block: 0; }
.logo--footer img { height: 3.25rem; }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  text-decoration: none;
  font-weight: 800;
  font-stretch: 80%;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.15rem;
  line-height: 1;
}
.wordmark__mark {
  width: 0.85em;
  height: 0.85em;
  background: var(--accent);
  flex: none;
}
.wordmark__text span { color: var(--grey-light); font-weight: 500; }
.wordmark--small { font-size: 1rem; }

.header-cta {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--white);
  border-radius: var(--radius);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.header-cta:hover { background: var(--white); color: var(--black); }

/* ---------- Hero ---------- */
.hero {
  padding-block: 2.75rem 3.5rem;
  background:
    linear-gradient(180deg, transparent 60%, rgba(255, 255, 255, 0.02)),
    var(--black);
}
.hero__grid {
  display: grid;
  gap: 2.5rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border-top: 2px solid var(--accent);
  padding-top: 0.6rem;
  margin-bottom: 1.4rem;
}

.hero__title {
  margin: 0 0 1.5rem;
  font-weight: 800;
  font-stretch: 72%;
  font-size: clamp(2.6rem, 11vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}
.hero__title-accent {
  display: block;
  margin-top: 0.15em;
  color: var(--accent);
}

.hero__lede {
  font-family: var(--body);
  font-size: clamp(1.1rem, 2.6vw, 1.35rem);
  line-height: 1.5;
  color: var(--grey-light);
  max-width: 36rem;
  margin-bottom: 0;
}
.hero__lede strong { color: var(--white); font-weight: 600; }

.hero__quote { margin: 0; max-width: 36rem; }
.hero__quote blockquote {
  margin: 0;
  padding-left: 1.1rem;
  border-left: 3px solid var(--accent);
  font-family: var(--body);
  font-style: italic;
  font-size: clamp(1.1rem, 2.6vw, 1.3rem);
  line-height: 1.5;
  color: var(--grey-light);
}
.hero__quote blockquote p { margin: 0 0 0.75em; }
.hero__quote blockquote p:last-child { margin-bottom: 0; color: var(--white); }
.hero__quote figcaption {
  margin-top: 1rem;
  padding-left: 1.1rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero__quote figcaption::before { content: '\2014\00a0'; }
.hero__hosts {
  margin: 1.75rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  max-width: 36rem;
  font-family: var(--body);
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  color: var(--grey-light);
}
.hero__hosts strong { color: var(--white); font-weight: 700; }

.hero__media {
  margin: 2rem 0 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--charcoal);
}
.hero__media picture { display: block; height: 100%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media--placeholder {
  display: grid;
  place-items: center;
  border: 2px dashed var(--line);
  color: var(--grey);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hosts {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: flex;
  gap: 1.25rem;
}
.host { display: grid; gap: 0.5rem; font-weight: 700; font-size: 0.9rem; }
.host img { width: 120px; aspect-ratio: 1; object-fit: cover; filter: grayscale(1); }

/* ---------- Signup ---------- */
.signup { scroll-margin-top: 1.5rem; }

.signup__panel {
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  padding: 1.5rem 1.25rem 1.25rem;
}
.signup__panel:focus { outline: none; }
.signup__panel:focus-visible { outline: 3px solid var(--accent); }

.signup__title {
  margin: 0 0 0.5rem;
  font-weight: 800;
  font-stretch: 78%;
  text-transform: uppercase;
  font-size: 1.75rem;
  line-height: 1.05;
}
.signup__intro { color: var(--grey-light); font-size: 0.98rem; margin-bottom: 0.75rem; }
.signup__nospam {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 1.25rem;
  padding-left: 0.85rem;
  border-left: 3px solid var(--accent);
}

.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}
.field__req,
.field__opt { font-weight: 400; color: var(--grey); }

.field input[type='email'],
.field input[type='text'] {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 1rem; /* 16px+ stops iOS zooming on focus */
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--paper);
  border-radius: var(--radius);
  appearance: none;
}
.field input:focus-visible { outline-offset: 2px; }
.field input[aria-invalid='true'] { border-color: var(--error); }

.field--check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  margin-bottom: 0.5rem;
}
.field--check input {
  width: 1.4rem;
  height: 1.4rem;
  margin: 0.1rem 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.field--check label {
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--white);
  margin: 0;
  cursor: pointer;
}
.field--check input[aria-invalid='true'] { outline: 2px solid var(--error); outline-offset: 2px; }

.consent-privacy {
  font-size: 0.85rem;
  color: var(--grey-light);
  margin: 0 0 0.75rem 2.15rem;
}

.field__error {
  color: var(--error);
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0.4rem 0 0;
}
.field__error::before { content: '\26A0\FE0E  '; }
#consent-error { margin: 0 0 1rem 2.15rem; }

.form-alert {
  border-left: 4px solid var(--error);
  background: rgba(255, 138, 122, 0.08);
  color: var(--white);
  padding: 0.8rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.8rem 1.6rem;
  font: inherit;
  font-family: var(--sans);
  font-weight: 800;
  font-stretch: 85%;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.button--primary { background: var(--accent); color: var(--black); }
.button--primary:hover { background: var(--white); }
.button--primary:focus-visible { outline-color: var(--white); }
.button[aria-disabled='true'] { opacity: 0.7; cursor: progress; }
.signup-form .button { width: 100%; margin-top: 0.25rem; }

.signup__small { font-size: 0.82rem; color: var(--grey); margin: 0.85rem 0 0; text-align: center; }

.signup__success { text-align: left; }
.signup__success-kicker {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--accent);
  color: var(--black);
  font-weight: 900;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.signup__success p:last-child { margin-bottom: 0; color: var(--grey-light); }

/* ---------- Listen & follow ---------- */
.social {
  margin-top: 1.25rem;
  background: var(--charcoal);
  border: 1px solid var(--line);
  padding: 1.4rem 1.25rem 1.25rem;
}
.social__title {
  margin: 0 0 0.3rem;
  font-family: var(--sans);
  font-weight: 800;
  font-stretch: 78%;
  text-transform: uppercase;
  font-size: 1.35rem;
  line-height: 1.1;
}
.social__intro { color: var(--grey-light); font-size: 0.95rem; margin-bottom: 1rem; }
.social__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
}
.social__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0;
  min-height: 44px;
  text-decoration: none;
  color: var(--white);
  border-radius: var(--radius);
}
.social__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--charcoal-2);
  border: 1px solid var(--line);
  color: var(--white);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.social__name { font-size: 0.75rem; font-weight: 600; color: var(--grey-light); }
.social__link:hover .social__icon,
.social__link:focus-visible .social__icon { background: var(--accent); border-color: var(--accent); color: var(--black); }
.social__link:hover .social__name { color: var(--white); }

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

@media (min-width: 40rem) {
  .social { padding: 1.6rem 2rem 1.5rem; }
  .social__icon { width: 3.25rem; height: 3.25rem; }
}

/* ---------- Benefits ---------- */
.benefits {
  background: var(--paper);
  color: var(--ink);
  padding-block: 3.5rem;
}
.benefits :focus-visible { outline-color: var(--ink); }

.section-title {
  margin: 0 0 2rem;
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1;
  text-transform: uppercase;
}

.benefit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem;
}
.benefit { border-top: 2px solid var(--ink); padding-top: 1.1rem; }
.benefit__num {
  display: inline-block;
  font-weight: 800;
  font-stretch: 70%;
  font-size: 2.75rem;
  line-height: 1;
  margin-bottom: 0.75rem;
  box-shadow: inset 0 -0.32em 0 var(--accent);
  padding: 0 0.08em;
}
.benefit__title {
  margin: 0 0 0.5rem;
  font-weight: 800;
  font-stretch: 85%;
  font-size: 1.3rem;
  line-height: 1.15;
}
.benefit p { font-family: var(--body); font-size: 1.05rem; color: #333; margin: 0; }

/* ---------- What to expect ---------- */
.expect {
  background: var(--charcoal);
  padding-block: 3.5rem;
  border-top: 1px solid var(--line);
}
.expect__grid { display: grid; gap: 2rem; }
.expect__lede {
  font-family: var(--body);
  font-size: 1.2rem;
  color: var(--grey-light);
  max-width: 30rem;
}
.expect__list { margin: 0; display: grid; gap: 0; }
.expect__list > div { border-top: 1px solid var(--line); padding-block: 1.1rem; }
.expect__list > div:last-child { border-bottom: 1px solid var(--line); }
.expect__list dt {
  font-weight: 800;
  font-stretch: 85%;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}
.expect__list dt::before {
  content: '';
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  background: var(--accent);
  margin-right: 0.6em;
  vertical-align: 0.08em;
}
.expect__list dd { margin: 0; color: var(--grey-light); }
.expect__cta { margin-top: 2.5rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  border-top: 1px solid var(--line);
  padding-top: 2.75rem;
  font-size: 0.95rem;
}
.site-footer__grid { display: grid; gap: 2rem; }
.site-footer__note { color: var(--grey); margin-top: 0.75rem; }
.site-footer__heading {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  margin: 0 0 0.75rem;
}
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer__links a,
.site-footer a { display: inline-block; padding-block: 0.15rem; }
.site-footer__base {
  margin-top: 2.5rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--grey);
  font-size: 0.85rem;
}
.site-footer__base p { margin: 0; }

/* ---------- Simple content pages (privacy, thanks, errors) ---------- */
.page {
  padding-block: 3rem 4rem;
}
.page__inner { max-width: 44rem; }
.page h1 {
  font-weight: 800;
  font-stretch: 75%;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 7vw, 3.5rem);
  line-height: 1;
  margin: 0 0 1.5rem;
}
.page h2 {
  font-weight: 800;
  font-stretch: 85%;
  font-size: 1.35rem;
  margin: 2.5rem 0 0.75rem;
  scroll-margin-top: 1.5rem;
}
.page p,
.page li { font-family: var(--body); font-size: 1.08rem; color: var(--grey-light); }
.page strong { color: var(--white); }
.page ul { padding-left: 1.2rem; }
.page .meta { font-family: var(--sans); font-size: 0.9rem; color: var(--grey); }
.page .button { margin-top: 1rem; }
.placeholder { background: rgba(225, 226, 32, 0.15); color: var(--accent); padding: 0 0.2em; }

/* ---------- Larger screens ---------- */
@media (min-width: 40rem) {
  :root { --gutter: 2rem; }
  .signup__panel { padding: 2rem 2rem 1.75rem; }
  .benefit-list { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}

@media (min-width: 64rem) {
  .site-header__inner { min-height: 4.75rem; }
  .logo img { height: 3.9rem; }
  .wordmark { font-size: 1.35rem; }
  .hero { padding-block: 5rem 6rem; }
  .hero__grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 4.5rem;
    align-items: start;
  }
  .hero__copy { padding-top: 1rem; }
  .benefits,
  .expect { padding-block: 5.5rem; }
  .expect__grid { grid-template-columns: 1fr 1.2fr; gap: 4rem; }
}
