/* ============================================================
   BITES — Base Reset & Global Styles
   ============================================================ */

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
  min-height: 100svh;
}

body.menu-open {
  overflow: hidden;
}

/* ── Elements ────────────────────────────────────────────── */
img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
  line-height: var(--lh-section);
}

input, textarea {
  font: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: transparent;
  -webkit-appearance: none;
}

/* ── Selection ───────────────────────────────────────────── */
::selection {
  background-color: var(--bites-yellow);
  color: var(--bites-charcoal);
}

/* ── Focus Visible ───────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--bites-yellow);
  outline-offset: 3px;
}

/* ── SR-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: 0;
}

/* ── Typography Classes ──────────────────────────────────── */
.text-display {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: var(--ls-hero);
  line-height: var(--lh-hero);
}

.text-serif {
  font-family: var(--font-serif);
  font-style: italic;
}

.text-hand {
  font-family: var(--font-hand);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.text-body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--lh-body);
}

.text-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-eyebrow);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  font-weight: 500;
}

/* ── Outlined Text ───────────────────────────────────────── */
.text-outline {
  -webkit-text-stroke: 2px var(--bites-green);
  color: transparent;
}

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