@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600;1,700&family=Inter:wght@400;500;600;700&display=swap');

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

:root {
  --cream:  #faf7f0;
  --paper:  #f2ede3;
  --ink:    #1c1a16;
  --ink2:   #3d3a33;
  --muted:  #8a8070;
  --rule:   #d4cdc0;
  --accent: #9b4a1e;
  --serif:  'EB Garamond', Georgia, serif;
  --sans:   'Inter', system-ui, sans-serif;
}

/* Dark mode */
[data-theme="dark"] {
  --cream:  #141210;
  --paper:  #1e1b17;
  --ink:    #f0ece3;
  --ink2:   #c8c0b0;
  --muted:  #6a6258;
  --rule:   #2e2b25;
  --accent: #c8602e;
}
[data-theme="dark"] nav {
  background: rgba(20,18,16,0.95);
}
[data-theme="dark"] .quiz-overlay,
[data-theme="dark"] .quiz-done { background: #141210; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  background: var(--cream);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 32px;
}
.center { text-align: center; }

/* ── NAV ────────────────────────────────────── */
nav {
  position: fixed;
  top: 32px; left: 0; right: 0;
  z-index: 100;
  background: rgba(250,247,240,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 32px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-family: var(--sans);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.btn-nav {
  background: var(--ink) !important;
  color: var(--cream) !important;
  padding: 7px 18px !important;
  letter-spacing: 0.07em !important;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── QUIZ ───────────────────────────────────── */
.quiz-overlay {
  position: fixed; inset: 0;
  background: var(--cream);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.quiz-overlay.hidden { display: none; }
.quiz-inner {
  width: 100%; max-width: 400px;
  display: flex; flex-direction: column;
  align-items: center; gap: 24px;
}
.quiz-header { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.quiz-label {
  font-family: var(--sans);
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted); text-align: center;
}
.quiz-bar { width: 100%; height: 1px; background: var(--rule); }
.quiz-progress { height: 100%; background: var(--accent); transition: width 0.4s ease; width: 0%; }
.quiz-instruction {
  font-family: var(--serif); font-style: italic;
  font-size: 1rem; color: var(--muted); text-align: center;
}
.quiz-instruction strong { color: var(--ink); font-style: normal; }

.card-stack { width: 100%; height: 230px; position: relative; }
.quiz-card {
  position: absolute; inset: 0;
  background: var(--paper);
  border: 1px solid var(--rule);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px; padding: 36px; text-align: center;
  cursor: grab; user-select: none;
  transition: box-shadow 0.2s, border-color 0.2s;
  will-change: transform;
}
.quiz-card:active { cursor: grabbing; }
.quiz-card.fly-right { animation: flyRight 0.35s ease forwards; }
.quiz-card.fly-left  { animation: flyLeft  0.35s ease forwards; }
@keyframes flyRight { to { transform: translateX(140%) rotate(10deg); opacity: 0; } }
@keyframes flyLeft  { to { transform: translateX(-140%) rotate(-10deg); opacity: 0; } }
.quiz-card.tilt-right { border-color: #8ab89a; box-shadow: 0 4px 20px rgba(80,150,100,0.12); }
.quiz-card.tilt-left  { border-color: #c09090; box-shadow: 0 4px 20px rgba(180,80,80,0.1); }
.quiz-card-icon  { font-size: 2.2rem; }
.quiz-card-title { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--ink); }
.quiz-card-desc  { font-family: var(--serif); font-style: italic; font-size: 0.9rem; color: var(--muted); line-height: 1.5; }

.quiz-buttons { display: flex; gap: 12px; width: 100%; }
.btn-no, .btn-yes {
  flex: 1; padding: 11px;
  border: 1px solid var(--rule);
  font-size: 0.72rem; font-weight: 600;
  font-family: var(--sans);
  letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; transition: background 0.2s, border-color 0.2s;
  background: var(--paper);
}
.btn-no  { color: #a05050; }
.btn-yes { color: #4a8a65; }
.btn-no:hover  { background: #f5eaea; border-color: #c09090; }
.btn-yes:hover { background: #eaf3ee; border-color: #8ab89a; }

.quiz-done {
  position: fixed; inset: 0;
  background: var(--cream);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 24px;
}
.quiz-done.hidden { display: none; }
.done-inner {
  display: flex; flex-direction: column;
  align-items: center; gap: 16px; max-width: 340px;
}
.done-icon { font-size: 1.8rem; color: var(--accent); }
.done-inner h2 { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--ink); line-height: 1.2; }
.done-inner p { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 1rem; }
#enter-site {
  margin-top: 8px; padding: 11px 32px;
  border: none; background: var(--ink); color: var(--cream);
  font-size: 0.72rem; font-weight: 600;
  font-family: var(--sans); letter-spacing: 0.1em;
  text-transform: uppercase; cursor: pointer; transition: opacity 0.2s;
}
#enter-site:hover { opacity: 0.8; }

/* ── HERO / MASTHEAD ────────────────────────── */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}
.hero {
  position: relative;
  padding: 122px 32px 0;
  max-width: 1040px;
  margin: 0 auto;
  text-align: center;
  border-bottom: 2px solid var(--ink);
}
.hero > *:not(canvas) { position: relative; z-index: 1; }
.hero-top {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.hero-rule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 48px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink2);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.55;
}
.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 36px;
}
.hero-divider::before, .hero-divider::after {
  content: ''; flex: 1; max-width: 80px;
  height: 1px; background: var(--rule);
}
.hero-form-wrap { max-width: 480px; margin: 0 auto 12px; }
.form { display: flex; gap: 0; }
.form input {
  flex: 1;
  padding: 12px 18px;
  border: 1px solid var(--rule);
  border-right: none;
  background: white;
  color: var(--ink);
  font-size: 0.9rem;
  font-family: var(--sans);
  outline: none;
  transition: border-color 0.2s;
}
.form input::placeholder { color: var(--muted); }
.form input:focus { border-color: var(--ink); }
.form button {
  padding: 12px 24px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.form button:hover { opacity: 0.8; }
.form-note {
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.03em;
  margin-bottom: 48px;
}

/* ── SECTIONS ───────────────────────────────── */
.what, .issues, .subscribe {
  padding: 80px 0;
  border-top: 1px solid var(--rule);
}
.label {
  display: block;
  font-family: var(--sans);
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700; margin-bottom: 40px; line-height: 1.2;
}

/* Feature cards — newspaper grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0;
  border: 1px solid var(--rule);
}
.card {
  padding: 28px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  transition: background 0.2s;
}
.card:hover { background: var(--paper); }
.card .icon { font-size: 1.2rem; margin-bottom: 10px; }
.card h3 {
  font-family: var(--sans);
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 8px;
}
.card p { font-family: var(--serif); font-size: 0.95rem; color: var(--muted); line-height: 1.6; }

/* Issues — newspaper list */
.issue-list { border: 1px solid var(--rule); }
.issue {
  display: block;
  padding: 28px 32px;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: background 0.2s;
}
.issue:last-child { border-bottom: none; }
.issue::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--accent);
  opacity: 0; transition: opacity 0.2s;
}
.issue:hover { background: var(--paper); }
.issue:hover::before { opacity: 1; }
.issue.recommended::before { opacity: 1; }

.recommended-badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.issue-top { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.issue-num {
  font-family: var(--sans);
  font-size: 0.62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent);
}
.issue-date { font-family: var(--sans); font-size: 0.75rem; color: var(--muted); }
.issue h3 {
  font-family: var(--serif); font-size: 1.25rem;
  font-weight: 600; margin-bottom: 8px; line-height: 1.3;
}
.issue p { font-family: var(--serif); font-size: 0.95rem; color: var(--muted); margin-bottom: 12px; line-height: 1.6; }
.issue-footer { display: flex; justify-content: space-between; align-items: center; }
.issue-tags { display: flex; gap: 12px; flex-wrap: wrap; }
.issue-tags span {
  font-family: var(--sans); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}

/* Subscribe */
.subscribe { background: var(--paper); }
.subscribe .sub {
  font-family: var(--serif); font-style: italic;
  font-size: 1.1rem; color: var(--ink2); margin-bottom: 28px;
}
.subscribe .form { justify-content: center; }
.subscribe .form input { background: var(--cream); }

/* Footer */
footer {
  border-top: 2px solid var(--ink);
  padding: 32px 0 20px;
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; margin-bottom: 20px; }
.footer-links { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-links a {
  font-family: var(--sans); color: var(--muted);
  text-decoration: none; font-size: 0.7rem;
  letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.2s;
}
.footer-links a:hover { color: var(--ink); }
.retake-quiz {
  background: none; border: 1px solid var(--rule);
  color: var(--muted); font-size: 0.7rem; font-family: var(--sans);
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 14px; cursor: pointer; transition: color 0.2s, border-color 0.2s;
}
.retake-quiz:hover { color: var(--ink); border-color: var(--ink); }
.visitor-count {
  font-family: var(--sans);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-top: 6px;
}
.copyright {
  font-family: var(--sans); font-size: 0.68rem; color: var(--muted);
  padding-top: 16px; border-top: 1px solid var(--rule); letter-spacing: 0.04em;
}

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 680px) {
  .ticker-wrap { display: none; }
  nav { top: 0; }
  .burger { display: flex; }
  .nav-links {
    display: none; position: fixed; inset: 0;
    background: rgba(250,247,240,0.98);
    flex-direction: column; align-items: center; justify-content: center;
    gap: 0; z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    font-size: 1rem !important; color: var(--ink) !important;
    padding: 18px 0; width: 100%; text-align: center;
    border-bottom: 1px solid var(--rule);
  }
  .nav-links a:last-child { border: none; }
  .btn-nav { background: none !important; color: var(--accent) !important; }
  .hero { padding-top: 80px; }
  .hero-rule { display: none; }
  .form { flex-direction: column; }
  .form input { border-right: 1px solid var(--rule); border-bottom: none; }
  .cards { grid-template-columns: 1fr; }
}

/* ① Page fade-in on load */
body { animation: pageFade 0.45s ease both; }
@keyframes pageFade {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ② Back-to-top button */
.back-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 40px; height: 40px;
  background: var(--ink);
  color: var(--cream);
  border: none;
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 90;
}
.back-top.visible { opacity: 1; pointer-events: auto; }
.back-top:hover { background: var(--accent); transform: translateY(-3px); }

/* ③ "NEW" badge on latest issue */
.issue-new {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.55rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--accent); color: var(--cream);
  padding: 2px 7px;
  vertical-align: middle;
  margin-left: 8px;
  position: relative; top: -1px;
}

/* ④ Reading time on issue cards */
.issue-read-time {
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--muted);
}

/* ⑤ Warm glow on card hover */
.card:hover {
  background: var(--paper);
  box-shadow: 0 6px 24px rgba(155,74,30,0.07);
}
.issue:hover {
  background: var(--paper);
  box-shadow: inset 0 0 0 0 transparent, 0 2px 16px rgba(155,74,30,0.06);
}

/* ⑥ Nav active link state */
.nav-links a.active {
  color: var(--ink) !important;
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 1px;
}

/* ⑦ Subtle ✦ pulse on fact label */
.fact-label { animation: factPulse 3s ease-in-out infinite; }
@keyframes factPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.65; }
}

