:root{--ink:#493535;--muted:#826b6b;--rose:#b75766;--paper:#fffaf6;--pink:#f6e6e5;--serif:'DM Serif Display',Georgia,serif;--hand:'Handlee',cursive}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);font-family:'DM Sans',sans-serif;background:var(--paper);font-size:16px}a{color:inherit;text-decoration:none}.wrap{width:min(1120px,calc(100% - 64px));margin:auto}.topbar{height:80px;display:flex;align-items:center;justify-content:space-between;width:min(1200px,calc(100% - 64px));margin:auto;border-bottom:1px solid #eadbda}.brand{font-family:var(--hand);font-weight:bold;font-size:21px}.brand span,.top-link span{color:var(--rose)}.top-link{font-size:13px;font-weight:700;letter-spacing:.04em}.hero{min-height:620px;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:40px;padding-top:45px;padding-bottom:60px}.eyebrow{font-size:11px;letter-spacing:.18em;font-weight:700;color:#a36c70}.eyebrow span{font-size:16px;color:var(--rose);margin-right:8px}h1,h2{font-family:var(--serif);font-weight:400;letter-spacing:-.04em;margin:0;line-height:1.02}h1{font-size:clamp(58px,6.8vw,94px);margin:25px 0}h1 em,h2 em{font-weight:400;color:var(--rose)}.hero-subtitle{font-family:var(--hand);font-size:22px;margin:0 0 12px}.intro{line-height:1.8;color:var(--muted);max-width:410px}.button{display:inline-flex;align-items:center;gap:34px;background:var(--rose);color:white;padding:17px 22px;margin-top:21px;font-size:14px;font-weight:700;border-radius:3px}.button:hover{background:#9e4655}.button span{font-size:19px}.hand-note{font-family:var(--hand);color:#b9777b;font-size:16px;transform:rotate(-5deg);margin:28px 0 0 100px}.hand-note span{font-size:28px}.hero-art{height:500px;position:relative}.hero-blob{position:absolute;inset:40px 10px 20px 35px;background:#f4dedd;border-radius:48% 52% 46% 54% / 53% 39% 61% 47%;transform:rotate(-9deg)}.polaroid{background:#fffefa;padding:12px 12px 16px;box-shadow:0 12px 35px #76535426}.hero-photo{position:absolute;width:63%;top:65px;left:20%;transform:rotate(5deg)}.photo-placeholder{background:#ead1ce;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#b8787c;gap:8px}.hero-placeholder{height:295px;background:linear-gradient(145deg,#d8aeb0,#efd8d2)}.photo-placeholder span{font-size:50px;font-family:var(--serif)}.photo-placeholder small{font-family:var(--hand);font-size:15px}.photo-caption{font-family:var(--hand);font-size:20px;text-align:center;padding:14px 0 1px}.photo-caption span{color:var(--rose)}.sticker{position:absolute;bottom:47px;left:2%;background:#c16a76;color:#fff7f1;border-radius:50%;width:115px;height:115px;display:grid;place-content:center;text-align:center;font-size:11px;line-height:1.5;transform:rotate(-14deg);outline:1px dashed #fff8;outline-offset:-9px}.sticker strong{font-size:14px}.scribble{position:absolute;right:0;bottom:44px;font:18px var(--hand);color:#a85c68;transform:rotate(-10deg)}.sparkle{position:absolute;color:#c16a76;font-size:35px;z-index:1}.sparkle-one{left:8%;top:63px}.sparkle-two{right:2%;top:75px}.ticker{background:#bd6874;color:#fff8f4;overflow:hidden;white-space:nowrap;text-align:center;font-size:11px;font-weight:700;letter-spacing:.18em;padding:17px}.ticker span{margin:0 26px;color:#f7d8d4}.memories{padding-top:110px;padding-bottom:100px}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:50px}.section-heading h2,.letter h2,.closing h2{font-size:clamp(42px,5vw,66px)}.section-heading>p{max-width:310px;line-height:1.8;color:var(--muted);margin-bottom:4px}.album-intro{display:flex;justify-content:space-between;border-bottom:1px solid #e5d4d2;margin:70px 0 32px;padding-bottom:14px;font:17px var(--hand);color:#a66c71}.photo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:34px}.photo-card{border:0;display:block;width:100%;text-align:left;transform:rotate(var(--rotation));transition:transform .2s;background:#fff;cursor:pointer;color:inherit;font:inherit}.photo-card:hover{transform:rotate(0) translateY(-5px)}.photo-card:disabled{cursor:default}.photo-card:disabled:hover{transform:rotate(var(--rotation))}.photo-card img,.photo-card .photo-placeholder{width:100%;height:250px;object-fit:cover}.photo-card .photo-placeholder{background:var(--shade)}.photo-card .photo-placeholder span{font-size:36px}.photo-card .photo-caption{font-size:17px}.album-note{text-align:center;font:19px var(--hand);color:#b5777b;margin:65px 0 0}.letter-section{background:#f5e4e3;padding:90px 0;overflow:hidden}.letter{display:grid;grid-template-columns:1fr 2fr 1fr;align-items:center;gap:30px}.letter-paper{background:#fffaf6;padding:60px 65px;box-shadow:0 10px 35px #9c737312;position:relative}.letter-paper:before{content:'';position:absolute;top:-12px;left:calc(50% - 45px);width:90px;height:26px;background:#ddbab5aa;transform:rotate(-3deg)}.letter-text{line-height:1.85;color:#745d5d;margin-top:30px}.signature{font:25px var(--hand);color:var(--rose)}.letter-deco{font-size:100px;color:#d9a7a8;transform:rotate(-15deg);text-align:center}.letter-deco span{font-size:45px;display:block}.letter-side{font-family:var(--hand);color:#bb6c77;transform:rotate(8deg);font-size:20px}.letter-side strong{display:block;font-size:28px;font-weight:400}.letter-side i{font-size:70px}.closing{text-align:center;padding:115px 0}.closing h2{margin:22px 0}.closing>p:not(.eyebrow){color:var(--muted)}.back-top{display:inline-block;margin-top:32px;font-size:13px;font-weight:700;color:var(--rose);border-bottom:1px solid #d9a6aa;padding-bottom:5px}footer{border-top:1px solid #eadbda;display:flex;justify-content:space-between;gap:20px;padding:25px max(32px,calc((100% - 1120px)/2));font:14px var(--hand);color:#a57e7d}dialog{border:0;background:#fffaf6;padding:14px;max-width:min(90vw,800px);max-height:90vh;box-shadow:0 20px 80px #0005}dialog::backdrop{background:#382b2bd9}dialog img{display:block;max-width:100%;max-height:75vh;margin:auto}dialog p{text-align:center;font:20px var(--hand);margin:14px 35px 4px}.close{position:absolute;right:20px;top:20px;border:0;border-radius:50%;background:#fff;color:#493535;width:38px;height:38px;font-size:26px;cursor:pointer}@media(max-width:700px){.wrap,.topbar{width:calc(100% - 40px)}.topbar{height:68px}.top-link{font-size:12px}.hero{grid-template-columns:1fr;padding-top:56px;gap:0}.hero h1{font-size:clamp(56px,13vw,75px)}.hero-art{height:390px;margin-top:12px}.hero-photo{width:62%;top:45px}.hero-placeholder{height:225px}.hero-blob{inset:25px 10px}.sticker{width:90px;height:90px;bottom:30px;font-size:9px}.sticker strong{font-size:11px}.scribble{font-size:15px}.section-heading{display:block}.section-heading>p{margin-top:20px}.memories{padding-top:75px;padding-bottom:75px}.album-intro{margin-top:45px}.photo-grid{grid-template-columns:repeat(2,1fr);gap:18px}.photo-card{padding:8px 8px 10px}.photo-card img,.photo-card .photo-placeholder{height:160px}.photo-card .photo-caption{font-size:14px}.photo-placeholder small{font-size:12px}.letter-section{padding:60px 0}.letter{display:block}.letter-deco,.letter-side{display:none}.letter-paper{padding:45px 27px}.closing{padding:80px 0}footer{padding:22px 20px;flex-direction:column;gap:5px}}@media(max-width:370px){.photo-card img,.photo-card .photo-placeholder{height:130px}.top-link{font-size:11px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

.hero-image{width:100%;height:295px;object-fit:cover;display:block}@media(max-width:700px){.hero-image{height:225px}}

.birthday-detail{font-size:14px;color:#826b6b;letter-spacing:.03em}.birthday-detail span:nth-child(odd){color:#b75766;margin:0 5px}

@media (max-width: 700px) {
  .photo-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 0 12px; }
  .photo-card { padding: 10px 10px 15px; }
  .photo-card img, .photo-card .photo-placeholder { height: auto; aspect-ratio: 4 / 5; }
  .photo-card .photo-caption { font-size: 17px; }
}

.ticker-track { display: flex; width: max-content; animation: ticker-scroll 20s linear infinite; }
.ticker-group { flex: none; }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }
.ticker-group { min-width: 100vw; }

