@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400;1,500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Parisienne&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700&display=swap');

/* ── Base ── */
html {
  scroll-behavior: auto; /* GSAP handles scrolling */
  overflow-x: hidden;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── Visibility helpers ── */
.hidden   { display: none !important; }
.invisible { opacity: 0; pointer-events: none; }
.visible   { opacity: 1; pointer-events: auto; }

/* ── Scroll lock ── */
body.scroll-locked {
  overflow: hidden;
}

/* ── Typography utilities ── */
.font-display     { font-family: var(--font-display); }
.font-handwriting { font-family: var(--font-handwriting); }
.font-body        { font-family: var(--font-body); }

.text-primary   { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-pink      { color: var(--pink); }
.text-purple    { color: var(--purple); }
.text-purple-soft { color: var(--purple-soft); }

/* ── Section base ── */
.section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ── HK Motif: Dots ── */
.hk-dots {
  background-image: var(--hk-dot-pattern);
  background-size: var(--hk-dot-size);
}

/* ── HK Motif: Bow ── */
.hk-bow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hk-bow svg {
  fill: var(--hk-red);
  display: block;
}

.hk-bow.sm svg { width: 16px; height: 16px; }
.hk-bow.md svg { width: 24px; height: 24px; }
.hk-bow.lg svg { width: 40px; height: 40px; }

/* ── Glow helpers ── */
.glow-purple {
  text-shadow: 0 0 20px var(--purple-soft), 0 0 40px var(--purple-haze);
}

.glow-pink {
  text-shadow: 0 0 20px var(--glow-pink), 0 0 40px rgba(232, 120, 168, 0.15);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease-romantic),
              box-shadow 0.2s var(--ease-default),
              background-color 0.2s var(--ease-default),
              border-color 0.2s var(--ease-default);
  text-transform: none;
  letter-spacing: 0.02em;
}

.btn:focus-visible {
  outline: 2px solid var(--purple-soft);
  outline-offset: 3px;
}

.btn-primary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--pink);
  box-shadow: 0 0 20px var(--glow-pink);
}

.btn-primary:hover {
  background: rgba(232, 120, 168, 0.12);
  border-color: var(--pink-soft);
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--glow-pink);
}

.btn-secondary {
  background: var(--purple-deep);
  color: var(--text-primary);
  border-color: var(--purple);
}

.btn-secondary:hover {
  background: var(--purple);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* ── Fullscreen overlay ── */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* ── Particles container ── */
#particles-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ── Crossfade overlay ── */
#crossfade {
  position: fixed;
  inset: 0;
  background: var(--bg-deep);
  opacity: 0;
  pointer-events: none;
  z-index: 100;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  body { font-size: 15px; }
}

@media (max-width: 480px) {
  body { font-size: 14px; }
}
