
:root{
  --bg:#f7f3ef;
  --card:#fffdfb;
  --ink:#2f2926;
  --muted:#81756f;
  --line:#e7ddd6;
  --rose:#b87378;
  --rose-soft:#ead0d2;
  --lav:#dcd8e8;
  --shadow:0 18px 50px rgba(60,43,38,.08);
  --radius:26px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; min-height:100vh;
  background:
    radial-gradient(circle at top right, rgba(220,216,232,.65), transparent 33rem),
    radial-gradient(circle at top left, rgba(234,208,210,.55), transparent 28rem),
    var(--bg);
  color:var(--ink);
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x:hidden;
}
button{font:inherit}
.grain{position:fixed; inset:0; pointer-events:none; opacity:.19; z-index:0; background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");}
.app-shell{position:relative; z-index:1; width:min(100%, 720px); margin:0 auto; padding:30px 16px 44px;}
.hero{text-align:center; padding:54px 20px 34px;}
.eyebrow,.section-kicker{font-size:.72rem; letter-spacing:.19em; font-weight:800; color:var(--rose);}
h1,h2,.modal-title{font-family:Georgia, "Times New Roman", serif; font-weight:500;}
h1{font-size:clamp(3rem, 16vw, 5.4rem); line-height:.95; margin:16px 0 18px; letter-spacing:-.045em;}
h1 span{color:var(--rose); font-size:.78em}
.hero-copy{margin:0 auto 8px; max-width:28rem; font-size:1.02rem; color:#574d48;}
.hero-note{margin:0 auto 24px; max-width:28rem; color:var(--muted); font-size:.9rem;}
.primary-btn,.gift-btn,.wish-btn{border:0; cursor:pointer; border-radius:999px; padding:13px 20px; background:var(--ink); color:#fff; font-weight:750; box-shadow:0 10px 25px rgba(47,41,38,.16);}
.intro-card{background:rgba(255,253,251,.78); backdrop-filter:blur(8px); border:1px solid rgba(255,255,255,.9); box-shadow:var(--shadow); border-radius:var(--radius); padding:23px 22px; margin:0 0 36px;}
.intro-card p{margin:0; line-height:1.65; color:#5c514c}
.timeline-head{display:flex; align-items:end; justify-content:space-between; gap:16px; margin:0 2px 14px;}
.timeline-head h2{margin:5px 0 0; font-size:1.85rem}
.progress-pill{white-space:nowrap; font-size:.76rem; color:var(--muted); background:rgba(255,255,255,.6); border:1px solid var(--line); border-radius:999px; padding:7px 10px;}
.entries{display:grid; gap:12px;}
.entry{width:100%; text-align:left; background:rgba(255,253,251,.9); border:1px solid var(--line); border-radius:22px; padding:17px; color:var(--ink); box-shadow:0 8px 30px rgba(60,43,38,.045); transition:transform .18s ease, border-color .18s ease, opacity .18s ease;}
button.entry{cursor:pointer}
button.entry:hover{transform:translateY(-1px); border-color:#d8c5c4}
.entry-top{display:flex; align-items:center; justify-content:space-between; gap:12px;}
.entry-date{display:flex; align-items:center; gap:12px;}
.day-badge{display:grid; place-items:center; width:47px; height:47px; flex:0 0 47px; border-radius:16px; background:#f0e7e2; color:#5e4d47; font-family:Georgia, serif; font-size:1.25rem;}
.entry-label{font-weight:800; font-size:.96rem}
.entry-sub{display:block; color:var(--muted); font-size:.79rem; margin-top:3px}
.entry-arrow{font-size:1.25rem; color:#a78f88}
.entry.locked{opacity:.56; cursor:default}
.entry.locked .day-badge{background:#f0ece9}
.entry.opened .day-badge{background:var(--rose-soft); color:#714d50}
.entry.special{background:linear-gradient(135deg, rgba(255,253,251,.95), rgba(234,208,210,.38));}
.entry.paypal{background:linear-gradient(135deg, rgba(255,253,251,.97), rgba(220,216,232,.52));}
.entry.art{background:linear-gradient(135deg, rgba(255,253,251,.98), rgba(247,232,238,.65));}
footer{padding:34px 8px 8px; text-align:center; color:#978a84; font-size:.76rem;}
.modal{position:fixed; inset:0; z-index:50; display:none;}
.modal.show{display:block}
.modal-backdrop{position:absolute; inset:0; background:rgba(29,23,21,.42); backdrop-filter:blur(8px);}
.modal-card{position:absolute; left:50%; bottom:0; transform:translateX(-50%); width:min(100%,720px); max-height:88vh; overflow:auto; background:var(--card); border-radius:30px 30px 0 0; padding:24px 20px max(30px, env(safe-area-inset-bottom)); box-shadow:0 -25px 60px rgba(33,25,22,.16); animation:rise .28s ease both;}
@keyframes rise{from{transform:translate(-50%,18px); opacity:0} to{transform:translate(-50%,0); opacity:1}}
.close-btn{position:sticky; top:0; z-index:2; float:right; width:38px; height:38px; border-radius:50%; border:1px solid var(--line); background:rgba(255,253,251,.92); color:#6f625d; cursor:pointer; font-size:1.5rem; line-height:1;}
.modal-date{color:var(--rose); font-weight:850; font-size:.74rem; letter-spacing:.12em; margin-top:3px;}
.modal-title{font-size:2.1rem; line-height:1.06; margin:10px 46px 16px 0}
.modal-body{font-size:1rem; line-height:1.72; color:#514843}
.modal-body p{margin:0 0 14px}
.photo-frame{margin:18px 0; border-radius:24px; overflow:hidden; background:#eee7e2; box-shadow:0 12px 30px rgba(56,42,37,.10);}
.photo-frame img{display:block; width:100%; max-height:62vh; object-fit:cover;}
.note{margin:18px 0 0; padding:16px 17px; border-radius:18px; background:#f3ece8; color:#5b4f49;}
.wish-box,.gift-box,.audio-box{margin-top:18px; padding:18px; border:1px solid var(--line); border-radius:20px; background:#faf6f2;}
.reveal{display:none; margin-top:14px; padding:14px 15px; border-radius:16px; background:#efe9f4; color:#514c5a; line-height:1.55;}
.reveal.show{display:block}
.micro{color:var(--muted); font-size:.82rem; margin-top:10px;}
.gallery{display:grid; gap:12px; margin-top:18px;}
.gallery.cols-2{grid-template-columns:repeat(2, minmax(0,1fr));}
.gallery.cols-3{grid-template-columns:repeat(3, minmax(0,1fr));}
.gallery-item{background:#f8f4f0; border:1px solid var(--line); border-radius:20px; overflow:hidden;}
.gallery-item img{display:block; width:100%; height:100%; object-fit:cover;}
.gallery.stickers .gallery-item{padding:8px; display:grid; place-items:center; background:#fff;}
.gallery.stickers .gallery-item img{height:155px; object-fit:contain;}
audio{width:100%; margin-top:12px;}
.audio-caption{margin-top:10px; color:#675a55; font-size:.92rem;}
@media (max-width:560px){
  .gallery.cols-3{grid-template-columns:repeat(2, minmax(0,1fr));}
  .gallery.stickers .gallery-item img{height:135px;}
}
@media (min-width:620px){.app-shell{padding-left:24px; padding-right:24px} .hero{padding-top:72px} .entry{padding:19px 20px}}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important; animation:none!important; transition:none!important}}
