/* ============================================================
   base.css — MOTM Global Reset & Body Defaults
   Tokens consumed: --clr-bg, --clr-bg-card, --clr-text,
   --clr-gold, --clr-fire, --clr-border, --clr-heading,
   --font-body, --text-base, --ease-base
   ============================================================ */

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

/* ── Root ── */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

/* ── Body Defaults ── */
body {
  background-color: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ── Typography Baseline ── */
h1, h2, h3, h4, h5, h6 {
  color: var(--clr-heading);
  line-height: 1.15;
  font-weight: 700;
  overflow-wrap: break-word;
}

h1 { font-family: var(--font-display); }
h2, h3 { font-family: var(--font-heading); }
h4, h5, h6 { font-family: var(--font-body); }

p {
  overflow-wrap: break-word;
  max-width: 72ch;
}

/* ── Links ── */
a {
  color: var(--clr-gold);
  text-decoration: none;
  transition: color var(--ease-fast);
}

a:hover {
  color: var(--clr-fire);
}

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

/* ── HR ── */
hr {
  border: none;
  border-top: 1px solid var(--clr-border);
  margin: var(--space-8) 0;
}

/* ── Focus Visible ── */
:focus-visible {
  outline: 2px solid var(--clr-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Text Selection ── */
::selection {
  background-color: var(--clr-gold);
  color: var(--clr-btn-text);
}

/* ── Strong / Em ── */
strong, b {
  font-weight: 600;
}

em {
  font-style: italic;
}

/* ── Blockquote ── */
blockquote {
  border-left: 4px solid var(--clr-gold);
  padding-left: var(--space-6);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--clr-text);
  font-style: italic;
}

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

/* ── Forms (base resets — detailed styles in components.css) ── */
input,
textarea,
select,
button {
  font-family: inherit;
  font-size: inherit;
}

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

/* ── Scrollbar (Webkit) ── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--clr-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--clr-border);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--clr-gold);
}
