:root {
  /* v0 Design System - Warm, Editorial Palette */
  --background: #faf9f7;
  --foreground: #1a1a1a;
  --card: #ffffff;
  --muted: #6b7280;
  --muted-foreground: #9ca3af;
  --accent: #f3f4f6;
  --accent-foreground: #374151;
  --primary: #7a3b3b;
  --primary-foreground: #ffffff;
  --secondary: #f9fafb;
  --secondary-foreground: #111827;
  --destructive: #dc2626;
  --destructive-foreground: #ffffff;
  --border: #e5e7eb;
  --input: #f9fafb;
  --ring: #d1d5db;

  /* Typography Scale */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;

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

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

  /* Layout */
  --max-width: 1280px;
  --container-padding: 1rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--foreground);
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

h5 {
  font-size: 1.125rem;
  font-weight: 600;
}

h6 {
  font-size: 1rem;
  font-weight: 600;
}

p {
  margin: 0 0 var(--spacing-lg) 0;
  line-height: 1.7;
}

section {
  scroll-margin-top: 5.5rem;
}

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

a:hover {
  color: var(--primary);
  text-decoration: underline;
}

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

.container {
  width: 100%;
  max-width: calc(var(--max-width) + (2 * var(--container-padding)));
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* Utility Classes */
.text-sm { font-size: 0.875rem; line-height: 1.5; }
.text-base { font-size: 1rem; line-height: 1.6; }
.text-lg { font-size: 1.125rem; line-height: 1.7; }
.text-xl { font-size: 1.25rem; line-height: 1.6; }
.text-2xl { font-size: 1.5rem; line-height: 1.4; }
.text-3xl { font-size: 1.875rem; line-height: 1.3; }
.text-4xl { font-size: 2.25rem; line-height: 1.2; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-muted { color: var(--muted); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-primary { color: var(--primary); }

.bot-trap-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.bg-background { background-color: var(--background); }
.bg-card { background-color: var(--card); }
.bg-muted { background-color: var(--muted); }
.bg-primary { background-color: var(--primary); }

.border { border: 1px solid var(--border); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }

.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.py-12 { padding-top: var(--spacing-3xl); padding-bottom: var(--spacing-3xl); }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }

.px-4 { padding-left: var(--spacing-lg); padding-right: var(--spacing-lg); }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-6 { margin-bottom: var(--spacing-2xl); }
.mb-8 { margin-bottom: var(--spacing-3xl); }
.mb-12 { margin-bottom: 3rem; }

.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }

.mx-auto { margin-left: auto; margin-right: auto; }

.podcast-embed-shell {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.podcast-embed-shell iframe {
  display: block;
  width: 100%;
  border: 0;
}

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: var(--spacing-lg); }
.gap-6 { gap: var(--spacing-2xl); }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (min-width: 768px) {
  .md\\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg\\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.site-alert {
  background: var(--foreground);
  color: var(--background);
  font-size: 0.875rem;
  padding: var(--spacing-sm) 0;
}

.site-alert-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
}

.site-alert p {
  margin: 0;
}

.site-alert a {
  color: var(--background);
  font-weight: 500;
}

.quick-exit-link {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.quick-exit-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(250, 249, 247, 0.95);
  border-bottom: 1px solid var(--border);
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
  padding: var(--spacing-lg) 0;
  min-height: 5rem;
}

.brand-mark {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.brand-kicker {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--foreground);
}

.brand-subtitle {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-weight: 500;
}

body.nav-open {
  overflow: hidden;
}

.nav-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
  border-radius: var(--radius-md);
}

.nav-toggle span {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--foreground);
  margin: 3px 0;
  transition: all 0.3s ease;
}

.site-nav {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(250, 249, 247, 0.98);
  backdrop-filter: blur(16px);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: calc(var(--spacing-3xl) + 1rem) var(--container-padding) var(--spacing-3xl);
}

.site-nav.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.nav-panel {
  width: min(640px, 100%);
  display: grid;
  gap: var(--spacing-3xl);
}

.nav-panel-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--spacing-lg);
}

.nav-brand {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
}

.nav-brand-note {
  margin: 0.5rem 0 0;
  color: var(--muted-foreground);
  font-size: 0.95rem;
  max-width: 30rem;
}