/* ── PAPER GRAIN OVERLAY ────────────────────── */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ── TICKER ─────────────────────────────────── */
.ticker-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 32px;
  background: var(--ink);
  overflow: hidden;
  z-index: 110;
  display: flex;
  align-items: center;
}
.ticker-inner {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker-scroll 70s linear infinite;
}
.ticker-inner span {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.07em;
  color: rgba(250,247,240,0.65);
  padding: 0 52px;
}
.ticker-inner span:nth-child(odd) { color: rgba(250,247,240,0.85); }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── NAV LEFT (game btn + logo group) ──────── */
.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-game-btn {
  background: var(--ink);
  border: none;
  color: var(--cream);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  transition: background 0.18s, transform 0.15s;
  flex-shrink: 0;
}
.nav-game-btn:hover { background: var(--accent); transform: scale(1.07); }
.nav-dark-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 4px 6px;
  line-height: 1;
  opacity: 0.65;
  transition: opacity 0.2s, transform 0.35s;
  flex-shrink: 0;
}
.nav-dark-btn:hover { opacity: 1; transform: rotate(20deg); }

/* ── MODALS ─────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(28,26,22,0.55);
  z-index: 1100;
  backdrop-filter: blur(2px);
}
.modal {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 1200;
  padding: 24px;
}
.modal-close {
  background: none; border: none;
  font-family: var(--sans); font-size: 0.7rem;
  color: var(--muted); cursor: pointer; letter-spacing: 0.05em;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--ink); }

/* Game modal */
.game-modal-inner {
  background: var(--cream);
  border: 1px solid var(--rule);
  box-shadow: 0 12px 48px rgba(0,0,0,0.18);
  overflow: hidden;
  max-width: 420px;
  width: 100%;
}
.game-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.game-title {
  font-family: var(--sans);
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink);
}
#game-canvas {
  display: block;
  width: 100%;
  height: 460px;
  image-rendering: pixelated;
}

