/* ==========================================================================
   Popcorn Economics — base styles
   ========================================================================== */

:root {
  --red: #e3191f;
  --red-dark: #b80f14;
  --butter: #ffd84a;
  --butter-soft: #fff1b3;
  --cream: #fbf1de;
  --cream-deep: #f3dcbc;
  --ink: #1d1512;
  --ink-soft: #5b4a40;
  --white: #fffdf8;

  --outline: 3px solid var(--ink);
  --pop-shadow: 6px 6px 0 var(--ink);
  --radius: 22px;

  --font-display: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 75% 40%, rgba(255, 255, 255, 0.75) 0, rgba(255, 255, 255, 0) 45%),
    radial-gradient(rgba(227, 25, 31, 0.09) 1.5px, transparent 1.6px);
  background-size: auto, 22px 22px;
  overflow-x: hidden;
}

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

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

/* Red/white bucket stripes ------------------------------------------------ */
.stripes {
  height: 14px;
  background: repeating-linear-gradient(90deg,
    var(--red) 0 28px,
    var(--white) 28px 56px);
  border-bottom: var(--outline);
}

/* Header ------------------------------------------------------------------ */
.site-header {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: auto;
  transition: transform 0.25s ease;
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.05); }

.brand-word {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--red);
}

.badge {
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 14px;
  border: var(--outline);
  border-radius: 999px;
  background: var(--butter);
  box-shadow: 3px 3px 0 var(--ink);
  white-space: nowrap;
}

/* Hero -------------------------------------------------------------------- */
main { flex: 1; }

.hero {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 24px 72px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-dark);
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(227, 25, 31, 0.5);
  animation: pulse 1.8s ease-out infinite;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.8rem, 6.2vw, 5.1rem);
  line-height: 1;
  letter-spacing: 0.005em;
}
h1 .accent {
  color: var(--red);
  background: linear-gradient(transparent 68%, var(--butter) 68% 90%, transparent 90%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.lede {
  margin: 24px 0 32px;
  max-width: 34rem;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* Signup form ------------------------------------------------------------- */
.signup { max-width: 34rem; }

.field {
  display: flex;
  gap: 10px;
  padding: 8px;
  background: var(--white);
  border: var(--outline);
  border-radius: 999px;
  box-shadow: var(--pop-shadow);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.field:focus-within {
  box-shadow: 6px 6px 0 var(--red);
}

.field input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: none;
}
.field input::placeholder { color: #a8968a; font-weight: 600; }

.field button,
.btn {
  display: inline-block;
  text-decoration: none;
  flex: none;
  padding: 12px 24px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  color: var(--white);
  background: var(--red);
  border: var(--outline);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
}
.field button:hover,
.btn:hover { background: var(--red-dark); }
.field button:disabled { cursor: progress; opacity: 0.75; }
.field button:active,
.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--ink);
}
.field button:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--butter);
  outline-offset: 2px;
}

.form-note {
  margin: 16px 0 0 12px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.form-note.is-error { color: var(--red-dark); }

.signup.shake .field { animation: shake 0.35s ease; }

.success {
  max-width: 34rem;
  padding: 22px 26px;
  background: var(--butter-soft);
  border: var(--outline);
  border-radius: var(--radius);
  box-shadow: var(--pop-shadow);
  animation: pop-in 0.4s cubic-bezier(.2, 1.6, .4, 1);
}
.success p { margin: 0; color: var(--ink-soft); font-weight: 700; }
.success .success-title {
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--red);
}

/* Social links ------------------------------------------------------------ */
.social { margin-top: 36px; }

.social-label {
  margin: 0 0 12px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.social-label strong { color: var(--ink); font-weight: 800; }

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 12px;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  background: var(--white);
  border: var(--outline);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.1s ease, box-shadow 0.1s ease, color 0.15s ease, background 0.15s ease;
}
.social-links a:hover { background: var(--butter); }
.social-links a:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--ink);
}
.social-links a:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}
.social-links svg { width: 20px; height: 20px; flex: none; }

/* Hero art ---------------------------------------------------------------- */
.hero-art {
  position: relative;
  margin: 0;
  justify-self: center;
  width: min(100%, 520px);
}

.poster {
  border: 4px solid var(--ink);
  border-radius: 28px;
  overflow: hidden;
  background: var(--cream-deep);
  box-shadow: 12px 12px 0 var(--ink);
  transform: rotate(2deg);
  transition: transform 0.4s ease;
}
.hero-art:hover .poster { transform: rotate(0deg) scale(1.01); }

.kernel {
  position: absolute;
  width: 72px;
  pointer-events: none;
  filter: drop-shadow(3px 3px 0 rgba(29, 21, 18, 0.18));
  animation: float 5s ease-in-out infinite;
}
.k1 { top: -26px; left: -30px; transform: rotate(-18deg); }
.k2 { top: 38%; right: -30px; width: 58px; animation-delay: -1.6s; }
.k3 { bottom: -30px; left: 18%; width: 64px; animation-delay: -3.2s; }

