/* ============================================================
   Call of the Void Support — shared design system
   Pastel-galaxy / dreamy-cosmic, neuro-affirming
   ============================================================ */

/* ---- Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Nunito:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Caveat:wght@500;600;700&display=swap');

:root {
  /* Cosmic palette */
  --ink:        #2a338f;   /* deep periwinkle-indigo — display text */
  --ink-soft:   #4b56b8;
  --periwinkle: #8b93e8;
  --lavender:   #b79be8;
  --lilac:      #d6c2f2;
  --pink:       #ec9fd1;
  --rose:       #f3b6d6;
  --sky:        #bfe6f7;   /* cloud blue */
  --sky-deep:   #7fc6ec;
  --cream:      #fbf7ea;
  --star:       #fff1bf;   /* stardust gold */
  --white:      #ffffff;

  --text:       #2c2350;   /* body text on light */
  --text-soft:  #5a5380;
  --on-dark:    #fbf8ff;

  --font-display: 'Baloo 2', system-ui, sans-serif;
  --font-body:    'Nunito', system-ui, sans-serif;
  --font-mono:    'Space Mono', ui-monospace, monospace;
  --font-script:  'Caveat', cursive;

  --maxw: 1180px;
  --radius: 28px;
  --radius-lg: 44px;
  --shadow-soft: 0 18px 50px -20px rgba(42, 51, 143, 0.45);
  --shadow-card: 0 24px 60px -28px rgba(42, 51, 143, 0.55);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.6;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  background: #b9c1f0;
  overflow-x: hidden;
}

/* ---- Galaxy backdrop (fixed) ---- */
.sky {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 50% at 18% 8%,  rgba(214,194,242,0.95), transparent 60%),
    radial-gradient(ellipse 60% 45% at 85% 18%, rgba(243,182,214,0.9),  transparent 58%),
    radial-gradient(ellipse 80% 55% at 75% 92%, rgba(139,147,232,0.85), transparent 62%),
    radial-gradient(ellipse 70% 50% at 12% 95%, rgba(191,230,247,0.7),  transparent 60%),
    linear-gradient(165deg, #aeb7ef 0%, #c2b1ee 38%, #d9bce4 64%, #e7bcd8 100%);
}
#stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* ---- Layout helpers ---- */
.wrap { width: min(var(--maxw), 92vw); margin-inline: auto; }
section { position: relative; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin: 0 0 1rem;
}
.eyebrow::before {
  content: "✦";
  color: var(--pink);
  font-size: 0.9em;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-weight: 800; font-size: clamp(2.7rem, 7vw, 5.6rem); }
h2 { font-weight: 800; font-size: clamp(2rem, 4.5vw, 3.4rem); }
h3 { font-weight: 700; font-size: clamp(1.3rem, 2.2vw, 1.7rem); }

p { margin: 0 0 1rem; text-wrap: pretty; }
a { color: inherit; }

