/* ============================================
   DISPATCHES — Editorial CSS
   ============================================ */

:root {
  --bg: #111520;
  --bg-elevated: #182030;
  --bg-surface: #1e2840;
  --text: #d8dde8;
  --text-body: #c4cad8;
  --accent: #c9a24d;
  --accent-bright: #e0ba5e;
  --accent-dim: rgba(201, 162, 77, 0.15);
  --accent-glow: rgba(201, 162, 77, 0.08);
  --headline: #eef0f5;
  --dim: #8a94aa;
  --muted: #56607a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --progress: var(--accent);
  --overlay-bg: rgba(11, 15, 26, 0.96);
  --code-bg: rgba(255, 255, 255, 0.05);
  --code-text: #ddb95c;
  --shadow-soft: 0 12px 48px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(0, 0, 0, 0.3);

  --font-display: "Playfair Display", "Georgia", serif;
  --font-headline: "Bebas Neue", sans-serif;
  --font-serif: "Source Serif 4", "Georgia", serif;
  --font-mono: "JetBrains Mono", "Menlo", monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --content-width: 680px;
  --wide-width: 780px;
  --mouse-x: 50%;
  --mouse-y: 50%;
  --spotlight-opacity: 0.15;
  --transition-smooth: cubic-bezier(0.23, 1, 0.32, 1);
}

[data-theme="light"] {
  --spotlight-opacity: 0.05;
}

[data-theme="light"] {
  --bg: #f6f3ec;
  --bg-elevated: #eee9de;
  --bg-surface: #e8e2d5;
  --text: #2d2b28;
  --text-body: #44413b;
  --accent: #a47e28;
  --accent-bright: #8b6a1e;
  --accent-dim: rgba(164, 126, 40, 0.1);
  --accent-glow: rgba(164, 126, 40, 0.05);
  --headline: #15120e;
  --dim: #7a7469;
  --muted: #bab3a5;
  --border: rgba(0, 0, 0, 0.06);
  --border-strong: rgba(0, 0, 0, 0.1);
  --overlay-bg: rgba(246, 243, 236, 0.96);
  --code-bg: rgba(0, 0, 0, 0.04);
  --code-text: #7a5e18;
  --shadow-soft:
    0 12px 48px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.05);
}

/* --- Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

/* ============================================
   BODY
   ============================================ */
body {
  background-color: var(--bg);
  background-image: radial-gradient(
    circle at var(--mouse-x) var(--mouse-y),
    var(--bg-elevated) 0%,
    transparent 45%
  );
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition:
    background-color 0.6s var(--ease-in-out),
    color 0.5s var(--ease-in-out);
  overflow-x: hidden;
}

/* Vignette */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle, transparent 20%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
  z-index: 9998;
}
[data-theme="light"] body::before {
  background: radial-gradient(
    circle,
    transparent 20%,
    rgba(164, 126, 40, 0.05) 100%
  );
}

/* Noise texture overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.3;
}
[data-theme="light"] body::after {
  opacity: 0.18;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}
.hidden {
  display: none !important;
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.1s !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ============================================
   PROGRESS BAR
   ============================================ */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  z-index: 1001;
  transition: width 0.12s linear;
  transform-origin: left;
}

/* ============================================
   TOP NAV
   ============================================ */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  z-index: 900;
  background: transparent;
  transition:
    background-color 0.4s ease,
    transform 0.4s var(--ease-out),
    border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.top-nav.scrolled {
  background: var(--overlay-bg);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border-bottom-color: var(--border);
}
.top-nav.nav-hidden {
  transform: translateY(-100%);
}

.nav-brand {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.brand-sep {
  color: var(--muted);
}
.top-nav.scrolled .nav-brand {
  opacity: 1;
}

.nav-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-btn {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  padding: 7px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}
.nav-btn-icon {
  padding: 7px 12px;
  font-size: 0.75rem;
  font-weight: 600;
}
.shortcuts-key {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1;
}

.theme-icon {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--dim);
  transition: all 0.3s var(--ease-spring);
}
[data-theme="light"] .theme-icon {
  background: var(--accent);
  border-color: var(--accent);
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--dim);
  cursor: pointer;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  transition: all 0.35s var(--ease-out);
  pointer-events: none;
  backdrop-filter: blur(12px);
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}
.scroll-top:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-3px) scale(1);
}

/* ============================================
   WRAPPER
   ============================================ */
.wrapper {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 28px;
}
@media (min-width: 600px) {
  .wrapper {
    padding: 0 48px;
  }
}

/* ============================================
   SITE HEADER
   ============================================ */