/* Footer ------------------------------------------------------------------ */
.site-footer { background: var(--cream-deep); }
.site-footer .stripes { border-bottom: 0; border-top: var(--outline); }
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  padding: 18px 24px 0;
}
.footer-nav a {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--ink);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--red); text-decoration: underline; }
.site-footer p {
  margin: 0;
  padding: 10px 24px 22px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--cream-deep);
}


/* Site nav ---------------------------------------------------------------- */
.site-nav { display: flex; gap: 10px; }
.site-nav a {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  padding: 7px 16px;
  border: var(--outline);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 3px 3px 0 var(--ink);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { background: var(--butter); }

/* Inner pages (stories, companies) ----------------------------------------- */
.page {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 16px 24px 72px;
}
.page-header { max-width: 46rem; margin-bottom: 36px; }
.page-header h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
.page-header .lede { margin-bottom: 0; }
.crumbs {
  margin-bottom: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--red); }
.section-heading,
.latest h2,
.sources h2,
.prose h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.9rem;
  line-height: 1.1;
  margin: 0 0 18px;
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 18px 0 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.chip {
  padding: 3px 12px;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--ink);
  text-decoration: none;
  background: var(--butter);
  border: 2px solid var(--ink);
  border-radius: 999px;
}
.chip:hover { background: var(--butter-soft); }
.byline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}
.byline:hover { color: var(--red); }
.byline img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  object-fit: cover;
}
.lede sup a { color: var(--red-dark); font-weight: 800; text-decoration: none; font-size: 0.75em; }

.story-visual { margin: 0 0 40px; }

.signup-block {
  max-width: 40rem;
  margin: 0 auto 48px;
}
.hero .signup-block { margin: 0; max-width: 34rem; width: 100%; }

.story .signup-block {
  padding: 26px 28px 22px;
  background: var(--white);
  border: var(--outline);
  border-radius: var(--radius);
  box-shadow: var(--pop-shadow);
}
.story .signup-block .field { box-shadow: none; }
.story .signup-block .field:focus-within { box-shadow: 4px 4px 0 var(--red); }
.signup-heading {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.15;
}
.signup-text { margin: 0 0 16px; font-weight: 700; color: var(--ink-soft); }

.story-video {
  max-width: 46rem;
  margin: 0 auto 40px;
  border: var(--outline);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--pop-shadow);
  aspect-ratio: 16 / 9;
}
.story-video-short { max-width: 340px; aspect-ratio: 9 / 16; }
.story-video iframe { width: 100%; height: 100%; border: 0; display: block; }

.prose {
  max-width: 42rem;
  margin: 0 auto;
  font-size: 1.12rem;
  line-height: 1.7;
}
.prose h2 { margin-top: 44px; }
.prose a { color: var(--red-dark); font-weight: 700; }
.prose strong { font-weight: 800; }
.prose sup a { text-decoration: none; font-size: 0.75em; }

.lesson {
  max-width: 42rem;
  margin: 44px auto 0;
  padding: 22px 26px;
  background: var(--butter-soft);
  border: var(--outline);
  border-radius: var(--radius);
  box-shadow: var(--pop-shadow);
  font-size: 1.15rem;
  line-height: 1.6;
  font-weight: 700;
}
.lesson p { margin: 0; }
.lesson .lesson-label {
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--red);
}

.sources {
  max-width: 42rem;
  margin: 52px auto 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.sources h2 { font-size: 1.4rem; }
.sources ol { padding-left: 1.3rem; margin: 0; }
.sources li { margin-bottom: 6px; }
.sources a { color: var(--ink); overflow-wrap: anywhere; }

.disclaimer {
  max-width: 42rem;
  margin: 32px auto 0;
  padding-top: 18px;
  border-top: 2px dashed var(--cream-deep);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-soft);
}

/* About page -------------------------------------------------------------- */
.prose li { margin-bottom: 8px; }
.about-host {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}
.about-host img {
  flex: none;
  width: 120px;
  height: auto;
  border-radius: 50%;
  border: var(--outline);
  box-shadow: 4px 4px 0 var(--ink);
}
.about-host p:first-child { margin-top: 0; }
.about-links { display: flex; flex-wrap: wrap; gap: 16px; }
.about-signup { max-width: 42rem; margin: 52px auto 0; }
.about-signup .signup-block { margin: 0; }
.about-signup .social { margin-top: 28px; }
@media (max-width: 520px) {
  .about-host { flex-direction: column; gap: 14px; }
  .about-host img { width: 96px; }
}

