/* ==========================================================================
   Supplements.bd: Modern CSS Reset & Baseline Typography
   ========================================================================== */

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

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

@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;
  }
}

body {
  min-height: 100vh;
  background-color: var(--sb-bg);
  color: var(--sb-text);
  font-family: var(--sb-font-body);
  font-size: 0.9375rem; /* 15px - optimal editorial UI scale */
  line-height: var(--sb-lh-body);
  overflow-x: hidden;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--sb-text);
  font-family: var(--sb-font-heading);
  font-weight: 600;
  line-height: var(--sb-lh-heading);
  letter-spacing: var(--sb-tracking-tight);
}

h1 {
  font-size: clamp(2.25rem, 4vw + 1rem, 3.75rem);
  line-height: var(--sb-lh-tight);
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.75rem, 2.5vw + 0.5rem, 2.5rem);
  letter-spacing: -0.025em;
}

h3 {
  font-size: clamp(1.25rem, 1.5vw + 0.25rem, 1.625rem);
  letter-spacing: -0.02em;
}

h4 {
  font-size: 1.125rem;
}

p {
  margin-bottom: 1.25em;
  color: var(--sb-text-muted);
}

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

/* Tabular Numbers for Prices, Currencies, and Specs */
.sb-tabular,
.sb-price,
.sb-spec-value,
.sb-cart-item-price,
.sb-subtotal-price {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--sb-transition-fast), border-color var(--sb-transition-fast);
}

/* Media Elements */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Form Elements */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  user-select: none;
}

/* Lists */
ul,
ol {
  list-style: none;
}

/* Table */
table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

/* Editorial Serif Accents */
.sb-font-serif {
  font-family: var(--sb-font-editorial);
  font-style: italic;
  font-weight: 400;
}

/* Text Selection */
::selection {
  background-color: var(--sb-accent);
  color: var(--sb-white);
}

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

