/* ============================================================
 * Marjorie Ann Parish — vanilla CSS design system
 * Faith & Generations: deep navy, ivory, antique gold,
 * warm amber window-light, stained-glass accents.
 * ============================================================ */

:root {
  --background: #f9f4eb;
  --card: #fdfaf4;
  --muted: #eae4d7;
  --muted-fg: #545e6f;
  --border: #ded7c8;
  --primary: #132342;
  --accent: #cfa34e;
  --night: #06132f;
  --night-soft: #10203f;
  --gold: #cfa34e;
  --gold-bright: #e6c36b;
  --amber: #e9a955;
  --ruby: #b33834;
  --sapphire: #385b9e;
  --parchment: #f3ecde;
  --ink: #19202f;
  --destructive: #b33834;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 0.375rem;
  --shadow-card: 0 10px 30px rgba(6, 19, 47, 0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

::selection { background: rgba(207, 163, 78, 0.35); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.italic { font-style: italic; }

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 40rem) { .container { padding-inline: 1.5rem; } }

.container-narrow { max-width: 48rem; }

.section { padding-block: 4rem; }
@media (min-width: 40rem) { .section { padding-block: 6rem; } }

.site-main { display: block; }

.center, .text-center { text-align: center; }

.mt-2 { margin-top: 0.5rem; } .mt-3 { margin-top: 0.75rem; } .mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-2 { margin-bottom: 0.5rem; } .mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; }

/* ---------- Typography ---------- */

.kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}
.kicker-gold { color: var(--gold); }

.section-title {
  margin: 0.75rem 0 0;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.12;
  color: var(--ink);
}
@media (min-width: 40rem) { .section-title { font-size: 3rem; } }
.section-title-center { text-align: center; }
.section-title-light { color: var(--parchment); }

.lead {
  margin: 1rem 0 0;
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--muted-fg);
}
.lead-light { color: rgba(243, 236, 222, 0.78); }

.text-gold-gradient {
  background-image: linear-gradient(100deg, #ad8a3f, #f2d98c 45%, #ad8a3f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.prose { max-width: 46rem; }
.prose p { margin: 0 0 1.25rem; line-height: 1.8; }
.prose h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  margin: 2.25rem 0 0.75rem;
  color: var(--ink);
}
.prose h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 1.75rem 0 0.5rem;
}
.prose ul { padding-left: 1.25rem; margin: 0 0 1.25rem; }
.prose li { margin-bottom: 0.5rem; }

.hairline {
  height: 1px;
  border: 0;
  background-image: linear-gradient(90deg, transparent, rgba(207, 163, 78, 0.75), transparent);
}

/* Paper grain overlay */
.grain { position: relative; }
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("../img/paper-texture.jpg");
  background-size: 512px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: filter 0.25s, box-shadow 0.25s, background-color 0.25s, transform 0.15s;
}
.btn-gold {
  background: linear-gradient(90deg, var(--gold), var(--amber));
  color: var(--night);
  box-shadow: 0 8px 24px rgba(207, 163, 78, 0.28);
}
.btn-gold:hover { filter: brightness(1.08); box-shadow: 0 12px 30px rgba(207, 163, 78, 0.35); }
.btn-outline {
  border-color: rgba(207, 163, 78, 0.5);
  color: var(--ink);
  background: transparent;
}
.btn-outline:hover { background: rgba(207, 163, 78, 0.15); }
.btn-light {
  border-color: rgba(207, 163, 78, 0.5);
  color: var(--parchment);
  background: transparent;
}
.btn-light:hover { background: rgba(207, 163, 78, 0.15); }

.text-link {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.03em;
}
.text-link:hover { color: var(--amber); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(207, 163, 78, 0.25);
  background: rgba(243, 236, 222, 0.95);
  box-shadow: 0 4px 18px rgba(6, 19, 47, 0.1);
  backdrop-filter: blur(12px);
  transition: background-color 0.5s, border-color 0.5s;
}
.site-header.is-dark {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}
.site-header.is-dark.is-scrolled {
  background: rgba(243, 236, 222, 0.95);
  border-bottom: 1px solid rgba(207, 163, 78, 0.25);
  box-shadow: 0 4px 18px rgba(6, 19, 47, 0.1);
}

.header-inner {
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
  transition: height 0.5s;
}
.site-header.is-scrolled .header-inner { height: 4rem; }
@media (min-width: 40rem) { .header-inner { padding-inline: 1.5rem; } }