.site-header {
  position: relative;
  padding-top: 28vh;
  padding-bottom: 10vh;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.site-header::before {
  content: "";
  position: absolute;
  top: 40%;
  left: -20%;
  width: 140%;
  height: 60%;
  background: radial-gradient(
    ellipse at 40% 50%,
    rgba(201, 162, 77, 0.07) 0%,
    transparent 65%
  );
  pointer-events: none;
  z-index: 0;
}
[data-theme="light"] .site-header::before {
  background: radial-gradient(
    ellipse at 40% 50%,
    rgba(164, 126, 40, 0.05) 0%,
    transparent 65%
  );
}

.site-header > * {
  position: relative;
  z-index: 1;
}

.header-classification {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transform: translateY(20px);
  animation: headerReveal 0.9s var(--ease-out) 0.2s forwards;
}
.accent-line {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.site-title {
  font-family: var(--font-headline);
  font-size: clamp(5rem, 18vw, 12rem);
  line-height: 0.84;
  letter-spacing: 0.02em;
  color: var(--headline);
  margin: 0;
  display: block;
}

.site-title span {
  display: inline-block;
  transform: translateY(40px);
  opacity: 0;
  animation: titleRise 1.1s var(--ease-out) 0.3s forwards;
}

.title-rule {
  width: 56px;
  height: 3px;
  background: var(--accent);
  margin: 24px 0 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: headerReveal 0.9s var(--ease-out) 0.5s forwards;
}

.site-author {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: headerReveal 0.9s var(--ease-out) 0.6s forwards;
}

.site-desc {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.65;
  color: var(--dim);
  max-width: 100%;
  font-style: italic;
  font-weight: 400;
  opacity: 0;
  transform: translateY(20px);
  animation: headerReveal 0.9s var(--ease-out) 0.75s forwards;
}

.header-scroll-cue {
  margin-top: 8vh;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.3s ease;
  opacity: 0;
  animation:
    headerReveal 0.9s var(--ease-out) 1.1s forwards,
    subtleDrift 2.5s ease-in-out 2s infinite;
}
.header-scroll-cue:hover {
  color: var(--accent);
}

/* ============================================
   KEYFRAMES
   ============================================ */
@keyframes headerReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes titleRise {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes subtleDrift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}
@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
@keyframes scanIn {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes toastSlide {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes scanlineSweep {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(200%);
  }
}

/* ============================================
   FILTER BAR
   ============================================ */
.filter-bar {
  position: relative;
  top: 54px;
  z-index: 1;
  background: var(--bg);
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  animation: fadeSlideIn 0.6s var(--ease-out) 0.5s both;
  transition:
    background 0.3s ease,
    backdrop-filter 0.3s ease;
}
.filter-bar.elevated {
  background: var(--overlay-bg);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom-color: var(--border-strong);
}

.search-wrap {
  position: relative;
  margin-bottom: 12px;
}
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 10px 36px 10px 36px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
  outline: none;
  cursor: text;
}
.search-input:focus {
  border-color: var(--accent);
  background: var(--bg-surface);
}
.search-input::placeholder {
  color: var(--muted);
}

.search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.search-clear:hover {
  color: var(--accent);
}

.tag-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.tag-bar-label {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 4px;
  white-space: nowrap;
}
.tag-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag-pill {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.tag-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}
.tag-pill.active {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
}

.tag-clear {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}
.tag-clear:hover {
  opacity: 1;
}

.filter-count {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 10px;
}

/* ============================================
   DISPATCH ROWS — Bento lift effect
   ============================================ */
.dispatch-row {
  position: relative;
  margin: 0 -10px;
  padding: 0 10px;
  border-bottom: 1px solid var(--border);
  border-radius: 4px;
  transition:
    transform 0.4s var(--ease-out),
    background 0.4s ease,
    box-shadow 0.4s ease;
}
.dispatch-row:last-child {
  border-bottom: none;
}
.dispatch-row:hover:not(.expanded) {
  background: var(--bg-elevated);
  transform: translateX(8px);
  box-shadow: var(--shadow-soft);
  z-index: 10;
  border-bottom-color: transparent;
}
.dispatch-row.expanded {
  background: var(--bg-elevated);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-top: 20px;
  margin-bottom: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

/* Left accent edge sweep */
.dispatch-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition:
    transform 0.35s var(--ease-out),
    opacity 0.35s ease;
  opacity: 0;
  border-radius: 0 1px 1px 0;
}
.dispatch-row:hover::before {
  transform: scaleY(1);
  opacity: 0.5;
}
.dispatch-row.expanded::before {
  transform: scaleY(1);
  opacity: 0;
  width: 0;
}

/* Per-article reading progress bar */
.row-progress-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.dispatch-row.expanded .row-progress-track {
  opacity: 1;
}
.row-progress-fill {
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--accent), var(--accent-bright));
  border-radius: 2px;
  transition: height 0.12s linear;
}

