/* ── BASE RESET & TYPOGRAPHY ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: 'Lora', Georgia, serif;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'League Spartan', sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

a { color: inherit; }

/* ── GRAIN OVERLAY ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
  opacity: var(--grain-opacity);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pinkPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,45,120,0); }
  50%      { box-shadow: 0 0 32px 4px rgba(255,45,120,0.25); }
}
@keyframes wag {
  0%,100% { transform: rotate(-4deg); }
  50%     { transform: rotate(4deg); }
}
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
}

.fade-up   { animation: fadeUp  0.7s ease both; }
.fade-in   { animation: fadeIn  0.9s ease both; }
.delay-1   { animation-delay: 0.15s; }
.delay-2   { animation-delay: 0.30s; }
.delay-3   { animation-delay: 0.45s; }
.delay-4   { animation-delay: 0.60s; }
.delay-5   { animation-delay: 0.75s; }

/* ── LAYOUT ── */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 28px;
}

.container--wide {
  max-width: 960px;
}

/* ── DIVIDER ── */
.divider {
  width: 48px;
  height: 3px;
  background: var(--pink);
  margin: 40px auto;
  border-radius: 2px;
}

/* ── SECTION HEADINGS ── */
.section-heading {
  font-family: 'League Spartan', sans-serif;
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: var(--cream);
  text-align: center;
  margin-bottom: 28px;
}

.section-heading span { color: var(--pink); }

/* ── THEME TOGGLE ── */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, transform 0.15s;
  font-size: 1.2rem;
  line-height: 1;
}

.theme-toggle:hover {
  border-color: var(--pink);
  transform: scale(1.1);
}

/* Smooth theme transition */
html.transitioning,
html.transitioning *,
html.transitioning *::before,
html.transitioning *::after {
  transition: background 0.3s, color 0.3s, border-color 0.3s, opacity 0.3s !important;
}