.wordmark { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.wordmark-mark { height: 1.75rem; width: 1.5rem; flex-shrink: 0; }
.wordmark-text { display: flex; flex-direction: column; line-height: 1; }
.wordmark-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  transition: color 0.4s;
}
.wordmark-sub {
  margin-top: 0.3rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
@media (min-width: 40rem) { .wordmark-name { font-size: 1.3rem; } }
.site-header.is-dark:not(.is-scrolled) .wordmark-name { color: var(--parchment); }

.main-nav { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 64rem) { .main-nav { display: flex; } }

.nav-link {
  position: relative;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: rgba(25, 32, 47, 0.8);
  transition: color 0.3s;
}
.nav-link:hover { color: var(--gold); }
.nav-link::after {
  content: "";
  position: absolute;
  inset-inline: 0.75rem;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.nav-link.is-active { color: var(--gold); }
.nav-link.is-active::after { transform: scaleX(1); }
.site-header.is-dark:not(.is-scrolled) .nav-link { color: rgba(243, 236, 222, 0.85); }
.site-header.is-dark:not(.is-scrolled) .nav-link:hover { color: var(--gold-bright); }
.site-header.is-dark:not(.is-scrolled) .nav-link.is-active { color: var(--gold-bright); }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  width: 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(207, 163, 78, 0.5);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.25s, color 0.4s;
}
.menu-toggle:hover { background: rgba(207, 163, 78, 0.15); }
.menu-toggle svg { height: 1.25rem; width: 1.25rem; }
.site-header.is-dark:not(.is-scrolled) .menu-toggle { color: var(--parchment); }
@media (min-width: 64rem) { .menu-toggle { display: none; } }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  background: var(--night);
  opacity: 0;
  transition: opacity 0.35s;
}
.mobile-menu.is-open { opacity: 1; }
@media (min-width: 64rem) { .mobile-menu { display: none; } }

.mobile-menu-glow {
  position: absolute;
  top: -6rem;
  left: 50%;
  transform: translateX(-50%);
  height: 18rem;
  width: 18rem;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0.25;
  filter: blur(60px);
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  animation: glass-glow 14s ease-in-out infinite;
}
.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
  padding-inline: 1rem;
}
.mobile-menu-head .wordmark-name { color: var(--parchment); }
.menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  width: 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(207, 163, 78, 0.4);
  background: transparent;
  color: var(--parchment);
  cursor: pointer;
}
.menu-close:hover { background: rgba(207, 163, 78, 0.15); }
.menu-close svg { height: 1.25rem; width: 1.25rem; }
.mobile-menu-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  padding: 0 2rem 2.5rem;
  overflow-y: auto;
}
.mobile-menu-link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(207, 163, 78, 0.12);
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--parchment);
  text-decoration: none;
  transition: color 0.25s;
  opacity: 0;
  transform: translateX(24px);
}
.mobile-menu.is-open .mobile-menu-link { opacity: 1; transform: none; transition: opacity 0.5s, transform 0.5s, color 0.25s; }
.mobile-menu.is-open .mobile-menu-link:nth-child(1) { transition-delay: 0.16s; }
.mobile-menu.is-open .mobile-menu-link:nth-child(2) { transition-delay: 0.22s; }
.mobile-menu.is-open .mobile-menu-link:nth-child(3) { transition-delay: 0.28s; }
.mobile-menu.is-open .mobile-menu-link:nth-child(4) { transition-delay: 0.34s; }
.mobile-menu.is-open .mobile-menu-link:nth-child(5) { transition-delay: 0.4s; }
.mobile-menu.is-open .mobile-menu-link:nth-child(6) { transition-delay: 0.46s; }
.mobile-menu.is-open .mobile-menu-link:nth-child(7) { transition-delay: 0.52s; }
.mobile-menu.is-open .mobile-menu-link:nth-child(8) { transition-delay: 0.58s; }
.mobile-menu-link:hover, .mobile-menu-link.is-active { color: var(--gold-bright); }
.mobile-menu-num {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: rgba(207, 163, 78, 0.7);
}

/* Reading progress bar */
.reading-progress {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 55;
  height: 4px;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--gold), var(--gold-bright) 55%, var(--amber));
}

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--night);
  padding: 8rem 0 4rem;
}
@media (min-width: 40rem) { .page-hero { padding: 10rem 0 5rem; } }

.page-hero-glow {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(60px);
  animation: glass-glow 14s ease-in-out infinite;
}
.page-hero-glow-gold {
  top: -6rem; right: -6rem;
  height: 24rem; width: 24rem;
  opacity: 0.2;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
}
.page-hero-glow-sapphire {
  bottom: 0; left: -6rem;
  height: 20rem; width: 20rem;
  opacity: 0.15;
  background: radial-gradient(circle, var(--sapphire) 0%, transparent 70%);
  animation-delay: -7s;
}
.page-hero-hairline {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background-image: linear-gradient(90deg, transparent, rgba(207, 163, 78, 0.75), transparent);
}
.page-hero-inner {
  position: relative;
  max-width: 56rem;
  margin-inline: auto;
  padding-inline: 1rem;
  text-align: center;
}
.page-hero-children {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.page-hero-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
}
.page-hero-title {
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--parchment);
}
@media (min-width: 40rem) { .page-hero-title { font-size: 3.4rem; } }
.page-hero-lead {
  max-width: 42rem;
  margin: 1.25rem auto 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(243, 236, 222, 0.75);
}