.nav-close {
  background: none;
  border: none;
  color: var(--foreground);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.nav-menu {
  display: grid;
  gap: 0.75rem;
}

.nav-menu a {
  display: block;
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-lg);
  background: var(--card);
  color: var(--foreground);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-menu a:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.nav-menu .nav-cta {
  margin-top: var(--spacing-md);
  display: inline-flex;
  justify-content: center;
  width: 100%;
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius-lg);
}

.nav-newsletter {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
}

.nav-newsletter-title {
  margin: 0 0 var(--spacing-md) 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
}

.nav-newsletter-form {
  display: grid;
  gap: var(--spacing-sm);
}

.nav-newsletter-form input {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font: inherit;
  color: var(--foreground);
  background: var(--secondary);
}

.nav-newsletter-form button {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-lg);
  border: none;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .site-nav {
    padding-top: calc(var(--spacing-3xl) + 2rem);
    padding-bottom: var(--spacing-3xl);
  }
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(24, 20, 18, 0.92) 0%, rgba(24, 20, 18, 0.82) 36%, rgba(24, 20, 18, 0.48) 63%, rgba(24, 20, 18, 0.5) 100%),
    url('/assets/backgrounds/memorial-concept.png') center/cover no-repeat;
  color: #f7f2eb;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(180deg, rgba(24, 20, 18, 0), rgba(24, 20, 18, 0.86));
}

.hero-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.9fr);
  gap: 2rem;
  padding: 5.5rem 0 6.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f2d9c9;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.hero h1,
.page-hero h1,
.section-heading h2,
.story-page h1,
.story-feature h2,
.about-grid h2,
.resource-layout h2,
.admin-shell h1,
.admin-shell h2,
.timeline-heading h2 {
  margin: 0 0 1rem;
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.08;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  max-width: 11ch;
}

.hero h1 span {
  color: #dfcba4;
  font-style: italic;
}

.hero p {
  max-width: 37rem;
  font-size: 1.18rem;
  color: rgba(247, 242, 235, 0.88);
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

.button,
button.button,
input[type="submit"].button {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.9rem 1.3rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover,
button.button:hover,
input[type="submit"].button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--burgundy);
  color: #fff;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.button-ghost {
  background: transparent;
  color: var(--burgundy);
  border-color: rgba(107, 46, 46, 0.3);
}

.button-danger {
  background: #7a3d35;
  color: #fff;
}

.admin-main .button-secondary,
.admin-form .button-secondary,
.admin-subform .button-secondary {
  background: transparent;
  color: var(--foreground);
  border-color: var(--border);
}

.admin-main .button-secondary:hover,
.admin-form .button-secondary:hover,
.admin-subform .button-secondary:hover {
  background: var(--accent);
  border-color: var(--border);
}

