/*
 * base.css — Global Reset, Typography & Utility Classes
 *
 * Depends on tokens.css being loaded first.
 * No @import needed — Google Fonts are loaded via <link> in index.html.
 */

/* ─── CSS Reset ──────────────────────────────────────────────────────────────*/

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul[role="list"] {
  list-style: none;
  padding: 0;
}

/* ─── Body & Typography ──────────────────────────────────────────────────────*/

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--color-green);
}

h1 {
  font-size: var(--text-hero);
}

h2 {
  font-size: var(--text-3xl);
}

h3 {
  font-size: var(--text-xl);
}

/*
 * Paragraph base size — max-width intentionally NOT set globally here.
 * Use .body-text p or specific layout selectors to constrain reading width.
 */
p {
  font-size: var(--text-base);
}

.body-text p {
  max-width: 65ch;
}

a {
  color: inherit;
  text-decoration: none;
}

blockquote {
  font-style: italic;
}

/* ─── Focus Styles ───────────────────────────────────────────────────────────*/

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

/* ─── Utility Classes ────────────────────────────────────────────────────────*/

/* Visually hidden but accessible to screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Centered content wrapper */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* Small all-caps gold label above section headings */
.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-3);
}

/* Primary section heading */
.section-title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  color: var(--color-green);
  margin-bottom: var(--space-8);
}

/* Gold accent text */
.text-gold {
  color: var(--color-gold);
}