/* Suggestion modal */
.suggest-modal-inner {
  background: var(--cream);
  border: 1px solid var(--rule);
  box-shadow: 0 12px 48px rgba(0,0,0,0.18);
  padding: 36px 40px 40px;
  max-width: 420px; width: 100%;
  position: relative;
}
.suggest-modal-inner .modal-close {
  position: absolute; top: 14px; right: 18px;
  font-size: 0.9rem;
}
.suggest-eyebrow {
  font-family: var(--sans);
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.suggest-modal-inner h3 {
  font-family: var(--serif); font-size: 1.7rem;
  font-weight: 700; color: var(--ink); margin-bottom: 6px;
}
.suggest-sub {
  font-family: var(--serif); font-style: italic;
  font-size: 0.9rem; color: var(--muted); margin-bottom: 22px;
}
#suggest-form textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--rule);
  background: var(--paper); color: var(--ink);
  font-family: var(--serif); font-size: 1rem; line-height: 1.6;
  resize: vertical; outline: none;
  transition: border-color 0.2s;
  margin-bottom: 12px;
  display: block;
}
#suggest-form textarea:focus { border-color: var(--ink); }
#suggest-form button {
  width: 100%; padding: 11px;
  border: none; background: var(--ink);
  color: var(--cream); font-family: var(--sans);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; transition: opacity 0.2s;
}
#suggest-form button:hover { opacity: 0.8; }
.suggest-thanks {
  font-family: var(--serif); font-style: italic;
  font-size: 0.95rem; color: var(--accent);
  text-align: center; margin-top: 14px;
}

