/* ==========================================================================
   K GREY RESOLUTE — TYPOGRAPHY
   ========================================================================== */

/* ==================== Font Imports ==================== */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

/* ==================== Font Variables ==================== */
:root {
  --font-display: 'Oswald', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
}

/* ==================== Type Scale ==================== */
:root {
  --text-xs:   0.75rem;   /* 12px — legal, footnotes */
  --text-sm:   0.875rem;  /* 14px — captions, labels */
  --text-base: 1rem;      /* 16px — body */
  --text-lg:   1.125rem;  /* 18px — lead paragraphs */
  --text-xl:   1.25rem;   /* 20px — card titles */
  --text-2xl:  1.5rem;    /* 24px — section subtitles */
  --text-3xl:  1.875rem;  /* 30px — section headings */
  --text-4xl:  2.25rem;   /* 36px — page headings */
  --text-5xl:  3rem;      /* 48px — hero headings */
  --text-6xl:  3.75rem;   /* 60px — hero on desktop */
}

/* ==================== Base Typography ==================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 0.5em;
}

h1 { font-size: var(--text-5xl); }   /* 48px — default hero size, overridden per context */
h2 { font-size: var(--text-4xl); }   /* 36px — page/section headings */
h3 { font-size: var(--text-2xl); }   /* 24px — card/section subtitles */
h4 { font-size: var(--text-xl); }    /* 20px — card titles */
h5 { font-size: var(--text-lg); }    /* 18px — small headings */
h6 { font-size: var(--text-base); }  /* 16px — smallest headings */

p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

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

a {
  color: var(--accent);
  transition: color var(--duration-fast) var(--ease-standard);
}

a:hover {
  color: var(--accent-light);
}

strong, b {
  font-weight: 600;
}

em {
  font-style: italic;
}

code, pre, .mono {
  font-family: var(--font-mono);
}


