/* ==========================================================================
   BASE — reset + element defaults
   Replaces the HTML5 Boilerplate reset and Bootstrap's Reboot (~85KB gone).
   Consumes tokens.css. No colors or sizes defined here directly.
   ========================================================================== */

/* --- Fonts --------------------------------------------------------------
   Both faces self-hosted as woff2. No CDN, no Google request — the site is
   fully offline-safe and rot-proof.
   ----------------------------------------------------------------------- */

@font-face {
  font-family: 'Bison';
  src: url('../fonts/bison.woff2') format('woff2'),
       url('../fonts/bison.woff') format('woff');
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: 'Questrial';
  src: url('../fonts/questrial.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}


/* --- Reset --------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  color: var(--type);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

ul[class], ol[class] {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

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

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

hr {
  height: 0;
  border: 0;
  border-top: var(--border);
  margin: var(--s-6) 0;
}

textarea { resize: vertical; }

fieldset { border: 0; margin: 0; padding: 0; }


/* --- Typographic defaults ------------------------------------------------ */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--lh-snug);
  letter-spacing: var(--tr-display);
  text-transform: uppercase;
}

h1 { font-size: var(--t-d1); }
h2 { font-size: var(--t-d2); }
h3 { font-size: var(--t-d3); }

p { max-width: var(--measure); }

::selection {
  background: var(--gold);
  color: var(--ink);
}


/* --- Focus --------------------------------------------------------------- */

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

:focus:not(:focus-visible) { outline: none; }


/* --- Utilities ----------------------------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: var(--width-page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--text {
  max-width: var(--width-text);
}

.section {
  padding-block: var(--section-y);
}

/* Utility caps — labels, times, eyebrows. The "camp manifest" voice. */
.util {
  font-family: var(--font-util);
  font-size: var(--t-micro);
  letter-spacing: var(--tr-util);
  text-transform: uppercase;
}
