:root {
  --dispatch-blue: #4a6da7;
  --dispatch-blue-dark: #3a5a8f;
  --dispatch-blue-light: #6b8ec4;
  --dispatch-blue-pale: #e8eef6;
  --dispatch-blue-ghost: #f4f7fb;
  --dispatch-blue-10: rgba(74, 109, 167, 0.10);
  --dispatch-blue-05: rgba(74, 109, 167, 0.05);
  --parchment: #f5f0e8;
  --parchment-warm: #ede6d8;
  --parchment-light: #faf8f3;
  --parchment-dark: #ddd5c4;
  --ink: #1a1a2e;
  --ink-soft: #2d2d42;
  --ink-muted: #6b6b80;
  --ink-faint: #9e9eb0;
  --white: #ffffff;
  --success: #3a9e6e;
  --warning: #d4953a;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-width: 1080px;
  --radius: 12px;
  --radius-lg: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-display);
  background: var(--parchment-light);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* ── NAV ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 32px;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(250, 248, 243, 0.88);
  backdrop-filter: blur(20px) saturate(1.3);
  border-bottom-color: var(--parchment-dark);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--white);
  transition: color 0.4s;
}
.site-header.scrolled .logo { color: var(--ink); }
.logo-icon {
  width: 32px; height: 32px;
  background: var(--dispatch-blue);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--white);
  font-family: var(--font-mono); letter-spacing: -0.5px;
}
.logo-text {
  font-size: 16px; font-weight: 800; letter-spacing: -0.5px;
}
.logo-text em {
  color: rgba(255, 255, 255, 0.7); font-style: normal;
  transition: color 0.4s;
}
.site-header.scrolled .logo-text em { color: var(--dispatch-blue); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a {
  font-size: 12px; font-weight: 500; letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8); text-decoration: none;
  transition: color 0.4s;
}
.nav-links a:hover { color: var(--white); }
.site-header.scrolled .nav-links a { color: var(--ink-muted); }
.site-header.scrolled .nav-links a:hover { color: var(--dispatch-blue); }

/* ── HERO ── */
.hero {
  padding: 150px 32px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--dispatch-blue);
  color: var(--white);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 80%, rgba(245,240,232,0.06), transparent),
    radial-gradient(ellipse 500px 300px at 80% 20%, rgba(255,255,255,0.04), transparent);
  pointer-events: none;
}
.doodle-float {
  position: absolute; pointer-events: none; opacity: 0.10;
}
.doodle-float svg {
  stroke: currentColor; fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
@keyframes floatBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.doodle-float { animation: floatBob 4s ease-in-out infinite; }
.doodle-float:nth-child(2) { animation-delay: -1s; animation-duration: 5s; }
.doodle-float:nth-child(3) { animation-delay: -2s; animation-duration: 3.5s; }
.doodle-float:nth-child(4) { animation-delay: -0.5s; animation-duration: 4.5s; }
.doodle-float:nth-child(5) { animation-delay: -1.5s; animation-duration: 3.8s; }
@keyframes drawLine {
  from { stroke-dashoffset: 200; }
  to { stroke-dashoffset: 0; }
}
.draw-in {
  stroke-dasharray: 200; stroke-dashoffset: 200;
  animation: drawLine 2s ease forwards;
}
.hero-label {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 400;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 24px;
  display: inline-flex; align-items: center; gap: 8px;
}
.hero-label::before {
  content: ''; width: 20px; height: 1px;
  background: rgba(255,255,255,0.3);
}
.hero h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 800;
  line-height: 1.05; letter-spacing: -2px;
  max-width: 680px; margin: 0 auto 24px;
}
.hero h1 em { font-weight: 300; font-style: italic; opacity: 0.85; }
.hero-sub {
  font-size: 17px; font-weight: 400;
  color: rgba(255,255,255,0.6);
  max-width: 500px; margin: 0 auto 44px;
  line-height: 1.6;
}
.hero-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  font-family: var(--font-display);
  text-decoration: none; border: none; cursor: pointer;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-primary { background: var(--white); color: var(--dispatch-blue); }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.btn-ghost {
  background: transparent; color: rgba(255,255,255,0.7);
  border: 1.5px solid rgba(255,255,255,0.2);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.4); color: var(--white); }

