/* ============================================================
   MindPop Design System
   Energetic editorial · Paper + charcoal · Electric orange · Cobalt
   ============================================================ */

:root {
  --paper: #FAF8F4;
  --paper-2: #F3EEE6;
  --paper-3: #E8E0D4;
  --ink: #1A1814;
  --ink-2: #3D3933;
  --ink-3: #6B655C;
  --ink-muted: #9A9388;
  --line: rgba(26, 24, 20, 0.12);
  --line-strong: rgba(26, 24, 20, 0.22);

  --pop: #FF4D1A;
  --pop-dark: #E03D0E;
  --cobalt: #1E4DFF;
  --cobalt-dark: #1238C9;
  --sun: #FFB800;
  --coral: #FF6B5B;
  --lavender: #B8A9E8;
  --success: #1F8A4C;
  --error: #C62828;

  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6.5rem;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(26, 24, 20, 0.06);
  --shadow: 0 8px 28px rgba(26, 24, 20, 0.08);
  --shadow-pop: 4px 4px 0 var(--ink);

  --header-h: 64px;
  --sticky-ad-h: 0px;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body.mp-body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  background-image:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgba(255, 77, 26, 0.06), transparent 50%),
    radial-gradient(ellipse 60% 40% at 0% 20%, rgba(30, 77, 255, 0.04), transparent 45%);
  padding-bottom: var(--sticky-ad-h);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--cobalt); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cobalt-dark); }
:focus-visible { outline: 3px solid var(--pop); outline-offset: 3px; }

.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;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper);
  padding: 0.75rem 1rem; z-index: 10000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.container--narrow { width: min(100% - 2rem, 720px); margin-inline: auto; }

/* Typography */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0;
}
.display--xl { font-size: clamp(2.75rem, 8vw, 5.5rem); }
.display--lg { font-size: clamp(2.1rem, 5vw, 3.75rem); }
.display--md { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--pop); margin: 0 0 0.75rem;
}
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 36rem; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 700; font-size: 0.95rem;
  line-height: 1; border: 2px solid transparent; border-radius: var(--radius-pill);
  padding: 0.85rem 1.35rem; cursor: pointer; text-decoration: none;
  transition: transform 0.15s var(--ease), background 0.15s, color 0.15s, box-shadow 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--pop); color: #fff; border-color: var(--ink);
  box-shadow: var(--shadow-pop);
}
.btn--primary:hover { background: var(--pop-dark); color: #fff; }
.btn--secondary {
  background: var(--cobalt); color: #fff; border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.btn--secondary:hover { background: var(--cobalt-dark); color: #fff; }
.btn--ghost {
  background: transparent; color: var(--ink); border-color: var(--line-strong);
}
.btn--ghost:hover { background: var(--paper-2); color: var(--ink); }
.btn--sm { padding: 0.55rem 1rem; font-size: 0.85rem; }
.btn--block { width: 100%; }

.icon-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--line-strong); border-radius: 50%; background: var(--paper);
  color: var(--ink); cursor: pointer;
}
.icon-btn:hover { background: var(--paper-2); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(250, 248, 244, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.site-header__inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  height: var(--header-h);
  display: flex; align-items: center; gap: 1.5rem;
}
.logo {
  display: inline-flex; align-items: center; gap: 0.55rem;
  text-decoration: none; color: var(--ink); flex-shrink: 0;
}
.logo__word {
  font-family: var(--font-display); font-weight: 800; font-size: 1.35rem;
  letter-spacing: -0.04em;
}
.logo__pop { color: var(--pop); }
.site-header__actions { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }

.nav-desktop { display: none; gap: 0.25rem; }
.nav-desktop__link {
  text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 0.92rem;
  padding: 0.45rem 0.75rem; border-radius: var(--radius-pill);
}
.nav-desktop__link:hover,
.nav-desktop__link.is-active { color: var(--ink); background: var(--paper-2); }

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block; width: 18px; height: 2px; background: var(--ink); position: relative;
}
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; position: absolute; left: 0;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.nav-mobile {
  display: flex; flex-direction: column; gap: 0.25rem;
  padding: 0.5rem 1rem 1.25rem;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.nav-mobile a {
  text-decoration: none; color: var(--ink); font-weight: 700;
  padding: 0.85rem 0.5rem; border-radius: var(--radius);
  font-family: var(--font-display); font-size: 1.15rem;
}
.nav-mobile[hidden] { display: none !important; }

@media (min-width: 900px) {
  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
  .hide-sm { display: inline-flex !important; }
}
.hide-sm { display: none; }

/* Search overlay */
.search-overlay {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(26, 24, 20, 0.55);
  display: grid; place-items: start center; padding-top: 12vh;
}
.search-overlay[hidden] { display: none !important; }
.search-overlay__panel {
  width: min(100% - 2rem, 640px);
  background: var(--paper); border: 2px solid var(--ink);
  border-radius: var(--radius-lg); padding: 1.25rem;
  box-shadow: 8px 8px 0 var(--ink);
}
.search-form { display: flex; gap: 0.5rem; align-items: center; }
.search-form__input {
  flex: 1; min-width: 0; border: 2px solid var(--ink); border-radius: var(--radius-pill);
  padding: 0.85rem 1.1rem; font: inherit; background: #fff;
}
.search-overlay__hint { color: var(--ink-3); font-size: 0.9rem; margin: 0.75rem 0 0; }

/* Hero */
.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}
.hero__grid {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: grid; gap: 2.5rem; align-items: center;
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: 3rem; }
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero__visual { position: relative; min-height: 280px; }