/* Suggest-open footer button */
.suggest-open {
  background: none; border: 1px solid var(--rule);
  color: var(--muted); font-size: 0.7rem; font-family: var(--sans);
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 14px; cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.suggest-open:hover { color: var(--ink); border-color: var(--ink); }

/* ── FACT OF THE DAY ────────────────────────── */
.fact-section {
  border-top: 1px solid var(--rule);
  padding: 48px 0;
}
.fact-box {
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 28px 32px;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}
.fact-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--accent);
}
.fact-header {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.fact-label {
  font-family: var(--sans);
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent);
}
.fact-date {
  font-family: var(--sans);
  font-size: 0.65rem; color: var(--muted);
  letter-spacing: 0.05em;
}
.fact-text {
  font-family: var(--serif);
  font-size: 1.15rem; line-height: 1.7;
  color: var(--ink2);
  margin-bottom: 20px;
}
.fact-footer {
  display: flex; align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.fact-counter {
  font-family: var(--sans);
  font-size: 0.65rem; color: var(--muted);
  letter-spacing: 0.05em;
}
.fact-share {
  background: none; border: 1px solid var(--rule);
  color: var(--muted); font-family: var(--sans);
  font-size: 0.65rem; letter-spacing: 0.05em;
  padding: 4px 12px; cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.fact-share:hover { border-color: var(--ink); color: var(--ink); }
.fact-share.copied { color: var(--accent); border-color: var(--accent); }

/* ── ATOM SECTION ───────────────────────────── */
.atom-section {
  background: var(--ink);
  padding: 88px 32px;
  border-top: 1px solid rgba(250,247,240,0.06);
  border-bottom: 1px solid rgba(250,247,240,0.06);
}
.atom-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 80px;
}
#atom-canvas { flex-shrink: 0; display: block; }
.atom-copy { flex: 1; }
.atom-copy h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--cream);
}
.atom-copy h2 em { color: #9b4a1e; font-style: italic; }
.atom-blurb {
  font-family: var(--serif);
  font-style: italic;
  color: rgba(250,247,240,0.5);
  font-size: 1.05rem;
  line-height: 1.75;
}
@media (max-width: 680px) {
  .atom-inner { flex-direction: column; gap: 40px; text-align: center; }
  #atom-canvas { margin: 0 auto; }
}

/* ── Beehiiv embed ──────────────────────────── */
.beehiiv-embed {
  border: none !important;
  background: transparent;
  display: block;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 52px;
}

/* ══ 20 UPGRADES ════════════════════════════════════ */

/* Nav underline slide */
.nav-links a { position: relative; }
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--accent); transition: width 0.25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* Custom cursor */
.cursor-dot {
  position: fixed; width: 7px; height: 7px; background: var(--accent);
  border-radius: 50%; pointer-events: none; z-index: 10000;
  transform: translate(-50%,-50%); transition: transform 0.18s ease, background 0.18s;
}

