@font-face {
  font-family: "Berkshire Swash";
  src: url("/static/fonts/berkshire-swash.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --pine: #102c27;
  --ivory: #fff1d5;
  --muted: #c4cdbd;
  --gold: #e6bc75;
  --line: #426052;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--pine); }
body { margin: 0; color: var(--ivory); font-family: Georgia, "Times New Roman", serif; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 5px; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
::selection { background: var(--gold); color: var(--pine); }
html { scrollbar-color: var(--line) var(--pine); }
[hidden] { display: none !important; }
.christmas-landing { max-width: 1800px; margin: auto; overflow: clip; }
.site-header { height: 104px; margin: 0 5.5%; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.wordmark { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 20px; }
.wordmark svg { width: 24px; height: 30px; fill: none; stroke: var(--gold); stroke-width: 1.5; }
.christmas-date { color: var(--muted); font-size: 15px; }
.welcome { position: relative; display: grid; grid-template-columns: 43% 57%; grid-template-rows: auto auto; padding: 42px 0 48px 5.5%; min-height: 670px; align-items: center; }
.greeting { grid-column: 1; grid-row: 1; z-index: 1; padding-top: 35px; pointer-events: none; }
h1 { font-family: "Berkshire Swash", Georgia, serif; font-size: clamp(44px, 4.9vw, 82px); line-height: 1.17; font-weight: 400; margin: 0 0 26px; letter-spacing: -0.025em; }
h1 span { color: var(--gold); }
.invitation { color: var(--muted); font-size: 18px; line-height: 1.85; margin: 0; }
.room { grid-column: 2; grid-row: 1 / 3; margin: 0 0 0 -70px; min-width: 0; align-self: center; }
#christmas-scene { width: 100%; height: clamp(400px, 40vw, 620px); position: relative; }
#christmas-scene canvas { display: block; width: 100%; height: 100%; }
.scene-fallback { position: absolute; inset: 10% 12%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; border: 1px solid var(--line); border-radius: 48% 48% 0 0; background: #193b31; }
.scene-fallback p { font-size: 38px; line-height: 1.3; color: var(--gold); margin: 18px; }
.scene-fallback > span:last-child { color: var(--muted); font-size: 14px; }
.fallback-star { width: 55px; height: 55px; fill: none; stroke: var(--gold); stroke-width: 1.5; }
.scene-caption { color: var(--muted); text-align: center; font-size: 15px; font-style: italic; margin: 2px 0 18px; }
.scene-controls { display: flex; justify-content: center; gap: 8px; }
.scene-controls button { background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 30px; padding: 10px 15px; min-height: 44px; font-family: system-ui, sans-serif; font-size: 12px; display: flex; align-items: center; gap: 7px; cursor: pointer; transition: background 160ms ease, color 160ms ease; }
.scene-controls button:hover { background: #264438; color: var(--ivory); }
.scene-controls button[aria-pressed="true"] { color: var(--gold); border-color: #8e794e; }
.scene-controls svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.countdown { grid-column: 1; grid-row: 2; padding: 42px 0 20px; z-index: 1; }
.countdown h2 { font-weight: 400; font-size: 17px; margin: 0 0 22px; }
.countdown-timer { display: flex; max-width: 430px; }
.time-unit { display: flex; flex-direction: column; align-items: center; flex: 1; border-right: 1px solid var(--line); padding: 0 15px; }
.time-unit:first-child { padding-left: 0; }
.time-unit:last-child { border: 0; }
.time-value { font-size: clamp(38px, 3.6vw, 56px); font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; color: var(--gold); }
.time-label { font-family: system-ui, sans-serif; font-size: 11px; margin-top: 12px; color: var(--muted); }
.countdown-note { color: var(--muted); font-style: italic; font-size: 13px; margin: 26px 0 0; }
.carol { margin: 0 5.5%; padding: 42px 0 46px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 43% 57%; align-items: center; gap: 20px; }
.carol-sprig { width: 66px; height: 34px; fill: none; stroke: var(--gold); stroke-width: 1.5; }
.carol h2 { font-family: "Berkshire Swash", Georgia, serif; font-weight: 400; font-size: 30px; margin: 12px 0; }
.carol-intro > p { color: var(--muted); margin: 0; font-size: 14px; }
.carol-lyrics { display: flex; gap: 40px; font-size: 16px; font-style: italic; line-height: 2; color: var(--muted); }
.carol-lyrics p { margin: 0; }
.site-footer { margin: 0 5.5%; padding: 30px 0; display: flex; align-items: baseline; gap: 20px; color: var(--muted); font-size: 13px; }
.site-footer p { font-family: "Berkshire Swash", Georgia, serif; font-size: 23px; margin: 0; color: var(--gold); }
.site-footer a { margin-left: auto; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

@media (min-width: 1500px) { .welcome { padding-top: 60px; padding-bottom: 70px; } }
@media (max-width: 1050px) {
  .welcome { grid-template-columns: 44% 56%; min-height: 600px; }
  .invitation { font-size: 16px; }
  .time-unit { padding: 0 10px; }
  .carol-lyrics { gap: 24px; font-size: 14px; }
  .scene-controls { gap: 6px; }
  .scene-controls button { padding: 10px; font-size: 11px; }
}
@media (max-width: 760px) {
  .site-header { height: 78px; }
  .wordmark { font-size: 17px; gap: 8px; }
  .christmas-date { font-size: 12px; }
  .welcome { display: flex; flex-direction: column; padding: 44px 0 38px; }
  .greeting { text-align: center; padding: 0 16px; }
  h1 { font-size: clamp(38px, 8.7vw, 62px); margin-bottom: 19px; }
  .invitation { font-size: 15px; line-height: 1.75; }
  .room { width: 100%; margin: 8px 0 0; }
  #christmas-scene { height: clamp(300px, 82vw, 480px); }
  .scene-caption { margin: -4px 0 18px; font-size: 13px; }
  .scene-controls button { padding: 10px 13px; font-size: 11px; }
  .countdown { padding: 38px 22px 0; width: 100%; text-align: center; }
  .countdown h2 { font-size: 16px; }
  .countdown-timer { margin: 0 auto; }
  .time-value { font-size: 42px; }
  .time-unit { padding: 0 12px; }
  .time-unit:first-child { padding-left: 12px; }
  .countdown-note { font-size: 12px; }
  .carol { display: block; text-align: center; padding: 30px 0 36px; }
  .carol h2 { font-size: 28px; }
  .carol-lyrics { justify-content: center; flex-wrap: wrap; gap: 0 28px; margin-top: 25px; font-size: 14px; }
  .site-footer { flex-wrap: wrap; justify-content: center; gap: 12px 18px; text-align: center; padding: 25px 0; }
  .site-footer a { flex-basis: 100%; margin: 5px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
