/* ============================================================
   BASE — Reset, Typography, Global Styles
   ============================================================ */

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

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

@media (min-width: 1024px) {
  html { font-size: 18px; }
}

@media (min-width: 1440px) {
  html { font-size: 20px; }
}

body {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-regular);
  font-size: var(--font-size-body);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { text-decoration: underline; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

ul, ol { list-style: none; }

/* ─── Typography ─── */
h1, .h1 {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-black);
  font-size: var(--font-size-h1);
  line-height: var(--line-height-tight);
  text-transform: uppercase;
}

h2, .h2 {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-extrabold);
  font-size: var(--font-size-h2);
  line-height: 1.06;
}

h3, .h3 {
  font-family: var(--font-secondary);
  font-weight: var(--font-weight-extrabold);
  font-size: var(--font-size-h3);
  line-height: var(--line-height-snug);
}

h4, .h4 {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-h4);
  line-height: var(--line-height-snug);
}

.subtitle {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-subtitle);
  line-height: var(--line-height-snug);
}

.body-bold {
  font-weight: var(--font-weight-bold);
}

.body-light {
  font-weight: var(--font-weight-light);
}

.caption {
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-snug);
}

.tag {
  font-family: var(--font-secondary);
  font-size: var(--font-size-tag);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-normal);
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.micro {
  font-family: var(--font-primary);
  font-size: var(--font-size-micro);
  font-weight: var(--font-weight-medium);
  letter-spacing: 2.1px;
  text-transform: uppercase;
}

/* ─── Text Colors ─── */
.text-primary { color: var(--color-text-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-muted { color: var(--color-text-muted); }
.text-green { color: var(--color-primary); }
.text-danger { color: var(--color-danger-soft); }
.text-gold { color: var(--color-gold); }

/* ─── Highlight ─── */
.highlight {
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
}

/* ─── Selection ─── */
::selection {
  background: var(--color-primary);
  color: var(--color-bg-primary);
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg-primary); }
::-webkit-scrollbar-thumb {
  background: var(--color-bg-card);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover { background: var(--color-text-muted); }

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