:root {
  color-scheme: light;
  --forest: #16352c;
  --forest-deep: #102b24;
  --berry: #a63d47;
  --gold: #d3aa69;
  --cream: #faf7ef;
  --ink: #26382f;
  --muted: #788078;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 50% 0, rgb(255 255 255 / 5%), transparent 50%),
    var(--forest-deep);
  font-family: "DM Sans", sans-serif;
}

.snow {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: .38;
  background-image:
    radial-gradient(2px 2px at 40px 60px, #fff 50%, transparent),
    radial-gradient(1.5px 1.5px at 130px 160px, #fff 50%, transparent),
    radial-gradient(2px 2px at 240px 90px, #fff 50%, transparent),
    radial-gradient(1px 1px at 300px 220px, #fff 50%, transparent);
  background-size: 340px 260px;
  animation: snowfall 18s linear infinite;
}

.snow::before {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 60px 40px, #fff 50%, transparent),
    radial-gradient(2px 2px at 190px 130px, #fff 50%, transparent),
    radial-gradient(1px 1px at 260px 190px, #fff 50%, transparent);
  background-size: 280px 220px;
  content: "";
  animation: snowfall 13s linear infinite;
}

@keyframes snowfall {
  from { transform: translateY(-260px); }
  to { transform: translateY(0); }
}

.page {
  position: relative;
  z-index: 1;
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  padding: 82px 0 64px;
  color: #fffaf0;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: .71rem;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1, .section-heading h2, .story-copy h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  letter-spacing: -.045em;
  line-height: 1.08;
}

h1 span { color: #e4c48f; }

.intro {
  max-width: 540px;
  margin: 0 auto;
  color: #d3ddd4;
  font-size: 1rem;
  line-height: 1.75;
}

.hero-flourish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
  color: var(--gold);
}

.hero-flourish span:nth-child(2) { font-size: 1.45rem; }

.calendar-section {
  padding: 32px;
  border: 1px solid rgb(211 170 105 / 25%);
  border-radius: 20px;
  background: var(--cream);
  box-shadow: 0 24px 70px rgb(0 0 0 / 22%);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading .eyebrow { color: #8d744c; }

.section-heading h2 {
  margin: 0;
  color: var(--forest);
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.date-note {
  max-width: 245px;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.5;
  text-align: right;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.door {
  display: flex;
  min-height: 172px;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid #e8e1d3;
  border-radius: 12px;
  color: var(--ink);
  background: #fffdf8;
  text-align: left;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.door.is-open {
  border-color: #d8c49f;
  cursor: pointer;
}

.door.is-open:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 8px 20px rgb(22 53 44 / 10%);
}

.door:focus-visible {
  outline: 3px solid #a63d47;
  outline-offset: 3px;
}

.door:disabled {
  color: #838981;
  background: #f3f0e9;
  cursor: not-allowed;
}

.door-date {
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: var(--berry);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.7rem;
}

.door-date small {
  font-family: "DM Sans", sans-serif;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.door-symbol {
  align-self: flex-end;
  margin-top: -28px;
  color: var(--gold);
  font-size: 1.15rem;
}

.door-title {
  margin-top: 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.08rem;
}

.door-hint {
  margin-top: 6px;
  color: var(--muted);
  font-size: .73rem;
}

.story-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, .75fr);
  gap: 40px;
  margin-top: 24px;
  padding: clamp(24px, 5vw, 48px);
  border-radius: 20px;
  background: #fffdf8;
  box-shadow: 0 24px 70px rgb(0 0 0 / 16%);
  scroll-margin-top: 24px;
}

.story-panel[hidden] { display: none; }

.story-copy .eyebrow { color: #8d744c; }

.story-copy h2 {
  margin-bottom: 20px;
  color: var(--forest);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.story-text p {
  color: #4b574e;
  font-size: .96rem;
  line-height: 1.85;
}

.listen-card {
  align-self: start;
  padding: 24px;
  border: 1px solid #e8e1d3;
  border-radius: 14px;
  background: #f8f4eb;
}

.listen-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--berry);
  font-size: 1.25rem;
}

.listen-card h3 {
  margin-bottom: 6px;
  color: var(--forest);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.22rem;
}

.listen-card p {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.55;
}

.listen-card audio {
  display: block;
  width: 100%;
  margin: 18px 0 12px;
}

.listen-card .audio-caption {
  margin: 0;
  font-size: .7rem;
}

footer {
  padding: 30px 0 38px;
  color: #c4d0c6;
  font-size: .8rem;
  text-align: center;
}

footer span { padding: 0 7px; color: var(--gold); }

@media (max-width: 680px) {
  .page { width: min(100% - 28px, 520px); }
  .hero { padding: 62px 0 44px; }
  .calendar-section { padding: 22px 16px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .date-note { max-width: none; text-align: left; }
  .calendar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .door { min-height: 158px; padding: 14px; }
  .story-panel { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 380px) {
  .calendar { grid-template-columns: 1fr; }
  .door { min-height: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  .snow, .snow::before { animation: none; }

  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