/* ---------- Home hero ---------- */

.home-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--night);
}
.home-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  animation: kenburns-a 48s ease-in-out infinite alternate;
}
/* The church photograph, low opacity, opposite drift */
.home-hero-bg-2 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  mix-blend-mode: screen;
  animation: kenburns-b 64s ease-in-out infinite alternate;
}
/* Stained-glass color reflections, slowly breathing */
.home-hero-glass {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 30%, rgba(56, 91, 158, 0.35) 0%, transparent 32%),
    radial-gradient(circle at 88% 70%, rgba(179, 56, 52, 0.3) 0%, transparent 30%),
    radial-gradient(circle at 35% 8%, rgba(233, 169, 85, 0.28) 0%, transparent 28%);
  filter: blur(30px);
  animation: glass-glow 14s ease-in-out infinite;
}
.home-hero-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 38%, rgba(6, 19, 47, 0.55) 100%),
    linear-gradient(180deg, rgba(6, 19, 47, 0.72) 0%, rgba(6, 19, 47, 0.34) 46%, var(--background) 100%);
}
.motion-toggle {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(207, 163, 78, 0.4);
  background: rgba(6, 19, 47, 0.5);
  color: rgba(243, 236, 222, 0.92);
  backdrop-filter: blur(8px);
  padding: 0.4rem 0.8rem;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.motion-toggle:hover { background: rgba(6, 19, 47, 0.72); }
.motion-toggle svg { width: 0.85rem; height: 0.85rem; }
.motion-toggle svg[hidden] { display: none; }
body.motion-paused .home-hero-bg,
body.motion-paused .home-hero-bg-2,
body.motion-paused .dust i,
body.motion-paused .home-hero-glass { animation-play-state: paused; }
.home-hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 3rem;
  align-items: center;
  max-width: 80rem;
  margin-inline: auto;
  padding: 8rem 1rem 6rem;
  width: 100%;
}
@media (min-width: 64rem) {
  .home-hero-content { grid-template-columns: 1.15fr 0.85fr; padding-bottom: 8rem; }
}
.home-hero-text { max-width: 40rem; }
.home-hero-kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
}
.home-hero-title {
  margin: 1.5rem 0 0;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.05;
  color: var(--parchment);
}
.home-hero-title .text-gold-gradient { display: block; margin-top: 0.5rem; }
@media (min-width: 40rem) { .home-hero-title { font-size: 4.5rem; } }
.home-hero-lead {
  margin: 1.5rem 0 0;
  max-width: 38rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(243, 236, 222, 0.82);
}
.home-hero-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 1rem; }

/* Drifting dust motes */
.dust { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.dust i {
  position: absolute;
  bottom: -2%;
  width: 4px; height: 4px;
  border-radius: 999px;
  background: rgba(230, 195, 107, 0.7);
  opacity: 0;
  animation: dust-drift linear infinite;
}
.dust i:nth-child(1)  { left: 8%;  animation-duration: 26s; animation-delay: 0s; }
.dust i:nth-child(2)  { left: 18%; animation-duration: 32s; animation-delay: -8s; }
.dust i:nth-child(3)  { left: 28%; animation-duration: 24s; animation-delay: -14s; }
.dust i:nth-child(4)  { left: 38%; animation-duration: 36s; animation-delay: -4s; }
.dust i:nth-child(5)  { left: 48%; animation-duration: 28s; animation-delay: -18s; }
.dust i:nth-child(6)  { left: 58%; animation-duration: 34s; animation-delay: -10s; }
.dust i:nth-child(7)  { left: 68%; animation-duration: 25s; animation-delay: -2s; }
.dust i:nth-child(8)  { left: 78%; animation-duration: 30s; animation-delay: -20s; }
.dust i:nth-child(9)  { left: 88%; animation-duration: 27s; animation-delay: -12s; }
.dust i:nth-child(10) { left: 94%; animation-duration: 33s; animation-delay: -6s; }
.dust i:nth-child(11) { left: 4%;  animation-duration: 29s; animation-delay: -22s; }
.dust i:nth-child(12) { left: 63%; animation-duration: 31s; animation-delay: -16s; }

.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(243, 236, 222, 0.6);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-align: center;
}
.scroll-hint svg {
  height: 1.5rem;
  width: 1.5rem;
  margin-inline: auto;
  color: var(--gold);
  animation: breathe 2.2s ease-in-out infinite;
}

