/* ============================================
   Base — typography, defaults
   ============================================ */

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: var(--lh-relaxed);
  color: var(--text);
  background-color: var(--bg);
}

/* ---------- Headings ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--text);
  letter-spacing: var(--ls-tight);
}

h1 {
  font-size: var(--fs-5xl);
  font-weight: 800;
}

h2 {
  font-size: var(--fs-4xl);
  font-weight: 700;
}

h3 {
  font-size: var(--fs-2xl);
  font-weight: 700;
}

h4 {
  font-size: var(--fs-xl);
  font-weight: 700;
}

h5 {
  font-size: var(--fs-lg);
  font-weight: 700;
}

h6 {
  font-size: var(--fs-md);
  font-weight: 700;
}

/* ---------- Paragraphs / Text ---------- */
p {
  line-height: var(--lh-relaxed);
}

p + p {
  margin-top: var(--space-4);
}

.lead {
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  color: var(--text-muted);
}

.lead-lg {
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
  color: var(--text-muted);
}

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

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

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

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

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

.text-accent {
  color: var(--accent-deep);
}

/* ---------- Links ---------- */
a {
  color: var(--brand-deep);
  text-decoration: none;
  transition: color var(--t-fast);
}

a:hover {
  color: var(--brand-dark);
}

a.link-underline {
  text-decoration: underline;
  text-decoration-color: var(--brand-soft);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: text-decoration-color var(--t-base);
}

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

/* ---------- Eyebrow / Kicker ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: var(--space-3);
}

/* ---------- Lists ---------- */
.list-bullets {
  list-style: none;
  padding: 0;
}

.list-bullets li {
  position: relative;
  padding-left: var(--space-6);
  line-height: var(--lh-relaxed);
}

.list-bullets li + li {
  margin-top: var(--space-2);
}

.list-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

/* ---------- Horizontal rule ---------- */
hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: var(--space-8) 0;
}

hr.brand {
  height: 3px;
  width: 60px;
  background: var(--brand);
  border-radius: var(--r-pill);
  margin: var(--space-4) 0;
}

/* ---------- Code ---------- */
code,
kbd,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

code {
  background: var(--bg-accent);
  padding: 0.15em 0.4em;
  border-radius: var(--r-xs);
}

/* ---------- Skip link (a11y) ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  background: var(--text);
  color: var(--bg);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--r-md);
  font-weight: 600;
  z-index: var(--z-toast);
  transition: top var(--t-fast);
}

.skip-link:focus {
  top: var(--space-4);
  color: var(--bg);
}

/* ---------- Visually hidden but accessible ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Utility helpers ---------- */
.text-center { text-align: center; }
.text-left   { text-align: left;   }
.text-right  { text-align: right;  }

.flex        { display: flex; }
.flex-col    { display: flex; flex-direction: column; }
.items-center{ align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

.mt-0  { margin-top: 0; }
.mt-2  { margin-top: var(--space-2); }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }

.mb-0  { margin-bottom: 0; }
.mb-2  { margin-bottom: var(--space-2); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