.hero-panel {
  align-self: end;
  background: rgba(250, 246, 241, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-panel p {
  margin-bottom: 0;
  font-size: 1rem;
}

.hero-panel .quote-panel {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.75rem;
  color: #fff6ea;
  margin-bottom: 1rem;
}

.surface-section {
  padding: 5.5rem 0;
}

.surface-light {
  background: var(--offwhite);
}

.surface-ink {
  background:
    radial-gradient(circle at top left, rgba(184, 155, 94, 0.18), transparent 35%),
    linear-gradient(180deg, #211d1a 0%, #181513 100%);
  color: #efe9e2;
}

.surface-muted {
  background: var(--surface);
}

.section-heading {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.section-heading p {
  max-width: 44rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.surface-ink .section-heading p,
.surface-ink .story-card p,
.surface-ink .story-meta,
.surface-ink .mission-card p,
.surface-ink .resource-card p {
  color: rgba(239, 233, 226, 0.78);
}

.mission-grid,
.story-grid,
.signal-grid,
.resource-grid,
.admin-cards,
.story-section-grid {
  display: grid;
  gap: 1.5rem;
}

.mission-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mission-card,
.signal-card,
.story-card,
.resource-card,
.content-panel,
.stat-card,
.admin-card,
.timeline-card,
.story-section,
.table-shell,
.admin-form,
.admin-login-card,
.featured-story-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.surface-ink .mission-card,
.surface-ink .story-card,
.surface-ink .signal-card,
.surface-ink .resource-card,
.surface-ink .featured-story-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.mission-card,
.signal-card,
.resource-card,
.content-panel,
.stat-card,
.admin-card,
.story-section {
  padding: 1.5rem;
}

.mission-card h3,
.signal-card h3,
.resource-card h3,
.story-card h3,
.content-panel h3,
.stat-card h3,
.admin-card h3,
.story-section h2,
.timeline-card h3,
.featured-story-card h3 {
  margin: 0 0 0.8rem;
  font-family: "Playfair Display", Georgia, serif;
}

.story-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.story-card {
  overflow: hidden;
}

.story-card-media {
  position: relative;
  aspect-ratio: 1 / 1.08;
  background: linear-gradient(180deg, rgba(107, 46, 46, 0.08), rgba(184, 155, 94, 0.12));
}

.story-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.story-badge,
.demo-banner span,
.meta-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.story-badge,
.meta-pill,
.status-neutral {
  background: rgba(184, 155, 94, 0.16);
  color: var(--ink);
}

.status-published {
  background: rgba(63, 115, 78, 0.14);
  color: #1d5030;
}

.status-draft {
  background: rgba(107, 46, 46, 0.12);
  color: var(--burgundy);
}

.status-review {
  background: rgba(184, 155, 94, 0.18);
  color: #6e5725;
}

.status-new {
  background: rgba(46, 54, 71, 0.12);
  color: #2e3647;
}

.status-in-review,
.status-needs-follow-up {
  background: rgba(184, 155, 94, 0.18);
  color: #6e5725;
}

.status-converted {
  background: rgba(63, 115, 78, 0.14);
  color: #1d5030;
}

.status-closed {
  background: rgba(107, 46, 46, 0.12);
  color: var(--burgundy);
}

.status-private {
  background: rgba(46, 54, 71, 0.12);
  color: #2e3647;
}

.story-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(250, 244, 238, 0.92);
}

.story-card-body {
  padding: 1.3rem;
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.tag-row span {
  background: rgba(107, 46, 46, 0.08);
  color: var(--burgundy);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.84rem;
  font-weight: 600;
}

.text-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--dusty-gold);
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  color: #d6bb83;
}

.story-feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 1.5rem;
}

.featured-story-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1fr);
  overflow: hidden;
}

.featured-story-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
}

.featured-story-content {
  padding: 1.8rem;
}

.featured-story-content blockquote,
.story-hero-copy blockquote {
  margin: 1rem 0;
  padding-left: 1rem;
  border-left: 3px solid rgba(184, 155, 94, 0.75);
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.1rem;
}

.surface-ink .featured-story-content blockquote {
  color: #fff1df;
}

.signal-grid,
.resource-grid,
.admin-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-hero {
  padding: 4.5rem 0 2rem;
  background:
    radial-gradient(circle at top left, rgba(184, 155, 94, 0.22), transparent 32%),
    linear-gradient(180deg, rgba(107, 46, 46, 0.12), rgba(107, 46, 46, 0));
}

.page-hero p {
  max-width: 52rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.page-layout,
.resource-layout,
.about-grid,
.contact-grid,
.story-page-grid,
.admin-grid {
  display: grid;
  gap: 1.5rem;
}

.resource-layout,
.about-grid,
.contact-grid,
.story-page-grid,
.admin-grid {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.admin-grid {
  grid-template-columns: minmax(0, 1fr) minmax(420px, 460px);
}

.story-page {
  padding: 2rem 0 5rem;
}

.story-hero-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.5rem;
}

.story-hero-card img {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: linear-gradient(180deg, rgba(107, 46, 46, 0.1), rgba(184, 155, 94, 0.12));
}

.story-hero-copy {
  display: grid;
  align-content: start;
}

.story-hero-copy .story-meta {
  margin: 1rem 0;
}

.demo-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(184, 155, 94, 0.12);
  color: var(--ink);
}

.story-section-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.story-section ul,
.content-panel ul,
.resource-card ul,
.about-grid ul {
  padding-left: 1.15rem;
  margin-bottom: 0;
}

.timeline-list {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-list::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: rgba(107, 46, 46, 0.16);
}

.timeline-list li {
  position: relative;
  padding-left: 2.2rem;
  margin-bottom: 1.25rem;
}

.timeline-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--dusty-gold);
  box-shadow: 0 0 0 5px rgba(184, 155, 94, 0.16);
}

.timeline-list strong {
  display: block;
}

.timeline-list span {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.resource-stack,
.stat-stack {
  display: grid;
  gap: 1rem;
}

.stat-card strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  margin-top: 0.3rem;
  color: var(--burgundy);
}

.search-bar {
  display: flex;
  margin-bottom: 1.5rem;
}