/* Story cards ------------------------------------------------------------- */
.story-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 28px;
}
.story-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--ink);
  text-decoration: none;
  background: var(--white);
  border: var(--outline);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--pop-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.story-card a:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.story-card img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-bottom: var(--outline); }
.story-card-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; }
.story-card-series {
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-dark);
}
.story-card-title { font-family: var(--font-display); font-size: 1.45rem; line-height: 1.15; }
.story-card-dek { font-size: 0.98rem; line-height: 1.5; color: var(--ink-soft); }
.story-card time { margin-top: auto; padding-top: 6px; font-size: 0.85rem; font-weight: 700; color: var(--ink-soft); }

.latest {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 72px;
}
.latest-more { margin: 28px 0 0; text-align: center; }
.empty { font-weight: 700; color: var(--ink-soft); }

.hero-single { grid-template-columns: 1fr; text-align: center; }
.hero-single .hero-copy { display: flex; flex-direction: column; align-items: center; }

/* Visuals (pv = popcorn visual) ------------------------------------------ */
/* One component, rendered inline on story pages and at fixed sizes for export.
   Everything is sized in em so the export formats only change the root font size. */
.pv {
  --pv-ticket: #e3191f;   /* tickets: the gate */
  --pv-after: #eda100;    /* after the gate, and profit: the popcorn */
  --pv-core: #5e4f45;     /* staff + upkeep */
  --pv-cost: #d9d0c5;     /* every other cost */
  --pv-surface: var(--white);
  position: relative;
  font-size: clamp(15px, 1.7vw, 19px);
  padding: 1.6em 1.6em 1.3em;
  background: var(--pv-surface);
  border: var(--outline);
  border-radius: var(--radius);
  box-shadow: var(--pop-shadow);
  color: var(--ink);
}

.pv-stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin: 0 0 1.4em;
}
.pv-stepper button {
  font: inherit;
  font-size: 0.82em;
  font-weight: 800;
  padding: 0.35em 0.9em;
  color: var(--ink);
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
}
.pv-stepper button[aria-pressed="true"] { background: var(--butter); }
.pv-stepper button:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.pv-kicker {
  margin: 0 0 0.4em;
  font-weight: 800;
  font-size: 0.8em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-dark);
}
.pv-price { display: flex; align-items: center; gap: 0.5em; margin: 0 0 1.2em; }
.pv-price-num {
  font-family: var(--font-display);
  font-size: 3.6em;
  line-height: 1;
  color: var(--red);
}
.pv-price-txt { font-family: var(--font-display); font-size: 1.35em; line-height: 1.15; }
.pv-price-txt small {
  display: block;
  margin-top: 0.3em;
  font-family: var(--font-body);
  font-size: 0.55em;
  font-weight: 700;
  color: var(--ink-soft);
}

.pv-row { margin: 0 0 1.4em; }
.pv-row-title { margin: 0 0 0.5em; font-weight: 800; font-size: 1.05em; }

.pv-bar {
  display: flex;
  gap: 2px;
  height: 3.2em;
  padding: 2px;
  background: var(--pv-surface);
  border: 3px solid var(--ink);
  border-radius: 0.7em;
  overflow: hidden;
}
.pv-seg {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  border-radius: 0.35em;
  transition: opacity 0.25s ease, filter 0.25s ease;
  cursor: default;
}
.pv-seg:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
.pv-seg:hover { filter: brightness(1.08); }
.pv-seg-label { font-weight: 800; font-size: 0.95em; white-space: nowrap; }
.pv-seg.pv-gate { background: var(--pv-ticket); color: #fff; }
.pv-seg:is(.pv-after, .pv-profit) { background: var(--pv-after); color: var(--ink); }
.pv-seg.pv-core { background: var(--pv-core); color: #fff; }
.pv-seg:is(.pv-cost, .pv-else) { background: var(--pv-cost); color: var(--ink); }
/* Labels only where the segment is wide enough to hold them. */
.pv-seg[style*="flex-grow: 6."] .pv-seg-label,
.pv-seg[style*="flex-grow: 7."] .pv-seg-label { font-size: 0.8em; }

.pv-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35em 1.2em;
  margin: 0.6em 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.85em;
  font-weight: 600;
  color: var(--ink-soft);
}
.pv-legend li { display: flex; align-items: center; gap: 0.4em; transition: opacity 0.25s ease; }
.pv-legend b { color: var(--ink); font-weight: 800; }
.pv-legend i { width: 0.8em; height: 0.8em; border-radius: 0.2em; flex: none; }
.pv-legend .pv-gate i { background: var(--pv-ticket); }
.pv-legend .pv-after i, .pv-legend .pv-profit i { background: var(--pv-after); }
.pv-legend .pv-core i { background: var(--pv-core); }
.pv-legend .pv-cost i, .pv-legend .pv-else i { background: var(--pv-cost); }

.pv-vs { margin: 0 0 1em; transition: opacity 0.25s ease; }
.pv-vs-track { height: 3em; }
.pv-vs-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  padding: 0 0.7em;
  box-sizing: border-box;
  font-family: var(--font-display);
  font-size: 1.5em;
  color: #fff;
  border: 3px solid var(--ink);
  border-radius: 0.45em;
}
.pv-vs-bar.pv-gate { background: var(--pv-ticket); }
.pv-vs-bar.pv-core { background: var(--pv-core); }
.pv-vs-gap { margin: 0.4em 0; text-align: right; }
.pv-vs-gap span {
  display: inline-block;
  padding: 0.15em 0.7em;
  font-weight: 800;
  font-size: 0.95em;
  color: #fff;
  background: var(--red-dark);
  border: 2px solid var(--ink);
  border-radius: 999px;
}
.pv-vs-under { margin: 0.5em 0 0; }

