/* ═══════════════════════════════════════════════════════════════════════════════
 * Cookie AI — Typography
 * ═══════════════════════════════════════════════════════════════════════════════
 * Work Unit: WU-02 — CSS Design System
 * Acceptance Criteria: REQ-03, REQ-04
 * ═══════════════════════════════════════════════════════════════════════════════ */

/* ─── Google Fonts Import ───────────────────────────────────────────────────── */
/* Import fonts: Cormorant+Garamond (weights 400,600,700) and Inter (weights 400,500,600) */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=Inter:wght@400;500;600&display=swap');

/* ─── Base Typography ───────────────────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--leading-normal);
  color: var(--text-dark);
  background-color: var(--bg-cream);
}

/* Dark background text */
.bg-dark,
.bg-dark body {
  color: var(--text-cream);
  background-color: var(--bg-dark);
}

/* ─── Headings ──────────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: var(--leading-tight);
}

h1 {
  font-size: var(--text-h1);
  font-weight: 700;
  letter-spacing: var(--tracking-heading);
}

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

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

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

/* ─── Hero Typography ───────────────────────────────────────────────────────── */
.hero-title {
  font-family: var(--font-heading);
  font-size: var(--text-hero);
  font-weight: 700;
  letter-spacing: var(--tracking-hero);
  line-height: 1;
}

/* ─── Body Text ─────────────────────────────────────────────────────────────── */
p {
  margin-bottom: var(--space-md);
  max-width: 70ch;
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: 1.25rem;
  line-height: var(--leading-loose);
}

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

/* ─── Links ─────────────────────────────────────────────────────────────────── */
a {
  transition: color 150ms ease;
}

a:hover {
  color: var(--copper);
}

.text-link {
  color: var(--copper);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.text-link:hover {
  color: var(--copper-hover);
}

/* ─── Prose Links ───────────────────────────────────────────────────────────── */
.prose a {
  color: var(--copper);
}

.prose a:hover {
  color: var(--copper-hover);
}

/* ─── Pull Quote ────────────────────────────────────────────────────────────── */
.pull-quote {
  font-family: var(--font-heading);
  font-size: var(--text-pull-quote);
  font-weight: 400;
  font-style: italic;
  color: var(--copper);
  text-align: center;
  line-height: 1.25;
}

/* ─── Lists ─────────────────────────────────────────────────────────────────── */
ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

li {
  margin-bottom: 0.5rem;
}

/* ─── Horizontal Rule ───────────────────────────────────────────────────────── */
hr {
  border: none;
  border-top: 1px solid var(--copper);
  width: 80px;
  margin: 2rem auto;
}

hr.copper {
  border-color: var(--copper);
}

/* ─── Selection ─────────────────────────────────────────────────────────────── */
::selection {
  background: var(--copper-subtle);
  color: inherit;
}