.search-bar input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
  width: 100%;
  border: 1px solid rgba(34, 29, 25, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  padding: 0.9rem 1rem;
  font: inherit;
  color: var(--foreground);
}

select {
  color-scheme: light;
  background-color: #fffdf8;
  color: #221d19;
}

select option {
  color: #221d19;
  background-color: #fffdf8;
}

.mode-list {
  min-height: 2.75rem;
  height: 2.75rem;
}

.mode-list option {
  padding-block: 0.4rem;
}

.mode-picker {
  display: grid;
  gap: 0.75rem;
}

.mode-choice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(34, 29, 25, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.mode-choice:hover {
  border-color: rgba(122, 61, 53, 0.35);
  background: rgba(255, 252, 248, 0.98);
}

.mode-choice input[type="radio"] {
  margin: 0.2rem 0 0;
  accent-color: var(--burgundy);
}

.mode-choice-copy {
  display: grid;
  gap: 0.2rem;
}

.mode-choice-copy strong {
  font-size: 1rem;
  color: var(--foreground);
}

.mode-choice-copy small {
  display: block;
  color: var(--muted);
  line-height: 1.45;
}

.mode-choice:has(input:checked) {
  border-color: rgba(122, 61, 53, 0.55);
  background: rgba(122, 61, 53, 0.08);
  box-shadow: 0 10px 24px rgba(62, 41, 30, 0.08);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.search-bar input {
  padding: 1rem 1.1rem;
  font-size: 1rem;
}

.is-hidden {
  display: none !important;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-grid .full-width {
  grid-column: 1 / -1;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  font-weight: 700;
}

.field-label {
  font-weight: 700;
}

.field small {
  color: var(--muted);
}

.flash {
  margin: 1rem 0 0;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  font-weight: 700;
}

.flash-success {
  background: rgba(45, 122, 77, 0.12);
  color: #1d5030;
}

.flash-error {
  background: rgba(107, 46, 46, 0.12);
  color: var(--burgundy);
}

.flash-warning {
  background: rgba(166, 124, 0, 0.14);
  color: #6f5200;
}

.osint-query-list {
  display: grid;
  gap: 0.55rem;
}

.osint-query-list code {
  display: block;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  background: #f5f5f5;
}

.osint-activity-list {
  margin: 0;
  padding-left: 1.15rem;
}

.site-footer {
  background: var(--foreground);
  color: var(--background);
  margin-top: var(--spacing-3xl);
}

.footer-newsletter {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--spacing-3xl) 0;
}

.footer-newsletter .container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--spacing-3xl);
  align-items: center;
}

.footer-newsletter h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 var(--spacing-sm) 0;
}

.footer-newsletter p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-size: 0.875rem;
}

.footer-newsletter-form {
  display: flex;
  gap: var(--spacing-sm);
  max-width: 400px;
}

.footer-newsletter input {
  flex: 1;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  color: var(--background);
  font-size: 0.875rem;
}

.footer-newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.footer-newsletter button {
  padding: var(--spacing-sm) var(--spacing-lg);
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.footer-newsletter button:hover {
  opacity: 0.9;
}

.footer-main {
  padding: var(--spacing-3xl) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--spacing-3xl);
}

.footer-brand {
  grid-column: 1;
}

.footer-brand h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 var(--spacing-md) 0;
  color: var(--background);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  margin: 0 0 var(--spacing-lg) 0;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: var(--spacing-md);
}

.footer-social a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}

.footer-social a:hover {
  color: var(--background);
}