/* ---------- Arch divider ---------- */

.arch-divider { display: flex; justify-content: center; margin-block: 1rem; }
.arch-divider svg { height: 3.5rem; width: 10rem; }

/* ---------- Cards & grids ---------- */

.grid-2, .grid-3, .grid-4 { display: grid; gap: 1.5rem; }
@media (min-width: 40rem) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 40rem) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 40rem) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}
.card h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
}
.card p { margin: 0; color: var(--muted-fg); font-size: 0.95rem; line-height: 1.7; }

.badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(207, 163, 78, 0.45);
  background: rgba(207, 163, 78, 0.12);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 64rem) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.media-frame {
  border: 1px solid rgba(207, 163, 78, 0.35);
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-card);
}
.media-frame img { width: 100%; }
.caption {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--ink);
}
.credit {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: var(--muted-fg);
  font-style: italic;
}

.quote-block { text-align: center; max-width: 44rem; margin-inline: auto; }
.quote-text {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
}
@media (min-width: 40rem) { .quote-text { font-size: 2rem; } }
.quote-attr { margin-top: 1rem; font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.quote-display {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}
@media (min-width: 40rem) { .quote-display { font-size: 3rem; } }

.soft-card {
  background: var(--card);
  border: 1px solid rgba(207, 163, 78, 0.3);
  border-radius: 0.5rem;
  padding: 1.5rem;
  color: var(--ink);
  box-shadow: 0 16px 36px rgba(6, 19, 47, 0.08);
}
@media (min-width: 40rem) { .soft-card { padding: 2.5rem; } }
.soft-card p { color: rgba(25, 32, 47, 0.88); }

.intro-overlap {
  position: relative;
  margin-top: 3.5rem;
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 64rem) { .intro-overlap { grid-template-columns: 1fr 1fr; } }
.intro-photo { position: relative; z-index: 1; max-width: 32rem; margin-inline: auto; }
@media (min-width: 64rem) {
  .intro-photo { justify-self: end; margin-right: -4rem; }
  .intro-photo figcaption { padding-right: 5rem; }
}
.intro-photo img {
  width: 100%;
  border-radius: 0.375rem;
  box-shadow: 0 24px 50px rgba(6, 19, 47, 0.22);
  outline: 1px solid rgba(207, 163, 78, 0.35);
}
.intro-photo figcaption {
  margin: 0.75rem 0 0;
  text-align: right;
  font-size: 0.75rem;
  color: var(--muted-fg);
}
.intro-card {
  position: relative;
  z-index: 2;
  background: var(--card);
  border: 1px solid rgba(207, 163, 78, 0.3);
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: 0 18px 40px rgba(6, 19, 47, 0.1);
}
@media (min-width: 64rem) { .intro-card { margin-left: -2rem; padding: 2.5rem 2.5rem 2.5rem 5.5rem; } }
.intro-card p { line-height: 1.75; }

.thread-card {
  height: 100%;
  border-radius: 0.5rem;
  border: 1px solid rgba(207, 163, 78, 0.22);
  background: rgba(16, 32, 63, 0.62);
  padding: 1.75rem;
  transition: border-color 0.35s;
}
.thread-card:hover { border-color: rgba(207, 163, 78, 0.55); }
.thread-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
  color: rgba(207, 163, 78, 0.5);
}
.thread-card:hover .thread-num { color: var(--gold); }
.thread-card h3 {
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--parchment);
}
.thread-card p {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(243, 236, 222, 0.72);
}

.year-tabs { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.year-tab {
  border-radius: 999px;
  border: 1px solid rgba(207, 163, 78, 0.4);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  padding: 0.4rem 1rem;
  cursor: pointer;
}
.year-tab:hover { background: rgba(207, 163, 78, 0.12); }
.year-tab.is-active {
  border-color: var(--gold);
  background: linear-gradient(90deg, var(--gold), var(--amber));
  color: var(--night);
  box-shadow: 0 8px 18px rgba(207, 163, 78, 0.28);
}
.year-panels { margin-top: 2rem; min-height: 8rem; }
.year-panel h3 {
  margin: 0.5rem 0 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--ink);
}
@media (min-width: 40rem) { .year-panel h3 { font-size: 2rem; } }
.year-panel p { margin: 0.75rem 0 0; max-width: 46rem; line-height: 1.75; }

