:root {
  color-scheme: dark;
  font-family: "Golos Text", Arial, sans-serif;
  color: #fff3dc;
  background: #102b26;
  --paper: #fff1d2;
  --gold: #f0cb83;
  --muted: #becac0;
  --serif: "Playfair Display", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
[hidden] { display: none !important; }
button:focus-visible, a:focus-visible { outline: 2px solid #fff3ca; outline-offset: 5px; }

.page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 68% 47%, #2f5542 0%, #173c31 29%, transparent 64%),
    linear-gradient(147deg, #0b241f, #15342b 64%, #091e1b);
}

.wrap { width: min(1120px, calc(100% - 88px)); margin-inline: auto; }
.masthead, .footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.masthead { min-height: 80px; border-bottom: 1px solid #fdf2d62c; }
.brand { display: flex; align-items: center; gap: 11px; font-size: .95rem; font-weight: 600; }
.brand-star { color: var(--gold); font-size: 1.35rem; }
.season, .eyebrow, .card-date { text-transform: uppercase; letter-spacing: .14em; font-weight: 600; }
.season { font-size: .875rem; color: #d3ddce; }

.hero { flex: 1; display: grid; grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr); align-items: center; }
.intro { position: relative; z-index: 3; padding-block: 35px; }
.eyebrow { color: var(--gold); font-size: .875rem; margin: 0 0 18px; display: flex; align-items: center; gap: .75rem; }
.eyebrow span { width: 23px; height: 1px; background: currentColor; }
h1 { margin: 0; font: 600 clamp(3.35rem, 5.85vw, 5.45rem)/1.03 var(--serif); letter-spacing: -.052em; }
h1 em { display: block; color: var(--gold); font-weight: 600; }
.lede { color: #e0e8db; font-size: 1.125rem; line-height: 1.58; max-width: 310px; margin: 24px 0 29px; }
.schedule { color: var(--gold); margin: 0; min-height: 48px; display: flex; align-items: center; }
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 49px;
  padding: .8rem 1.35rem;
  border: 1px solid #f4d396;
  border-radius: 999px;
  background: linear-gradient(155deg, #f8dfa5, #eabe71);
  color: #312213;
  font-weight: 700;
  font-size: .96rem;
  cursor: pointer;
  text-decoration: none;
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.primary:hover { box-shadow: 0 5px 25px #eac57c38; transform: translateY(-2px); }

.scene {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 22px 0 30px;
  isolation: isolate;
}
.halo { position: absolute; width: 94%; max-width: 544px; aspect-ratio: 1; top: 14%; border-radius: 50%; border: 1px solid #f5d89424; background: radial-gradient(circle, #f4eac31d, #f4eac309 63%, transparent 74%); }
.halo::after { content: ""; position: absolute; inset: 12px; border: 1px dashed #e2ca8727; border-radius: inherit; }
.tree { position: relative; width: min(100%, 385px, max(320px, calc((100svh - 172px) * .63))); margin: auto; z-index: 1; }
.tree img { display: block; width: 100%; height: auto; filter: drop-shadow(0 14px 19px #0519119e); }
.tree-shadow { position: absolute; bottom: 5%; width: 72%; height: 21px; border-radius: 50%; background: #081c16; filter: blur(13px); }
.tree-pages { display: flex; align-items: center; gap: .75rem; z-index: 2; margin-top: 12px; font-size: .875rem; color: var(--gold); }
.tree-pages button { padding: 8px 12px; min-height: 44px; border: 1px solid #f4d39680; border-radius: 999px; background: #16392f; color: var(--paper); cursor: pointer; }
.tree-pages button:disabled { opacity: .46; cursor: default; }
.sparkles { position: absolute; inset: 7% 0% 8%; color: #ffe3a3; }
.sparkles i { position: absolute; font-style: normal; opacity: .65; }
.sparkles i:nth-child(1) { left: 18%; top: 20%; font-size: 23px; }
.sparkles i:nth-child(2) { right: 18%; top: 11%; font-size: 13px; }
.sparkles i:nth-child(3) { right: 8%; top: 42%; font-size: 25px; }
.sparkles i:nth-child(4) { left: 7%; top: 51%; font-size: 12px; }
.sparkles i:nth-child(5) { right: 5%; top: 77%; font-size: 15px; }
.sparkles i:nth-child(6) { left: 21%; top: 91%; font-size: 12px; }
.sparkles i:nth-child(7) { right: 19%; top: 91%; font-size: 14px; }
.sparkles i:nth-child(8) { left: 27%; top: 5%; font-size: 9px; }

.ornaments { position: absolute; inset: 0; }
.ruby { --light: #ed8c92; --mid: #b62b44; --dark: #631228; }
.copper { --light: #f5b784; --mid: #b85531; --dark: #73301b; }
.violet { --light: #c5ace5; --mid: #7653a7; --dark: #462960; }
.teal { --light: #9bdad7; --mid: #228985; --dark: #12534d; }
.pink { --light: #fac2d8; --mid: #a93c6f; --dark: #70264c; }
.blue { --light: #a8cbe9; --mid: #345b96; --dark: #1e3765; }
.gold { --light: #f8dca0; --mid: #a57527; --dark: #644715; }
.silver { --light: #f2ebdd; --mid: #87949b; --dark: #475a68; }
.ornament {
  position: absolute;
  left: var(--x);
  top: var(--y);
  translate: -50% -50%;
  width: clamp(44px, 17.5%, 68px);
  aspect-ratio: 1;
  border: 1px solid #fff7e29e;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0 0 3px;
  background: radial-gradient(ellipse at 31% 21%, var(--light), var(--mid) 44%, var(--dark) 94%);
  box-shadow: inset 0 -7px 12px #16091850, 0 5px 12px #041e18a8;
  color: #fff8df;
  text-shadow: 0 1px 5px #230d10d9;
  font: 700 clamp(1.45rem, 5vw, 2rem)/1 var(--serif);
  cursor: pointer;
  transition: scale .2s ease, box-shadow .2s ease, filter .2s ease;
}
.ornament::before, .ornament::after { content: ""; position: absolute; left: 50%; translate: -50% 0; }
.ornament::before { top: -7px; width: 29%; height: 8px; border: 1px solid #bf9053; border-radius: 3px 3px 1px 1px; background: linear-gradient(90deg, #9b6538, #ffeab0 49%, #a47846); }
.ornament::after { top: -14px; width: 17%; height: 8px; border: 1px solid #efcc84; border-radius: 50% 50% 0 0; }
.ornament[data-state="future"] { filter: saturate(.66) brightness(.91); }
.ornament[data-state="today"] { z-index: 2; border-color: #ffe9ac; box-shadow: inset 0 -7px 12px #16091850, 0 0 0 4px #f7ce7973, 0 0 25px 8px #f9bf5cac, 0 5px 12px #041e18a8; }
.ornament:hover, .ornament:focus-visible { z-index: 4; scale: 1.08; filter: brightness(1.13) saturate(1); }

.footer { position: relative; min-height: 70px; border-top: 1px solid #fdf2d62c; color: var(--muted); font-size: .875rem; padding-bottom: env(safe-area-inset-bottom, 0px); }
.legend { display: flex; align-items: center; gap: 12px; }
.legend-light { width: 8px; height: 8px; border-radius: 50%; background: #f8d187; box-shadow: 0 0 10px 2px #f1c37985; }
.footer-star { position: absolute; left: 50%; translate: -50% 0; color: var(--gold); font-size: 1rem; }

.day-card { position: fixed; inset: auto 0 max(26px, env(safe-area-inset-bottom)) 0; width: min(460px, calc(100% - 34px)); max-height: calc(100dvh - 44px); padding: 0; overflow: auto; border: 1px solid #f4ddae; border-radius: 24px; background: #fbf0d8; color: #183229; box-shadow: 0 24px 75px #071613ae; }
.day-card[open] { animation: reveal .25s ease both; }
.day-card::backdrop { background: #031913aa; backdrop-filter: blur(5px); }
.card-inner { position: relative; padding: 32px 32px 34px; background: radial-gradient(ellipse at 20% 0%, #fff8e9, transparent 65%); }
.close { position: absolute; top: 17px; right: 17px; background: #e6d9bb; color: #254036; border: 0; border-radius: 50%; width: 44px; height: 44px; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.day-card :focus-visible { outline-color: #38594c; }
.card-icon { display: grid; place-items: center; width: 49px; height: 49px; border-radius: 50%; border: 1px solid var(--light, #f8dca0); background: radial-gradient(ellipse at 28% 22%, var(--light, #f8dca0), var(--mid, #a57527) 55%, var(--dark, #644715)); color: #fff8df; font-size: 1.45rem; }
.card-date { margin: 20px 0 8px; color: #795629; font-size: .875rem; }
.card-inner h2 { font: 700 clamp(1.9rem, 8vw, 2.45rem)/1.08 var(--serif); letter-spacing: -.03em; margin: 0 0 14px; text-wrap: balance; }
.card-text, .card-detail { font-size: 1.0625rem; line-height: 1.55; margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.card-detail { margin-top: 13px; color: #5a5141; }
.card-link { margin-top: 20px; }
.noscript { text-align: center; }

@keyframes reveal { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }

@media (max-width: 760px) {
  .wrap { width: min(490px, calc(100% - 38px)); }
  .masthead { min-height: 53px; }
  .brand { font-size: .875rem; gap: 7px; }
  .season { font-size: .75rem; }
  .hero { display: flex; flex-direction: column; justify-content: center; text-align: center; }
  .intro { padding: 24px 0 0; }
  .eyebrow { display: none; }
  h1 { font-size: clamp(2.5rem, 10.1vw, 3.65rem); }
  .lede { font-size: 1rem; line-height: 1.42; margin: 13px auto 16px; max-width: 276px; }
  .primary { min-height: 45px; }
  .schedule { justify-content: center; min-height: 45px; }
  .scene { padding: 19px 0 23px; }
  .tree { width: min(100%, clamp(245px, calc((100svh - 363px) * .64), 310px)); }
  .halo { top: 10%; width: 94%; max-width: 430px; }
  .footer { min-height: 55px; font-size: .8125rem; gap: .65rem; }
  .footer-star { display: none; }
  .legend { gap: 8px; }
}

@media (max-width: 350px) {
  .wrap { width: calc(100% - 26px); }
  .footer { flex-wrap: wrap; justify-content: center; gap: 4px 12px; padding-block: 8px; }
  .card-inner { padding: 25px 23px 27px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
