/* Quiet Place — Luxury Minimal (ATMA style). Ivory, gold, serif, wide whitespace. Base = phone (360px). */
:root {
  --ivory: #faf7f0; --paper: #fffdf8; --cream: #f3ede0;
  --ink: #23201a; --muted: #6f6a5e; --gold: #b08d4f; --gold-soft: #c9a86a;
  --lav: #efe9f2; --peach: #f5e9e2; --line: rgba(35,32,26,.12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: "Karla", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; }
a { color: inherit; }
button { font-family: inherit; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250,247,240,.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-wrap { max-width: 76rem; margin: 0 auto; padding: 0 1.1rem; height: 4.2rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.logo { font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 1.2rem; text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; letter-spacing: .01em; }
.logo-icon { display: inline-flex; width: 2rem; height: 2rem; border-radius: 50%; background: var(--ink); color: var(--gold-soft); align-items: center; justify-content: center; }
.logo-icon svg { width: 1.05rem; height: 1.05rem; }
.nav-links { display: none; }
.nav-links.open { display: flex; position: absolute; top: 4.2rem; left: 0; right: 0; flex-direction: column; background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem 1rem 1rem; gap: .25rem; }
.nav-links.open a { padding: .8rem .5rem; text-decoration: none; font-weight: 600; border-radius: .6rem; }
.nav-links.open a:active { background: var(--cream); }
.nav-actions { display: flex; align-items: center; gap: .5rem; }
#menu-btn { background: var(--paper); border: 1px solid var(--line); border-radius: .7rem; width: 2.75rem; height: 2.75rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
#menu-btn svg { width: 1.3rem; height: 1.3rem; }

/* ---------- Buttons ---------- */
.btn-coral, .btn-soft, .btn-dark, .btn-ghost-lux { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 3.2rem; font-weight: 700; padding: .75rem 1.6rem; border-radius: 999px; border: none; cursor: pointer; text-decoration: none; font-size: 1rem; transition: transform .18s ease, filter .18s ease, box-shadow .18s ease; }
.btn-dark, .btn-coral { background: var(--ink); color: #faf7f0; box-shadow: 0 10px 26px rgba(35,32,26,.28); }
.btn-dark:hover, .btn-coral:hover { transform: translateY(-2px); filter: brightness(1.15); }
.btn-dark:active, .btn-coral:active { transform: scale(.97); }
.btn-ghost-lux, .btn-soft { background: transparent; color: var(--ink); border: 1px solid rgba(35,32,26,.35); }
.btn-ghost-lux:hover, .btn-soft:hover { background: rgba(35,32,26,.05); transform: translateY(-2px); }
.btn-sm { min-height: 2.6rem; padding: .5rem 1.1rem; font-size: .88rem; }
.nav-cta { white-space: nowrap; }
.nav-cta .short-label { display: none; }
@media (max-width: 1023px) {
  .nav-cta .long-label { display: none; }
  .nav-cta .short-label { display: inline; }
}
.btn-lg { padding: .9rem 1.9rem; font-size: 1.05rem; }
.btn-icon { display: inline-flex; }
.btn-icon svg { width: 1.05rem; height: 1.05rem; }
.w-full { width: 100%; }

/* ---------- Hero : luxury minimal ---------- */
.hero-lux { background: linear-gradient(180deg, #e9e4ef 0%, #f2e6e2 42%, #faf7f0 78%); padding: 3.4rem 1.1rem 0; overflow: hidden; }
.hero-inner { max-width: 56rem; margin: 0 auto; text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .72rem; font-weight: 700; color: var(--gold); margin: 0 0 .9rem; }
.eyebrow.center { text-align: center; }
.hero-inner h1 { font-size: 2.7rem; line-height: 1.12; font-weight: 600; letter-spacing: -.01em; margin: 0; }
.gold-italic { font-style: italic; color: var(--gold); font-weight: 500; }
.hero-sub { color: var(--muted); font-size: 1.02rem; line-height: 1.7; max-width: 36rem; margin: 1.1rem auto 0; }
.hero-cta { display: flex; flex-direction: column; gap: .7rem; margin: 1.9rem 0 0; align-items: center; }
.tree-wrap { max-width: 52rem; margin: .6rem auto 0; }
.tree { display: block; width: 100%; height: auto; }
.olive-leaf { transform-box: fill-box; transform-origin: center; animation: leafSway 6s ease-in-out infinite; }
@keyframes leafSway { 0%,100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
.logo-strip { max-width: 56rem; margin: 0 auto; padding: 1.6rem 0 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.1rem 2rem; border-top: 1px solid var(--line); }
.logo-strip span { font-family: "Fraunces", Georgia, serif; font-size: 1.05rem; color: rgba(35,32,26,.38); letter-spacing: .04em; }
.logo-strip span:nth-child(2) { font-style: italic; }
.logo-strip span:nth-child(4) { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .9rem; }

/* ---------- The old scene, now a framed piece ---------- */
.sanctuary { max-width: 56rem; margin: 2.4rem auto 0; border: 1px solid var(--gold-soft); border-radius: 1.4rem; padding: .6rem; background: var(--paper); box-shadow: 0 18px 44px rgba(35,32,26,.1); }
.sanctuary figcaption { font-family: "Fraunces", Georgia, serif; font-style: italic; color: var(--muted); text-align: center; padding: .7rem 0 .5rem; font-size: 1rem; }
.sanctuary .scene { display: block; width: 100%; height: auto; border-radius: 1rem; }
.cloud { animation: drift 70s ease-in-out infinite alternate; }
.cloud.c1 { animation-duration: 58s; } .cloud.c2 { animation-duration: 82s; } .cloud.c3 { animation-duration: 66s; animation-delay: -20s; }
@keyframes drift { from { transform: translateX(-34px); } to { transform: translateX(44px); } }
.bird { animation: fly 52s linear infinite; }
.bird.b2 { animation-name: fly2; animation-delay: -30s; }
@keyframes fly { from { transform: translate(-50px, 66px); } to { transform: translate(1250px, 42px); } }
@keyframes fly2 { from { transform: translate(-50px, 108px); } to { transform: translate(1250px, 84px); } }
.sway { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 7s ease-in-out infinite; }
@keyframes sway { 0%,100% { transform: rotate(-1.2deg); } 50% { transform: rotate(1.2deg); } }
.bunny { animation: bob 3.4s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.rod { transform-box: fill-box; transform-origin: 0% 100%; animation: rodTilt 3.4s ease-in-out infinite; }
@keyframes rodTilt { 0%,100% { transform: rotate(0deg); } 50% { transform: rotate(1.6deg); } }
.ripple { transform-box: fill-box; transform-origin: center; animation: ripple 2.6s ease-out infinite; }
.ripple.r2 { animation-delay: -1.3s; }
@keyframes ripple { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }
.water-line { animation: waterLine 6s ease-in-out infinite; }
@keyframes waterLine { 0%,100% { transform: translateX(0); opacity: .35; } 50% { transform: translateX(14px); opacity: .6; } }
.fish { animation: swim 38s linear infinite; }
@keyframes swim { 0% { transform: translateX(0); opacity: 0; } 8% { opacity: .85; } 85% { opacity: .85; } 100% { transform: translateX(760px); opacity: 0; } }

/* ---------- Sections ---------- */
.section { max-width: 76rem; margin: 0 auto; padding: 3.6rem 1.1rem; }
.section-title { font-size: 2rem; font-weight: 600; line-height: 1.2; margin: 0; text-align: center; }
.section-title.left { text-align: left; }
.section-sub { color: var(--muted); margin: .7rem auto 0; line-height: 1.7; text-align: center; max-width: 36rem; }
.muted { color: var(--muted); line-height: 1.7; }
.muted-sm { color: var(--muted); font-size: .85rem; }
.feature-grid { display: grid; gap: 1rem; margin-top: 2.2rem; }
.fcard { background: var(--paper); border: 1px solid var(--line); border-radius: 1.3rem; padding: 1.8rem; box-shadow: 0 10px 30px rgba(35,32,26,.05); transition: transform .25s ease, box-shadow .25s ease; }
.fcard:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(35,32,26,.1); }
.ficon { display: inline-flex; width: 3rem; height: 3rem; border-radius: 50%; align-items: center; justify-content: center; margin-bottom: .9rem; background: var(--cream); color: var(--gold); border: 1px solid rgba(176,141,79,.3); }
.ficon svg { width: 1.5rem; height: 1.5rem; }
.fcard h3 { margin: 0 0 .4rem; font-size: 1.25rem; font-weight: 600; }
.fcard p { color: var(--muted); line-height: 1.65; margin: 0 0 .9rem; font-size: .95rem; }
.fcard ul { margin: 0; padding-left: 1.1rem; color: var(--ink); font-size: .92rem; line-height: 1.9; }

/* ---------- Journal ---------- */
.journal-section { background: var(--lav); border-radius: 1.8rem; margin: 0 .75rem; max-width: none; }
.journal-section .section-title { text-align: left; }
.journal-grid { display: grid; gap: 2rem; max-width: 76rem; margin: 0 auto; }
.mood-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.mood { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .95rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font-weight: 600; font-size: .92rem; cursor: pointer; min-height: 2.75rem; }
.mood svg { width: 1.05rem; height: 1.05rem; }
.mood.active { background: var(--ink); color: #faf7f0; border-color: var(--ink); }
.breath-box { display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; margin-top: 1.8rem; }
.breath-circle { width: 7rem; height: 7rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fdf9ec, #e8dcc0); border: 2px solid rgba(176,141,79,.4); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--ink); transition: transform 4s ease-in-out; }
.breath-circle.grow { transform: scale(1.3); }
.journal-card { background: var(--paper); border: 1px solid var(--line); border-radius: 1.2rem; padding: 1.4rem; box-shadow: 0 10px 30px rgba(35,32,26,.05); }
.journal-card label { font-weight: 700; display: block; margin-bottom: .6rem; }
.journal-card textarea { width: 100%; border: 1.5px solid var(--line); border-radius: .8rem; padding: .85rem; font-family: inherit; font-size: 1rem; line-height: 1.5; resize: vertical; background: #fff; color: var(--ink); }
.journal-card textarea:focus { outline: 2px solid var(--gold); border-color: transparent; }
.journal-foot { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: .8rem; flex-wrap: wrap; }
.entries-card { background: var(--paper); border: 1px solid var(--line); border-radius: 1.2rem; padding: 1.4rem; margin-top: 1rem; }
.entries-card h3 { margin: 0 0 .8rem; font-size: 1.1rem; }
#entries-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
#entries-list li { border-left: 3px solid var(--gold); padding: .2rem 0 .2rem .8rem; line-height: 1.5; }
#entries-list li small { display: block; color: var(--muted); font-size: .8rem; margin-top: .2rem; }

/* ---------- Prompt / About / CTA ---------- */
.prompt-section { padding-top: 1rem; }
.prompt-card { background: linear-gradient(135deg, var(--lav), var(--peach)); border-radius: 1.4rem; padding: 2.2rem 1.4rem; text-align: center; border: 1px solid rgba(176,141,79,.25); }
.prompt-text { font-family: "Fraunces", Georgia, serif; font-size: 1.45rem; font-weight: 500; line-height: 1.45; margin: .6rem auto 1.2rem; max-width: 34rem; }
.about-grid { display: grid; gap: 1.8rem; }
.steps { display: grid; gap: .8rem; }
.step { display: flex; gap: .9rem; background: var(--paper); border: 1px solid var(--line); border-radius: 1rem; padding: 1.1rem 1.2rem; align-items: flex-start; }
.step b { flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--ink); color: var(--gold-soft); display: inline-flex; align-items: center; justify-content: center; }
.step h3 { margin: 0 0 .2rem; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.5; }
.cta-section { padding-top: 1rem; }
.cta-card { background: var(--ink); color: #faf7f0; border-radius: 1.8rem; padding: 2.6rem 1.4rem; text-align: center; }
.cta-card h2 { margin: 0 0 .5rem; font-size: 1.9rem; font-weight: 600; }
.cta-card p { color: #b8b2a4; margin: 0 0 1.4rem; }
.cta-card .btn-coral { background: var(--gold-soft); color: var(--ink); box-shadow: 0 10px 26px rgba(201,168,106,.4); }
footer { border-top: 1px solid var(--line); margin-top: 1rem; }
.foot-wrap { max-width: 76rem; margin: 0 auto; padding: 1.8rem 1.1rem 2rem; display: flex; flex-direction: column; gap: .6rem; font-size: .9rem; }
.foot-links a { text-decoration: none; font-weight: 600; }

/* ---------- Reveal + toast ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease var(--d, 0s), transform .7s ease var(--d, 0s); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); background: var(--ink); color: #faf7f0; font-weight: 600; padding: .7rem 1.2rem; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.3); z-index: 70; white-space: nowrap; }
.hidden { display: none !important; }

/* ---------- Tablet / desktop ---------- */
@media (min-width: 640px) {
  .hero-inner h1 { font-size: 3.4rem; }
  .hero-cta { flex-direction: row; justify-content: center; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .journal-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .about-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (min-width: 1024px) {
  .nav-links { display: flex; gap: 1.8rem; font-size: .95rem; }
  .nav-links a { text-decoration: none; font-weight: 600; }
  .nav-links a:hover { color: var(--gold); }
  #menu-btn { display: none; }
  .hero-inner h1 { font-size: 4rem; }
  .hero-lux { padding-top: 4.4rem; }
  .journal-section { margin: 0 auto; max-width: 76rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
