/*
 * ═══════════════════════════════════════════════════════
 *  WAVE DIGITAL — RESET.CSS
 *  Normalizes browser defaults. Load first after config.
 * ═══════════════════════════════════════════════════════
 */

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

/* ─── ROOT ─── */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
}

/* ─── BODY ─── */
body {
  background: var(--bg);
  color: var(--light);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open { overflow: hidden; }

/* ─── MEDIA ─── */
img, video, svg {
  max-width: 100%;
  display: block;
}

img { height: auto; }

/* ─── TYPOGRAPHY BASELINE ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  color: var(--pure);
  line-height: var(--lh-tight);
}

p { line-height: var(--lh-relaxed); }

a {
  color: var(--blue-g);
  text-decoration: none;
  transition: color var(--t-base) var(--ease2);
}
a:hover { color: var(--pure); }

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

/* ─── FORM ELEMENTS ─── */
button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; border: none; background: none; }
input, select, textarea { outline: none; }
textarea { resize: vertical; }

/* ─── TABLE ─── */
table { border-collapse: collapse; width: 100%; }

/* ─── CODE ─── */
code, pre {
  font-family: 'Courier New', monospace;
  font-size: var(--fs-sm);
}

/* ─── SELECTION ─── */
::selection {
  background: var(--blue);
  color: white;
}

/* ─── SCROLLBAR (webkit) ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: var(--blue-b); }

/* ─── FOCUS ─── */
:focus-visible {
  outline: 2px solid var(--blue-g);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ─── HR ─── */
hr {
  border: none;
  border-top: var(--border);
  margin: var(--sp-8) 0;
}
