:root {
  --blood: #24000a;
  --deep: #3b0008;
  --crimson: #8e0b17;
  --scarlet: #c4161f;
  --glow: #ff4b3e;
  --cream: #fff1e6;
  --gold: #e9c48a;
  --gold-soft: rgba(233, 196, 138, 0.35);
  --display: "Bodoni Moda", "Didot", "Bodoni 72", serif;
  --serif: "Cormorant Garamond", "Garamond", serif;
  --numerals: "Playfair Display", "Didot", Georgia, serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { margin: 0; background: var(--blood); }

body {
  color: var(--cream);
  font: 400 20px/1.5 var(--serif);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Background scene ---------- */

.scene { position: fixed; inset: 0; overflow: hidden; z-index: 0; }
.scene > * { position: absolute; }

.sky {
  inset: 0;
  background:
    radial-gradient(120% 70% at 50% 110%, var(--scarlet) 0%, var(--crimson) 35%, transparent 70%),
    radial-gradient(60% 40% at 78% 18%, rgba(255, 120, 100, 0.25), transparent 70%),
    linear-gradient(180deg, var(--blood) 0%, var(--deep) 40%, var(--crimson) 100%);
}

.stars { inset: 0 0 35% 0; }
.stars i {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #ffe8dc;
  box-shadow: 0 0 6px 1px rgba(255, 220, 200, 0.7);
  animation: twinkle var(--t, 4s) ease-in-out var(--d, 0s) infinite;
}
@keyframes twinkle { 0%, 100% { opacity: 0.15; } 50% { opacity: 1; } }

.moon {
  top: 9vh;
  right: 12vw;
  width: clamp(120px, 18vw, 260px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #fff6ec 0%, #ffd9c8 45%, #f4a99a 80%, #e27f75 100%);
  box-shadow: 0 0 60px 20px rgba(255, 150, 130, 0.35), 0 0 200px 80px rgba(255, 70, 60, 0.25);
}
.moon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 60% 30%, rgba(200, 90, 90, 0.25) 0 8%, transparent 9%),
    radial-gradient(circle at 35% 65%, rgba(200, 90, 90, 0.2) 0 11%, transparent 12%),
    radial-gradient(circle at 70% 70%, rgba(200, 90, 90, 0.18) 0 6%, transparent 7%);
}

/* Santa crosses the sky in front of the moon, on a loop */
.sleigh-track {
  top: 0;
  left: 0;
  width: clamp(220px, 30vw, 420px);
  animation: fly 26s linear infinite;
  will-change: transform;
}
.sleigh { width: 100%; display: block; overflow: visible; }
.silhouette { fill: #1c0306; stroke: #1c0306; }
.rudolph { animation: nose 1.6s ease-in-out infinite; transform-origin: 321px 31px; }
.deer { animation: bob 0.9s ease-in-out infinite; }
.d2 { animation-delay: -0.2s; }
.d3 { animation-delay: -0.4s; }
.d4 { animation-delay: -0.6s; }
.leg.front { transform-origin: 8px 3px; animation: gallop 0.9s ease-in-out infinite; }
.leg.back { transform-origin: -9px 3px; animation: gallop 0.9s ease-in-out infinite reverse; }

@keyframes fly {
  0%   { transform: translate(-40vw, 34vh) rotate(-6deg) scale(0.8); }
  50%  { transform: translate(55vw, 10vh) rotate(-3deg) scale(1); }
  100% { transform: translate(130vw, 2vh) rotate(2deg) scale(0.75); }
}
@keyframes bob { 50% { transform: translateY(-3px); } }
@keyframes gallop { 50% { transform: rotate(18deg); } }
@keyframes nose { 50% { opacity: 0.55; transform: scale(0.8); } }

.hills { left: 0; right: 0; bottom: 0; width: 100%; height: 38vh; }
.hill.far { fill: #5a0410; }
.hill.mid { fill: #3c020a; }
.hill.near { fill: #240006; }

.gl { inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.6s ease; }
.gl.ready { opacity: 1; }

.vignette {
  inset: 0;
  background: radial-gradient(130% 90% at 50% 45%, transparent 55%, rgba(20, 0, 4, 0.75) 100%);
  pointer-events: none;
}

.grain {
  inset: -50%;
  opacity: 0.08;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- Content ---------- */

main { position: relative; z-index: 1; }

section {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 16px;
  position: relative;
}

.eyebrow {
  margin: 0 0 8px;
  font: italic 500 clamp(1.1rem, 2.4vw, 1.6rem) var(--serif);
  letter-spacing: 0.04em;
  color: var(--gold);
}

.title {
  margin: 0;
  font: italic 400 clamp(3.6rem, 13vw, 11rem)/0.95 var(--display);
  letter-spacing: -0.02em;
  color: var(--cream);
  filter: drop-shadow(0 8px 30px rgba(30, 0, 5, 0.55));
  perspective: 600px;
}
.title .eyebrow { display: block; margin-bottom: 8px; }

.title .ch {
  display: inline-block;
  padding: 0 0.02em;
  background: linear-gradient(180deg, #fff7ee 25%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.days-wrap { margin-top: clamp(16px, 4vh, 40px); }

.days {
  font: 500 clamp(7rem, 30vw, 20rem)/0.85 var(--numerals);
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -0.04em;
  color: var(--cream);
  text-shadow: 0 10px 40px rgba(30, 0, 5, 0.6), 0 0 90px rgba(255, 80, 60, 0.35);
}

.days-label, .unit span {
  margin-top: 12px;
  font: 500 clamp(0.8rem, 1.5vw, 1rem) var(--serif);
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold);
  padding-left: 0.45em;
}

.days-label::before, .days-label::after {
  content: "";
  display: inline-block;
  width: clamp(24px, 6vw, 64px);
  height: 1px;
  margin: 0 16px;
  vertical-align: middle;
  background: var(--gold-soft);
}

.merry { font: italic 400 clamp(3rem, 10vw, 7rem)/1 var(--display); margin: 0; color: var(--cream); }

.scroll-cue {
  position: absolute;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
}
.scroll-cue i { width: 1px; height: 48px; background: linear-gradient(var(--gold), transparent); animation: cue 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Garland of lights across the top of the hero */
.garland { position: absolute; top: 0; left: 0; width: 100%; height: 140px; overflow: visible; pointer-events: none; }
.garland .wire { fill: none; stroke: #170104; stroke-width: 2; }
.garland .bulb { animation: blink var(--t) ease-in-out var(--d) infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.clock {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(1100px, 100%);
  margin-top: 32px;
}

.unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 4px;
  border-left: 1px solid var(--gold-soft);
}
.unit:first-child { border-left: 0; }
.unit b {
  font: 500 clamp(3rem, 11vw, 9rem)/1 var(--numerals);
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--cream);
}

.date {
  margin: 0;
  font: 400 clamp(3rem, 11vw, 8.5rem)/1 var(--display);
  letter-spacing: -0.02em;
}
.date em { display: block; font-style: italic; color: var(--gold); font-size: 0.55em; margin-top: 8px; }

.sign-off {
  margin: 40px 0 0;
  font: italic 400 clamp(1.4rem, 3vw, 2rem) var(--serif);
  letter-spacing: 0.08em;
  color: var(--gold);
}

/* ---------- Content sections ---------- */

section.story {
  min-height: 0;
  display: block;
  text-align: left;
  padding: 72px 16px;
}

.panel {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) clamp(20px, 5vw, 72px);
  background: linear-gradient(180deg, rgba(36, 0, 10, 0.82), rgba(59, 0, 8, 0.78));
  border: 1px solid var(--gold-soft);
  border-radius: 4px;
  box-shadow: 0 40px 80px rgba(20, 0, 4, 0.45);
}
.panel.narrow { max-width: 860px; }

.story h2 {
  margin: 0 0 20px;
  font: 400 clamp(2.4rem, 6vw, 4.4rem)/1.05 var(--display);
  font-variation-settings: "opsz" 40;
  letter-spacing: -0.01em;
  color: var(--cream);
}
.story h3 {
  margin: 0 0 10px;
  font: italic 500 1.55rem/1.2 var(--serif);
  color: var(--cream);
}
.story p, .story li { font-size: 1.1rem; line-height: 1.65; color: rgba(255, 241, 230, 0.86); }
.story .intro { max-width: 40em; font-size: 1.3rem; margin: 0 0 40px; }
.story em { color: var(--cream); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-soft);
}
.card { background: #2c0009; padding: 28px; }
.card p { margin: 0; }
.place, .step b, .timeline b, .meta {
  display: block;
  margin-bottom: 10px;
  font: 500 0.8rem var(--serif);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.timeline { list-style: none; margin: 32px 0 0; padding: 0 0 0 28px; border-left: 1px solid var(--gold-soft); }
.timeline li { position: relative; padding: 0 0 28px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(233, 196, 138, 0.8);
}
.timeline p { margin: 0; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 40px; }
.step { border-top: 1px solid var(--gold-soft); padding-top: 18px; }
.step p { margin: 0; }

.recipes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; margin-top: 32px; }
.recipe h4 { margin: 24px 0 8px; font: 500 0.8rem var(--serif); letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.recipe ul, .recipe ol { margin: 0; padding-left: 1.2em; }
.recipe li { margin-bottom: 6px; }
.recipe li::marker { color: var(--gold); }
.recipe .meta { margin: 0; letter-spacing: 0.15em; text-transform: none; font-style: italic; font-size: 1rem; }

.faq { margin-top: 24px; }
.faq details { border-bottom: 1px solid var(--gold-soft); padding: 20px 0; }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font: italic 500 1.35rem/1.3 var(--serif);
  color: var(--cream);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-style: normal; transition: transform 0.3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; }

.story a, .site-footer a, .doc a { color: var(--gold); text-underline-offset: 4px; }

.site-footer {
  position: relative;
  z-index: 1;
  padding: 40px 16px 56px;
  text-align: center;
  border-top: 1px solid var(--gold-soft);
  background: rgba(20, 0, 4, 0.7);
  font-size: 1rem;
  color: rgba(255, 241, 230, 0.7);
}
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 32px; margin-bottom: 12px; }
.site-footer a { letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.85rem; text-decoration: none; }
.site-footer a:hover { color: var(--cream); }
.site-footer p { margin: 0; }

/* ---------- About / Contact / Privacy pages ---------- */

body.doc-page {
  background:
    radial-gradient(120% 60% at 50% 0%, var(--crimson), transparent 70%),
    linear-gradient(180deg, var(--deep), var(--blood));
  background-attachment: fixed;
  min-height: 100vh;
}
.doc-header { padding: 28px 16px; text-align: center; }
.doc-header > a, .doc-header .brand {
  font: italic 400 2rem var(--display);
  color: var(--cream);
  text-decoration: none;
}
.guide-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px; margin-top: 14px; }
.guide-nav a { font: 500 0.82rem var(--serif); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); text-decoration: none; padding: 4px 0; }
.guide-nav a:hover, .guide-nav a[aria-current] { color: var(--cream); box-shadow: inset 0 -1px var(--gold); }

/* Guide articles */
.crumbs { font-size: 0.95rem; color: rgba(255, 241, 230, 0.6); margin-bottom: 24px; }
.crumbs a { color: var(--gold); }
.kicker { margin: 0 0 6px; font: italic 500 1.2rem var(--serif); color: var(--gold); }
.doc .lede { font-size: 1.3rem; line-height: 1.6; color: var(--cream); }
.doc h3 { margin: 22px 0 8px; font: 500 0.8rem var(--serif); letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: 6px; }
.doc li::marker { color: var(--gold); }
.doc .meta { margin: -4px 0 8px; font-style: italic; color: var(--gold); }
.doc strong { color: var(--cream); }
.checklist { list-style: none; padding-left: 0 !important; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 12px;
  height: 12px;
  border: 1px solid var(--gold);
  border-radius: 2px;
}
.table-wrap { overflow-x: auto; margin: 16px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.doc th, .doc td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--gold-soft); white-space: nowrap; }
.doc thead th { font: 500 0.78rem var(--serif); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.doc tbody th { color: var(--cream); font-weight: 500; }
.doc .note { font-size: 1rem; font-style: italic; color: rgba(255, 241, 230, 0.7); }
.more-guides { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--gold-soft); }
.more-guides ul { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 4px 24px; }

/* "Read more" links on the home page */
.story .more { margin: 32px 0 0; }
.more-link {
  display: inline-block;
  padding: 12px 26px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font: 500 0.85rem var(--serif);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream) !important;
  transition: background 0.3s, color 0.3s;
}
.more-link::after { content: " →"; letter-spacing: 0; }
.more-link:hover { background: var(--gold); color: var(--blood) !important; }
.card-link { display: block; text-decoration: none; transition: background 0.3s; }
.card-link:hover { background: #3a000d; }
.site-footer nav + nav { margin-top: -4px; }
.doc { max-width: 820px; margin: 0 auto 72px; padding: 0 16px; }
.doc .panel { text-align: left; }
.doc h1 { margin: 0 0 8px; font: 400 clamp(2.4rem, 7vw, 4rem)/1.05 var(--display); font-variation-settings: "opsz" 40; }
.doc h2 { margin: 36px 0 10px; font: italic 500 1.6rem var(--serif); color: var(--gold); }
.doc p, .doc li { font-size: 1.12rem; line-height: 1.7; color: rgba(255, 241, 230, 0.88); }
.doc .updated { color: var(--gold); font-style: italic; margin: 0 0 24px; }

/* The date stays in Bodoni; a small optical size keeps its hairlines visible.
   Must follow the `font` shorthand above, which resets it. */
.date { font-variation-settings: "opsz" 18; }

@media (max-width: 640px) {
  .clock { grid-template-columns: repeat(2, 1fr); }
  .unit:nth-child(3) { border-left: 0; }
  .unit:nth-child(n + 3) { border-top: 1px solid var(--gold-soft); }
  .days-label { letter-spacing: 0.3em; }
  .days { font-size: 42vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}

@media (min-width: 700px) { .cards.two { grid-template-columns: repeat(2, 1fr); } }
