*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

:root {
  --bg:        #FFC9E0;
  --ink:       #6B1239;
  --ink-muted: rgba(107,18,57,0.5);
  --hot:       #E84393;
  --deep:      #C42C75;
  --card:      #FFF6FA;
  --line:      rgba(107,18,57,0.12);
  --shadow:    0 10px 36px rgba(107,18,57,.14);
}

html { scroll-behavior: smooth; }

/* ── themed cursors (Y2K) ── */
html {
  cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'><path d='M5 3L5 23L10.5 17.6L13.8 24.4L17 22.9L13.7 16.3L21 16.1Z' fill='%23ffffff' stroke='%23E84393' stroke-width='1.7' stroke-linejoin='round'/></svg>") 5 3, auto;
}
a, button, [data-zone], [data-note], summary, label[for] {
  cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 24 24'><g fill='%23E84393'><circle cx='12' cy='5.2' r='3.4'/><circle cx='18' cy='9.55' r='3.4'/><circle cx='15.7' cy='16.6' r='3.4'/><circle cx='8.3' cy='16.6' r='3.4'/><circle cx='6' cy='9.55' r='3.4'/></g><circle cx='12' cy='11.5' r='3' fill='%23FFD23F'/></svg>") 13 12, pointer;
}
input, textarea { cursor: text; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* subtle polka dots */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .3;
  background-image: radial-gradient(circle, rgba(255,255,255,.5) 1.3px, transparent 1.3px);
  background-size: 26px 26px;
}

/* grain */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

main, nav, header, section, footer { position: relative; z-index: 1; }

/* NAV */
.y2k-nav {
  position: fixed; top:0; left:0; right:0;
  z-index: 500;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 44px;
  background: rgba(255,201,224,.85);
  backdrop-filter: blur(14px);
}
.back-btn {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  display: flex; align-items: center; gap: 9px;
  transition: opacity .2s;
}
.back-btn::before { content:'←'; font-size:1rem; }
.back-btn:hover { opacity:.6; }
.nav-title {
  display: flex; align-items: center; gap: 11px;
}
.brand-script {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: .005em;
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
  transition: color .2s, transform .2s;
}
.brand-script:hover { color: var(--hot); transform: rotate(-1.5deg); }
.nav-page {
  font-family: 'DM Sans', sans-serif;
  font-size: .72rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-muted);
  padding-left: 11px;
  border-left: 1px solid var(--line);
}
.nav-home-link {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color .2s;
}
.nav-home-link:hover { color: var(--ink); }

/* PAGE HERO */
.page-hero {
  padding: 130px 48px 56px;
  text-align: center;
}
.page-title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  letter-spacing: -.015em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 14px;
}
.page-title em { font-style: italic; font-weight: 300; color: #fff; }
.page-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(.95rem, 1.6vw, 1.1rem);
  color: var(--ink-muted);
}
.hint-script {
  font-family: 'Caveat', cursive;
  font-weight: 500;
  font-size: 1.45rem;
  color: var(--ink-muted);
  display: inline-block;
  transform: rotate(-2deg);
  margin-top: 10px;
}

/* sparkle row */
.sparkle-row {
  font-size: 1rem;
  color: rgba(255,255,255,.85);
  letter-spacing: .25em;
  margin: 10px 0;
}

/* FOOTER */
.y2k-footer {
  padding: 44px 48px;
  text-align: center;
  margin-top: 80px;
}
.y2k-footer p {
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  color: var(--ink-muted);
}
.y2k-footer a { color: var(--ink); text-decoration: none; border-bottom:1px solid var(--ink-muted); transition: opacity .2s; }
.y2k-footer a:hover { opacity:.6; }
.y2k-copy {
  font-size: .8rem !important;
  margin-top: 10px;
  color: rgba(107,18,57,.35) !important;
}

/* sparkle cursor trail */
.spark {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  animation: sparkFade .7s ease-out forwards;
  transform: translate(-50%,-50%);
}
@keyframes sparkFade {
  0%   { opacity:1; transform:translate(-50%,-50%) scale(1) rotate(0deg); }
  100% { opacity:0; transform:translate(-50%,-140%) scale(.2) rotate(60deg); }
}

/* REVEAL */
.reveal { opacity:0; transform:translateY(22px); transition:opacity .75s ease, transform .75s ease; }
.reveal.on { opacity:1; transform:none; }
.d1 { transition-delay:.1s; }
.d2 { transition-delay:.2s; }
.d3 { transition-delay:.3s; }

@media(max-width:768px){
  .y2k-nav { padding:14px 20px; }
  .page-hero { padding:100px 20px 40px; }
  .y2k-footer { padding:32px 20px; }
}