.cursor-ring {
  position: fixed; width: 26px; height: 26px;
  border: 1.5px solid rgba(155,74,30,0.4); border-radius: 50%;
  pointer-events: none; z-index: 9999; transform: translate(-50%,-50%);
}
@media (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* Issue card slide */
.issue { transition: background 0.2s, transform 0.22s; }
.issue:hover { transform: translateX(5px); }

/* Live search */
.issue-search-wrap { padding: 0 0 20px; }
.issue-search {
  width: 100%; font-family: var(--sans); font-size: 0.78rem;
  padding: 10px 16px; border: 1px solid var(--rule);
  background: var(--cream); color: var(--ink);
  outline: none; transition: border-color 0.2s; letter-spacing: 0.02em;
}
.issue-search:focus { border-color: var(--accent); }
.issue-search::placeholder { color: var(--muted); }

/* Read badge */
.read-badge {
  font-family: var(--sans); font-size: 0.55rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: #4a8a65;
  border: 1px solid rgba(74,138,101,0.3); padding: 2px 7px;
  margin-left: 8px; vertical-align: middle;
}

/* Tag filter */
.issue-tags span { cursor: pointer; transition: color 0.15s; }
.issue-tags span:hover { color: var(--accent); }
.tag-filter-clear {
  font-family: var(--sans); font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
  background: none; border: none; cursor: pointer; padding: 0;
  display: none; margin-top: 10px;
}
.tag-filter-clear.visible { display: block; }

/* Page exit */
body.page-exit { opacity: 0; transform: translateY(-5px); transition: opacity 0.22s ease, transform 0.22s ease; }

/* NEW badge pulse */
.issue-new { animation: newPulse 2.5s ease-in-out infinite; }
@keyframes newPulse { 0%,100%{opacity:1;} 50%{opacity:0.5;} }

/* Konami toast */
.konami-toast {
  position: fixed; bottom: 90px; left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--ink); color: var(--cream);
  font-family: var(--sans); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.05em; padding: 12px 28px; z-index: 9000;
  opacity: 0; pointer-events: none; transition: opacity 0.35s, transform 0.35s;
}
.konami-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Ambient sound button */
.ambient-btn {
  position: fixed; bottom: 32px; left: 32px; width: 40px; height: 40px;
  background: var(--paper); border: 1px solid var(--rule); font-size: 1.1rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  z-index: 90; transition: background 0.2s, border-color 0.2s, color 0.2s;
  color: var(--ink2);
}
.ambient-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.ambient-btn.playing { background: var(--accent); border-color: var(--accent); color: var(--cream); }

.hidden { display: none !important; }
