/* =============================================
   SUTRA AI — TYPOGRAPHY SYSTEM v1.0
   Syne · DM Sans · JetBrains Mono
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* ── FONT FAMILIES ── */
  --font-display:  'Syne', sans-serif;          /* All headlines H1-H3 */
  --font-body:     'DM Sans', sans-serif;        /* Body, UI, labels */
  --font-mono:     'JetBrains Mono', monospace;  /* Keyboard shortcuts, code, data */

  /* ── FLUID TYPE SCALE ── */
  --text-hero:   clamp(2.8rem, 7.5vw, 6.5rem);
  --text-h1:     clamp(2rem,   4.5vw, 3.8rem);
  --text-h2:     clamp(1.5rem, 3vw,   2.6rem);
  --text-h3:     clamp(1.15rem,2vw,   1.6rem);
  --text-h4:     clamp(1rem,   1.5vw, 1.2rem);
  --text-body:   clamp(0.95rem,1.2vw, 1.05rem);
  --text-small:  0.875rem;
  --text-micro:  0.75rem;
  --text-mono:   0.875rem;

  /* ── LINE HEIGHTS ── */
  --lh-tight:    1.1;
  --lh-snug:     1.3;
  --lh-normal:   1.6;
  --lh-relaxed:  1.8;
}

/* ── BASE TYPOGRAPHY ─────────────────────────── */
body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--lh-normal);
  font-weight: 400;
  font-optical-sizing: auto;
}

/* ── HEADINGS ─────────────────────────────────── */
h1, h2, h3, .h1, .h2, .h3 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: var(--lh-tight);
  color: var(--text-primary);
}

h1, .h1 {
  font-size: var(--text-h1);
  font-weight: 800;
}

h2, .h2 {
  font-size: var(--text-h2);
  font-weight: 700;
}

h3, .h3 {
  font-size: var(--text-h3);
  font-weight: 700;
}

h4, .h4 {
  font-family: var(--font-display);
  font-size: var(--text-h4);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: var(--lh-snug);
  color: var(--text-primary);
}

/* ── HERO HEADLINE ─────────────────────────────── */
.text-hero {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text-primary);
}

/* ── BODY VARIANTS ─────────────────────────────── */
.text-body {
  font-size: var(--text-body);
  color: var(--text-secondary);
  line-height: var(--lh-normal);
}

.text-small {
  font-size: var(--text-small);
  color: var(--text-secondary);
  line-height: var(--lh-normal);
}

.text-micro {
  font-size: var(--text-micro);
  color: var(--text-muted);
  line-height: var(--lh-normal);
}

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

/* ── SECTION LABELS ────────────────────────────── */
.section-label {
  font-family: var(--font-body);
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-saffron);
  margin-bottom: var(--space-3);
}

/* ── SECTION TITLES ────────────────────────────── */
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: var(--lh-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-body);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
  max-width: 680px;
}

/* ── PARAGRAPH ─────────────────────────────────── */
p {
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
  line-height: var(--lh-normal);
}

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

/* ── STRONG / EMPHASIS ─────────────────────────── */
strong, b {
  font-weight: 600;
  color: var(--text-primary);
}

em, i {
  font-style: italic;
}

/* ── CODE ──────────────────────────────────────── */
code, pre {
  font-family: var(--font-mono);
  font-size: var(--text-mono);
}

code {
  padding: 2px 6px;
  background: var(--glass-base);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
}

pre {
  background: var(--glass-base);
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius-sm);
  padding: var(--space-4);
  overflow-x: auto;
}

pre code {
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
}

/* ── LINKS ─────────────────────────────────────── */
.link {
  color: var(--saffron);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out-expo);
}

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

.link:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 2px;
}
