:root {
  --cream: #fffaf7;
  --paper: #fffdfb;
  --ink: #553f49;
  --muted: #927d86;
  --rose: #f2d6d9;
  --rose-dark: #d88f9b;
  --lilac: #ded6ec;
  --peach: #f9e5d6;
  --line: #eadde0;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(98, 66, 77, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Nunito", "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, textarea { font: inherit; }
button { cursor: pointer; }

.page-shell { max-width: 1180px; margin: 0 auto; padding: 28px 44px 32px; }
.topbar { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.brand-mark { color: var(--rose-dark); font-weight: 800; letter-spacing: .12em; }
.brand-mark span { color: var(--muted); }
.tiny-note { letter-spacing: .14em; }
.sound-toggle { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; background: rgba(255,255,255,.58); color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.sound-toggle:hover, .sound-toggle:focus-visible { border-color: var(--rose-dark); color: var(--ink); outline: none; }
.sound-toggle.is-on { border-color: var(--rose-dark); background: var(--rose); color: var(--ink); }
.sound-icon { color: var(--rose-dark); font-size: 16px; line-height: 1; }

.hero { min-height: 600px; display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: 40px; padding: 60px 0 80px; }
.hero-copy { position: relative; z-index: 1; padding-top: 12px; }
.eyebrow, .section-kicker { color: var(--rose-dark); font-size: 12px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow { margin: 0 0 24px; }
.sparkle { display: inline-block; margin-right: 8px; font-size: 15px; }
h1, h2, p { margin-top: 0; }
h1, h2 { font-family: "Nunito", "Avenir Next", sans-serif; letter-spacing: -.045em; }
h1 { max-width: 650px; margin-bottom: 22px; font-size: clamp(52px, 7vw, 94px); line-height: .96; font-weight: 900; }
h1 em { color: var(--rose-dark); font-style: normal; }
.hero-lede { max-width: 500px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; margin-top: 35px; color: var(--ink); font-size: 12px; font-weight: 900; letter-spacing: .14em; text-decoration: none; text-transform: uppercase; }
.scroll-dot { width: 28px; height: 28px; border: 1px solid var(--rose-dark); border-radius: 50%; position: relative; }
.scroll-dot::after { content: "↓"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--rose-dark); font-size: 14px; }

.hero-art { min-height: 470px; position: relative; display: grid; place-items: center; }
.sun-disc { width: 295px; height: 295px; background: var(--peach); border-radius: 50%; position: absolute; }
.orbit { position: absolute; border: 1px solid rgba(216,143,155,.46); border-radius: 50%; transform: rotate(-22deg); }
.orbit-one { width: 430px; height: 180px; }
.orbit-two { width: 350px; height: 480px; transform: rotate(24deg); border-color: rgba(152,133,169,.45); }
.heart-orb { width: 160px; height: 160px; display: grid; place-items: center; border-radius: 52% 48% 45% 55%; background: var(--rose); color: var(--rose-dark); font-size: 95px; line-height: 1; transform: rotate(-7deg); box-shadow: var(--shadow); }
.star { position: absolute; color: var(--rose-dark); font-size: 28px; }
.star-one { top: 54px; right: 16%; }
.star-two { bottom: 64px; left: 13%; color: #a991b9; font-size: 37px; }
.star-three { top: 26%; left: 12%; color: #e8b890; font-size: 44px; }
.cloud { position: absolute; width: 90px; height: 28px; background: rgba(255,255,255,.76); border-radius: 24px; }
.cloud::before, .cloud::after { content: ""; position: absolute; bottom: 0; background: inherit; border-radius: 50%; }
.cloud::before { width: 46px; height: 46px; left: 14px; }
.cloud::after { width: 34px; height: 34px; right: 11px; }
.cloud-one { top: 22%; right: 0; transform: scale(.72); }
.cloud-two { bottom: 20%; left: 0; transform: scale(.6); opacity: .75; }

.section-block, .hug-section { border-top: 1px solid var(--line); padding: 92px 0; }
.section-heading { max-width: 620px; margin-bottom: 36px; }
.section-kicker { margin-bottom: 12px; }
h2 { margin-bottom: 12px; font-size: clamp(31px, 4vw, 50px); line-height: 1.02; }
.section-heading > p:last-child, .reply-copy > p:last-child, .hug-copy > p:last-child { color: var(--muted); font-size: 17px; }
.mood-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.mood-button { display: grid; grid-template-columns: 48px 1fr 25px; align-items: center; gap: 15px; min-height: 102px; padding: 19px 22px; border: 1px solid var(--line); border-radius: 23px; background: var(--paper); color: var(--ink); text-align: left; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.mood-button:hover, .mood-button:focus-visible { transform: translateY(-3px); border-color: var(--rose-dark); outline: none; }
.mood-button.active { border-color: var(--rose-dark); background: #fff1f0; }
.mood-emoji { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 15px; background: var(--peach); font-size: 23px; }
.mood-button:nth-child(2) .mood-emoji { background: var(--lilac); }
.mood-button:nth-child(3) .mood-emoji { background: #dceee9; }
.mood-button:nth-child(4) .mood-emoji { background: #f6e9bc; }
.mood-button strong, .mood-button small { display: block; }
.mood-button strong { font-size: 16px; }
.mood-button small { margin-top: 3px; color: var(--muted); font-size: 13px; }
.button-arrow { color: var(--rose-dark); font-size: 21px; text-align: right; }
.response-panel { display: flex; align-items: center; gap: 22px; min-height: 125px; margin-top: 18px; padding: 26px 30px; border-radius: 25px; background: var(--lilac); }
.response-icon { width: 52px; height: 52px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 18px; background: rgba(255,255,255,.58); font-size: 25px; }
.response-label { margin-bottom: 5px; color: #8a6e98; font-size: 11px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.response-copy { max-width: 720px; margin: 0; font-size: 17px; line-height: 1.62; }

.reply-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: start; }
.reply-copy h2 { max-width: 360px; }
.reply-copy > p:last-child { max-width: 385px; line-height: 1.7; }
.reply-form { padding: 22px; border-radius: 26px; background: var(--paper); box-shadow: var(--shadow); }
textarea { width: 100%; min-height: 155px; resize: vertical; padding: 16px; border: 1px solid var(--line); border-radius: 17px; background: #fffaf9; color: var(--ink); font-size: 16px; line-height: 1.6; outline: none; }
textarea::placeholder { color: #c3adb2; }
textarea:focus { border-color: var(--rose-dark); box-shadow: 0 0 0 4px rgba(216,143,155,.12); }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 13px; }
.character-count { color: var(--muted); font-size: 12px; }
.send-button { display: inline-flex; align-items: center; gap: 12px; border: 0; border-radius: 999px; padding: 13px 18px; background: var(--ink); color: white; font-size: 13px; font-weight: 800; }
.send-button:hover, .send-button:focus-visible { background: var(--rose-dark); outline: none; }
.form-status { min-height: 23px; margin: 13px 0 0; color: #9b6a75; font-size: 13px; }

.hug-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: center; }
.hug-copy h2 { max-width: 310px; }
.hug-area { min-height: 290px; position: relative; display: grid; place-items: center; border-radius: 34px; background: var(--rose); overflow: visible; }
.hug-glow { width: 230px; height: 230px; position: absolute; border: 1px solid rgba(255,255,255,.72); border-radius: 50%; }
.hug-button { width: 175px; height: 175px; position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: var(--white); color: var(--rose-dark); box-shadow: 0 18px 34px rgba(142,76,89,.15); }
.hug-button:hover, .hug-button:focus-visible { transform: scale(1.04); outline: none; }
.hug-icon { font-size: 48px; line-height: 1; }
.hug-label { margin-top: 5px; font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.hug-hint { margin-top: 4px; color: var(--muted); font-size: 11px; }
.hug-message { position: absolute; bottom: 22px; color: #9b6a75; font-size: 13px; font-weight: 800; }
.floating-heart { position: absolute; z-index: 2; color: var(--white); font-size: 22px; pointer-events: none; animation: float-heart 1.6s ease-out forwards; }
@keyframes float-heart { 0% { opacity: 0; transform: translateY(18px) scale(.5) rotate(-15deg); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(-145px) scale(1.25) rotate(15deg); } }
.hug-button.is-hugging { box-shadow: 0 0 0 11px rgba(255,255,255,.25), 0 18px 34px rgba(142,76,89,.15); }

.fortune-section { border-top: 1px solid var(--line); padding: 92px 0; }
.fortune-intro { max-width: 600px; margin-bottom: 34px; }
.fortune-intro > p:last-child { max-width: 520px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.fortune-card { min-height: 320px; position: relative; display: flex; align-items: center; gap: 46px; padding: 42px 50px; border-radius: 34px; background: var(--peach); overflow: hidden; }
.fortune-card::after { content: "♡"; position: absolute; right: 34px; top: 18px; color: rgba(255,255,255,.72); font-size: 70px; transform: rotate(16deg); }
.fortune-cookie { width: 142px; height: 142px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--white); color: var(--rose-dark); font-size: 45px; box-shadow: var(--shadow); }
.fortune-cookie span { transform: rotate(-12deg); }
.fortune-question, .fortune-result { position: relative; z-index: 1; }
.fortune-prompt { margin-bottom: 18px; font-size: 24px; font-weight: 900; letter-spacing: -.03em; }
.fortune-options { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 24px; }
.fortune-option { border: 1px solid rgba(155,106,117,.3); border-radius: 999px; padding: 10px 17px; background: rgba(255,255,255,.42); color: var(--ink); font-size: 14px; font-weight: 800; }
.fortune-option:hover, .fortune-option:focus-visible, .fortune-option.selected { border-color: var(--rose-dark); background: var(--white); outline: none; }
.fortune-button, .fortune-again { border: 0; border-radius: 999px; padding: 13px 19px; background: var(--ink); color: var(--white); font-size: 13px; font-weight: 900; }
.fortune-button:hover, .fortune-button:focus-visible, .fortune-again:hover, .fortune-again:focus-visible { background: var(--rose-dark); outline: none; }
.fortune-result { max-width: 620px; }
.fortune-result-label { margin-bottom: 12px; color: var(--rose-dark); font-size: 11px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.fortune-result-copy { margin-bottom: 22px; font-size: 21px; line-height: 1.55; }
.fortune-again { background: rgba(255,255,255,.6); color: var(--ink); }

.closing { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 104px 0 90px; text-align: center; }
.closing p { margin-bottom: 0; color: var(--muted); font-size: 17px; }
.closing strong { font-size: clamp(24px, 3vw, 36px); letter-spacing: -.03em; }
.closing-heart { color: var(--rose-dark); font-size: 22px; }
.footer { border-top: 1px solid var(--line); padding-top: 22px; color: var(--muted); font-size: 11px; letter-spacing: .12em; text-align: center; text-transform: uppercase; }
.footer span { color: var(--rose-dark); font-size: 17px; vertical-align: -2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 800px) {
  .page-shell { padding: 22px 20px 26px; }
  .topbar { font-size: 10px; }
  .tiny-note { display: none; }
  .sound-toggle { padding: 7px 10px; font-size: 9px; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 0; padding: 70px 0 72px; }
  .hero-art { min-height: 290px; order: -1; }
  .sun-disc { width: 205px; height: 205px; }
  .heart-orb { width: 116px; height: 116px; font-size: 72px; }
  .orbit-one { width: 300px; height: 125px; }
  .orbit-two { width: 255px; height: 340px; }
  .cloud-one { right: 3%; }
  .cloud-two { left: 2%; }
  .section-block, .hug-section { padding: 70px 0; }
  .fortune-section { padding: 70px 0; }
  .mood-grid, .reply-section, .hug-section { grid-template-columns: 1fr; }
  .reply-section, .hug-section { gap: 38px; }
  .mood-button { min-height: 91px; }
  .response-panel { align-items: flex-start; padding: 22px; }
  .response-icon { margin-top: 2px; }
  .hug-area { min-height: 275px; }
  .fortune-card { min-height: 390px; flex-direction: column; align-items: flex-start; gap: 28px; padding: 34px 26px; }
  .fortune-cookie { width: 94px; height: 94px; font-size: 31px; }
  .fortune-prompt { font-size: 21px; }
  .fortune-result-copy { font-size: 18px; }
  .closing { padding: 82px 0 70px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
