/* Base styles — load AFTER tokens.css.
   Loads Switzer, resets margins, sets body type + bg. */

@import url('https://api.fontshare.com/v2/css?f[]=switzer@400,500,700,800&display=swap');

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

html, body { margin: 0; padding: 0; }

html {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-14);
  line-height: 1.5;
  font-feature-settings: 'ss01', 'cv11';      /* nice Switzer alt 'g' + 'l' */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body { min-height: 100vh; }

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: var(--fw-bold); letter-spacing: var(--tracking-snug); }
p { margin: 0; }

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

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

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

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

/* Tabular figures: prices, SKUs, counts. */
.tnum { font-feature-settings: 'tnum' 1, 'ss01' 1; }

/* Visible focus ring on every keyboard-focusable element. */
:focus-visible {
  outline: 0;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

/* Mono label utility — used for eyebrow text, SKUs, stat captions. */
.label-mono {
  font-family: var(--font-mono);
  font-size: var(--fs-10);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--steel);
  font-weight: var(--fw-medium);
}

/* Content rail — max width with horizontal padding. */
.rail {
  max-width: var(--rail);
  margin: 0 auto;
  padding-left: var(--s-32);
  padding-right: var(--s-32);
}
@media (max-width: 768px) {
  .rail { padding-left: var(--s-20); padding-right: var(--s-20); }
}

/* Honor reduced motion. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* Screen-reader-only utility. */
.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;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--s-16);
  background: var(--ink);
  color: var(--cream);
  padding: var(--s-12) var(--s-16);
  z-index: 100;
  border-radius: var(--radius-md);
  font-weight: var(--fw-bold);
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: var(--s-16); }
