:root {
  color-scheme: dark;
  --base: #291e26;
  --hero-base: #342730;
  --panel: #382c34;
  --ink: #f8fbff;
  --muted: #dbe7f2;
  --warm-ink: #fff9ee;
  --button-ink: #302738;
  --gold: #f3d39b;
  --ice: #e1e7de;
  --line: #ebc68959;
  --display: Georgia, "Times New Roman", serif;
  --gutter: max(5vw, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --header-offset: calc(60px + env(safe-area-inset-top, 0px));
  font-family: Inter, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-offset); }
body { margin: 0; background: radial-gradient(ellipse at 4% 56%, #644351 0%, transparent 48%), radial-gradient(ellipse at 53% 69%, #3f5b50 0%, transparent 49%), radial-gradient(ellipse at 100% 80%, #70543b 0%, transparent 52%), linear-gradient(165deg, #493541, #443940 60%, #423229); color: var(--ink); }
a { color: inherit; text-decoration: none; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--ice); outline-offset: 5px; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.wrap { width: min(1180px, calc(100% - var(--gutter) - var(--gutter))); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 3; padding-top: env(safe-area-inset-top, 0px); background: linear-gradient(105deg, #3b2837, #383036 52%, #2f3e37); box-shadow: 0 1px 0 var(--line), 0 6px 20px #21172036; }
.masthead { display: flex; justify-content: space-between; align-items: center; min-height: 56px; gap: .4rem; }
.brand { display: block; width: fit-content; padding-block: .25rem; }
.brand img { display: block; width: clamp(62px, 8vw, 80px); aspect-ratio: 1390 / 821; object-fit: contain; }
.header-actions { display: flex; align-items: center; }
.header-actions { gap: clamp(.35rem, 2vw, 1.15rem); }
.account-login, .account-join { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; white-space: nowrap; padding: .35rem .8rem; border: 0; border-radius: 7px; font-size: .875rem; font-weight: 750; }
.account-login { background: transparent; color: var(--ink); }
.account-login:hover, footer a:hover { color: var(--gold); }
.account-join { background: var(--action-blue); color: #fff; }
.account-join:hover { background: var(--action-blue-hover); }
.language-menu { position: relative; }
.language-toggle { display: flex; justify-content: center; align-items: center; gap: .45rem; min-height: 44px; min-width: 48px; cursor: pointer; list-style: none; }
.language-toggle::-webkit-details-marker { display: none; }
.language-toggle::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.language-menu[open] .language-toggle::after { transform: rotate(225deg); }
.my-flag { position: relative; display: block; flex: none; width: 26px; aspect-ratio: 1; overflow: hidden; border: 1px solid #fff9; border-radius: 50%; background: repeating-linear-gradient(#e83845 0 1.7px, #fff 1.7px 3.4px); }
.my-flag::before { content: "☪"; position: absolute; inset: 0 auto auto 0; display: grid; place-items: center; width: 60%; height: 55%; background: #103b78; color: #ffdb56; font: 12px/1 sans-serif; }
.language-panel { position: absolute; top: calc(100% + 5px); right: 0; display: flex; align-items: center; gap: .65rem; width: max-content; max-width: calc(100vw - var(--gutter) - var(--gutter)); padding: .85rem; border: 1px solid #d9e4ed; border-radius: 10px; background: #fbfdff; color: #12253b; box-shadow: 0 10px 28px #10233d40; }
.language-panel strong { font-size: .875rem; }
.language-options { display: flex; flex-wrap: wrap; gap: 0 .4rem; }
.language-options button { padding: .35rem .15rem; min-height: 36px; border: 0; background: transparent; color: #465871; font-size: .8rem; }
.language-options button:hover, .language-options button[aria-pressed="true"] { color: #005b94; text-decoration: underline; text-underline-offset: .2em; }
.hero {
  min-height: clamp(510px, 45vw, 700px);
  display: grid;
  align-items: center;
  background: linear-gradient(90deg, #35212ee8 0%, #35212e80 38%, transparent 72%), linear-gradient(0deg, #3b2935 0%, transparent 25%), url("xmas-hero-daylight.jpg?v=20261206-1") 72% center / cover no-repeat, var(--hero-base);
  border-block: 1px solid var(--line);
}
.hero-copy { padding-block: 4.5rem; }
.eyebrow { margin: 0 0 .85rem; color: var(--gold); font-size: .875rem; font-weight: 700; letter-spacing: .19em; }
.hero .eyebrow { color: var(--gold); }
.hero-copy .intro { color: var(--ink); }
.hero .eyebrow span[aria-hidden] { margin-right: .45rem; }
h1,h2,h3,p { margin-top: 0; }
h1,h2,h3 { font-family: var(--display); font-weight: 400; line-height: 1.04; letter-spacing: -.046em; }
h1 { margin-bottom: 1.25rem; font-size: clamp(4rem, 7.3vw, 7.8rem); text-shadow: 0 4px 28px #080b1199; }
h1 em { color: #ffe3af; font-style: italic; }
h2 { font-size: clamp(2.3rem, 5vw, 3.9rem); margin-bottom: .85rem; }
h3 { color: var(--warm-ink); font-size: 1.65rem; margin-bottom: .75rem; }
.intro { max-width: 32ch; font-size: 1.13rem; line-height: 1.5; margin-bottom: 1.65rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .8rem 1.25rem; border-radius: 4px; background: linear-gradient(132deg, #fbe9bd, #deb169); border: 1px solid #f4d49d; color: var(--button-ink); box-shadow: inset 0 1px 0 #fff4d7a0, 0 4px 14px #26181955; font-weight: 750; }
.button:hover { background: #f6e5c6; }
.season { display: flex; justify-content: center; gap: 1.2rem; padding: .85rem 1rem; text-align: center; color: var(--muted); background: linear-gradient(90deg, #4d3444, #473938 50%, #3e4439); border-bottom: 1px solid var(--line); font-weight: 650; }
.season span[aria-hidden] { color: var(--gold); }
.events { padding-block: 4.5rem; }
.muted { color: var(--muted); line-height: 1.55; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: 0 12px 26px #22151d42; }
.card-art { position: relative; aspect-ratio: 2.45; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 50% 45%, var(--glow), var(--edge) 78%); }
.card-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-art::after { content: ""; pointer-events: none; position: absolute; inset: 0; box-shadow: inset 0 -14px 22px -16px #201316b3; }
.cranberry { --glow: #6f3e49; --edge: #321f2b; }
.pine { --glow: #3e6357; --edge: #162e2b; }
.gold { --glow: #62533d; --edge: #29271f; }
.card-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1rem, 2.4vw, 1.55rem); }
.cranberry + .card-body { background: linear-gradient(145deg, #56394b, #3f2d3c); }
.pine + .card-body { background: linear-gradient(145deg, #3a5247, #2f4038); }
.gold + .card-body { background: linear-gradient(145deg, #5b4836, #47382d); }
.card-category { margin-bottom: .55rem; color: var(--gold); font-size: .875rem; font-weight: 650; }
.card-description { flex: 1; }
.card-dates { color: var(--muted); font-size: .875rem; margin-bottom: .9rem; }
.card-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .6rem .85rem; border-radius: 4px; color: var(--gold); border: 1px solid var(--line); background: transparent; font-weight: 650; }
.card-button:hover { border-color: var(--gold); background: #f3d39b18; }
.christmas-scene img { display: block; width: 100%; height: auto; }
footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.4rem calc(1.4rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); color: var(--muted); }
footer .brand img { width: 76px; }
.footer-brand { display: inline-flex; align-items: center; gap: .65rem; }
.footer-title { display: grid; gap: .12rem; color: var(--ink); font: 1rem/1.1 var(--display); }
.footer-title em { color: var(--gold); font-size: .875rem; }
.back-top { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--gold); border-radius: 50%; background: var(--panel); color: var(--gold); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease, visibility .35s; }
.back-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--gold); color: var(--base); }
.back-top span { width: 11px; height: 11px; border-top: 2px solid; border-left: 2px solid; transform: translateY(2px) rotate(45deg); }
dialog { width: min(92vw, 540px); max-height: 85dvh; overflow: auto; padding: clamp(1.2rem, 5vw, 2.1rem); position: fixed; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); }
dialog::backdrop { background: #21141cbe; }
dialog h2 { margin-right: 2rem; font-size: clamp(2rem, 5vw, 2.8rem); }
.close { position: absolute; inset: .65rem .65rem auto auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: var(--gold); font-size: 1.6rem; }
dl div { border-top: 1px solid var(--line); padding-block: .7rem; }
dt { font-weight: 750; }
dd { margin: .2rem 0 0; color: var(--muted); white-space: pre-line; line-height: 1.55; }
@media (max-width: 710px) {
  :root { --gutter: max(clamp(14px, 4.5vw, 26px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); }
  .masthead .brand img { width: clamp(54px, 15vw, 72px); }
  .header-actions { gap: .25rem; }
  .account-login, .account-join { padding-inline: .5rem; }
  .hero { display: block; min-height: 0; background: var(--hero-base); }
  .hero::before { content: ""; display: block; height: clamp(200px, 62vw, 330px); background: linear-gradient(0deg, var(--hero-base), transparent 37%), url("xmas-hero-daylight.jpg?v=20261206-1") 92% top / cover no-repeat; }
  .hero-copy { position: relative; margin-top: -1.2rem; padding-block: 0 2rem; }
  .hero .eyebrow { font-size: .8rem; letter-spacing: .12em; }
  h1 { font-size: clamp(2.85rem, 10vw, 4.9rem); margin-bottom: .85rem; }
  .intro { max-width: 48ch; font-size: 1rem; margin-bottom: 1.1rem; }
  .hero .button, .card-button { width: 100%; }
  .season { gap: .65rem; padding-block: .65rem; font-size: .875rem; }
  .cards { grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-top: 1.25rem; }
  .card-body { padding: 1rem; }
  .card-body h3, dialog h2, dialog dd { overflow-wrap: anywhere; }
  .events { padding-block: 2.6rem; }
  dialog { width: min(calc(100% - var(--gutter) - var(--gutter)), 540px); max-height: 85dvh; padding: 1rem; overscroll-behavior: contain; }
  dialog h2 { font-size: clamp(1.6rem, 7vw, 2.35rem); margin-right: 3rem; }
  dialog form { position: sticky; top: 0; z-index: 1; }
  dialog .close { inset: 0 0 auto auto; background: var(--panel); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .back-top { transition: none; } }

:root {
  color-scheme: light;
  --base: #173750;
  --panel: #f8fcff;
  --ink: #142f49;
  --muted: #38536c;
  --warm-ink: #142f49;
  --gold: #805313;
  --ice: #1262b3;
  --line: #b9d9ee;
  --hero-base: #284561;
  --campaign-blue: #1262b3;
  --action-blue: #52bce8;
  --action-blue-hover: #45b5de;
  --campaign-red: #c9213e;
  --campaign-gold: #ffc65a;
}

body { background: linear-gradient(145deg, #effaff, #d9f0ff 52%, #eef8ff); }
.site-header { background: #f5fbff; box-shadow: 0 1px 0 #b9d9ee, 0 5px 18px #1262b31a; }
.hero {
  color: #fff;
  background: linear-gradient(90deg, #163952db 0%, #16395294 30%, transparent 63%), url("xmas-hero-daylight.jpg?v=20261206-1") 72% center / cover no-repeat, var(--hero-base);
}
.hero .eyebrow, .hero h1 em { color: #ffe1a1; }
.hero-copy .intro { color: #f1f8ff; }
.button { background: var(--campaign-red); border-color: #a81933; color: #fff; box-shadow: 0 4px 14px #8d1f3440; }
.button:hover { background: #a81933; }
.season { background: #cbe9ff; color: #164970; }
.season span[aria-hidden] { color: var(--gold); }
.card { box-shadow: 0 12px 26px #1639521c; }
.cranberry + .card-body { background: linear-gradient(145deg, #fff5fa, #f4e7f0); }
.pine + .card-body { background: linear-gradient(145deg, #f4fdf8, #e3f3eb); }
.gold + .card-body { background: linear-gradient(145deg, #fffaf0, #fff0d3); }
.card-category, .events .eyebrow { color: #9f1c34; }
.card-button { border-color: var(--action-blue); color: var(--action-blue); }
.card-button:hover { background: #eaf8ff; border-color: var(--action-blue-hover); }
.card-actions { display: flex; flex-wrap: wrap; gap: .5rem; width: 100%; }
.card-join { background: var(--action-blue); color: #fff; }
.card-join:hover { background: var(--action-blue-hover); }
@media (max-width: 710px) {
  .card-actions .card-button { flex: 1 0 auto; width: auto; }
}
.back-top { background: var(--campaign-blue); border-color: #084c91; color: #fff; }
.back-top:hover { background: #084c91; color: #fff; }
dialog { box-shadow: 0 16px 48px #16395240; }
dialog::backdrop { background: #132f4ca6; }
.close { color: var(--campaign-blue); }
footer { border-top-color: var(--campaign-gold); }
.footer-terms { display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; padding: 0 .25rem; border: 0; background: transparent; color: var(--muted); text-align: start; font-size: .875rem; }
.footer-terms:hover { color: var(--campaign-blue); }
.footer-terms::after { content: ""; flex: none; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.footer-terms[aria-expanded="true"]::after { transform: rotate(225deg); }
.footer-notes { width: 100%; padding: clamp(1rem, 3vw, 1.75rem); border: 1px solid var(--line); border-radius: 10px; background: #f6fbff; line-height: 1.55; }
.footer-notes h2 { color: var(--ink); font-size: clamp(1.45rem, 3vw, 2rem); }
.footer-notes ul { display: grid; gap: .65rem; margin: 0; padding: .85rem 1rem; list-style: none; border-inline-start: 3px solid var(--campaign-blue); background: #e8f5ff; }
.footer-notes li { overflow-wrap: anywhere; }
.footer-notes li strong { color: var(--ink); margin-inline-end: .5em; }
@media (max-width: 710px) {
  .hero { background: var(--hero-base); }
  footer { gap: .5rem; padding-block: 1rem calc(1rem + env(safe-area-inset-bottom, 0px)); }
  .footer-terms { width: 100%; justify-content: space-between; gap: .8rem; padding-inline: .75rem; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); }
  .footer-terms[aria-expanded="true"] { color: var(--campaign-blue); }
  .footer-notes { min-width: 0; padding: .9rem; overflow-wrap: anywhere; }
  .footer-notes .eyebrow { margin-bottom: .45rem; }
  .footer-notes ul { padding: .65rem .75rem; }
  .footer-notes li strong { display: block; margin: 0 0 .15em; }
  .back-top { bottom: max(1rem, calc(env(safe-area-inset-bottom, 0px) + .5rem)); }
  footer:has(.footer-terms[aria-expanded="true"]) { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px)); }
}
