/* ==========================================================================
   base.css — reset, typography, and base styles
   Depends on tokens.css (load tokens.css FIRST).
   Fonts: Inter (body) + Source Serif 4 (display headings) via Google Fonts.
   ========================================================================== */

/* --- Google Fonts ------------------------------------------------------- */
/* Alexandria — matches heroesandcoolkids.org. Weights: 400/500/600/700/800.  */
@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@400;500;600;700;800&display=swap');

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Display headings: Alexandria, heavier weight + tighter tracking ----- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--text);
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); }

/* Sub-headings stay in the UI sans family */
h4, h5, h6 {
  font-family: inherit;
  font-weight: 600;
  line-height: 1.3;
}

p { color: var(--text); }

a {
  color: var(--green);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* --- Media & form element defaults -------------------------------------- */
img, svg { display: block; max-width: 100%; }

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; }

/* --- Simple layout helper for placeholder pages ------------------------- */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green);
}

.lede {
  margin-top: 12px;
  color: var(--muted);
}