.footer-section h3 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 var(--spacing-lg) 0;
  color: var(--background);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--background);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--spacing-lg) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-emergency {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* Mobile Footer */
@media (max-width: 768px) {
  .footer-newsletter .container {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    text-align: center;
  }

  .footer-newsletter-form {
    max-width: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: center;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background:
    radial-gradient(circle at 72% 42%, rgba(122, 59, 59, 0.12), transparent 24%),
    linear-gradient(180deg, #f6f0e8 0%, #f7f2eb 100%);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-image-portrait {
  width: min(100%, 48rem);
  height: 100%;
  margin-left: auto;
  margin-right: clamp(2rem, 5vw, 5rem);
  object-fit: contain;
  object-position: center top;
  padding-top: clamp(2.5rem, 8vh, 5.5rem);
  opacity: 0.9;
  filter: saturate(0.96) contrast(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(34, 28, 24, 0.78) 0%,
    rgba(58, 51, 46, 0.64) 34%,
    rgba(115, 104, 96, 0.36) 56%,
    rgba(247, 242, 235, 0.08) 74%,
    rgba(247, 242, 235, 0.04) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}

.hero-badge {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(122, 59, 59, 0.1);
  color: var(--primary);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--spacing-lg);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--foreground);
  margin: 0 0 var(--spacing-lg) 0;
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  margin: 0 0 var(--spacing-lg) 0;
  max-width: 37rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: var(--spacing-2xl);
}

.meta-separator {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted-foreground);
}

.hero-actions {
  display: flex;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: 999px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.button-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.button-primary:hover {
  background: var(--primary);
  opacity: 0.9;
  transform: translateY(-1px);
}

.button-secondary {
  background: transparent;
  color: var(--foreground);
  border-color: var(--border);
}

.button-secondary:hover {
  background: var(--accent);
  border-color: var(--border);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--muted-foreground);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.scroll-line {
  width: 1px;
  height: 2rem;
  background: var(--border);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Stories Section */
.stories-section {
  padding: var(--spacing-3xl) 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-3xl);
}

.section-header-content {
  flex: 1;
}

.section-badge {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: var(--spacing-sm);
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 0;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--primary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.section-link:hover {
  color: var(--primary);
}

.section-link .arrow-icon {
  transition: transform 0.2s ease;
}

.section-link:hover .arrow-icon {
  transform: translateX(2px);
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18.75rem), 1fr));
  gap: var(--spacing-xl);
}

.story-card {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
}

.story-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.story-image-container {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.story-image-container-portrait {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(circle at center top, rgba(255, 255, 255, 0.92), rgba(244, 234, 225, 0.94)),
    linear-gradient(180deg, #f8f3ee 0%, #f1e5da 100%);
}

.story-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transition: transform 0.3s ease;
}

.story-image-portrait {
  object-fit: contain;
  object-position: center top;
  padding-top: 0.75rem;
}

.story-card:hover .story-image {
  transform: scale(1.05);
}

.story-card:hover .story-image-portrait {
  transform: scale(1.015);
}

.story-category {
  position: absolute;
  right: var(--spacing-md);
  bottom: var(--spacing-md);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.8rem;
  background: linear-gradient(135deg, rgba(255, 248, 238, 0.94), rgba(245, 231, 214, 0.88));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(107, 46, 46, 0.14);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(46, 29, 24, 0.12);
  font-size: 0.72rem;
  font-weight: 600;
  color: #7a4a42;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  max-width: calc(100% - (var(--spacing-md) * 2));
}

.story-content {
  padding: var(--spacing-lg);
}

.story-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: var(--spacing-sm);
}

.story-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 0 0 var(--spacing-sm) 0;
  line-height: 1.3;
}

.story-excerpt {
  color: var(--muted-foreground);
  line-height: 1.6;
  margin: 0 0 var(--spacing-lg) 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.story-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .hero-content {
    max-width: none;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    justify-content: center;
  }

  .hero-scroll-indicator {
    display: none;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-md);
  }

  .stories-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
}

.admin-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(184, 155, 94, 0.18), transparent 28%),
    linear-gradient(180deg, #f7f5f2 0%, #efe9e2 100%);
}

.admin-header {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
}

.admin-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.admin-header a {
  text-decoration: none;
  font-weight: 700;
}

.admin-main {
  padding: 2rem 0 4rem;
}

.admin-login-wrap {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 80px);
  padding: 2rem 1rem;
}

.admin-login-card {
  width: min(520px, 100%);
  padding: 2rem;
}

.admin-form {
  padding: 1.5rem;
}

.admin-section-block {
  margin-top: 1.5rem;
}

.section-header-inline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.section-header-inline h2,
.section-header-inline h3 {
  margin-bottom: 0.35rem;
}

.admin-item-stack {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 1.25rem;
}

