/* ==============================================
   Typography
   Font declarations + type scale (mobile-first)
   ============================================== */

/* ---- Fraunces (headings) — variable font, all weights in one file ---- */
@font-face {
  font-family: 'Fraunces';
  src: url('../assets/fonts/fraunces/fraunces-variable.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---- Be Vietnam Pro (body) ---- */
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('../assets/fonts/be-vietnam-pro/be-vietnam-pro-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('../assets/fonts/be-vietnam-pro/be-vietnam-pro-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('../assets/fonts/be-vietnam-pro/be-vietnam-pro-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---- Base ---- */
body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: var(--weight-regular);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
}

/* ---- Headings ---- */
h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.15;
  color: var(--color-primary);
}

h1 {
  font-size: 2.5rem;
  font-weight: var(--weight-bold);
}

h2 {
  font-size: 2rem;
  font-weight: var(--weight-semibold);
  line-height: 1.2;
}

h3 {
  font-size: 1.5rem;
  font-weight: var(--weight-semibold);
  line-height: 1.25;
}

/* ---- Body text ---- */
p {
  margin-bottom: var(--space-sm);
}

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

strong {
  font-weight: var(--weight-semibold);
}

em {
  font-style: italic;
}

small, .text-sm {
  font-size: 0.875rem;
}

/* ---- Accent text ---- */
.text-accent {
  color: var(--color-accent);
}

/* ---- Desktop type scale ---- */
@media (min-width: 1024px) {
  body {
    font-size: 1.125rem;
  }

  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 3rem;
  }

  h3 {
    font-size: 2rem;
  }
}