.pv-callout {
  margin: 0 0 1.4em;
  padding: 0.9em 1.1em;
  font-size: 1em;
  line-height: 1.45;
  border: 3px solid var(--ink);
  border-radius: 0.8em;
  transition: opacity 0.25s ease;
}
.pv-callout b { font-weight: 800; }
.pv-callout-catch { background: #fde3e2; }
.pv-callout-popcorn { background: var(--butter-soft); }
.pv-callout-label {
  display: block;
  margin-bottom: 0.15em;
  font-family: var(--font-display);
  font-size: 1.3em;
  color: var(--ink);
}

.pv-source { margin: 0; font-size: 0.75em; font-weight: 600; color: var(--ink-soft); }

.pv-tip {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, calc(-100% - 8px));
  padding: 0.5em 0.75em;
  background: var(--ink);
  color: #fff;
  border-radius: 0.5em;
  font-size: 0.85em;
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
}
.pv-tip b { display: block; font-weight: 800; }
.pv-tip span { color: #e9dfd5; }

/* Steps: hide what hasn't been revealed yet (keeps the layout steady). */
.pv[data-step="1"] :is([data-from="2"], [data-from="3"], [data-from="4"]),
.pv[data-step="2"] :is([data-from="3"], [data-from="4"]),
.pv[data-step="3"] [data-from="4"] { visibility: hidden; }
/* Emphasis: the popcorn = after the gate; the profit = what's left. */
.pv[data-step="3"] .pv-seg:is(.pv-gate, .pv-else),
.pv[data-step="3"] .pv-legend :is(.pv-gate, .pv-else),
.pv[data-step="4"] .pv-seg:is(.pv-gate, .pv-else, .pv-core, .pv-cost),
.pv[data-step="4"] .pv-legend :is(.pv-gate, .pv-else, .pv-core, .pv-cost) { opacity: 0.25; }
.pv[data-step="3"] :is(.pv-vs, .pv-callout-catch),
.pv[data-step="4"] :is(.pv-vs, .pv-callout-catch) { opacity: 0.35; }

@media (max-width: 640px) {
  .pv { padding: 1.1em 1em 1em; }
  .pv-price-num { font-size: 2.8em; }
  .pv-price-txt { font-size: 1.1em; }
  .pv-seg-label { font-size: 0.8em; }
}

/* Animations -------------------------------------------------------------- */
@keyframes float {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50%      { translate: 0 -12px; rotate: 8deg; }
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(227, 25, 31, 0.5); }
  100% { box-shadow: 0 0 0 10px rgba(227, 25, 31, 0); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-6px); }
  75%      { transform: translateX(6px); }
}
@keyframes pop-in {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 16px;
    text-align: center;
  }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .lede, .signup, .success { margin-left: auto; margin-right: auto; }
  .social-links { justify-content: center; }
  .form-note { margin-left: 0; }
  .hero-art { order: -1; width: min(78%, 400px); }
}

@media (max-width: 520px) {
  .site-header { padding: 14px 16px; }
  .page, .latest { padding-left: 16px; padding-right: 16px; }
  .story .signup-block { padding: 20px 16px 16px; }
  .brand-word { font-size: 1.2rem; }
  .brand-mark { width: 34px; }
  .badge { font-size: 0.7rem; padding: 6px 10px; }
  .hero { padding: 12px 16px 56px; }
  .lede { font-size: 1.05rem; }

  .field {
    flex-direction: column;
    border-radius: var(--radius);
    padding: 10px;
  }
  .field input { text-align: center; }
  .field button { width: 100%; }
  .social-links { gap: 8px; }
  .social-links a { padding: 6px 12px 6px 9px; font-size: 0.85rem; gap: 6px; }
  .social-links svg { width: 17px; height: 17px; }
  .kernel { width: 48px; }
  .k2 { width: 40px; right: -20px; }
  .k1 { left: -18px; }
}
