:root {
  --night: #0d1230;
  --night-2: #151b42;
  --indigo: #232a63;
  --lavender: #b8a9ff;
  --gold: #f2c46d;
  --gold-soft: #f8dea6;
  --cream: #f6f1e7;
  --ink: #1c1d33;
  --muted: #9aa0c7;
  --line: rgba(184, 169, 255, .18);
  --radius: 18px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Outfit", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--cream);
  background: var(--night);
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
.container { width: min(1140px, 92%); margin-inline: auto; }
.narrow { width: min(780px, 92%); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 18, 48, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--cream); display: flex; align-items: center; gap: 10px; }
.logo:hover { text-decoration: none; }
.logo em { color: var(--gold); font-style: italic; font-weight: 500; }
.logo-moon {
  width: 26px; height: 26px; border-radius: 50%;
  box-shadow: inset -7px 3px 0 0 var(--gold);
  transform: rotate(-20deg);
}
.main-nav { display: flex; gap: 30px; }
.main-nav a { color: var(--muted); font-weight: 500; font-size: .98rem; }
.main-nav a:hover, .main-nav a.active { color: var(--cream); text-decoration: none; }
.main-nav a.active { box-shadow: 0 2px 0 var(--gold); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--cream); margin: 5px 0; transition: .25s; }

/* Hero */
.hero {
  position: relative; min-height: 82vh; display: flex; align-items: center;
  background: var(--night-2) center / cover no-repeat;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(13,18,48,.94) 25%, rgba(13,18,48,.55) 60%, rgba(13,18,48,.25));
}
.hero .container { position: relative; }
.hero-content { max-width: 620px; }
.eyebrow { display: inline-block; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--lavender); font-weight: 600; margin-bottom: 1rem; }
.hero p.lead { font-size: 1.2rem; color: #d9d6ee; }
.page-hero { min-height: 52vh; }

/* Buttons */
.btn { display: inline-block; padding: 14px 28px; border-radius: 999px; font-weight: 600; transition: transform .2s, box-shadow .2s; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 8px 30px rgba(242,196,109,.25); }
.btn-gold:hover { color: var(--ink); }
.btn-ghost { border: 1px solid var(--line); color: var(--cream); margin-left: 10px; }
.btn-ghost:hover { color: var(--cream); border-color: var(--lavender); }

/* Sections */
section { padding: 90px 0; }
.section-alt { background: var(--night-2); }
.section-light { background: var(--cream); color: var(--ink); }
.section-light .eyebrow { color: #6b5bd6; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head p { color: var(--muted); }
.section-light .section-head p { color: #55587a; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.media { border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, var(--indigo), var(--night)); aspect-ratio: 3 / 2; }
.media img { width: 100%; height: 100%; object-fit: cover; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: border-color .25s, transform .25s;
}
.card:hover { border-color: var(--lavender); transform: translateY(-3px); }
.card .icon { font-size: 1.8rem; margin-bottom: 14px; }
.card p { color: var(--muted); margin: 0; }
.card-link { display: inline-block; margin-top: 16px; font-weight: 600; }
.section-light .card { background: #fff; border-color: #e6e0d2; }
.section-light .card p { color: #55587a; }
.section-light .card:hover { border-color: #6b5bd6; }

.checklist { list-style: none; padding: 0; margin: 0 0 1.4em; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.checklist li::before { content: "\2726"; position: absolute; left: 0; color: var(--gold); }

/* Dream dictionary */
.symbol-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.symbol { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid #e6e0d2; }
.symbol h3 { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.symbol h3 span { font-size: 1.4rem; }
.symbol p { color: #4a4d6c; margin: 0; }

/* Traditions */
.tradition { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.tradition:last-child { border-bottom: 0; }
.tradition .place { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--lavender); font-weight: 600; padding-top: 6px; }
.tradition p { color: var(--muted); margin: 0; }

/* Quote band */
.quote-band { text-align: center; padding: 100px 0; background: radial-gradient(ellipse at center, var(--indigo), var(--night) 70%); }
.quote-band blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 3vw, 2.2rem); max-width: 780px; margin: 0 auto 18px; line-height: 1.4; }
.quote-band cite { color: var(--muted); font-style: normal; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 14px 0 0; }

/* Legal */
.legal { padding: 70px 0 100px; }
.legal h2 { font-size: 1.5rem; margin-top: 2.2em; }
.legal p, .legal li { color: #cfd0e6; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .5em; }
.updated { color: var(--muted); font-size: .95rem; }
.toc { background: var(--night-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 30px; margin: 30px 0; }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2; }

/* CTA */
.cta-box { text-align: center; background: linear-gradient(135deg, var(--indigo), #2c1f5c); border-radius: 26px; padding: 60px 30px; border: 1px solid var(--line); }
.cta-box p { color: #d9d6ee; max-width: 560px; margin: 0 auto 26px; }

/* Footer */
.site-footer { background: #090d24; border-top: 1px solid var(--line); padding-top: 60px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 40px; padding-bottom: 40px; }
.site-footer h4 { font-family: var(--sans); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--lavender); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer li a { color: var(--muted); }
.site-footer li a:hover { color: var(--cream); }
.footer-about, .small { color: var(--muted); }
.small { font-size: .85rem; }
.footer-about { margin-top: 16px; max-width: 360px; }
.footer-bottom { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: 22px 0; color: var(--muted); font-size: .88rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Responsive */
@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse > :first-child { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--night);
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .main-nav a { padding: 16px 4%; border-top: 1px solid var(--line); }
  .main-nav a.active { box-shadow: inset 3px 0 0 var(--gold); }
  .main-nav.open { max-height: 400px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  section { padding: 64px 0; }
  .symbol-grid { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  .btn-ghost { margin: 12px 0 0; }
}
@media (max-width: 560px) {
  .cards, .footer-grid { grid-template-columns: 1fr; }
  .tradition { grid-template-columns: 1fr; gap: 6px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
