/* css/base.css — Base Typography & Element Styles */

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== HEADINGS ===== */

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  line-height: var(--leading-tight);
}

h1 {
  font-size: var(--text-hero);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
}

h2 {
  font-size: var(--text-h2);
  font-weight: 700;
  color: var(--color-text);
}

h3 {
  font-size: var(--text-h3);
  font-weight: 600;
  color: var(--color-text);
}

/* ===== HERO HEADLINE PATTERN ===== */

.hero-headline {
  font-size: var(--text-hero);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-8);
}

.hero-headline-light {
  font-weight: 300;
  color: var(--color-text-light);
}

.hero-headline-bold {
  font-weight: 700;
  color: var(--color-text);
}

/* ===== SECTION LABELS ===== */

.section-label {
  display: block;
  font-size: var(--text-label);
  font-weight: 500;
  color: var(--color-brand);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-3);
}

.section-heading {
  font-size: var(--text-h2);
  font-weight: 700;
  color: var(--color-text);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

/* ===== BODY TEXT ===== */

p {
  margin: 0;
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

.text-lg {
  font-size: var(--text-body-lg);
}

.text-sm {
  font-size: var(--text-sm);
}

.text-xs {
  font-size: var(--text-xs);
}

.text-muted {
  color: var(--color-text-muted);
}

.text-brand {
  color: var(--color-brand);
}

.text-center {
  text-align: center;
}

/* ===== LINKS ===== */

a {
  color: inherit;
  text-decoration: none;
}

.link-brand {
  color: var(--color-brand);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--color-brand-a30);
  transition: color var(--duration-fast), text-decoration-color var(--duration-fast);
}

.link-brand:hover {
  color: var(--color-brand-dark);
  text-decoration-color: var(--color-brand);
}

/* ===== FONT WEIGHT UTILITIES ===== */

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* ===== REDUCED MOTION ===== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