.glass-band {
  position: relative;
  overflow: hidden;
  height: 70vh;
  min-height: 30rem;
  background: var(--night);
}
.glass-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  transform: translateY(-8%);
}
.glass-band-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--night) 0%, rgba(6, 19, 47, 0.18) 42%, rgba(6, 19, 47, 0.62) 100%);
}
.glass-band-copy {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding-bottom: 3.5rem;
}
.glass-band-copy .display {
  margin: 0.75rem 0 0;
  max-width: 40rem;
  font-family: var(--font-display);
  font-size: 1.85rem;
  line-height: 1.25;
  color: var(--parchment);
}
@media (min-width: 40rem) { .glass-band-copy .display { font-size: 2.25rem; } }
.glass-band-copy .text-link { margin-top: 1.5rem; }

.author-grid, .getbook-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 64rem) {
  .author-grid { grid-template-columns: 0.8fr 1.2fr; }
  .getbook-grid { grid-template-columns: 0.7fr 1fr; }
}
.author-card {
  max-width: 20rem;
  margin-inline: auto;
  text-align: center;
  background: var(--card);
  border: 1px solid rgba(207, 163, 78, 0.4);
  border-radius: 0.5rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 18px 40px rgba(6, 19, 47, 0.1);
  color: var(--gold);
}
.author-card svg { width: 7rem; height: auto; display: block; margin-inline: auto; }

/* Dark section */
.night { background: var(--night); color: var(--parchment); position: relative; overflow: hidden; }
.night .section-title { color: var(--parchment); }
.night .lead { color: rgba(243, 236, 222, 0.75); }

/* Elevated inner panel (used on night sections) */
.panel {
  background: var(--night-soft);
  border: 1px solid rgba(207, 163, 78, 0.25);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
}
@media (min-width: 40rem) { .panel { padding: 2.75rem; } }
.panel .section-title { color: var(--parchment); }
.panel .lead { color: rgba(243, 236, 222, 0.75); }
.panel h3 { color: var(--parchment); }
.panel p { color: rgba(243, 236, 222, 0.82); }

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--night);
  border-radius: 1rem;
  padding: 3rem 2rem;
  text-align: center;
  border: 1px solid rgba(207, 163, 78, 0.3);
}
@media (min-width: 40rem) { .cta-band { padding: 4rem 3rem; } }
.cta-band::before {
  content: "";
  position: absolute;
  top: -8rem; left: 50%;
  transform: translateX(-50%);
  width: 28rem; height: 16rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(207, 163, 78, 0.35) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.cta-title {
  position: relative;
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--parchment);
}
@media (min-width: 40rem) { .cta-title { font-size: 2.6rem; } }
.cta-text { position: relative; max-width: 38rem; margin: 1rem auto 0; color: rgba(243, 236, 222, 0.75); }
.cta-actions { position: relative; margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ---------- Book ---------- */

.book-mockup {
  position: relative;
  max-width: 26rem;
  margin-inline: auto;
  perspective: 1400px;
}
.book-mockup.is-small { max-width: 18rem; }
.book-mockup-glow {
  position: absolute;
  inset: -2rem;
  border-radius: 2rem;
  background: radial-gradient(ellipse, rgba(207, 163, 78, 0.45) 0%, transparent 70%);
  filter: blur(24px);
  opacity: 0.55;
  pointer-events: none;
}
.book-mockup-pages {
  position: absolute;
  top: 1.2%;
  right: -1.15rem;
  height: 97.6%;
  width: 1.35rem;
  border-radius: 0 3px 3px 0;
  background: repeating-linear-gradient(90deg, #f3ecde 0 2px, #d9d0c0 2px 3px);
  box-shadow: inset -2px 0 6px rgba(0, 0, 0, 0.25);
}
.book-mockup-spine {
  position: absolute;
  left: -0.35rem;
  top: 0;
  height: 100%;
  width: 0.85rem;
  border-radius: 3px 0 0 3px;
  background: linear-gradient(90deg, #040c20, #10203f 55%, #081428);
  box-shadow: inset 1px 0 2px rgba(255, 255, 255, 0.08);
}
.book-mockup-cover {
  position: relative;
  overflow: hidden;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 28px 50px rgba(6, 19, 47, 0.45);
}
.book-mockup-cover img { width: 100%; height: auto; display: block; }
.book-mockup-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background: linear-gradient(115deg, transparent 30%, rgba(230, 195, 107, 0.35) 46%, transparent 62%);
}

.book-3d { perspective: 1200px; display: flex; justify-content: center; }
.book-3d img {
  width: min(100%, 22rem);
  border-radius: 0.25rem 0.75rem 0.75rem 0.25rem;
  box-shadow:
    -18px 24px 50px rgba(6, 19, 47, 0.35),
    inset 6px 0 12px rgba(255, 255, 255, 0.25);
  transform: rotateY(-12deg);
  transition: transform 0.6s ease;
}
.book-3d:hover img { transform: rotateY(-4deg); }

.fact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.fact-item { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--border); }
.fact-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); padding-top: 0.2rem; }
.fact-value { margin: 0; color: var(--ink); }