.float-card {
  position: absolute;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  box-shadow: 4px 4px 0 var(--ink);
  max-width: 220px;
  animation: floatY 5s var(--ease) infinite;
}
.float-card--1 { top: 8%; left: 4%; background: var(--sun); animation-delay: 0s; }
.float-card--2 { top: 38%; right: 2%; background: #fff; animation-delay: 0.6s; }
.float-card--3 { bottom: 6%; left: 18%; background: var(--lavender); animation-delay: 1.2s; }
.float-card__q { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; margin: 0 0 0.35rem; }
.float-card__meta { font-size: 0.75rem; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.06em; }
.hero-blob {
  position: absolute; inset: 10% 8%;
  background:
    conic-gradient(from 210deg at 50% 50%, var(--pop) 0deg, var(--sun) 90deg, var(--cobalt) 180deg, var(--lavender) 270deg, var(--pop) 360deg);
  opacity: 0.18;
  border-radius: 40% 60% 55% 45%;
  filter: blur(2px);
  animation: morph 12s ease-in-out infinite;
  z-index: -1;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes morph {
  0%, 100% { border-radius: 40% 60% 55% 45%; transform: rotate(0deg); }
  50% { border-radius: 55% 45% 40% 60%; transform: rotate(8deg); }
}

/* Sections */
.section { padding: var(--space-8) 0; }
.section--tight { padding: var(--space-7) 0; }
.section--ink {
  background: var(--ink); color: var(--paper);
}
.section--ink h2, .section--ink .display { color: var(--paper); }
.section--paper2 { background: var(--paper-2); }
.section__head {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto 1.75rem;
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem;
}
.section__link {
  font-weight: 700; color: var(--ink); text-decoration: none;
  border-bottom: 2px solid var(--pop);
}
.section__link:hover { color: var(--pop); }

/* Cards */
.card-rail {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 280px);
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.card-rail > * { scroll-snap-align: start; }

.grid-cards {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-cards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .grid-cards--4 { grid-template-columns: repeat(4, 1fr); } }

.mp-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
  box-shadow: 0 0 0 transparent;
}
.mp-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 5px 5px 0 var(--ink);
  color: inherit;
}
.mp-card__media {
  aspect-ratio: 16/10;
  background: var(--paper-2);
  position: relative;
  overflow: hidden;
}
.mp-card__media img { width: 100%; height: 100%; object-fit: cover; }

