/* ============================================
   MINI AMOUR — Base / Reset / Typography
   "Midnight Luxe" dark mode with Cormorant
   Garamond display + DM Sans body
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-base);
  color: var(--clr-silver);
  background-color: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  max-width: 100vw;
  padding-bottom: 80px;
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

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

img {
  height: auto;
}

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

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

ul,
ol {
  list-style: none;
}

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

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  font-weight: var(--fw-light);
  line-height: var(--lh-tight);
  color: var(--clr-champagne);
}

h1 {
  font-size: var(--fs-3xl);
  letter-spacing: var(--ls-tight);
}

h2 {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-regular);
}

h3 {
  font-size: var(--fs-xl);
  font-weight: var(--fw-medium);
}

h4 {
  font-size: var(--fs-lg);
  font-weight: var(--fw-medium);
}

p {
  margin-bottom: var(--sp-16);
}

p:last-child {
  margin-bottom: 0;
}

em {
  font-style: italic;
}

strong {
  font-weight: var(--fw-semibold);
}

/* ---- Selection ---- */
::selection {
  background-color: var(--clr-maroon);
  color: var(--clr-ivory);
}

/* ---- Focus visible ---- */
:focus-visible {
  outline: 2px solid var(--clr-gold);
  outline-offset: 2px;
}

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

/* ---- Tablet+ typography ---- */
@media (min-width: 768px) {
  h1 {
    font-size: var(--fs-4xl);
  }

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

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

@media (min-width: 1024px) {
  h1 {
    font-size: var(--fs-5xl);
  }
}
