/* ============================================
   FAUCI FILES — Design System
   Aesthetic: Declassified / Editorial / Archival
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Libre+Franklin:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --bg-primary: #0a0a0f;
  --bg-secondary: #101018;
  --bg-card: #14141e;
  --bg-card-hover: #1a1a28;
  --bg-surface: #1c1c2a;
  --bg-hero: #06060a;

  --accent-crimson: #c41e3a;
  --accent-crimson-dim: #8b1528;
  --accent-crimson-glow: rgba(196, 30, 58, 0.15);
  --accent-gold: #c9a84c;
  --accent-gold-dim: #8a7535;
  --accent-gold-glow: rgba(201, 168, 76, 0.1);

  --text-primary: #e8e6e3;
  --text-secondary: #b0aead;
  --text-muted: #6b6b78;
  --text-heading: #f0eeeb;

  --border-default: #2a2a38;
  --border-subtle: #1e1e2c;
  --border-accent: var(--accent-crimson-dim);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Libre Franklin', 'Helvetica Neue', Helvetica, sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Layout */
  --max-width: 900px;
  --max-width-wide: 1100px;
  --nav-height: 60px;

  /* Transitions */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

::selection {
  background: var(--accent-crimson);
  color: #fff;
}

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

a:hover {
  color: #e0c56a;
  text-decoration: underline;
}

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

/* --- Navigation --- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-inner {
  width: 100%;
  max-width: var(--max-width-wide);
  padding: 0 var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: 0.02em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-brand:hover {
  color: var(--accent-crimson);
  text-decoration: none;
}

.nav-brand .brand-accent {
  color: var(--accent-crimson);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: var(--space-sm) var(--space-md);
  border-radius: 4px;
  transition: all 0.2s var(--ease-out);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-heading);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  padding: var(--space-sm) var(--space-md);
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: all 0.2s var(--ease-out);
}

.nav-dropdown-toggle:hover {
  color: var(--text-heading);
  background: rgba(255, 255, 255, 0.05);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + var(--space-xs));
  right: 0;
  min-width: 220px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  padding: var(--space-sm) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s var(--ease-out);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-transform: none;
  letter-spacing: 0;
}

.nav-dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-heading);
  text-decoration: none;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  transition: all 0.3s var(--ease-out);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  padding: calc(var(--nav-height) + var(--space-4xl)) var(--space-xl) var(--space-4xl);
  text-align: center;
  background: var(--bg-hero);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(196, 30, 58, 0.015) 2px,
      rgba(196, 30, 58, 0.015) 4px
    );
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--bg-primary));
  pointer-events: none;
}

.hero-stamp {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-crimson);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  padding: var(--space-sm) var(--space-lg);
  border: 2px solid var(--accent-crimson);
  margin-bottom: var(--space-xl);
  transform: rotate(-1deg);
  opacity: 0.9;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  color: var(--text-heading);
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.hero h1 .accent {
  color: var(--accent-crimson);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.8;
}

.hero-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.hero-meta span {
  margin: 0 var(--space-sm);
}

.hero-meta .separator {
  color: var(--border-default);
}

/* --- Main Content --- */
.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-xl);
}

/* --- Section Headings --- */
.section-heading {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--border-default);
  position: relative;
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--accent-crimson);
}

/* --- Essay Toggle (Overview) --- */
.essay-section {
  margin-bottom: var(--space-3xl);
}

.essay-toggle {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-gold);
  background: none;
  border: 1px solid var(--accent-gold-dim);
  padding: var(--space-sm) var(--space-lg);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  letter-spacing: 0.02em;
}

.essay-toggle:hover {
  background: var(--accent-gold-glow);
  border-color: var(--accent-gold);
}

.essay-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out), opacity 0.3s var(--ease-out);
  opacity: 0;
}

.essay-content.open {
  max-height: 5000px;
  opacity: 1;
  margin-top: var(--space-xl);
}

.essay-content p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  font-size: 0.95rem;
}

.essay-content p strong {
  color: var(--text-primary);
}

/* --- Timeline / Background --- */
.timeline {
  position: relative;
  padding-left: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border-default);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border-subtle);
}

.timeline-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-2xl) + 2px);
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-crimson);
  border: 2px solid var(--bg-primary);
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-crimson);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.timeline-item h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-heading);
  margin-bottom: var(--space-sm);
}

.timeline-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Search --- */
.search-section {
  margin-bottom: var(--space-2xl);
}

.search-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  padding: var(--space-md) var(--space-lg);
  transition: all 0.2s var(--ease-out);
  outline: none;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  border-color: var(--accent-crimson-dim);
  box-shadow: 0 0 0 3px var(--accent-crimson-glow);
}

/* --- Reference Items --- */
.ref-year-group {
  margin-bottom: var(--space-2xl);
}

.ref-year-heading {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-crimson);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-subtle);
}

.ref-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-crimson-dim);
  border-radius: 0 6px 6px 0;
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  transition: all 0.2s var(--ease-out);
  position: relative;
}

.ref-item:hover {
  background: var(--bg-card-hover);
  border-left-color: var(--accent-crimson);
  transform: translateX(2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.ref-item.hidden {
  display: none;
}

.ref-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}

.ref-title a {
  color: var(--text-heading);
  text-decoration: none;
}

.ref-title a:hover {
  color: var(--accent-gold);
}

.ref-authors {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

.ref-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}

.ref-description {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}

.ref-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 3px;
  margin-right: var(--space-xs);
  margin-bottom: var(--space-xs);
}