/* Designed tile faces (no empty placeholders) */
.tile-face {
  --tile-a: #1E4DFF;
  --tile-b: #FF4D1A;
  --tile-c: #FFB800;
  background:
    radial-gradient(circle at 88% 18%, var(--tile-c) 0 18%, transparent 19%),
    radial-gradient(circle at 12% 88%, rgba(255,255,255,0.18) 0 16%, transparent 17%),
    linear-gradient(145deg, var(--tile-a) 0%, var(--tile-b) 100%);
  color: #fff;
}
.tile-face__art {
  position: absolute; inset: 0;
  display: grid; place-items: center;
}
.tile-face__orb {
  position: absolute; width: 42%; aspect-ratio: 1; border-radius: 50%;
  right: -6%; top: -10%;
  background: rgba(255,255,255,0.16);
  border: 2px solid rgba(255,255,255,0.22);
}
.tile-face__orb--2 {
  width: 22%; left: 8%; top: auto; bottom: 18%; right: auto;
  background: var(--tile-c); border: none; opacity: 0.9;
}
.tile-face__mark {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3rem, 8vw, 4.5rem); line-height: 1;
  letter-spacing: -0.06em;
  text-shadow: 3px 3px 0 rgba(0,0,0,0.18);
}
.tile-face__lines {
  position: absolute; inset: 18% 12%;
  background: repeating-linear-gradient(
    -18deg,
    transparent 0 10px,
    rgba(255,255,255,0.12) 10px 12px
  );
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.25);
}
.tile-face__calc {
  font-family: var(--font-display); font-weight: 800;
  font-size: 4rem; opacity: 0.9;
}
.tile-face__shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.15) 45%, transparent 70%);
}
.tile-face__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 0.85rem 1rem 1rem;
  display: flex; flex-direction: column; gap: 0.2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
}
.tile-face__kicker {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; opacity: 0.9;
}
.tile-face__label {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.05rem; line-height: 1.15; letter-spacing: -0.02em;
}
.mp-card__body { padding: 1rem 1.1rem 1.2rem; flex: 1; display: flex; flex-direction: column; }
.mp-card__meta {
  display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.5rem;
}
.mp-card__title {
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  margin: 0 0 0.4rem; line-height: 1.2; letter-spacing: -0.02em;
}
.mp-card__excerpt { color: var(--ink-3); font-size: 0.92rem; margin: 0; flex: 1; }

