:root {
  --ink: #0c1224;
  --ink-soft: rgba(255, 255, 255, 0.88);
  --muted: rgba(255, 255, 255, 0.72);
  --fog: rgba(232, 238, 245, 0.94);
  --panel: rgba(248, 250, 252, 0.92);
  --bridge: #c0362c;
  --accent: #7eb8da;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  font-synthesis: none;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

#starfield,
#aurora-layer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#starfield {
  z-index: 0;
}

#aurora-layer {
  z-index: 3;
}

.fog-veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 80% at 50% 100%, rgba(180, 200, 220, 0.22), transparent 55%),
    radial-gradient(ellipse 90% 60% at 20% 30%, rgba(192, 54, 44, 0.06), transparent 50%),
    linear-gradient(180deg, rgba(10, 14, 26, 0.15) 0%, rgba(10, 14, 26, 0.55) 100%);
}

.pencil-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.88;
  mix-blend-mode: soft-light;
  transform-origin: 50% 45%;
  will-change: transform;
}

.pencil-sketch {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-width: 100%;
}

body.aurora-active .fog-veil {
  opacity: 0.9;
}

body.aurora-active .pencil-backdrop {
  opacity: 0.82;
}

.page {
  position: relative;
  z-index: 4;
  max-width: 40rem;
  margin: 0 auto;
  padding: 4.5rem 1.25rem 4rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.music-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--fog);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.music-toggle:hover {
  transform: translateY(-1px);
  background: #fff;
}

.music-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.music-toggle--on {
  background: rgba(255, 255, 200, 0.95);
  border-color: rgba(220, 180, 80, 0.5);
}

.music-toggle__icon {
  font-size: 1.1rem;
  line-height: 1;
}

.hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.hero__eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.hero__title {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 6vw, 2.65rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

.hero__date {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.25rem;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.45);
}

.hero__date time {
  border-bottom: 2px solid rgba(192, 54, 44, 0.55);
  padding-bottom: 0.15rem;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, text-shadow 0.25s ease;
}

.hero__date time:hover,
.hero__date time:focus-visible {
  color: rgba(220, 245, 235, 0.95);
  border-bottom-color: rgba(100, 190, 160, 0.45);
  text-shadow: 0 0 14px rgba(80, 180, 150, 0.25);
  outline: none;
}

.hero__date time.hero__date--aurora {
  color: rgba(210, 240, 228, 0.95);
  border-bottom-color: rgba(110, 200, 170, 0.5);
  text-shadow: 0 0 16px rgba(90, 190, 155, 0.3);
}

.hero__lede {
  color: var(--muted);
  max-width: 32rem;
  margin: 0 auto;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
}

.panel {
  background: var(--panel);
  color: #1a2233;
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.panel h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
  color: #111827;
}

.prose p + p {
  margin-top: 1rem;
}

.prose .bay-place-list {
  list-style: none;
  margin: 0.75rem 0 1rem;
  padding: 0;
}

.prose .bay-place-list li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.1rem;
  margin-bottom: 0.35rem;
  color: #334155;
  border-left: 3px solid rgba(192, 54, 44, 0.45);
}

.prose .bay-place-list li:last-child {
  margin-bottom: 0;
}

.prose p + .bay-place-list {
  margin-top: 0.35rem;
}

.prose .bay-place-list + p {
  margin-top: 1rem;
}

.quotes h2 {
  margin-bottom: 1rem;
}

.quote-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.quote-card {
  padding: 1rem 1.1rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.65);
  border-left: 4px solid var(--bridge);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.quote-card--soft {
  border-left-color: var(--accent);
  font-style: italic;
}

.quote-card blockquote {
  font-size: 0.98rem;
  color: #334155;
}

.footer {
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
  padding-top: 0.5rem;
}

.footer__bay {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

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

  .pencil-backdrop {
    will-change: auto;
  }

  .music-toggle {
    transition: none;
  }
}
