/* ==========================================================
   RESET & TYPOGRAPHY — Chewtoy's Dugout v9.0.0
   Modern reset + type scale + text utilities
   ========================================================== */

/* ── MODERN RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── DOCUMENT ── */
html {
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary) url('../../assets/Page-Background.png') center top / cover no-repeat fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── HEADINGS ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: bold;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

h1 { font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl)); color: var(--gold-500); }
h2 { font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl)); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5, h6 { font-size: var(--text-xl); }

/* ── TEXT ELEMENTS ── */
p {
  margin-bottom: var(--space-4);
  max-width: 65ch;
}

a {
  color: var(--gold-500);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover { color: var(--gold-400); }

ul, ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

li { margin-bottom: var(--space-2); }
li::marker { color: var(--gold-500); }

code, pre {
  font-family: var(--font-mono);
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
}

code {
  padding: var(--space-1) var(--space-2);
  font-size: 0.9em;
  color: var(--gold-400);
}

pre {
  padding: var(--space-4);
  overflow-x: auto;
  margin-bottom: var(--space-4);
  border: 1px solid var(--border-subtle);
}

/* ── SELECTION ── */
::selection {
  background: var(--gold-500);
  color: var(--bg-primary);
}

/* ── FOCUS ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ── TEXT UTILITIES ── */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }

.text-primary   { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted     { color: var(--text-muted); }
.text-accent    { color: var(--gold-500); }

.text-xs  { font-size: var(--text-xs); }
.text-sm  { font-size: var(--text-sm); }
.text-lg  { font-size: var(--text-lg); }
.text-xl  { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }

.font-heading { font-family: var(--font-heading); }
.font-body    { font-family: var(--font-body); }
.font-bold    { font-weight: bold; }

/* ── ICON UTILITIES ── */
.icon-accent { color: var(--gold-500); }

/* ── FONT AWESOME FALLBACK ── */
.fa, .fas, .far, .fal, .fab {
  font-family: "Font Awesome 6 Free", "FontAwesome", "Font Awesome 5 Free" !important;
  font-weight: 900;
  line-height: 1;
}
.far { font-weight: 400; }