.dispatch-header {
  padding: 34px 0 30px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.dispatch-header:hover .dispatch-title {
  color: var(--accent);
}

.dispatch-meta-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  flex-wrap: wrap;
}
.meta-num {
  color: var(--accent);
}
.meta-sep {
  color: var(--muted);
}
.meta-date,
.meta-time {
  color: var(--muted);
}
.meta-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-left: auto;
}

.tag-badge {
  font-size: 0.5rem;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 2px;
  transition: opacity 0.2s ease;
}
.dispatch-row:hover .tag-badge {
  opacity: 0.9;
}

.dispatch-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--headline);
  margin: 0;
  transition: transform 0.4s var(--transition-smooth);
}
.dispatch-row.expanded .dispatch-title {
  color: var(--accent);
}

.dispatch-subtitle {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-style: italic;
  font-weight: 400;
  color: var(--dim);
  line-height: 1.5;
  margin: 8px 0 0;
  max-width: 600px;
}

.dispatch-excerpt {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  line-height: 1.72;
  color: var(--muted);
  margin: 12px 0 0;
  max-width: 580px;
}
.dispatch-row.expanded .dispatch-excerpt {
  display: none;
}

.dispatch-toggle-hint {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.54rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.75;
  transition: opacity 0.2s ease;
}
.dispatch-header:hover .dispatch-toggle-hint {
  opacity: 1;
}
.dispatch-toggle-hint svg {
  transition: transform 0.4s var(--ease-spring);
}
.dispatch-row.expanded .dispatch-toggle-hint svg {
  transform: rotate(180deg);
}

.dispatch-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.5s var(--ease-in-out),
    opacity 0.25s ease;
}
.dispatch-row.expanded .dispatch-body {
  max-height: 12000px;
  opacity: 1;
  transition:
    max-height 0.9s var(--ease-out),
    opacity 0.5s ease 0.1s;
}

.dispatch-body-inner {
  padding-bottom: 56px;
  border-top: 1px solid var(--border);
  padding-top: 40px;
}

.dispatch-author-bar {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 40px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.dispatch-author-bar .author-name {
  color: var(--dim);
}
.dispatch-author-bar .sep {
  color: var(--accent);
}

.share-btn {
  margin-left: auto;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.share-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}
.share-btn svg {
  flex-shrink: 0;
}

/* ============================================
   ARTICLE BODY TYPOGRAPHY
   ============================================ */
.body-content p {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2vw, 1.18rem);
  line-height: 1.84;
  color: var(--text-body);
  margin-bottom: 1.6em;
  max-width: 640px;
}
@media (min-width: 700px) {
  .body-content p {
    text-align: justify;
    text-justify: inter-word;
  }
}

/* Drop cap */
.body-content > p:first-child::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 4em;
  line-height: 0.78;
  margin: 0.06em 0.14em 0 -0.02em;
  color: var(--accent);
  font-weight: 700;
}

.body-content strong {
  font-weight: 600;
  color: var(--headline);
}
.body-content em {
  font-style: italic;
}
.body-content code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--code-bg);
  color: var(--code-text);
  padding: 0.14em 0.4em;
  border-radius: 3px;
  border: 1px solid var(--border);
}

.body-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.5vw, 2.2rem);
  letter-spacing: 0.01em;
  color: var(--headline);
  margin: 2.8em 0 0.9em;
  line-height: 1.15;
  font-weight: 700;
}
.body-content h3 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 2.4em 0 1.1em;
}

/* ============================================
   PULL QUOTE — Editorial magazine style
   ============================================ */
.body-content blockquote {
  position: relative;
  margin: 4em auto;
  padding: 0;
  max-width: 500px;
  background: none;
  border: none;
  text-align: center;
}

/* Oversized decorative opening mark */
.body-content blockquote::before {
  content: "\201C";
  display: block;
  font-family: var(--font-display);
  font-size: 5.5rem;
  line-height: 0.75;
  color: var(--accent);
  opacity: 0.45;
  margin-bottom: 0.1em;
  font-style: normal;
}

/* Thin gold rule above the text */
.body-content blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  font-style: italic;
  font-weight: 400;
  color: var(--headline);
  line-height: 1.6;
  text-align: center;
  margin-bottom: 1.4em;
  max-width: none;
  border-top: 1px solid var(--border-strong);
  padding-top: 1.2em;
}

/* Suppress the inline quotes — the ::before mark replaces them */
.body-content blockquote p::before,
.body-content blockquote p::after {
  display: none;
}

/* Closing rule + decorative accent */
.body-content blockquote::after {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto;
  opacity: 0.6;
}

/* Horizontal rule */
.body-content hr {
  border: none;
  margin: 3em auto;
  max-width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}
.body-content hr::before {
  content: "· · ·";
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.5em;
  color: var(--muted);
  display: block;
  text-align: center;
  width: 100%;
}