.ref-tag.foia {
  color: var(--accent-gold);
  background: var(--accent-gold-glow);
  border: 1px solid var(--accent-gold-dim);
}

.ref-tag.congressional {
  color: #5b9bd5;
  background: rgba(91, 155, 213, 0.1);
  border: 1px solid rgba(91, 155, 213, 0.3);
}

.ref-tag.investigation {
  color: var(--accent-crimson);
  background: var(--accent-crimson-glow);
  border: 1px solid var(--accent-crimson-dim);
}

.ref-tag.testimony {
  color: #7bc47f;
  background: rgba(123, 196, 127, 0.1);
  border: 1px solid rgba(123, 196, 127, 0.3);
}

.ref-tag.legal {
  color: #c49bde;
  background: rgba(196, 155, 222, 0.1);
  border: 1px solid rgba(196, 155, 222, 0.3);
}

.ref-tag.financial {
  color: #e8a87c;
  background: rgba(232, 168, 124, 0.1);
  border: 1px solid rgba(232, 168, 124, 0.3);
}

.ref-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.ref-actions a {
  text-decoration: none;
}

.copy-ama {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--border-default);
  border-radius: 3px;
  padding: 3px 10px;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.copy-ama:hover {
  color: var(--text-secondary);
  border-color: var(--text-muted);
}

.copy-ama.copied {
  color: var(--accent-gold);
  border-color: var(--accent-gold-dim);
}

/* --- Copy Feedback Toast --- */
#copy-feedback {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-gold);
  background: var(--bg-surface);
  border: 1px solid var(--accent-gold-dim);
  border-radius: 6px;
  padding: var(--space-sm) var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-out);
  z-index: 9999;
  pointer-events: none;
}

#copy-feedback.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* --- Back to Top --- */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 42px;
  height: 42px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-out);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  background: var(--accent-crimson-dim);
  border-color: var(--accent-crimson);
  color: var(--text-heading);
}

/* --- Key Figure Cards --- */
.figure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-3xl);
}

.figure-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: var(--space-xl);
  transition: all 0.2s var(--ease-out);
}

.figure-card:hover {
  border-color: var(--border-default);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.figure-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text-heading);
  margin-bottom: var(--space-xs);
}

.figure-card .figure-role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-crimson);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}

.figure-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Quote Block --- */
.quote-block {
  border-left: 3px solid var(--accent-crimson);
  background: var(--accent-crimson-glow);
  padding: var(--space-lg) var(--space-xl);
  margin: var(--space-xl) 0;
  border-radius: 0 6px 6px 0;
}

.quote-block p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.quote-block cite {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --- Stat Grid --- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-2xl) 0;
}

.stat-card {
  text-align: center;
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
}

.stat-card .stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent-crimson);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat-card .stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.4;
}

/* --- Page Header (for sub-pages) --- */
.page-header {
  padding: calc(var(--nav-height) + var(--space-3xl)) var(--space-xl) var(--space-2xl);
  background: var(--bg-hero);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(196, 30, 58, 0.01) 2px,
      rgba(196, 30, 58, 0.01) 4px
    );
  pointer-events: none;
}

.page-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--text-heading);
  margin-bottom: var(--space-sm);
}

.page-header .page-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 300;
  max-width: 600px;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-3xl) var(--space-xl) var(--space-xl);
  background: var(--bg-secondary);
}

.footer-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-2xl);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: var(--space-sm);
}

.footer-description {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 350px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: var(--space-3xl);
}

.footer-links-group h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-md);
}

.footer-links-group ul {
  list-style: none;
}

.footer-links-group li {
  margin-bottom: var(--space-sm);
}

.footer-links-group a {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-links-group a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  max-width: var(--max-width-wide);
  margin: var(--space-2xl) auto 0;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-copyright {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.footer-disclaimer {
  font-size: 0.72rem;
  color: var(--text-muted);
  max-width: 450px;
  text-align: right;
  line-height: 1.5;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-default);
    padding: var(--space-md);
    gap: 0;
  }

  .nav-links.menu-open {
    display: flex;
  }

  .nav-links a,
  .nav-dropdown-toggle {
    width: 100%;
    text-align: left;
    padding: var(--space-md);
    border-radius: 0;
  }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.03);
    display: none;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding: calc(var(--nav-height) + var(--space-2xl)) var(--space-lg) var(--space-2xl);
  }

  .main-content {
    padding: var(--space-2xl) var(--space-lg);
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    flex-direction: column;
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-disclaimer {
    text-align: center;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .figure-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .hero-stamp {
    font-size: 0.65rem;
  }
}

/* --- Skip Navigation --- */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--accent-crimson);
  color: #fff;
  padding: var(--space-sm) var(--space-lg);
  z-index: 9999;
  font-size: 0.85rem;
}
.skip-nav:focus {
  top: 0;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* --- Print Stylesheet --- */
@media print {
  body { background: #fff; color: #000; }
  .site-nav, .hamburger, #back-to-top, .essay-toggle, .copy-ama, #copy-feedback { display: none !important; }
  .hero { background: #fff; padding-top: 2rem; }
  .hero h1 .accent { color: #000; }
  .hero-stamp { border-color: #000; color: #000; }
  .ref-item { border-color: #ccc; background: #fff; }
  .ref-tag { border-color: #999; color: #333; background: transparent; }
  .quote-block { border-color: #333; background: transparent; }
  .site-footer { background: #fff; border-color: #ccc; }
  a { color: #000; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.7rem; color: #666; }
}
