/* ==========================================================================
   RESET — modern, minimal, accessibility-preserving
   Absolute Cosmetic Clinic
   --------------------------------------------------------------------------
   Deliberately does NOT reset focus outlines or list semantics globally.
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Anchor targets clear the sticky header */
  /* Anchor targets clear the FIXED pill header */
  scroll-padding-top: calc(var(--header-h-mobile) + var(--space-8));
}

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ol, ul {
  margin: 0;
}

/* Lists only lose their markers where a class opts in.
   A bare <ul> keeps its semantics and appearance.

   Wrapped in :where() so this contributes ZERO specificity. Written plainly,
   `ul[class]` scores 0-1-1 and silently beats any single-class component rule
   (0-1-0) — which is how .scroller lost its padding and had its card shadows
   clipped. A reset should never outrank the components built on top of it. */
:where(ul[class], ol[class]) {
  list-style: none;
  padding: 0;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  text-rendering: optimizeSpeed;
  line-height: var(--lh-relaxed);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Images: block-level and fluid by default. Width/height attributes in the
   HTML still reserve space, which is what prevents layout shift. */
img,
picture,
video,
canvas,
svg,
iframe {
  display: block;
  max-width: 100%;
}

/* <picture> is only a wrapper, but it still needs to lay out as a block so
   the <img> inside it fills the slot the same way a bare <img> would. */
picture > img {
  width: 100%;
}

img,
video {
  height: auto;
}

/* Form controls inherit typography rather than using the UA default */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

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

textarea {
  resize: vertical;
}

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

/* Tables — only used for structured data blocks */
table {
  border-collapse: collapse;
  width: 100%;
}

/* Remove the UA's default fieldset chrome */
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

legend {
  padding: 0;
}

/* Hide the native accordion marker — a custom chevron is drawn instead */
summary {
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

/* Honour the OS-level reduced-motion preference for everyone, globally.
   animations.css repeats this for its own keyframes. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