@media (prefers-reduced-motion: no-preference) {
  .photo-card img { animation: photo-sway 4s ease-in-out infinite alternate; }
  .photo-card:nth-child(3n + 2) img { animation-delay: -1.3s; }
  .photo-card:nth-child(3n) img { animation-delay: -2.6s; }
  @keyframes photo-sway {
    from { transform: translateY(0) scale(0.98); }
    to { transform: translateY(-4px) scale(1); }
  }
}

.welcome-quiz { width: min(440px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow-y: auto; border: 0; border-radius: 8px; padding: 0; text-align: center; background: #fffaf6; color: var(--ink); }
.welcome-quiz::backdrop { background: #493535bf; }
.quiz-content { padding: 36px 30px; }
.quiz-heart { color: var(--rose); font: 60px var(--serif); line-height: 1; margin: 15px 0; }
.quiz-step { color: #a36c70; font-size: 11px; letter-spacing: .15em; font-weight: 700; }
.welcome-quiz h2 { font-size: clamp(32px, 8vw, 44px); line-height: 1.1; }
.quiz-intro { color: var(--muted); line-height: 1.6; }
.quiz-answers { display: grid; gap: 10px; margin-top: 24px; }
.quiz-answers button { border: 1px solid #e7c4c5; border-radius: 4px; background: #fff; padding: 14px; color: var(--ink); font: 700 15px 'DM Sans', sans-serif; cursor: pointer; }
.quiz-answers button:hover, .quiz-answers button:focus-visible { background: #f6e6e5; border-color: var(--rose); }
.quiz-feedback { min-height: 1.5em; margin-bottom: 0; color: var(--rose); font-size: 14px; }

.welcome-quiz::backdrop { background: #f6e6e5; }

.playback-controls { position: fixed; z-index: 10; right: 16px; bottom: 16px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.playback-controls button { border: 1px solid #e8c9c8; border-radius: 999px; padding: 10px 14px; background: #fffaf6; color: #9e4655; box-shadow: 0 4px 16px #49353522; font: 700 13px 'DM Sans', sans-serif; cursor: pointer; }
.playback-controls button:focus-visible { outline: 2px solid #9e4655; outline-offset: 2px; }
.music-player { position: fixed; z-index: 10; right: 16px; bottom: 68px; width: min(280px, calc(100vw - 32px)); aspect-ratio: 16 / 9; background: #493535; box-shadow: 0 4px 16px #49353533; }
.music-player[hidden] { display: none; }
.music-player iframe { border: 0; width: 100%; height: 100%; }

.countdown-gate { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; overflow-y: auto; padding: 24px; background: #f6e6e5; text-align: center; }
.countdown-card { width: min(100%, 520px); padding: 45px 26px; background: #fffaf6; box-shadow: 0 14px 50px #8d59621c; }
.countdown-card h1 { font-size: clamp(42px, 10vw, 64px); margin: 20px 0; }
.countdown-card > p:not(.eyebrow):not(.countdown-clock) { color: var(--muted); line-height: 1.7; }
.countdown-clock { margin: 28px 0 8px; color: var(--rose); font-size: clamp(18px, 5vw, 25px); font-weight: 700; font-variant-numeric: tabular-nums; }
.countdown-date { font-size: 14px; }
.music-player { position: fixed; left: -10000px; top: 0; width: 200px; height: 200px; pointer-events: none; }
.playback-controls .music-toggle { width: 40px; height: 40px; padding: 9px; display: grid; place-items: center; }
.music-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.music-toggle[aria-pressed="true"] .music-off-line { display: none; }
.playback-controls .scroll-toggle { width: 40px; height: 40px; padding: 9px; display: grid; place-items: center; }
.scroll-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.scroll-toggle[aria-pressed="false"] .scroll-pause, .scroll-toggle[aria-pressed="true"] .scroll-start { display: none; }
.booth-link{text-align:center;margin-top:32px}.booth-link p{font:20px var(--hand);color:#a66c71}.booth-link .button{margin-top:0}