/* ── SECTIONS ── */
.section { padding: 96px 32px; }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-label {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--dispatch-blue); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.section-label::before {
  content: ''; width: 16px; height: 2px;
  background: var(--dispatch-blue); border-radius: 1px;
}
.section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: -1.5px; line-height: 1.1;
  margin-bottom: 16px;
}
.section-title em { color: var(--dispatch-blue); font-style: normal; }
.section-desc {
  font-size: 15px; color: var(--ink-muted);
  max-width: 540px; line-height: 1.65;
  margin-bottom: 48px;
}

/* ── EDITION ── */
.latest-edition {
  background: var(--white);
  border: 1px solid var(--parchment-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.edition-header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--parchment-dark);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  background: var(--parchment-light);
}
.edition-meta { display: flex; align-items: center; gap: 12px; }
.edition-badge {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--white); background: var(--dispatch-blue);
  padding: 4px 12px; border-radius: 999px;
}
.edition-date { font-size: 13px; color: var(--ink-muted); }
.btn-back {
  font-size: 13px; color: var(--dispatch-blue);
  text-decoration: none; font-weight: 500;
  transition: opacity 0.2s;
}
.btn-back:hover { opacity: 0.7; }
.edition-body { padding: 36px 32px; }
.edition-body h2 {
  font-size: 24px; font-weight: 800;
  letter-spacing: -0.5px; margin-bottom: 12px; margin-top: 36px;
}
.edition-body h2:first-child { margin-top: 0; }
.edition-body h3 {
  font-size: 17px; font-weight: 700; letter-spacing: -0.3px;
  margin-bottom: 8px; margin-top: 28px;
  color: var(--ink-soft);
}
.edition-body p {
  color: var(--ink-muted); margin-bottom: 14px;
  font-size: 15px; line-height: 1.7;
}
.edition-body a {
  color: var(--dispatch-blue); text-decoration: none;
  border-bottom: 1px solid var(--dispatch-blue-10);
  transition: border-color 0.2s;
}
.edition-body a:hover { border-color: var(--dispatch-blue); }
.edition-body code {
  font-family: var(--font-mono); font-size: 13px;
  background: var(--dispatch-blue-05);
  padding: 2px 6px; border-radius: 4px;
}
.edition-body blockquote {
  border-left: 3px solid var(--dispatch-blue);
  padding: 14px 20px; margin: 20px 0;
  background: var(--dispatch-blue-05);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: var(--ink-muted);
}
.edition-body table {
  width: 100%; border-collapse: collapse;
  margin: 20px 0; font-size: 13px;
}
.edition-body th {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 500;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--ink-faint); text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--parchment-dark);
  background: var(--parchment-light);
}
.edition-body td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--parchment);
  color: var(--ink-muted);
}
.edition-body tr:hover td { background: var(--dispatch-blue-05); }
.edition-body ul { margin: 14px 0; padding-left: 20px; }
.edition-body li {
  color: var(--ink-muted); font-size: 15px;
  line-height: 1.7; margin-bottom: 6px;
}
.edition-body li strong { color: var(--ink-soft); }
.edition-body hr {
  border: none; border-top: 1px solid var(--parchment-dark);
  margin: 32px 0;
}
.edition-body strong { color: var(--ink-soft); }