.admin-subform {
  padding: 1.1rem;
  border: 1px solid rgba(61, 49, 42, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
}

.fact-source-stack {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.fact-source-card {
  padding: 1rem;
  border: 1px solid rgba(61, 49, 42, 0.08);
  border-radius: 14px;
  background: rgba(246, 241, 234, 0.72);
}

.fact-source-card h4 {
  margin: 0 0 0.35rem;
}

.fact-source-card-add {
  margin-top: 1rem;
}

.editorial-map-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.25rem;
}

.table-shell {
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 1rem;
  border-bottom: 1px solid rgba(34, 29, 25, 0.08);
  text-align: left;
  vertical-align: top;
}

th {
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}

.kpi {
  display: block;
  margin-top: 0.35rem;
  font-size: 2rem;
  line-height: 1;
  color: var(--burgundy);
  font-family: "Playfair Display", Georgia, serif;
}

.admin-note {
  margin-top: 1rem;
  color: var(--muted);
}

.detail-stack {
  display: grid;
  gap: 1rem;
}

.preserve-lines {
  white-space: pre-line;
}

.candidate-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.candidate-markdown {
  max-height: 24rem;
  overflow: auto;
  padding: 1rem;
  border: 1px solid rgba(34, 29, 25, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.64);
}

.admin-danger-zone {
  border-color: rgba(122, 61, 53, 0.24);
  background: rgba(122, 61, 53, 0.04);
}

.packet-textarea {
  min-height: 22rem;
  font-family: "Source Code Pro", "Courier New", monospace;
  font-size: 0.95rem;
  line-height: 1.55;
}

.packet-textarea-large {
  min-height: 48rem;
}

.admin-table-toolbar {
  display: grid;
  gap: 1rem;
  padding: 1.4rem 1.4rem 1.2rem;
  border-bottom: 1px solid rgba(34, 29, 25, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.52));
}

.admin-table-toolbar h3 {
  margin: 0;
}

.admin-table-toolbar .admin-note {
  margin: 0.35rem 0 0;
  max-width: 46rem;
}

.search-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.9fr) auto;
  gap: 1rem;
  align-items: end;
}

.search-form-actions {
  align-items: center;
}

.archive-search-panel {
  margin-bottom: 1.5rem;
}

.results-meta {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.96rem;
}

.checklist-list {
  display: grid;
  gap: 0.9rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.checklist-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
}

.checklist-note {
  margin-top: 0.15rem;
}

/* Public refresh */
body {
  font-family: "Source Sans 3", sans-serif;
  color: #2b2521;
  background: #f6f1ea;
  overflow-x: clip;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-kicker,
.hero-title,
.section-title,
.story-title,
.footer-brand h2,
.footer-section h3,
.page-hero h1,
.story-section h2,
.content-panel h3 {
  font-family: "Libre Baskerville", Georgia, serif;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(246, 241, 234, 0.96);
  border-bottom: 1px solid rgba(61, 49, 42, 0.1);
  backdrop-filter: blur(10px);
}

.header-shell {
  min-height: auto;
  padding: 1.2rem 0;
}

.brand-subtitle {
  max-width: 24rem;
  color: #75685f;
  line-height: 1.45;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 1.35rem;
  margin-left: auto;
}

.desktop-nav a {
  color: #3d312a;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
}

.desktop-nav a[aria-current="page"] {
  color: #6b2e2e;
}

.nav-admin-link {
  padding: 0.65rem 1rem;
  border: 1px solid rgba(107, 46, 46, 0.2);
  border-radius: 999px;
}

.nav-admin-link:hover {
  text-decoration: none;
  background: rgba(107, 46, 46, 0.06);
}

.nav-newsletter .button {
  width: fit-content;
}

.hero-section {
  min-height: 82vh;
  padding-top: 6rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(61, 49, 42, 0.08);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(21, 18, 16, 0.78) 0%, rgba(21, 18, 16, 0.58) 38%, rgba(246, 241, 234, 0.18) 68%, rgba(246, 241, 234, 0.32) 100%),
    linear-gradient(180deg, rgba(246, 241, 234, 0.1) 0%, rgba(246, 241, 234, 0.2) 100%);
}

.hero-content {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
}

.hero-badge,
.section-badge {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-badge {
  background: rgba(255, 248, 238, 0.84);
  color: #6b2e2e;
  border: 1px solid rgba(107, 46, 46, 0.12);
}

.hero-title {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 1.05;
  max-width: 11ch;
  color: #fff8f1;
  text-wrap: balance;
}

.hero-description {
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 248, 241, 0.9);
  font-size: 1.15rem;
}

.hero-meta {
  justify-content: center;
  color: rgba(255, 248, 241, 0.75);
}

.meta-separator {
  background: currentColor;
}

.button {
  font-weight: 700;
  border-radius: 999px;
  padding: 0.9rem 1.35rem;
}

.hero-actions {
  justify-content: center;
}

