/* ==========================================================================
   Beauty Aesthetics by Elisa — Base Styles
   Reset, @font-face, base element typography, focus states,
   prefers-reduced-motion backstop.
   ========================================================================== */

/* ---- @font-face: Alex Brush (script) ---- */
@font-face {
  font-family: 'Alex Brush';
  src: url('../assets/fonts/AlexBrush-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---- @font-face: Playfair Display (serif) ---- */
@font-face {
  font-family: 'Playfair Display';
  src: url('../assets/fonts/PlayfairDisplay-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('../assets/fonts/PlayfairDisplay-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('../assets/fonts/PlayfairDisplay-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('../assets/fonts/PlayfairDisplay-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---- @font-face: Mulish (body sans) ---- */
@font-face {
  font-family: 'Mulish';
  src: url('../assets/fonts/Mulish-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Mulish';
  src: url('../assets/fonts/Mulish-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Mulish';
  src: url('../assets/fonts/Mulish-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Mulish';
  src: url('../assets/fonts/Mulish-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background-color: var(--color-cream-50);
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: 400;
  line-height: var(--line-height-body);
  color: var(--color-charcoal-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Ambient bokeh backdrop ----
   Two fixed layers of soft blush orbs drifting on different cycle lengths,
   so the arrangement never visibly repeats. Purely decorative: z-index -1
   paints them above the cream canvas but beneath every section background,
   so only sections without their own fill let them show through.
   The reduced-motion backstop below freezes the drift, keeping the colour. */
body::before,
body::after {
  content: '';
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  will-change: transform;
}

body::before {
  background-image:
    radial-gradient(circle 22vmax at 14% 22%, var(--bokeh-core) 0%, var(--bokeh-soft) 45%, transparent 72%),
    radial-gradient(circle 15vmax at 83% 12%, var(--bokeh-core) 0%, var(--bokeh-soft) 45%, transparent 72%),
    radial-gradient(circle 26vmax at 70% 78%, var(--bokeh-core) 0%, var(--bokeh-soft) 45%, transparent 72%);
  animation: bokeh-drift-a 30s ease-in-out infinite alternate;
}

body::after {
  background-image:
    radial-gradient(circle 18vmax at 38% 60%, var(--bokeh-core) 0%, var(--bokeh-soft) 45%, transparent 72%),
    radial-gradient(circle 12vmax at 92% 44%, var(--bokeh-core) 0%, var(--bokeh-soft) 45%, transparent 72%),
    radial-gradient(circle 20vmax at 6% 88%, var(--bokeh-core) 0%, var(--bokeh-soft) 45%, transparent 72%);
  animation: bokeh-drift-b 39s ease-in-out infinite alternate;
}

@keyframes bokeh-drift-a {
  from {
    transform: translate3d(-3.5%, -2.5%, 0) scale(1);
  }
  to {
    transform: translate3d(5%, 4%, 0) scale(1.09);
  }
}

@keyframes bokeh-drift-b {
  from {
    transform: translate3d(4.5%, 3.5%, 0) scale(1.07);
  }
  to {
    transform: translate3d(-5%, -3.5%, 0) scale(1);
  }
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul,
ol {
  list-style: none;
}

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

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

button {
  cursor: pointer;
}

table {
  border-collapse: collapse;
}

/* ---- Base typography ---- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: var(--line-height-tight);
  color: var(--color-charcoal-900);
}

h1 {
  font-size: var(--font-size-2xl);
}

h2 {
  font-size: var(--font-size-xl);
}

h3 {
  font-size: var(--font-size-lg);
}

h4 {
  font-size: var(--font-size-md);
  font-weight: 700;
}

p {
  max-width: 65ch;
}

.text-script {
  font-family: var(--font-script);
  font-weight: 400;
  line-height: 1;
}

.text-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-rose-600);
}

.text-caption {
  font-size: var(--font-size-sm);
  color: var(--color-charcoal-500);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Focus state ---- */
:focus-visible {
  outline: 2px solid var(--color-rose-600);
  outline-offset: 2px;
}

/* ---- Reduced motion backstop ----
   JS also guards animations via matchMedia; this is a CSS-level
   fallback in case a transition/animation is added without a JS check. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