/* ---- Buttons ---- */
.btn {
  --bg: var(--ink);
  --fg: var(--on-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  border: 2.5px solid var(--ink);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: 0 8px 0 -2px rgba(42,51,143,.35);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 12px 0 -2px rgba(42,51,143,.4); }
.btn:active { transform: translateY(0); box-shadow: 0 4px 0 -2px rgba(42,51,143,.4); }
.btn--ghost {
  --bg: rgba(255,255,255,.72);
  --fg: var(--ink);
  backdrop-filter: blur(6px);
}
.btn--pink { --bg: var(--pink); --fg: #fff; border-color: var(--pink); box-shadow: 0 8px 0 -2px rgba(190,80,150,.4); }
.btn--pink:hover { box-shadow: 0 12px 0 -2px rgba(190,80,150,.45); }

/* multi-color gradient CTA — for "Join the Void" */
.btn--void {
  --fg: #fff;
  background: linear-gradient(100deg, #e85fae 0%, #9460c8 45%, #5a8fe0 78%, #34b0c4 100%);
  border-color: var(--ink);
  color: #fff;
  box-shadow: 0 8px 0 -2px rgba(90,60,140,.4);
}
.btn--void:hover { box-shadow: 0 12px 0 -2px rgba(90,60,140,.45); }

/* ---- scrapbook photo frame (shared across pages) ---- */
.frame {
  position: relative;
  background: #fff;
  padding: 14px 14px 16px;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}
.frame img { display: block; width: 100%; border-radius: 8px; }
.tape {
  position: absolute;
  width: 74px; height: 26px;
  background: rgba(214,194,242,.7);
  box-shadow: 0 2px 6px -2px rgba(42,51,143,.3);
  z-index: 4;
}
.tape--tl { top: -12px; left: 22px; transform: rotate(-7deg); background: rgba(251,226,207,.78); }
.tape--br { bottom: -10px; right: 26px; transform: rotate(-9deg); }

/* ---- Cloud card ---- */
.cloud {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(1.6rem, 3vw, 2.8rem);
  position: relative;
}
.cloud--sky { background: var(--sky); }
.cloud--cream { background: var(--cream); }

/* outlined sticker-style chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-mono);
  font-size: .84rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .45em 1em;
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  border: 2px solid var(--ink);
  color: var(--ink);
  font-weight: 700;
}

/* speech bubble */
.bubble {
  position: relative;
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 26px;
  padding: 1rem 1.3rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
}
.bubble::after {
  content: "";
  position: absolute;
  left: 38px; bottom: -18px;
  width: 26px; height: 26px;
  background: var(--cream);
  border-right: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  transform: rotate(35deg) skewX(-8deg);
  border-radius: 0 0 8px 0;
}
.bubble--peach { background: #fbe2cf; }
.bubble--peach::after { background: #fbe2cf; }

/* gradient heart row */
.hearts {
  display: flex;
  gap: clamp(.4rem, 2vw, 1.2rem);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1;
  justify-content: center;
}
.hearts span:nth-child(1) { color: var(--periwinkle); }
.hearts span:nth-child(2) { color: #9d97e6; }
.hearts span:nth-child(3) { color: var(--lavender); }
.hearts span:nth-child(4) { color: var(--pink); }
.hearts span:nth-child(5) { color: var(--rose); }

/* mono "note" emphasis colors used in body copy */
.t-peri { color: var(--ink-soft); font-weight: 700; }
.t-lav  { color: #9460c8; font-weight: 700; }
.t-pink { color: #d05fa3; font-weight: 700; }

/* sparkle decoration */
.sparkle { color: var(--star); filter: drop-shadow(0 0 6px rgba(255,241,191,.8)); }

/* NOTE: the preview/capture environment freezes CSS animations & transitions
   at frame 0, so entrance effects must never start from a hidden state.
   Content is fully visible by default; .reveal is intentionally a no-op. */
.reveal { opacity: 1; transform: none; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(238,235,252,.82), rgba(238,235,252,.5));
  border-bottom: 1px solid rgba(42,51,143,.12);
}
.nav__inner {
  width: min(var(--maxw), 94vw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 0;
}
.brandmark {
  display: flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.05;
  white-space: nowrap;
}
.brandmark .dot {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 0 0 2.5px #fff, 0 6px 16px -6px var(--ink);
  display: block;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: .15rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav__links a {
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  padding: .45em .7em;
  border-radius: 999px;
  font-size: .95rem;
  white-space: nowrap;
  transition: background .16s ease;
}
.nav__links a:hover { background: rgba(255,255,255,.6); }
.nav__links a.active { background: var(--ink); color: var(--on-dark); }

.nav__toggle { display: none; }

.calm-toggle {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: rgba(255,255,255,.6);
  border: 2px solid var(--ink);
  color: var(--ink);
  border-radius: 999px;
  padding: .4em .8em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-weight: 700;
}

.hamburger { display: none; }

@media (max-width: 1000px) {
  .nav__links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(238,235,252,.97);
    backdrop-filter: blur(12px);
    padding: .6rem;
    gap: .2rem;
    border-bottom: 1px solid rgba(42,51,143,.12);
    transform: translateY(-8px);
    opacity: 0; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav__links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { padding: .8em 1em; }
  .hamburger {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    background: none; border: none; cursor: pointer;
    padding: .4em;
  }
  .hamburger span { width: 26px; height: 3px; background: var(--ink); border-radius: 3px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  margin-top: 5rem;
  padding: 3.5rem 0 2.5rem;
  background: linear-gradient(180deg, rgba(42,51,143,.06), rgba(42,51,143,.16));
  border-top: 1px solid rgba(42,51,143,.16);
}
.foot__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}
.foot a { color: var(--ink); }
.socials { display: flex; gap: .6rem; }
.socials a {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
  transition: transform .16s ease, background .16s ease;
}
.socials a:hover { transform: translateY(-3px); background: var(--lilac); }

/* utility */
.center { text-align: center; }
.stack-sm > * + * { margin-top: .6rem; }