/* Lists */
.body-content ul,
.body-content ol {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2vw, 1.18rem);
  line-height: 1.84;
  color: var(--text-body);
  margin: 0 0 1.8em 0;
  padding: 0;
  list-style: none;
  max-width: 620px;
}
.body-content ul > li {
  position: relative;
  padding-left: 1.6em;
  margin-bottom: 0.75em;
}
.body-content ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 1px;
}
.body-content ol {
  counter-reset: dispatch-list;
}
.body-content ol > li {
  position: relative;
  padding-left: 2.6em;
  margin-bottom: 0.85em;
  counter-increment: dispatch-list;
}
.body-content ol > li::before {
  content: counter(dispatch-list, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  font-size: 0.7em;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.84;
}

.body-content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-dim);
  transition: border-color 0.2s ease;
}
.body-content a:hover {
  border-bottom-color: var(--accent);
}

/* ============================================
   TERMINAL LOADING STATE
   ============================================ */
.loading-terminal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 14vh 0 14vh;
  gap: 16px;
}
.terminal-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.terminal-prompt {
  color: var(--accent);
  user-select: none;
}
.terminal-text {
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.terminal-cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
  font-weight: 400;
}
.terminal-messages {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.terminal-prev-line {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  animation: scanIn 0.3s ease both;
}
.terminal-prev-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201, 162, 77, 0.25),
    transparent
  );
  transform: translateX(-100%);
  animation: scanlineSweep 0.9s var(--ease-out) both;
}
.terminal-check {
  color: var(--accent);
  margin-right: 2px;
}
.terminal-sub {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
  opacity: 0.7;
}

/* Legacy spinner */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15vh 0;
  gap: 20px;
}
.loading-spinner {
  width: 28px;
  height: 28px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
.loading-text {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--dim);
}
.loading-sub {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: -10px;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
  padding: 80px 0;
  text-align: center;
  animation: fadeSlideIn 0.5s ease both;
}
.empty-icon {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  color: var(--muted);
  margin-bottom: 20px;
}
.empty-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--dim);
}
.empty-reset {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: none;
  border: 1px solid var(--accent-dim);
  border-radius: 3px;
  padding: 8px 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.empty-reset:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  padding-bottom: 12vh;
}
.footer-rule {
  width: 56px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 36px;
}
.bio-name {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.bio-text {
  font-family: var(--font-display);
  font-size: clamp(0.92rem, 1.8vw, 1.05rem);
  line-height: 1.7;
  color: var(--dim);
  max-width: 100%;
  font-style: italic;
  font-weight: 400;
}
.colophon {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 44px;
}

/* ============================================
   KEYBOARD SHORTCUTS MODAL
   ============================================ */
.shortcuts-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeSlideIn 0.25s var(--ease-out) both;
}
.shortcuts-overlay.hidden {
  display: none !important;
}
.shortcuts-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 28px 32px;
  width: 100%;
  max-width: 340px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}
.shortcuts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.shortcuts-title {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
}
.shortcuts-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 3px;
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.shortcuts-close:hover {
  color: var(--text);
}
.shortcuts-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.shortcut-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
kbd {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  padding: 4px 10px;
  color: var(--text);
  min-width: 36px;
  text-align: center;
  box-shadow: 0 2px 0 var(--border-strong);
}
.shortcut-row span {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  color: var(--dim);
}

/* ============================================
   COPY TOAST
   ============================================ */
.copy-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 10px 20px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  z-index: 2000;
  animation: toastSlide 0.3s var(--ease-out) both;
  pointer-events: none;
  backdrop-filter: blur(12px);
  white-space: nowrap;
}
.copy-toast.hidden {
  display: none !important;
}

/* ============================================
   SAFE AREA
   ============================================ */
@supports (padding: max(0px)) {
  .top-nav {
    padding-left: max(28px, env(safe-area-inset-left));
    padding-right: max(28px, env(safe-area-inset-right));
  }
  .wrapper {
    padding-left: max(28px, env(safe-area-inset-left));
    padding-right: max(28px, env(safe-area-inset-right));
  }
}

/* ============================================
   PRINT
   ============================================ */
@media print {
  .top-nav,
  .progress-bar,
  .scroll-top,
  .filter-bar,
  .shortcuts-overlay,
  .copy-toast,
  .share-btn {
    display: none;
  }
  body {
    background: white;
    color: black;
  }
  body::before,
  body::after {
    display: none;
  }
  .dispatch-row {
    break-inside: avoid;
  }
  .dispatch-body {
    max-height: none !important;
    opacity: 1 !important;
    overflow: visible !important;
  }
  .wrapper {
    max-width: 100%;
    padding: 0;
  }
  .site-header {
    padding-top: 2em;
    padding-bottom: 2em;
    min-height: auto;
  }
}
