@font-face{font-family:Julehilsen;src:url('./assets/julehilsen.otf') format('opentype');font-display:swap}
:root{color-scheme:dark;--ink:#f7f2ed;--muted:#c1bccb;--gold:#eac58d;--gold-light:#ffebc5;--navy:#121629}
*{box-sizing:border-box}
html{min-height:100%;background:var(--navy)}
body{margin:0;color:var(--ink);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-weight:400;line-height:1.6;min-width:320px}
button,a{-webkit-tap-highlight-color:transparent}
button:focus-visible,a:focus-visible{outline:2px solid var(--gold-light);outline-offset:7px}
.winter-scene{position:fixed;inset:0;z-index:-2;background:linear-gradient(90deg,rgba(15,19,39,.6),rgba(24,19,46,.3) 60%,rgba(17,19,38,.42)),url('./assets/winter-night.webp') center/cover no-repeat}
.winter-scene:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,rgba(16,18,36,.96),transparent 35%,transparent 75%,rgba(12,17,34,.4))}
.page{max-width:1440px;margin:auto;padding:0 6.25%;min-height:100svh;display:flex;flex-direction:column}
.topbar{display:flex;align-items:center;justify-content:space-between;padding:34px 0 22px;gap:16px}
.wordmark{display:inline-flex;align-items:center;gap:10px;color:var(--gold-light);text-decoration:none;font-family:Georgia,serif;font-size:21px;letter-spacing:.02em}
.wordmark svg{width:26px;height:26px}
.christmas-date{font-size:14px;letter-spacing:.05em;color:#dcd3de}
.christmas-date span{color:var(--gold);padding-right:10px}
main{flex:1;display:flex;align-items:center}
.hero{display:grid;grid-template-columns:.95fr 1.05fr;align-items:center;gap:4%;width:100%;padding:38px 0 42px}
.countdown-side{padding-bottom:10px}
.eyebrow{text-transform:uppercase;letter-spacing:.21em;font-size:12px;font-weight:500;color:var(--gold);margin:0 0 20px}
h1{font-family:Georgia,'Times New Roman',serif;font-weight:400;font-size:clamp(42px,4.2vw,62px);line-height:1.16;letter-spacing:-.045em;margin:0}
h1 em{font-family:Julehilsen,Georgia,serif;font-weight:400;color:var(--gold-light);font-size:1.5em;letter-spacing:0;line-height:.85}
.countdown{display:flex;align-items:center;gap:24px;margin:30px 0 4px;min-height:168px}
.day-number{font-family:Georgia,'Times New Roman',serif;font-weight:400;font-variant-numeric:lining-nums tabular-nums;font-size:clamp(138px,14vw,198px);letter-spacing:-.075em;line-height:1;color:var(--gold-light);text-shadow:0 0 50px #f6bb6e1c;padding-right:5px}
.day-description{display:flex;flex-direction:column;padding-top:18px;font-size:24px;line-height:1.3;letter-spacing:.02em}
.until{font-size:15px;color:var(--muted);margin-top:8px;letter-spacing:0}
.countdown-note{font-size:13px;color:#c1bccb;margin:4px 0 0;display:flex;gap:8px;align-items:center}
.live-dot{width:5px;height:5px;border-radius:50%;background:var(--gold);box-shadow:0 0 10px #efc98d99;flex-shrink:0}
.fine-rule{height:24px;max-width:330px;position:relative;margin:20px 0 15px;display:flex;align-items:center;gap:13px;color:var(--gold)}
.fine-rule:before,.fine-rule:after{content:'';height:1px;background:linear-gradient(90deg,#c6a57270,transparent);flex:1}
.fine-rule:before{flex:0 0 40px;background:#c6a57270}
.fine-rule span{font-size:19px}
.greeting{font-family:Georgia,serif;font-size:18px;line-height:1.75;color:#e2dce7;margin:0}
.portrait-side{text-align:center;padding-top:20px}
.portrait-intro{font-size:12px;letter-spacing:.19em;text-transform:uppercase;color:#d7c9c5;margin:0 0 30px}
.portraits{display:grid;grid-template-columns:1fr 1.23fr 1fr;align-items:center;gap:13px;padding:0 0 2px;max-width:620px;margin:0 auto}
.portrait{margin:0;min-width:0;position:relative}
.photo-frame{padding:5px;border:1px solid #dcb987ad;background:linear-gradient(145deg,#c79a6825,#7969ac0d);border-radius:110px 110px 8px 8px;box-shadow:0 10px 38px #05051255,inset 0 0 0 1px #fff1cd12}
.portrait img{width:100%;height:100%;object-fit:cover;display:block;border-radius:inherit}
.pet .photo-frame{aspect-ratio:.61}
.carina{transform:translateY(-10px)}
.carina .photo-frame{aspect-ratio:.63;border-color:#f0d2a3;box-shadow:0 0 45px #9a77ae20,0 18px 45px #07081155}
.carina img{object-position:50% 35%}
.portrait figcaption{font-family:Georgia,serif;color:var(--gold-light);font-size:17px;margin-top:13px;letter-spacing:.03em}
.signature-heart{color:var(--gold);font-size:29px;line-height:1;margin:20px 0 7px;text-shadow:0 0 20px #edc48a66}
.family-signature{font-family:Julehilsen,Georgia,serif;color:var(--gold-light);font-size:39px;line-height:1.1;margin:0}
.family-signature span{font-size:.8em}
.family-note{font-size:13px;letter-spacing:.01em;color:var(--muted);margin:12px 0 0}
.footer{border-top:1px solid #e6c69d25;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 0 25px}
.credit{display:flex;align-items:baseline;gap:20px}
.credit>span:first-child{font-family:Julehilsen,Georgia,serif;font-size:27px;color:var(--gold-light);line-height:1.2}
.year{font-size:11px;letter-spacing:.04em;color:#a7a2b5}
.controls{display:flex;gap:23px}
button{display:flex;align-items:center;justify-content:center;gap:8px;background:transparent;color:#d1cad7;border:0;padding:8px 0;font:inherit;font-size:12px;cursor:pointer;transition:color .2s}
button:hover{color:var(--gold-light)}
button svg{width:18px;height:18px;flex-shrink:0}
.status{font-size:13px;text-align:right;color:var(--gold-light);margin:0;min-height:0}
.status:not(:empty){padding-bottom:15px}
.snow{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:-1}
.snowflake{position:absolute;top:-20px;width:var(--size);height:var(--size);border-radius:50%;background:#fff9e9;opacity:0;box-shadow:0 0 6px #fff7ed44;animation:snowfall var(--duration) var(--delay) linear infinite;left:var(--left)}
@keyframes snowfall{0%{transform:translate3d(0,-20px,0);opacity:0}8%{opacity:var(--opacity)}90%{opacity:var(--opacity)}100%{transform:translate3d(var(--drift),105vh,0);opacity:0}}
.motion-paused .snowflake{animation-play-state:paused;opacity:0}
.number-change{animation:daychange .75s ease}
@keyframes daychange{0%{opacity:.3;transform:translateY(5px)}100%{opacity:1;transform:translateY(0)}}
.christmas-arrived .day-number{font-size:116px;letter-spacing:0}
.christmas-arrived .day-description{font-size:28px;max-width:190px;padding-top:0;font-family:Georgia,serif}
.noscript{color:var(--gold-light);font-size:14px}
@media(min-width:1500px){.page{padding-left:80px;padding-right:80px}.hero{gap:70px}}
@media(max-width:1050px){.page{padding:0 5%}.hero{gap:4%;grid-template-columns:.93fr 1.07fr}.portraits{gap:8px}.eyebrow{letter-spacing:.14em;font-size:11px}.portrait-intro{font-size:11px;letter-spacing:.12em}.family-signature{font-size:33px}.family-note{font-size:12px}.credit{gap:12px}.greeting{font-size:16px}.countdown{gap:18px}.year{display:none}}
@media(max-width:760px){.page{padding:0 7%}.topbar{padding:25px 0 14px}.wordmark{font-size:19px}.christmas-date{font-size:11px;letter-spacing:0}.christmas-date span{display:none}.hero{grid-template-columns:1fr;padding:30px 0 33px;gap:36px}.countdown-side{text-align:center;padding:0}.eyebrow{font-size:10px;margin-bottom:18px;letter-spacing:.18em}h1{font-size:43px;line-height:1.17}h1 em{font-size:1.5em}.countdown{justify-content:center;margin-top:22px;min-height:140px;gap:22px}.day-number{font-size:153px}.day-description{font-size:22px;text-align:left}.until{font-size:14px}.countdown-note{justify-content:center;font-size:12px;margin-top:7px}.fine-rule{margin:15px auto 13px;max-width:220px}.fine-rule:before{flex:1;background:linear-gradient(270deg,#c6a57270,transparent)}.greeting{font-size:16px;line-height:1.65}.portrait-side{padding:0}.portrait-intro{margin:0 0 24px;font-size:10px;letter-spacing:.16em}.portraits{max-width:440px;gap:10px}.portrait figcaption{font-size:15px;margin-top:10px}.photo-frame{padding:4px}.signature-heart{font-size:26px;margin-top:15px}.family-signature{font-size:36px}.family-note{font-size:12px;margin-top:9px}.footer{padding:20px 0;gap:10px}.credit>span:first-child{font-size:25px}.controls{gap:17px}button{font-size:11px;gap:5px}button svg{width:16px;height:16px}.winter-scene{background-position:center}.christmas-arrived .day-number{font-size:95px}.christmas-arrived .day-description{font-size:25px}}
@media(max-width:380px){.page{padding:0 5.5%}.topbar{gap:8px}.wordmark{font-size:17px;gap:6px}.wordmark svg{width:22px}.christmas-date{font-size:10px}h1{font-size:39px}.controls{gap:10px}.credit>span:first-child{font-size:22px}.family-note{font-size:11px}}
@media(prefers-reduced-motion:reduce){.number-change{animation:none!important}button,a{transition:none!important}}
.christmas-date{font-size:14px}
.countdown-note,.family-note{font-size:14px}
button{font-size:14px}
@media(max-width:760px){.topbar{flex-direction:column;gap:6px;padding-bottom:8px}.christmas-date{font-size:14px}.eyebrow,.portrait-intro{font-size:12px}.countdown-note,.family-note{font-size:14px}.controls{gap:16px}.footer{flex-direction:column;gap:8px}.credit>span:first-child{font-size:28px}button{font-size:14px}.hero{padding-top:24px}}