.button-primary {
  background: #7a3e3a;
  color: #fffdf9;
}

.button-secondary {
  color: #fff8f1;
  border-color: rgba(255, 248, 241, 0.3);
  background: rgba(255, 248, 241, 0.08);
}

.button-ghost {
  color: #6b2e2e;
  border-color: rgba(107, 46, 46, 0.2);
  background: transparent;
}

.surface-section {
  padding: 5rem 0;
}

.surface-light {
  background: #f6f1ea;
}

.surface-section:not(.surface-light) {
  background: #fbf7f2;
}

.page-hero {
  padding: 4.5rem 0 2rem;
  background:
    linear-gradient(180deg, rgba(107, 46, 46, 0.06), rgba(107, 46, 46, 0) 70%),
    #f6f1ea;
  border-bottom: 1px solid rgba(61, 49, 42, 0.08);
}

.page-hero .container,
.timeline-heading {
  max-width: 52rem;
}

.page-hero .eyebrow,
.page-hero .section-badge,
.eyebrow {
  background: rgba(107, 46, 46, 0.08);
  color: #7a3e3a;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.7rem);
  color: #2f2723;
  margin-bottom: 1rem;
}

.page-hero p,
.section-header p,
.section-intro {
  font-size: 1.1rem;
  color: #685d55;
  max-width: 44rem;
}

.section-header {
  align-items: end;
  margin-bottom: 2.2rem;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.18;
}

.stories-grid,
.resource-grid,
.signal-grid {
  gap: 1.6rem;
}

.story-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
}

.story-card,
.resource-card,
.content-panel,
.stat-card,
.story-section,
.admin-form {
  background: rgba(255, 252, 248, 0.94);
  border: 1px solid rgba(61, 49, 42, 0.09);
  border-radius: 20px;
  box-shadow: 0 18px 42px rgba(52, 38, 27, 0.08);
}

.story-card:hover {
  transform: translateY(-4px);
  border-color: rgba(107, 46, 46, 0.2);
}

.story-image-container,
.story-card-media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, rgba(107, 46, 46, 0.08), rgba(184, 155, 94, 0.12));
}

.story-content,
.story-card-body {
  padding: 1.45rem;
}

.story-meta {
  flex-wrap: wrap;
  color: #87796f;
  margin-bottom: 0.8rem;
}

.story-title {
  font-size: 1.25rem;
  line-height: 1.35;
  margin-bottom: 0.8rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.story-excerpt {
  color: #645952;
  -webkit-line-clamp: 4;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.story-title a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.story-link,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.6rem;
  color: #6b2e2e;
  font-weight: 700;
  text-decoration: none;
}

.tag-row span {
  background: rgba(107, 46, 46, 0.08);
  color: #6b2e2e;
}

.story-page {
  padding: 3rem 0 4.5rem;
}

.story-page-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.8fr);
  align-items: start;
}

.story-opening-card {
  overflow: hidden;
  background: #fffaf4;
}

.story-hero-card {
  gap: 1.75rem;
}

.story-hero-copy blockquote,
.featured-story-content blockquote {
  color: #443730;
  border-left-color: rgba(107, 46, 46, 0.35);
}

.story-section {
  margin-top: 1.4rem;
  padding: 1.6rem;
}

.story-section p,
.story-section li,
.content-panel p,
.content-panel li,
.resource-card p,
.stat-card p {
  color: #5f554f;
}

.record-list {
  display: grid;
  gap: 1rem;
}

.record-card {
  padding: 1.2rem 1.25rem;
  border: 1px solid rgba(61, 49, 42, 0.08);
  border-radius: 16px;
  background: rgba(246, 241, 234, 0.8);
}

.story-section-heading {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}

.story-section-heading p {
  margin: 0;
  color: #695e57;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.module-card {
  padding: 1.25rem;
  border: 1px solid rgba(61, 49, 42, 0.09);
  border-radius: 18px;
  background: rgba(255, 252, 248, 0.92);
}

.module-card-soft {
  background: rgba(250, 241, 237, 0.9);
}

.module-card h3 {
  margin: 0.35rem 0 0.7rem;
  font-size: 1.14rem;
}

.module-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
}

.module-source {
  color: #7a6d64;
  font-size: 0.94rem;
}

.transcript-block {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(107, 46, 46, 0.05);
  border: 1px solid rgba(107, 46, 46, 0.08);
}

.transcript-block strong {
  display: block;
  margin-bottom: 0.45rem;
  color: #6b2e2e;
}