.chip {
  display: inline-flex; align-items: center;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 0.25rem 0.55rem;
  border-radius: var(--radius-pill); border: 1.5px solid var(--ink);
  background: var(--paper);
}
.chip--pop { background: var(--pop); color: #fff; border-color: var(--ink); }
.chip--cobalt { background: var(--cobalt); color: #fff; border-color: var(--ink); }
.chip--sun { background: var(--sun); border-color: var(--ink); }
.chip--soft { background: var(--paper-2); border-color: var(--line-strong); }

/* Feature asymmetric */
.feature-split {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: grid; gap: 1rem;
}
@media (min-width: 900px) {
  .feature-split { grid-template-columns: 1.4fr 1fr; }
}
.feature-hero {
  position: relative;
  background:
    radial-gradient(circle at 90% 10%, #FFB800 0 14%, transparent 15%),
    linear-gradient(155deg, #1E4DFF 0%, #1238C9 48%, #FF4D1A 120%);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  min-height: 320px;
  display: flex; flex-direction: column; justify-content: flex-end;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 6px 6px 0 var(--ink);
  isolation: isolate;
}
.feature-hero:hover { color: #fff; }
.feature-hero .chip { position: relative; z-index: 2; align-self: flex-start; }
.feature-hero h3 {
  position: relative; z-index: 2;
  color: #fff !important;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0.5rem 0;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.feature-hero p {
  position: relative; z-index: 2;
  margin: 0; opacity: 0.95; max-width: 28rem; color: #fff;
}
.feature-hero__pattern {
  position: absolute; inset: auto -10% -20% auto; width: 55%; height: 70%;
  background: repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(255,255,255,0.1) 10px, rgba(255,255,255,0.1) 20px);
  pointer-events: none; z-index: 0;
}
.feature-hero__big {
  position: absolute; right: 6%; top: 10%;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(5rem, 14vw, 8rem); line-height: 0.85;
  letter-spacing: -0.06em; color: rgba(255,255,255,0.14);
  z-index: 0; pointer-events: none; user-select: none;
}

/* Daily challenge */
.daily {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 8px 8px 0 var(--ink);
  overflow: hidden;
}
.daily__head {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--sun);
  border-bottom: 2px solid var(--ink);
}
.daily__body { padding: 1.5rem; }
.daily__progress {
  height: 6px; background: var(--paper-3); border-radius: var(--radius-pill); overflow: hidden; margin: 1rem 0 1.25rem;
}
.daily__progress > span {
  display: block; height: 100%; background: var(--pop); width: 0%;
  transition: width 0.35s var(--ease);
}

/* Quiz engine */
.quiz-shell {
  width: min(100% - 2rem, 720px);
  margin: 2rem auto;
}
.quiz-answer {
  display: block; width: 100%; text-align: left;
  font: inherit; font-weight: 600;
  padding: 1rem 1.1rem;
  margin-bottom: 0.65rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.quiz-answer:hover:not(:disabled) {
  background: var(--paper-2);
  transform: translateX(4px);
}
.quiz-answer:disabled { cursor: default; }
.quiz-answer.is-correct {
  background: #E6F6EC; border-color: var(--success);
}
.quiz-answer.is-wrong {
  background: #FDECEC; border-color: var(--error);
}
.quiz-answer__key {
  display: inline-flex; width: 1.75rem; height: 1.75rem;
  align-items: center; justify-content: center;
  border-radius: 50%; border: 1.5px solid currentColor;
  font-size: 0.8rem; font-weight: 800; margin-right: 0.65rem;
}
.quiz-feedback {
  padding: 1rem;
  border-radius: var(--radius);
  border: 2px solid var(--ink);
  background: var(--paper-2);
  margin: 1rem 0;
}
.quiz-results {
  text-align: center; padding: 2rem 1rem;
}
.quiz-results__score {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3rem, 10vw, 5rem); line-height: 1; letter-spacing: -0.04em;
  color: var(--pop);
}
.share-row { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 1.25rem; }

/* Tools */
.tool-panel {
  background: #fff; border: 2px solid var(--ink); border-radius: var(--radius-lg);
  padding: 1.5rem; box-shadow: 5px 5px 0 var(--ink);
}
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
.field label {
  display: block; font-weight: 700; font-size: 0.85rem; margin-bottom: 0.35rem;
}
.field input, .field select {
  width: 100%; border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 0.75rem 0.9rem; font: inherit; background: #fff;
}
.tool-result {
  margin-top: 1.25rem; padding: 1.25rem;
  background: var(--ink); color: var(--paper); border-radius: var(--radius);
}
.tool-result__value {
  font-family: var(--font-display); font-weight: 800; font-size: 2rem; letter-spacing: -0.03em;
}
.disclaimer-box {
  margin-top: 1rem; font-size: 0.85rem; color: var(--ink-3);
  padding: 0.85rem; background: var(--paper-2); border-radius: var(--radius-sm);
}

/* Editorial article */
.article-hero {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
}
.article-hero__media {
  width: min(100% - 2rem, var(--max));
  margin: 1.5rem auto 0;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 21/9;
  background: var(--paper-2);
}
.article-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.article-body {
  width: min(100% - 2rem, 680px);
  margin: 2rem auto;
  font-size: 1.1rem;
}
.article-body h2 { margin-top: 2rem; }
.article-body .fact-box {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--pop);
  background: var(--paper-2);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.toc {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.5rem 0;
}
.toc ol { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.toc a { color: var(--ink); font-weight: 600; text-decoration: none; }
.toc a:hover { color: var(--pop); }

/* Newsletter */
.newsletter-band {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  background: var(--pop);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: grid; gap: 1.25rem;
  box-shadow: 6px 6px 0 var(--ink);
}
@media (min-width: 800px) {
  .newsletter-band { grid-template-columns: 1.2fr 1fr; align-items: center; }
}
.newsletter-band h2 { color: #fff; margin: 0 0 0.35rem; }
.newsletter-band p { margin: 0; opacity: 0.95; }
.newsletter-band form { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.newsletter-band input[type="email"] {
  flex: 1; min-width: 180px; border: 2px solid var(--ink); border-radius: var(--radius-pill);
  padding: 0.85rem 1.1rem; font: inherit;
}

/* Footer */
.site-footer {
  margin-top: var(--space-8);
  background: var(--ink);
  color: var(--paper);
  padding: var(--space-8) 0 var(--space-6);
}
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: var(--sun); }
.site-footer__grid {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.site-footer__heading {
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-muted); margin: 0 0 0.75rem; font-family: var(--font-body);
}
.site-footer__links { list-style: none; padding: 0; margin: 0; }
.site-footer__links li { margin-bottom: 0.45rem; }
.site-footer__tagline { color: var(--ink-muted); margin: 0.75rem 0 1rem; }
.site-footer__muted { color: var(--ink-muted); font-size: 0.9rem; }
.site-footer__bottom {
  width: min(100% - 2rem, var(--max));
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem;
}
.footer-newsletter { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.footer-newsletter input {
  flex: 1; min-width: 160px; border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.06);
  color: #fff; padding: 0.65rem 0.9rem; font: inherit;
}
.logo--footer .logo__word { color: #fff; }
.logo--footer .logo__pop { color: var(--sun); }

/* Ads */
.mp-ad {
  width: min(100% - 2rem, var(--max));
  margin: 1.75rem auto;
  text-align: center;
  min-height: 0;
}
.mp-ad.is-empty { display: none; }
.mp-ad__label {
  font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 0.35rem;
}
.mp-ad__slot {
  margin-inline: auto;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
}
.mp-ad--quiz-mid, .mp-ad--quiz-result { width: 100%; margin: 1rem 0; }

.mp-sticky-ad {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 800;
  background: var(--paper); border-top: 2px solid var(--ink);
  padding: 0.4rem 2.75rem 0.4rem 0.75rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  min-height: 56px;
}
.mp-sticky-ad[hidden],
.mp-sticky-ad.is-empty { display: none !important; }
.mp-sticky-ad__close {
  position: absolute; right: 0.4rem; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line-strong);
  background: #fff; cursor: pointer; font-size: 1.25rem; line-height: 1; z-index: 2;
}
body.has-sticky-ad { --sticky-ad-h: 70px; }

.quiz-ad-break {
  text-align: center;
  padding: 1rem 0 1.5rem;
}

.mp-interstitial {
  border: none;
  padding: 0;
  max-width: min(96vw, 420px);
  background: transparent;
}
.mp-interstitial::backdrop {
  background: rgba(26, 24, 20, 0.72);
}
.mp-interstitial__panel {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 1rem 1rem 1.25rem;
  text-align: center;
  box-shadow: 6px 6px 0 var(--ink);
}
.mp-ad__slot--interstitial {
  min-height: 280px;
  margin: 0.5rem 0 1rem;
}

.mp-rewarded {
  margin: 1.5rem 0; padding: 1.25rem;
  border: 2px dashed var(--line-strong); border-radius: var(--radius);
  text-align: center; background: var(--paper-2);
}
.mp-rewarded__note { font-size: 0.85rem; color: var(--ink-3); margin: 0.75rem 0 0; }
.mp-rewarded__status { font-size: 0.9rem; font-weight: 600; margin: 0.5rem 0; }
.mp-rewarded__status.is-error { color: var(--error); }

/* Consent */
.mp-consent {
  position: fixed; left: 1rem; right: 1rem; bottom: calc(1rem + var(--sticky-ad-h));
  z-index: 950; max-width: 420px;
}
.mp-consent[hidden] { display: none !important; }
.mp-consent__inner {
  background: #fff; border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 1rem 1.1rem; box-shadow: 4px 4px 0 var(--ink);
}
.mp-consent__title { font-family: var(--font-display); font-weight: 700; margin: 0 0 0.35rem; }
.mp-consent__text { font-size: 0.88rem; color: var(--ink-2); margin: 0 0 0.85rem; }
.mp-consent__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* Legal / prose pages */
.prose { width: min(100% - 2rem, 720px); margin: 2rem auto 4rem; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
.prose h2 { margin-top: 2rem; }
.page-hero {
  padding: 2.5rem 0 1rem;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Editorial list */
.editorial-list {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: grid; gap: 0;
}
.editorial-item {
  display: grid; gap: 0.75rem; padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit;
  grid-template-columns: auto 1fr;
  align-items: start;
}
.editorial-item:hover .editorial-item__title { color: var(--pop); }
.editorial-item__num {
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem;
  color: var(--pop); line-height: 1; min-width: 2rem;
}
.editorial-item__title {
  font-family: var(--font-display); font-weight: 700; margin: 0 0 0.25rem;
  transition: color 0.15s;
}
.editorial-item__meta { font-size: 0.85rem; color: var(--ink-3); margin: 0; }

/* Bento light */
.bento {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-template-rows: auto auto; }
  .bento__wide { grid-column: span 2; }
  .bento__tall { grid-row: span 2; }
}

.bento-tile {
  border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 1.25rem; background: #fff; text-decoration: none; color: inherit;
  min-height: 140px; display: flex; flex-direction: column; justify-content: space-between;
  transition: transform 0.15s;
}
.bento-tile:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); color: inherit; }
.bento-tile--sun { background: var(--sun); }
.bento-tile--cobalt { background: var(--cobalt); color: #fff; }
.bento-tile--cobalt:hover { color: #fff; }
.bento-tile--pop { background: var(--pop); color: #fff; }
.bento-tile--pop:hover { color: #fff; }
.bento-tile h3 { margin: 0; font-size: 1.2rem; color: inherit; }

/* Error pages */
.error-page {
  min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 3rem 1rem;
}
.error-page__code {
  font-family: var(--font-display); font-weight: 800; font-size: 6rem;
  line-height: 1; color: var(--pop); letter-spacing: -0.05em;
}

/* Utilities */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
/* Never hide content if JS fails — only nudge when animated in */
.reveal { transform: none; opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal:not(.is-in) {
    transform: translateY(10px);
    opacity: 0.35;
  }
  html.js .reveal.is-in {
    transform: none;
    opacity: 1;
    transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  }
}

@media (max-width: 479px) {
  .btn { width: 100%; }
  .hero__actions .btn { width: auto; flex: 1 1 auto; }
}
