:root {
    color-scheme: dark;
    --bg: #101310;
    --ink: #fff8f4;
    --muted: #c2cbc3;
    --rose: #f5b6c1;
    --red: #ab3445;
    --mint: #b5d3bd;
    --forest: #214537;
    --line: #343f37;
    font: 100%/1.55 system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at 70% 0%, #203b2d, transparent 44rem), var(--bg); color: var(--ink); }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--mint); outline-offset: 5px; }
.shell { max-width: 72rem; margin: auto; padding: 0 clamp(1.15rem, 5vw, 4rem); }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.45rem 0; border-bottom: 1px solid var(--line); }
.brand { text-decoration: none; font-weight: 650; }
.brand span, footer span, .signature span { color: var(--mint); }
.brand span { margin-right: .35rem; }
.year, .eyebrow { letter-spacing: .13em; font-size: .875rem; font-weight: 650; }
.year { color: var(--muted); text-align: right; }
.eyebrow { color: var(--mint); text-transform: uppercase; }
.hero { min-height: 30rem; display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: 2rem; padding: 3.25rem 0; }
h1, h2, .day, .paper { font-family: Georgia, serif; font-weight: 400; }
h1 { margin: .65rem 0 1.15rem; font-size: clamp(3.5rem, 8vw, 7rem); line-height: .92; letter-spacing: -.068em; }
h1 em { color: var(--rose); font-weight: inherit; }
.subtitle { max-width: 31ch; margin-bottom: 1.6rem; color: var(--muted); font-size: 1.08rem; }
.button { display: inline-block; background: var(--forest); color: #f2fbf3; border: 1px solid #557462; cursor: pointer; font: inherit; padding: .8rem 1.15rem; border-radius: .55rem; text-decoration: none; font-weight: 700; }
.button:hover { background: #305b48; }
.waiting { color: var(--rose); }
.art { min-height: 19rem; isolation: isolate; position: relative; display: grid; place-items: center; }
.art::before, .art::after { content: ""; position: absolute; z-index: -1; border: 1px solid #54705c; width: min(90%, 23rem); aspect-ratio: 1; border-radius: 50%; }
.art::after { width: min(80%, 20rem); border-color: #344f40; }
.envelope { position: relative; width: min(72%, 17rem); aspect-ratio: 1.48; margin-top: 2.5rem; transform: rotate(-10deg); background: #335a46; border-radius: .65rem; box-shadow: 0 1rem 2.5rem #080a08b0; }
.paper { position: absolute; inset: -37% 9% 18%; border-radius: .35rem; transform: rotate(6deg); background: #fce6e7; color: #66212e; text-align: center; padding-top: 7%; font-size: clamp(1rem, 3vw, 2rem); font-style: italic; }
.paper span { display: block; font-size: .65em; }
.fold { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(146deg, #4a7058, #173c2c); clip-path: polygon(0 0, 50% 53%, 100% 0, 100% 100%, 0 100%); }
.fold::after { content: ""; position: absolute; inset: 0; background: #2b503d; clip-path: polygon(0 100%, 50% 37%, 100% 100%); }
.seal { position: absolute; left: 50%; top: 48%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 20%; aspect-ratio: 1; border-radius: 50%; background: var(--red); color: var(--ink); box-shadow: 0 .2rem .7rem #080a0870; }
.spark { position: absolute; color: var(--mint); font-size: 1.4rem; }
.spark-a { top: 8%; right: 14%; font-size: 2rem; }
.spark-b { left: 7%; top: 23%; color: var(--rose); }
.spark-c { bottom: 8%; right: 20%; }
.calendar { border-top: 1px solid var(--line); padding: 1.4rem 0 2.5rem; }
.calendar-head { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
h2 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.progress { display: flex; align-items: center; gap: .65rem; font-size: .875rem; color: var(--muted); }
progress { width: 5rem; height: .38rem; accent-color: var(--mint); }
.doors { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .65rem; padding: 0; margin: 0; }
.door { display: flex; flex-direction: column; justify-content: space-between; min-height: 6.25rem; height: 100%; position: relative; padding: .75rem; border: 1px solid var(--line); border-radius: .65rem; background: #191e1a; text-decoration: none; }
.day { font-size: 2rem; line-height: 1; }
.state { font-size: .875rem; color: var(--muted); }
.mark { position: absolute; top: .65rem; right: .75rem; color: var(--rose); }
.open { background: #20382b; }
.open:hover, .open:focus-visible { border-color: var(--rose); background: #30513e; }
.locked .day { color: #b9c5bb; }
.latest { border-color: var(--mint); }
.latest .mark, .latest .state { color: var(--mint); }
.doors li:nth-child(23) { grid-column: span 2; }
.grand { grid-column: 1 / -1; }
.grand .door { min-height: 7rem; }
.grand .door { background: linear-gradient(125deg, #51252c, #203c31); }
.grand .mark { color: var(--mint); }
footer { border-top: 1px solid var(--line); padding: 1.35rem 0 2rem; color: var(--muted); text-align: center; }
.letter { max-width: 43rem; background: #19281f; border: 1px solid var(--line); border-radius: 1rem; margin: clamp(1.5rem, 6vw, 4rem) auto; padding: clamp(1.25rem, 6vw, 3.5rem); }
.letter h1 { font-size: clamp(2.65rem, 7vw, 4.5rem); line-height: 1; color: var(--rose); }
.letter p:not(.eyebrow) { font-size: 1.12rem; }
.letter .eyebrow { margin-top: 2rem; }
.back, .letter-nav a { color: var(--mint); text-underline-offset: .2em; }
.signature { font-style: italic; margin-top: 2rem; }
.letter-nav { border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: 1rem; display: flex; flex-wrap: wrap; gap: .65rem 1.5rem; }
.letter-nav:empty { display: none; }
.finale { border-color: #547c65; }
@media (max-width: 48rem) {
    .doors { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 36rem) {
    .hero { grid-template-columns: 1fr; gap: 0; padding: 1.65rem 0; }
    .art { min-height: 15rem; width: min(100%, 20rem); margin: 1rem auto 0; }
    .art::before { width: 75%; }
    .art::after { width: 65%; }
    .doors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}



.note-message { color: #f5ebe7; margin: 1rem 0 1.75rem; }
.done { background: #204034; border-color: #557462; }
.done .mark { color: var(--mint); }
.revealed { border-color: #547c65; }
@media (prefers-reduced-motion: no-preference) {
    .revealed { animation: show-note .4s ease-out; }
    @keyframes show-note {
        from { transform: translateY(.45rem); opacity: .45; }
        to { transform: none; opacity: 1; }
    }
}

.locked:hover { border-color: var(--rose); }

.letter .dedication { color: var(--mint); font-style: italic; margin: 0; }

.greeting { text-transform: none; letter-spacing: .06em; font-size: 1rem; }

