@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Manrope:wght@400;500;600&display=swap');

:root {
  --cream: #fbf7f4;
  --paper: #fffdfb;
  --ink: #302724;
  --muted: #786b66;
  --rose: #b65c6d;
  --rose-dark: #934354;
  --blush: #f2dfe2;
  --sage: #aab7a4;
  --line: rgba(71, 49, 44, .13);
  --shadow: 0 24px 70px rgba(87, 51, 54, .13);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: var(--sans); }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 15%, rgba(242, 223, 226, .8), transparent 28rem),
    radial-gradient(circle at 90% 85%, rgba(170, 183, 164, .35), transparent 26rem),
    var(--cream);
}
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card {
  width: min(100%, 440px); padding: clamp(30px, 8vw, 54px);
  border: 1px solid rgba(255,255,255,.9); border-radius: 32px; background: rgba(255,253,251,.84);
  box-shadow: var(--shadow); backdrop-filter: blur(16px); text-align: center;
}
.mini-heart { color: var(--rose); font-size: 22px; margin-bottom: 20px; }
.eyebrow { margin: 0 0 9px; color: var(--rose); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--serif); }
.login-card h1 { margin: 0; font-size: clamp(42px, 12vw, 58px); line-height: .95; }
.login-intro { margin: 20px auto 34px; max-width: 300px; color: var(--muted); line-height: 1.7; }
.login-form { text-align: left; }
.login-form label { display: block; font-family: var(--serif); font-size: 22px; font-weight: 600; }
.field-hint { margin: 5px 0 12px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.password-wrap { position: relative; }
.password-wrap input {
  width: 100%; min-height: 54px; padding: 0 84px 0 16px; border: 1px solid var(--line);
  border-radius: 14px; background: white; color: var(--ink); outline: none; transition: .2s;
}
.password-wrap input:focus { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(182,92,109,.1); }
.icon-button { position: absolute; right: 8px; top: 8px; height: 38px; padding: 0 10px; border: 0; background: transparent; color: var(--rose-dark); font-size: 12px; font-weight: 600; }
.primary-button, .outline-button {
  min-height: 52px; border-radius: 999px; padding: 0 23px; font-weight: 600; transition: transform .2s, background .2s;
}
.primary-button { border: 0; color: white; background: var(--rose); box-shadow: 0 10px 28px rgba(182,92,109,.25); }
.primary-button:hover { background: var(--rose-dark); transform: translateY(-2px); }
.login-form .primary-button { width: 100%; margin-top: 16px; display: flex; justify-content: space-between; align-items: center; }
.primary-button:disabled { opacity: .65; cursor: wait; transform: none; }
.form-message { min-height: 20px; margin: 12px 0 0; color: var(--rose-dark); font-size: 12px; text-align: center; }
.privacy-note { margin: 22px 0 0; color: var(--muted); font-size: 10px; }

.site-page { overflow-x: hidden; }
.site-nav {
  position: fixed; z-index: 20; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(calc(100% - 28px), 1080px); display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px 10px 18px; border: 1px solid rgba(255,255,255,.7); border-radius: 999px;
  background: rgba(255,253,251,.78); backdrop-filter: blur(18px); box-shadow: 0 8px 35px rgba(68,48,42,.08);
}
.brand { font-family: var(--serif); font-size: 22px; font-weight: 700; }
.nav-actions { display: flex; gap: 8px; }
.nav-button { min-height: 40px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--ink); font-size: 12px; }
.hero {
  min-height: 100svh; display: grid; place-items: center; position: relative; isolation: isolate;
  padding: 110px 24px 70px; text-align: center;
  background: radial-gradient(circle at 50% 32%, #fff 0, #fbf7f4 38%, #f3e5e5 100%);
}
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; width: 240px; height: 340px; border: 1px solid rgba(182,92,109,.2); border-radius: 50%; transform: rotate(22deg); }
.hero::before { left: -120px; top: 17%; }
.hero::after { right: -130px; bottom: 8%; transform: rotate(-28deg); }
.hero-content { max-width: 800px; }
.hero-kicker { color: var(--rose); letter-spacing: .2em; text-transform: uppercase; font-size: 11px; font-weight: 600; }
.hero h1 { margin: 18px 0; font-size: clamp(64px, 13vw, 130px); line-height: .75; font-weight: 600; }
.hero h1 em { display: block; margin-top: .22em; color: var(--rose); font-weight: 500; }
.hero-copy { max-width: 520px; margin: 30px auto; color: var(--muted); line-height: 1.8; }
.birthday-badge { position: absolute; top: 16%; right: 10%; font-size: clamp(40px, 7vw, 80px); transform: rotate(9deg); filter: drop-shadow(0 12px 20px rgba(83,52,45,.16)); }
.birthday-button { display: block; margin: 0 auto 20px; }
.scroll-cue { display: inline-block; margin-top: 28px; color: var(--muted); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.section { padding: clamp(74px, 11vw, 130px) 24px; }
.section-inner { width: min(100%, 1100px); margin: auto; }
.section-label { margin: 0 0 10px; color: var(--rose); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.section-title { margin: 0 0 45px; font-size: clamp(42px, 7vw, 78px); line-height: .98; font-weight: 600; }
.section-intro { max-width: 580px; margin: -25px 0 38px; color: var(--muted); line-height: 1.8; }
.birthday-wish-section { padding-top: 46px; padding-bottom: 46px; background: #f3dfe2; }
.birthday-wish { display: flex; align-items: center; justify-content: center; gap: 25px; text-align: center; }
.birthday-wish span { color: var(--rose); font-size: 28px; }
.birthday-wish p { max-width: 760px; margin: 0; font-family: var(--serif); font-size: clamp(26px, 4vw, 42px); line-height: 1.25; }
.counter-section { background: var(--ink); color: white; text-align: center; }
.counter-section .section-label { color: #e9b7c0; }
.counter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 760px; margin: auto; }
.counter-item { padding: 24px 8px; border: 1px solid rgba(255,255,255,.13); border-radius: 20px; }
.counter-number { display: block; font-family: var(--serif); font-size: clamp(38px, 8vw, 66px); }
.counter-unit { color: rgba(255,255,255,.6); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.gallery-grid { columns: 3 260px; column-gap: 16px; }
.photo { overflow: hidden; margin: 0 0 16px; break-inside: avoid; border-radius: 26px; background: var(--blush); }
.photo img { display: block; width: 100%; height: auto; transition: transform .7s; }
.photo:hover img { transform: scale(1.035); }
.photo-placeholder { width: 100%; height: 100%; display: grid; place-items: center; padding: 30px; color: var(--rose-dark); text-align: center; background: linear-gradient(145deg, var(--blush), #e8ddd6); }
.letter-section { background: #efe8e2; }
.letter-paper { max-width: 780px; margin: auto; padding: clamp(34px, 8vw, 80px); border-radius: 5px; background: var(--paper); box-shadow: var(--shadow); transform: rotate(-.5deg); }
.letter-paper h2 { margin: 0 0 25px; font-size: clamp(38px, 7vw, 64px); }
.letter-paper p { color: #5f514c; font-family: var(--serif); font-size: clamp(20px, 3vw, 25px); line-height: 1.7; white-space: pre-line; }
.signature { display: block; margin-top: 28px; color: var(--rose); font-family: var(--serif); font-size: 30px; text-align: right; }
.distance-section { background: #f8f1ec; }
.distance-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 7vw, 90px); align-items: center; }
.distance-grid .section-title { margin-bottom: 0; }
.distance-card { position: relative; overflow: hidden; padding: clamp(30px, 6vw, 54px); border-radius: 30px; background: var(--ink); color: white; box-shadow: var(--shadow); }
.distance-card::after { content: ""; position: absolute; width: 180px; height: 180px; right: -70px; bottom: -80px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; }
.distance-pin { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--rose); font-size: 24px; }
.distance-card h3 { margin: 25px 0 12px; font-size: 36px; }
.distance-card p { margin: 0; color: rgba(255,255,255,.68); line-height: 1.8; font-size: 13px; }
.distance-route { display: flex; align-items: center; gap: 12px; margin-top: 34px; color: #f3d6dc; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.distance-route i { flex: 1; height: 1px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.45) 0 6px, transparent 6px 12px); }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.reason-card, .dream-card { padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); }
.reason-number { color: var(--rose); font-family: var(--serif); font-size: 36px; }
.reason-card h3, .dream-card h3 { margin: 35px 0 10px; font-size: 28px; }
.reason-card p, .dream-card p { margin: 0; color: var(--muted); line-height: 1.7; font-size: 13px; }
.dreams-section { background: #dfe4dc; }
.dream-card { background: rgba(255,255,255,.6); }
.gift-quest-section { background: var(--ink); color: white; }
.gift-quest-section .section-label { color: #e9b7c0; }
.quest { max-width: 850px; margin: auto; }
.quest-step { display: grid; grid-template-columns: 80px 1fr; gap: 22px; max-height: 0; overflow: hidden; opacity: 0; transform: translateY(18px); transition: max-height .8s ease, opacity .5s ease, transform .5s ease, padding .5s; border-top: 1px solid rgba(255,255,255,.14); }
.quest-step.active { max-height: 900px; opacity: 1; transform: none; padding: 30px 0; }
.quest-number { color: #e9b7c0; font-family: var(--serif); font-size: 42px; }
.quest-step h3 { margin: 4px 0 8px; font-size: clamp(28px, 5vw, 40px); }
.quest-step p { max-width: 630px; margin: 0 0 22px; color: rgba(255,255,255,.65); line-height: 1.8; }
.outline-button { border: 1px solid rgba(255,255,255,.28); background: transparent; color: white; }
.outline-button:hover { background: white; color: var(--ink); transform: translateY(-2px); }
.date-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 25px; }
.date-form > label { color: rgba(255,255,255,.7); font-size: 11px; }
.date-form input, .date-form textarea { width: 100%; margin-top: 8px; padding: 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; background: rgba(255,255,255,.08); color: white; outline: none; color-scheme: dark; }
.date-form input:focus, .date-form textarea:focus { border-color: #e9b7c0; box-shadow: 0 0 0 4px rgba(233,183,192,.09); }
.date-form > label:nth-of-type(4), .date-form fieldset, .date-form > button, .date-status { grid-column: 1 / -1; }
.date-form textarea { resize: vertical; min-height: 90px; }
.date-form fieldset { padding: 0; border: 0; margin: 8px 0; }
.date-form legend { margin-bottom: 12px; color: rgba(255,255,255,.7); font-size: 11px; }
.mood-options { display: flex; flex-wrap: wrap; gap: 9px; }
.mood-options input { position: absolute; opacity: 0; pointer-events: none; }
.mood-options span { display: block; padding: 11px 15px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: rgba(255,255,255,.76); font-size: 11px; cursor: pointer; transition: .2s; }
.mood-options input:checked + span { border-color: #e9b7c0; background: #e9b7c0; color: var(--ink); }
.date-form > button { justify-self: start; }
.date-status { min-height: 20px; margin: 0 !important; color: #f3d6dc !important; font-size: 12px; }
.message-section { text-align: center; }
.message-box { max-width: 700px; min-height: 150px; margin: 0 auto 24px; display: grid; place-items: center; padding: 20px; }
.message-box p { margin: 0; color: var(--rose-dark); font-family: var(--serif); font-size: clamp(29px, 5vw, 48px); line-height: 1.18; }
.surprise-section { padding-top: 20px; text-align: center; }
.surprise-button { width: 156px; height: 156px; border: 0; border-radius: 50%; background: var(--rose); color: white; font-family: var(--serif); font-size: 22px; box-shadow: 0 18px 45px rgba(182,92,109,.28); }
.surprise-reveal { max-height: 0; overflow: hidden; opacity: 0; transition: .7s ease; }
.surprise-reveal.show { max-height: 240px; opacity: 1; margin-top: 30px; }
.surprise-reveal p { font-family: var(--serif); font-size: clamp(36px, 7vw, 68px); color: var(--rose); }
.surprise-reveal small { display: block; max-width: 560px; margin: -28px auto 0; color: var(--muted); line-height: 1.8; }
.site-footer { padding: 80px 24px 40px; text-align: center; color: var(--muted); font-size: 12px; }
.music-toast { position: fixed; z-index: 15; left: 50%; bottom: 18px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 28px); padding: 12px 18px; border-radius: 999px; background: var(--ink); color: white; font-size: 11px; opacity: 0; pointer-events: none; transition: opacity .25s; }
.music-toast.show { opacity: 1; }
.song-button[aria-pressed="true"] { border-color: rgba(182,92,109,.35); background: var(--blush); color: var(--rose-dark); }
.balloon {
  position: fixed; z-index: 12; bottom: -110px; width: 44px; height: 56px; border-radius: 50% 50% 46% 46%;
  pointer-events: none; opacity: .92; filter: drop-shadow(0 9px 8px rgba(72,45,43,.13));
  transform: scale(var(--balloon-scale)); animation: balloon-rise 8s ease-in forwards;
}
.balloon::before { content: ""; position: absolute; left: 10px; top: 9px; width: 9px; height: 15px; border-radius: 50%; background: rgba(255,255,255,.4); transform: rotate(25deg); }
.balloon::after { content: ""; position: absolute; left: 21px; bottom: -58px; width: 1px; height: 60px; background: rgba(80,57,51,.28); }
.confetti { position: fixed; z-index: 100; top: -20px; width: 9px; height: 14px; pointer-events: none; animation: fall 2.8s linear forwards; }
@keyframes fall { to { transform: translate3d(var(--drift), 110vh, 0) rotate(720deg); opacity: .8; } }
@keyframes balloon-rise {
  0% { transform: translate3d(0, 0, 0) scale(var(--balloon-scale)) rotate(-3deg); }
  45% { transform: translate3d(var(--balloon-mid), -55vh, 0) scale(var(--balloon-scale)) rotate(4deg); }
  100% { transform: translate3d(var(--balloon-drift), -125vh, 0) scale(var(--balloon-scale)) rotate(-4deg); opacity: .2; }
}
@media (max-width: 760px) {
  .site-nav { top: 9px; }
  .brand { font-size: 18px; }
  .nav-button { padding: 0 12px; }
  .nav-button .wide-label { display: none; }
  .counter-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { columns: 1; }
  .cards-grid { grid-template-columns: 1fr; }
  .distance-grid { grid-template-columns: 1fr; }
  .date-form { grid-template-columns: 1fr; }
  .date-form > label:nth-of-type(4), .date-form fieldset, .date-form > button, .date-status { grid-column: auto; }
  .quest-step { grid-template-columns: 52px 1fr; gap: 12px; }
  .quest-number { font-size: 30px; }
  .birthday-badge { top: 13%; right: 6%; }
  .reason-card h3, .dream-card h3 { margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
