:root {
  --brand-blue: #78bde8;
  --ice: #c5d9e8;
  --silver: #e5e7eb;
  --ink: #000000;
  --white: #ffffff;
  --chunk: "Chunkfive", Georgia, serif;
  --roboto: "Roboto", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--white); font-family: var(--roboto); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 5px; }

.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 11px 15px; color: var(--ink); background: var(--white); border: 1px solid var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.snowfall { position: fixed; z-index: 20; inset: 0; pointer-events: none; opacity: .25; background-image: radial-gradient(circle, rgba(255,255,255,.9) 0 1px, transparent 1.5px); background-size: 93px 93px; animation: snowfall 24s linear infinite; }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 28px; max-width: 1400px; margin: 0 auto; padding: 22px clamp(22px, 5vw, 70px); }
.brand { display: block; position: relative; width: 176px; height: 60px; overflow: hidden; flex: 0 0 auto; }
.brand img { display: block; width: 176px; height: 60px; object-fit: cover; object-position: center; }
.brand::after { content: ""; position: absolute; top: 0; right: 0; width: 21%; height: 52%; background: var(--white); pointer-events: none; }
.site-header nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); font-size: .78rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.site-header nav > a:not(.book-link) { text-decoration: none; }
.site-header nav > a:not(.book-link):hover { text-decoration: underline; text-underline-offset: 5px; }
.book-link, .primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 12px 16px; border: 1px solid var(--ink); background: var(--white); color: var(--ink); font-size: .76rem; font-weight: 900; letter-spacing: .03em; text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.book-link:hover, .primary-button:hover, .secondary-button:hover { transform: translateY(-2px); border-color: #5c91b1; }

.hero { position: relative; max-width: 940px; margin: 0 auto; padding: clamp(65px, 8vw, 112px) 24px clamp(60px, 7vw, 100px); text-align: center; }
.eyebrow { margin: 0; font-size: .69rem; font-weight: 900; letter-spacing: .18em; line-height: 1.5; text-transform: uppercase; }
.hero h1, .section-heading h2, .how-it-works h2, .share-section h2, .terms h2 { margin: 11px 0 16px; color: var(--ink); font-family: var(--chunk); font-weight: 400; letter-spacing: -.06em; line-height: .9; }
.hero h1 { font-size: clamp(4rem, 10vw, 8.7rem); }
.hero-line { margin: 0 auto 15px; font-size: clamp(1.1rem, 2.2vw, 1.45rem); font-weight: 900; letter-spacing: -.025em; }
.hero-copy { max-width: 680px; margin: 0 auto 25px; font-size: 1.02rem; line-height: 1.64; }
.return-note { margin: 18px 0 0; font-size: .84rem; }

.calendar-section { position: relative; padding: clamp(45px, 7vw, 90px) clamp(12px, 4vw, 58px); background: var(--white); }
.section-heading { max-width: 650px; margin: 0 auto 34px; text-align: center; }
.section-heading h2 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
.section-heading > p:last-child { margin: 0; line-height: 1.5; }

/* The physical construction, numbers, materials, and ornaments all come from
   the master-referenced photograph. These controls add no illustrated doors. */
.shopfront { position: relative; max-width: 1120px; margin: 0 auto; background: var(--white); }
.cabinet-viewport { overflow-x: auto; overflow-y: hidden; max-width: 100%; overscroll-behavior-x: contain; scrollbar-color: #a9cde2 #ffffff; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.cabinet-scene { position: relative; width: 100%; min-width: 600px; aspect-ratio: 3 / 4; isolation: isolate; }
.cabinet-photograph { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; user-select: none; }
.calendar-grid { position: absolute; z-index: 2; inset: 0; }
.advent-door { position: absolute; display: block; margin: 0; padding: 0; border: 0; border-radius: 40% 40% 3px 3px / 25% 25% 3px 3px; background: transparent; color: var(--ink); perspective: 900px; -webkit-tap-highlight-color: transparent; }
.advent-door:disabled { cursor: default; opacity: 1; }
.advent-door[data-state="open"] { cursor: pointer; }
.advent-door[data-state="open"]::after { content: ""; position: absolute; inset: 4%; border: 2px solid rgba(120,189,232,.85); border-radius: inherit; pointer-events: none; animation: availableDoor 3s ease-in-out infinite; }
.advent-door[data-state="open"]:hover, .advent-door:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 3px; }
.door-label { position: absolute; z-index: 5; bottom: -12px; left: 50%; max-width: 220px; padding: 6px 8px; border: 1px solid #000; background: #fff; color: #000; font-size: .69rem; font-weight: 700; line-height: 1.25; white-space: nowrap; transform: translate(-50%, 100%); visibility: hidden; pointer-events: none; }
.advent-door[data-state="open"]:hover .door-label, .advent-door:focus-visible .door-label { visibility: visible; }
.door-leaf, .door-interior { position: absolute; display: block; opacity: 0; border-radius: 50% 50% 0 0 / 32% 32% 0 0; pointer-events: none; }
.door-interior { background: radial-gradient(ellipse at 70% 20%, #666159, #171614 70%); }
.door-leaf { z-index: 2; background-repeat: no-repeat; transform-origin: left center; backface-visibility: hidden; }
.advent-door.opening { z-index: 4; }
.advent-door.opening::after { display: none; }
.advent-door.opening .door-interior, .advent-door.opening .door-leaf { opacity: 1; }
.advent-door.opening .door-leaf { animation: photographicDoorOpen .7s cubic-bezier(.2,.7,.2,1) both; }
.cabinet-pan-hint { display: none; margin: 0 0 15px; color: #000; font-size: .78rem; line-height: 1.5; text-align: center; }
.cabinet-pan-hint span { margin-left: 7px; }
.shopfront-caption { max-width: 720px; margin: 22px auto 0; color: #000; font-size: .85rem; line-height: 1.5; text-align: center; }
.countdown-panel { display: grid; gap: 6px; justify-items: center; max-width: 660px; margin: 27px auto 0; padding: 24px; border-top: 1px solid var(--silver); border-bottom: 1px solid var(--silver); background: var(--white); color: var(--ink); text-align: center; }
.countdown-label { font-size: .65rem; font-weight: 900; letter-spacing: .18em; }
.countdown-panel strong { font-size: clamp(1rem, 2.5vw, 1.45rem); }
.server-time { font-size: .78rem; }

.how-it-works, .share-section, .terms { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 8vw, 120px); max-width: 1190px; margin: 0 auto; padding: clamp(65px, 9vw, 115px) 24px; background: var(--white); color: var(--ink); }
.how-it-works h2, .share-section h2, .terms h2 { font-size: clamp(2.5rem, 5.3vw, 4.7rem); }
.how-it-works ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid #aeb9c1; }
.how-it-works li { min-height: 210px; padding: 23px 23px 14px 0; border-right: 1px solid #aeb9c1; }
.how-it-works li + li { padding-left: 23px; }
.how-it-works li:last-child { border-right: 0; }
.how-it-works li span { font-size: .7rem; font-weight: 900; letter-spacing: .14em; }
.how-it-works h3 { margin: 31px 0 8px; font-size: 1.05rem; letter-spacing: -.02em; }
.how-it-works li p { margin: 0; font-size: .89rem; line-height: 1.55; }
.share-section { align-items: center; border-top: 1px solid var(--silver); border-bottom: 1px solid var(--silver); }
.share-section h2 { max-width: 650px; }
.share-section p { max-width: 450px; margin: 0; line-height: 1.55; }
.share-section .secondary-button { justify-self: end; }
.terms { align-items: start; }
.terms-copy { max-width: 565px; line-height: 1.7; }
.terms-copy p { margin: 0 0 17px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 28px; border-top: 1px solid var(--silver); padding: 29px clamp(24px, 5vw, 72px); }
.footer-brand, .footer-brand img { width: 147px; height: 50px; }
.site-footer p { margin: 0; font-size: .78rem; }
.social-links { display: flex; gap: 15px; margin-top: 7px !important; }
.social-links a { text-decoration: none; }
.social-links a:hover { text-decoration: underline; }

.reward-modal { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 22px; }
.reward-modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(11,25,37,.72); backdrop-filter: blur(6px); }
.reward-panel { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(190px, .74fr) minmax(280px, 1.26fr); width: min(920px, 100%); max-height: min(720px, 94vh); overflow: auto; border: 1px solid rgba(255,255,255,.8); background: var(--white); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.close-modal { position: absolute; z-index: 2; top: 13px; right: 13px; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #000; border-radius: 50%; color: #000; background: #fff; font-size: 1.5rem; line-height: 1; }
.reward-visual { min-height: 100%; background: url("/assets/calendar-etched-glass.webp") center / cover; }
.reward-content { padding: clamp(30px, 5vw, 58px); }
.reward-type { margin: 0; font-size: .68rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.reward-content h2 { margin: 11px 0; font-family: var(--chunk); font-size: clamp(2.1rem, 5vw, 4rem); font-weight: 400; letter-spacing: -.055em; line-height: .9; }
.reward-description { line-height: 1.62; }
.reward-meta { display: grid; gap: 9px; margin: 21px 0; padding: 16px; border: 1px solid var(--silver); border-left: 4px solid var(--brand-blue); background: #fff; color: #000; font-size: .86rem; line-height: 1.45; }
.reward-code { font-weight: 900; letter-spacing: .06em; }
.reward-terms { margin: 19px 0; font-size: .8rem; line-height: 1.55; }
.reward-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.competition-form { display: grid; gap: 11px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--silver); }
.competition-form label { display: grid; gap: 6px; font-size: .78rem; font-weight: 900; }
.competition-form input[type="text"], .competition-form input[type="email"] { width: 100%; min-height: 44px; padding: 9px 10px; border: 1px solid #aebac3; color: #000; background: #fff; }
.consent-row { display: flex !important; align-items: flex-start; gap: 9px; font-weight: 400 !important; line-height: 1.42; }
.competition-status { min-height: 20px; margin: 0; font-size: .81rem; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

@keyframes photographicDoorOpen { from { transform: rotateY(0); } to { transform: rotateY(-104deg); } }
@keyframes snowfall { from { background-position: 28px -45px; } to { background-position: 121px 470px; } }
@keyframes availableDoor { 50% { opacity: .35; } }

@media (max-width: 900px) {
  .site-header nav > a:not(.book-link) { display: none; }
  .how-it-works, .share-section, .terms { grid-template-columns: 1fr; gap: 30px; }
  .share-section .secondary-button { justify-self: start; }
}
@media (max-width: 620px) {
  .site-header { padding: 16px 18px; }
  .brand, .brand img { width: 135px; height: 46px; }
  .book-link { min-height: 44px; padding: 10px 11px; font-size: .67rem; }
  .hero { padding-top: 58px; }
  .hero h1 { font-size: clamp(3.6rem, 17vw, 5rem); }
  .calendar-section { padding-right: 12px; padding-left: 12px; }
  .cabinet-pan-hint { display: block; }
  .cabinet-viewport { border-bottom: 1px solid var(--silver); }
  .shopfront-caption { padding: 0 12px; }
  .how-it-works ol { grid-template-columns: 1fr; }
  .how-it-works li, .how-it-works li + li { min-height: auto; padding: 20px 0; border-right: 0; border-bottom: 1px solid #aeb9c1; }
  .how-it-works li:last-child { border-bottom: 0; }
  .how-it-works h3 { margin-top: 11px; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .social-links { flex-direction: column; gap: 6px; }
  .reward-panel { grid-template-columns: 1fr; }
  .reward-visual { min-height: 160px; }
  .reward-content { padding: 29px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .snowfall { display: none; }
}