.transcript-block p {
  margin-bottom: 0;
}

.record-card h3 {
  margin: 0.35rem 0 0.7rem;
  font-size: 1.1rem;
}

.finding-list {
  display: grid;
  gap: 0.9rem;
}

.finding-card {
  padding: 1rem 1rem 0.95rem;
  border: 1px solid rgba(61, 49, 42, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.finding-card .module-meta {
  margin-top: 0;
  margin-bottom: 0.7rem;
}

.finding-statement {
  margin: 0;
  color: #2b2521;
}

.finding-sources {
  margin-top: 0.8rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(61, 49, 42, 0.08);
}

.finding-sources strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7a3e3a;
}

.finding-sources ul {
  margin: 0;
  padding-left: 1.1rem;
}

.finding-sources li + li {
  margin-top: 0.35rem;
}

.finding-source-kind {
  margin-left: 0.4rem;
  color: #8a7b71;
  font-size: 0.88rem;
}

.record-kicker {
  display: inline-block;
  color: #7a3e3a;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.timeline-list::before {
  background: rgba(107, 46, 46, 0.18);
}

.timeline-list li::before {
  background: #b89b5e;
  box-shadow: 0 0 0 6px rgba(184, 155, 94, 0.14);
}

.timeline-list span {
  color: #8a7b71;
}

.site-footer {
  margin-top: 4rem;
  background: #1f1815;
  color: #f6f1ea;
}

.footer-newsletter {
  padding: 2.8rem 0;
}

.footer-newsletter .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-newsletter p,
.footer-brand p,
.footer-links a,
.footer-bottom {
  color: rgba(246, 241, 234, 0.78);
}

.footer-grid-public {
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
}

.footer-brand p {
  max-width: 26rem;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff4e5;
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: none;
  }
}

@media (max-width: 1023px) {
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(246, 241, 234, 0.98);
    backdrop-filter: blur(14px);
  }

  .site-nav:not(.open) {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

  .site-nav.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 860px) {
  .hero-section {
    min-height: auto;
    padding-top: 5rem;
    padding-bottom: 3rem;
  }

  .hero-title {
    max-width: none;
    font-size: 2.4rem;
  }

  .story-page-grid,
  .contact-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-newsletter .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid-public {
    grid-template-columns: 1fr;
  }
}

.story-page-grid .aside-stack,
.resource-layout .aside-stack,
.about-grid .aside-stack,
.contact-grid .aside-stack,
.admin-grid .aside-stack {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.muted-card {
  background: rgba(107, 46, 46, 0.05);
}

@media (max-width: 1100px) {
  .story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .signal-grid,
  .resource-grid,
  .admin-cards {
    grid-template-columns: 1fr;
  }

  .story-feature-layout,
  .resource-layout,
  .about-grid,
  .contact-grid,
  .story-page-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .site-alert-inner,
  .header-shell,
  .hero-shell,
  .story-hero-card,
  .featured-story-card,
  .footer-grid,
  .form-grid,
  .story-section-grid {
    grid-template-columns: 1fr;
  }

  .site-alert-inner,
  .header-shell,
  .footer-grid {
    display: grid;
  }

  .header-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav-toggle {
    display: inline-block;
  }

  .hero-shell {
    padding: 4rem 0 4.5rem;
  }

  .hero h1 {
    max-width: 10ch;
  }

  .story-grid,
  .mission-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .surface-section {
    padding: 4rem 0;
  }

  .button-row,
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .story-meta {
    flex-direction: column;
    gap: 0.3rem;
  }

  .candidate-meta-grid {
    grid-template-columns: 1fr;
  }

  .search-form-grid {
    grid-template-columns: 1fr;
  }
}

/* Podcast page mobile alignment safeguards */
.podcast-page {
  width: 100%;
  overflow-x: clip;
}

.podcast-page .surface-section,
.podcast-page .page-hero,
.podcast-page .content-panel,
.podcast-page .stories-grid,
.podcast-page .story-card {
  max-width: 100%;
  min-width: 0;
}

.podcast-page .section-header {
  justify-content: flex-start;
  align-items: flex-start;
}

.podcast-page .section-header-content {
  flex: 0 1 auto;
  max-width: 100%;
}

@media (max-width: 860px) {
  .podcast-page .container {
    width: 100%;
    margin-inline: auto;
    padding-inline: var(--container-padding);
  }
}