.chapter-list {
  margin: 0 auto;
  padding: 0;
  max-width: 56rem;
  background: var(--card);
  border: 1px solid rgba(207, 163, 78, 0.3);
  border-radius: 0.5rem;
  box-shadow: 0 12px 32px rgba(6, 19, 47, 0.08);
  overflow: hidden;
}
.chapter-item {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(207, 163, 78, 0.2);
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}
.chapter-item:last-child { border-bottom: 0; }
.chapter-item + .chapter-item { border-top: 0; }
.chapter-summary {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  list-style: none;
}
.chapter-summary::-webkit-details-marker { display: none; }
.chapter-summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--gold);
  transition: transform 0.3s;
  flex-shrink: 0;
}
.chapter-item[open] .chapter-summary::after { transform: rotate(45deg); }
.chapter-summary:hover .chapter-title { color: var(--gold); }
.chapter-num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(207, 163, 78, 0.75);
  min-width: 2.2rem;
}
.chapter-title { margin: 0; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; transition: color 0.25s; }
.chapter-detail { margin: 0; padding: 0 1.5rem 1.5rem 4.95rem; color: var(--muted-fg); font-size: 0.95rem; line-height: 1.7; }

/* ---------- About ---------- */

.portrait-placeholder {
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(207, 163, 78, 0.45);
  border-radius: 0.75rem;
  background: linear-gradient(160deg, var(--night-soft), var(--night));
  box-shadow: var(--shadow-card);
  padding: 2rem;
}
.portrait-placeholder svg {
  width: 6rem;
  height: auto;
  color: var(--gold);
}
.portrait-placeholder span {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 600;
  color: var(--gold);
  border: 1px solid rgba(207, 163, 78, 0.5);
  border-radius: 999px;
  width: 9rem; height: 9rem;
  display: flex; align-items: center; justify-content: center;
}

.bio-block p { margin: 0 0 1.25rem; line-height: 1.85; }

.ack-grid { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .ack-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .ack-grid { grid-template-columns: repeat(3, 1fr); } }
.ack-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-card);
}
.ack-name { margin: 0; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.ack-role { margin: 0.25rem 0 0; font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); }

/* ---------- History timeline ---------- */

.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before {
  content: "";
  position: absolute;
  top: 0.5rem; bottom: 0.5rem;
  left: 0.65rem;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), rgba(207, 163, 78, 0.15));
}
@media (min-width: 40rem) { .timeline::before { left: 50%; transform: translateX(-50%); } }