/* ── PODCAST PLAYER ── */
.podcast-player {
  display: flex; align-items: center; gap: 20px;
  background: linear-gradient(135deg, var(--dispatch-blue) 0%, var(--dispatch-blue-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 0 0 8px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.podcast-player::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 300px 200px at 10% 100%, rgba(255,255,255,0.06), transparent),
    radial-gradient(ellipse 200px 150px at 90% 0%, rgba(255,255,255,0.04), transparent);
  pointer-events: none;
}
.podcast-play-btn {
  width: 52px; height: 52px; min-width: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative; z-index: 1;
}
.podcast-play-btn:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.5);
  transform: scale(1.06);
}
.podcast-play-btn svg {
  width: 22px; height: 22px;
  fill: var(--white); stroke: none;
}
.podcast-info { flex: 1; min-width: 0; position: relative; z-index: 1; }
.podcast-label {
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
  display: flex; align-items: center; gap: 6px;
}
.podcast-label::before {
  content: ''; width: 4px; height: 4px;
  background: rgba(255,255,255,0.4); border-radius: 50%;
}
.podcast-title {
  font-size: 15px; font-weight: 700;
  letter-spacing: -0.3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 10px;
}
.podcast-progress-wrap { display: flex; align-items: center; gap: 10px; }
.podcast-time {
  font-family: var(--font-mono);
  font-size: 11px; color: rgba(255,255,255,0.5);
  min-width: 38px;
}
.podcast-progress {
  flex: 1; height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  padding: 8px 0;
  background-clip: content-box;
}
.podcast-progress-bar {
  height: 4px; width: 0%;
  background: rgba(255,255,255,0.7);
  border-radius: 2px;
  transition: width 0.1s linear;
  position: relative; top: 0;
}
.podcast-progress:hover .podcast-progress-bar { background: var(--white); }
.podcast-volume-btn {
  background: none; border: none; cursor: pointer;
  padding: 4px;
  position: relative; z-index: 1;
}
.podcast-volume-btn svg {
  width: 18px; height: 18px;
  stroke: rgba(255,255,255,0.5); fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke 0.2s;
}
.podcast-volume-btn:hover svg { stroke: var(--white); }
.podcast-speed-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 500;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all 0.2s;
  position: relative; z-index: 1;
}
.podcast-speed-btn:hover {
  background: rgba(255,255,255,0.2);
  color: var(--white);
}
.podcast-player-missing {
  display: flex; align-items: center; gap: 14px;
  background: var(--dispatch-blue-05);
  border: 1px dashed var(--dispatch-blue-light);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 0 0 8px;
}
.podcast-player-missing svg {
  width: 20px; height: 20px; min-width: 20px;
  stroke: var(--dispatch-blue); fill: none;
  stroke-width: 1.5; stroke-linecap: round;
}
.podcast-player-missing p { font-size: 13px; color: var(--ink-muted); margin: 0; }

@media (max-width: 768px) {
  .podcast-player { flex-wrap: wrap; padding: 20px; gap: 14px; }
  .podcast-info { width: 100%; }
  .podcast-title { white-space: normal; }
}

/* ── ARCHIVE ── */
.archive-section { background: var(--parchment); }
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.archive-card {
  background: var(--white);
  border: 1px solid var(--parchment-dark);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  text-decoration: none; color: inherit; display: block;
}
.archive-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(74, 109, 167, 0.10);
  border-color: var(--dispatch-blue-light);
}
.archive-card-date {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--dispatch-blue); margin-bottom: 10px;
}
.archive-card-title {
  font-size: 18px; font-weight: 700;
  letter-spacing: -0.5px; margin-bottom: 10px;
  line-height: 1.2;
}
.archive-card-desc {
  font-size: 13px; color: var(--ink-muted); line-height: 1.6;
}


/* ── FOOTER ── */
.footer { padding: 40px 32px; border-top: 1px solid var(--parchment-dark); }
.footer-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-text { font-size: 12px; color: var(--ink-faint); }
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  font-size: 12px; color: var(--ink-faint);
  text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--dispatch-blue); }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 72px 32px; }
.empty-state-icon {
  width: 56px; height: 56px;
  background: var(--dispatch-blue-10);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.empty-state-icon svg {
  width: 24px; height: 24px;
  stroke: var(--dispatch-blue); fill: none;
  stroke-width: 1.5; stroke-linecap: round;
}
.empty-state h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 8px; }
.empty-state p { color: var(--ink-muted); max-width: 380px; margin: 0 auto; font-size: 14px; }

/* ── REVEAL ── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero { padding: 120px 20px 72px; }
  .section { padding: 64px 20px; }
  .edition-header { padding: 16px 20px; }
  .edition-body { padding: 24px 20px; }
  .edition-body h2 { font-size: 20px; }
  .archive-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .doodle-float { display: none; }
}
