/* ============================================================
   SUPREME CONTROLS — CSS RESET
   Based on modern best practices (Andy Bell / Josh Comeau).
   ============================================================ */

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

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

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ── Typographic elements ────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-snug);
  color: var(--color-zinc-900);
}

p {
  max-width: 68ch;
}

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

strong {
  font-weight: var(--font-weight-semibold);
}

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

img {
  height: auto;
}

/* ── Forms ───────────────────────────────────────────────── */
button, input, select, textarea {
  font: inherit;
}

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

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

/* ── Tables ──────────────────────────────────────────────── */
table {
  border-collapse: collapse;
}

/* ── Focus visible ───────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

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

/* ── Selection ───────────────────────────────────────────── */
::selection {
  background-color: var(--color-brand);
  color: var(--color-white);
}

/* ── Scrollbar (subtle) ──────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-zinc-100);
}

::-webkit-scrollbar-thumb {
  background: var(--color-zinc-300);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-zinc-400);
}
