/* ═══════════════════════════════════════════════════════════
   BASE STYLES — Reset, Global, Typography, Utilities
   ═══════════════════════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  font-weight: var(--weight-regular);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background-color: var(--color-ivory);
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Lock body when cover is active */
body.cover-active {
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ─── SELECTION ──────────────────────────────────────── */
::selection {
  background-color: var(--color-gold-shimmer);
  color: var(--color-text-primary);
}

::-moz-selection {
  background-color: var(--color-gold-shimmer);
  color: var(--color-text-primary);
}

/* ─── FOCUS STYLES ───────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ─── SCROLLBAR ──────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-champagne-light);
}

::-webkit-scrollbar-thumb {
  background: var(--color-gold-light);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold);
}

/* ─── GLOBAL TYPOGRAPHY ──────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: var(--weight-light);
  line-height: var(--leading-tight);
  color: var(--color-text-primary);
}

p {
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

/* ─── UTILITY CLASSES ────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-gold {
  color: var(--color-gold);
}

.text-serif {
  font-family: var(--font-serif);
}

.text-sans {
  font-family: var(--font-sans);
}

.text-center {
  text-align: center;
}

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

/* ─── SECTION BASE ───────────────────────────────────── */
.section {
  position: relative;
  padding: var(--section-py) var(--section-px);
  overflow: hidden;
}

.section__container {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: var(--z-content);
}

.section__label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-ultra);
  color: var(--color-gold);
  text-align: center;
  margin-bottom: var(--space-4);
}

.section__title {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: var(--weight-light);
  text-align: center;
  margin-bottom: var(--space-5);
  color: var(--color-text-primary);
}

.section__subtitle {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-light);
  text-align: center;
  color: var(--color-text-light);
  line-height: var(--leading-relaxed);
  max-width: 480px;
  margin: 0 auto var(--space-8);
}

/* ─── DECORATIVE SEPARATOR ───────────────────────────── */
.separator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin: var(--space-6) auto;
  max-width: 200px;
}

.separator__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold-light), transparent);
}

.separator__icon {
  color: var(--color-gold);
  font-size: var(--text-sm);
  opacity: 0.7;
}

/* ─── 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;
  }

  .particles-canvas,
  .petals-canvas {
    display: none !important;
  }
}

/* Low performance mode */
html.low-performance .particles-canvas {
  display: none !important;
}

html.low-performance * {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
