/* ==========================================================================
   NaChat — Typography System
   Space Grotesk for headings, Inter for body/UI
   ========================================================================== */

/* ------------------------------------------------------------------
   Font Loading — Space Grotesk + Inter
   ------------------------------------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ------------------------------------------------------------------
   Base Typography Styles
   ------------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text-heading);
  margin: 0;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);  /* 32px - 56px */
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);  /* 28px - 48px */
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);  /* 24px - 36px */
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);  /* 20px - 30px */
}

h5 {
  font-size: clamp(1.125rem, 2vw, 1.5rem);  /* 18px - 24px */
}

h6 {
  font-size: clamp(1rem, 1.5vw, 1.25rem);  /* 16px - 20px */
}

/* ------------------------------------------------------------------
   Body Text
   ------------------------------------------------------------------ */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p {
  margin: 0;
  font-family: var(--font-body);
}

.text-large {
  font-size: 1.125rem;  /* 18px */
  line-height: 1.7;
}

.text-small {
  font-size: 0.875rem;  /* 14px */
  line-height: 1.5;
}

.text-xs {
  font-size: 0.75rem;  /* 12px */
  line-height: 1.4;
}

/* ------------------------------------------------------------------
   Links
   ------------------------------------------------------------------ */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) ease;
}

a:hover {
  color: var(--color-primary);
}

/* ------------------------------------------------------------------
   Lists
   ------------------------------------------------------------------ */
ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ------------------------------------------------------------------
   Labels & Small Text
   ------------------------------------------------------------------ */
label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-text-heading);
}

small {
  font-size: 0.875rem;
  font-family: var(--font-body);
}

/* ------------------------------------------------------------------
   Font Weights
   ------------------------------------------------------------------ */
.font-regular {
  font-weight: 400;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

/* ------------------------------------------------------------------
   Text Colors
   ------------------------------------------------------------------ */
.text-heading {
  color: var(--color-text-heading);
}

.text-body {
  color: var(--color-text-body);
}

.text-muted {
  color: var(--color-on-dark-muted);
}

.text-primary {
  color: var(--color-primary);
}

.text-white {
  color: var(--color-white);
}