.timeline-item { position: relative; padding: 0 0 2.5rem 2.75rem; }
@media (min-width: 40rem) {
  .timeline-item { width: 50%; padding: 0 2.75rem 3rem 0; text-align: right; }
  .timeline-item:nth-child(even) { margin-left: 50%; padding: 0 0 3rem 2.75rem; text-align: left; }
}
.timeline-marker {
  position: absolute;
  top: 0.35rem; left: 0;
  width: 1.4rem; height: 1.4rem;
  border-radius: 999px;
  border: 2px solid var(--gold);
  background: var(--background);
  box-shadow: 0 0 0 5px rgba(207, 163, 78, 0.15);
}
@media (min-width: 40rem) {
  .timeline-item .timeline-marker { left: auto; right: -0.7rem; }
  .timeline-item:nth-child(even) .timeline-marker { right: auto; left: -0.7rem; }
}
.timeline-year {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.timeline-cat {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-fg);
}
.timeline-title { margin: 0.5rem 0 0; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.timeline-body { margin: 0.5rem 0 0; color: var(--muted-fg); line-height: 1.75; }
.era-label {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(207, 163, 78, 0.14);
  color: var(--gold);
  border: 1px solid rgba(207, 163, 78, 0.35);
}

/* Single-sided layout when the timeline is filtered */
.timeline.is-filtered::before { left: 0.65rem; transform: none; }
.timeline.is-filtered .timeline-item {
  width: auto;
  margin: 0;
  padding: 0 0 2.5rem 2.75rem;
  text-align: left;
}
.timeline.is-filtered .timeline-item .timeline-marker { left: 0; right: auto; }

/* ---------- Stories ---------- */

.story-grid { display: grid; gap: 1.75rem; }
@media (min-width: 40rem) { .story-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .story-grid { grid-template-columns: repeat(3, 1fr); } }

.story-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
}
.story-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(6, 19, 47, 0.16); }
.story-card-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--night); }
.story-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.story-card:hover .story-card-media img { transform: scale(1.05); }
.story-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.story-card-cat { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.story-card-title { margin: 0.6rem 0 0; font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; line-height: 1.25; }
.story-card-intro { margin: 0.6rem 0 0; color: var(--muted-fg); font-size: 0.95rem; line-height: 1.7; flex: 1; }
.story-card-link { margin-top: 1.1rem; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; color: var(--gold); }
.story-card-link:hover { color: var(--amber); }

.story-article { max-width: 46rem; margin-inline: auto; padding-top: 6.5rem; }
[data-copy-link] svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.back-link:hover { color: var(--amber); }
.story-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 1rem; }
.story-article h1 {
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1.15;
}
@media (min-width: 40rem) { .story-article h1 { font-size: 3rem; } }
.story-article .lead { font-size: 1.15rem; }
.story-hero-figure { margin: 2rem 0; }
.story-hero-figure img { border-radius: 0.75rem; box-shadow: var(--shadow-card); }
.story-body-text p { margin: 0 0 1.4rem; line-height: 1.85; font-size: 1.05rem; }
.story-source-box {
  margin-top: 2.5rem;
  border-left: 3px solid var(--gold);
  background: rgba(207, 163, 78, 0.1);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--muted-fg);
  font-style: italic;
}
.related-grid { display: grid; gap: 1.5rem; }
@media (min-width: 40rem) { .related-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Gallery ---------- */

.pill-row { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 2.5rem; }
.pill {
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(207, 163, 78, 0.45);
  background: transparent;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
}
.pill:hover { background: rgba(207, 163, 78, 0.15); }
.pill.is-active { background: linear-gradient(90deg, var(--gold), var(--amber)); color: var(--night); border-color: transparent; }

.gallery-grid { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid rgba(207, 163, 78, 0.3);
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--night);
  cursor: zoom-in;
  box-shadow: var(--shadow-card);
}
.gallery-thumb { display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--night-soft); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.gallery-item:hover .gallery-thumb img { transform: scale(1.04); }
.gallery-cap {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 2.5rem 1.25rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(6, 19, 47, 0.9));
  color: var(--parchment);
  text-align: left;
}
.gallery-cap strong { display: block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.gallery-kind {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 19, 47, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  padding: 1.5rem;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-figure { max-width: min(90vw, 60rem); margin: 0; text-align: center; }
.lightbox-img { max-height: 78vh; width: auto; max-width: 100%; margin-inline: auto; border-radius: 0.5rem; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.lightbox-figure figcaption { margin-top: 1rem; color: var(--parchment); }
.lightbox-caption { display: block; font-family: var(--font-display); font-size: 1.2rem; }
.lightbox-credit { display: block; margin-top: 0.25rem; font-size: 0.8rem; color: rgba(243, 236, 222, 0.6); font-style: italic; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem; height: 3rem;
  border-radius: 999px;
  border: 1px solid rgba(207, 163, 78, 0.5);
  background: rgba(6, 19, 47, 0.6);
  color: var(--parchment);
  font-size: 1.5rem;
  cursor: pointer;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(207, 163, 78, 0.25); }
.lightbox-close { top: 1.25rem; right: 1.25rem; }
.lightbox-prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.25rem; top: 50%; transform: translateY(-50%); }

/* ---------- Events ---------- */

.event-card {
  display: grid;
  gap: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}
@media (min-width: 40rem) { .event-card { grid-template-columns: 9rem 1fr; } }
.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(207, 163, 78, 0.4);
  border-radius: 0.6rem;
  background: rgba(207, 163, 78, 0.08);
  padding: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--gold);
  text-align: center;
  line-height: 1.3;
}
.event-date span {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.event-title { margin: 0; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.event-meta { margin: 0.4rem 0 0; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.event-desc { margin: 0.6rem 0 0; color: var(--muted-fg); line-height: 1.75; }
.empty-note {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-card);
}
.empty-note p { margin: 0; color: var(--muted-fg); line-height: 1.8; }

/* ---------- Contact form ---------- */

.contact-form {
  background: var(--card);
  border: 1px solid rgba(207, 163, 78, 0.3);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 12px 36px rgba(6, 19, 47, 0.1);
}
@media (min-width: 40rem) { .contact-form { padding: 2.5rem; } }
.form-group { margin-bottom: 1.5rem; }
.form-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink);
}
.form-input {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(207, 163, 78, 0.4);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input::placeholder { color: rgba(84, 94, 111, 0.6); }
.form-input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(207, 163, 78, 0.3); }
.form-textarea { resize: vertical; min-height: 9rem; }
.form-error { margin: 0.5rem 0 0; font-size: 0.85rem; color: var(--destructive); }
.form-note {
  margin: 0 0 1.5rem;
  border: 1px solid rgba(207, 163, 78, 0.25);
  border-radius: var(--radius);
  background: rgba(234, 228, 215, 0.6);
  padding: 0.9rem 1rem;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--muted-fg);
}
.form-status { min-height: 1.5rem; margin-bottom: 1.25rem; }
.form-status p { margin: 0; }
.form-success {
  border: 1px solid rgba(207, 163, 78, 0.4);
  border-radius: var(--radius);
  background: rgba(234, 228, 215, 0.7);
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}
.form-alert {
  border: 1px solid rgba(179, 56, 52, 0.4);
  border-radius: var(--radius);
  background: rgba(179, 56, 52, 0.08);
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--destructive);
}
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: var(--parchment);
}
.footer-glow {
  position: absolute;
  bottom: -8rem;
  left: 25%;
  width: 20rem; height: 20rem;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0.15;
  filter: blur(60px);
  background: radial-gradient(circle, var(--amber) 0%, transparent 70%);
  animation: breathe 9s ease-in-out infinite;
}
.site-footer .container { position: relative; padding-block: 4rem 0; }
.footer-grid { display: grid; gap: 3rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-tagline {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1.25;
  font-weight: 600;
}
@media (min-width: 40rem) { .footer-tagline { font-size: 2.3rem; } }
.footer-statement { margin: 1rem 0 0; max-width: 28rem; font-size: 0.9rem; line-height: 1.7; color: rgba(243, 236, 222, 0.7); }
.footer-heading {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-links { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.65rem; font-size: 0.9rem; }
.footer-links a { color: rgba(243, 236, 222, 0.75); text-decoration: none; transition: color 0.25s; }
.footer-links a:hover { color: var(--gold-bright); }
.footer-bottom {
  margin-top: 3.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(207, 163, 78, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(243, 236, 222, 0.55);
}
@media (min-width: 40rem) {
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}
.footer-bottom p { margin: 0; }

/* ---------- Back to top ---------- */

.back-to-top {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3rem; width: 3rem;
  border-radius: 999px;
  border: 1px solid rgba(207, 163, 78, 0.5);
  background: rgba(6, 19, 47, 0.9);
  color: var(--parchment);
  cursor: pointer;
  opacity: 0;
  transform: translateY(1rem);
  pointer-events: none;
  transition: opacity 0.35s, transform 0.35s, background-color 0.25s;
  backdrop-filter: blur(8px);
}
.back-to-top:hover { background: var(--night); }
.back-to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top svg { height: 1.25rem; width: 1.25rem; }

/* ---------- 404 ---------- */

.not-found {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: var(--parchment);
  min-height: 80vh;
  display: flex;
  align-items: center;
}
.not-found-glow {
  position: absolute;
  top: 33%; left: 50%;
  transform: translate(-50%, -50%);
  width: 24rem; height: 24rem;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0.15;
  filter: blur(60px);
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  animation: glass-glow 14s ease-in-out infinite;
}
.not-found-inner { position: relative; text-align: center; padding-block: 6rem; }
.not-found-code {
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 600;
  line-height: 1;
}
@media (min-width: 40rem) { .not-found-code { font-size: 7rem; } }
.not-found-title {
  margin: 1rem auto 0;
  max-width: 32rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--parchment);
}
.not-found-text { margin: 0.5rem auto 0; max-width: 28rem; font-size: 0.95rem; color: rgba(243, 236, 222, 0.7); }
.not-found-actions { margin-top: 1rem; }

/* Screen-reader-only text */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Stories search row */
.story-search-form {
  display: flex;
  gap: 0.75rem;
  max-width: 32rem;
  margin-inline: auto;
  align-items: center;
}
.story-search-form .form-input { margin-top: 0; flex: 1; }

/* ---------- Keyframes ---------- */

@keyframes dust-drift {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  12% { opacity: 0.5; }
  88% { opacity: 0.5; }
  100% { transform: translate3d(24px, calc(-100vh - 40px), 0); opacity: 0; }
}

@keyframes glass-glow {
  0%, 100% { background-color: rgba(179, 56, 52, 0.55); }
  33% { background-color: rgba(56, 91, 158, 0.55); }
  66% { background-color: rgba(207, 163, 78, 0.55); }
}

@keyframes gold-sweep {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(210%); }
}

@keyframes breathe {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.04); }
}

@keyframes kenburns-a {
  from { transform: scale(1.05) translate3d(0, 0, 0); }
  to { transform: scale(1.16) translate3d(-2.5%, -1.5%, 0); }
}

@keyframes kenburns-b {
  from { transform: scale(1.12) translate3d(2%, 1%, 0); }
  to { transform: scale(1.02) translate3d(0, 0, 0); }
}

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

/* Print */
@media print {
  .site-header, .site-footer, .back-to-top, .mobile-menu, .reading-progress { display: none !important; }
  body { background: #fff; color: #000; }
}
