/**
 * @file typo.css
 * Typography and baseline grid for VG27 theme.
 *
 * Baseline grid: 12px
 * Base: 20px / 24px (line-height 1.2)
 * All vertical dimensions are multiples of 12px.
 */

html {
  font-size: 20px;
  line-height: 24px; /* 2 baseline units */
  font-family: 'GAPZuidVG', 'Georgia', serif;
  color: var(--vg-color-text);
}

body {
  font-size: 1rem;    /* 20px */
  line-height: 1.2;   /* 24px */
}

/* --- Spacing tokens (multiples of 12px baseline) --- */
:root {
  --vg-baseline: 12px;
  --vg-space-1: 12px;   /* 1 unit */
  --vg-space-2: 24px;   /* 2 units */
  --vg-space-3: 36px;   /* 3 units */
  --vg-space-4: 48px;   /* 4 units */
  --vg-space-5: 60px;   /* 5 units */
  --vg-space-6: 72px;   /* 6 units */
  --vg-space-8: 96px;   /* 8 units */
}

/* --- Horizontal spacing tokens --- */
:root {
  --vg-h-4: 4px;
  --vg-h-8: 8px;
  --vg-h-16: 16px;
  --vg-h-24: 24px;
  --vg-h-32: 32px;
  --vg-h-64: 64px;
  --vg-h-128: 128px;
  --vg-h-256: 256px;
}

/* --- Heading scale ---
 * All line-heights are multiples of 12px.
 * Sizes chosen to sit on baseline grid.
 */
h1, .h1 {
  font-size: 2.4rem;  /* 48px */
  line-height: 60px;  /* 5 baseline units */
  font-weight: 700;
  color: var(--vg-color-heading);
  margin-bottom: var(--vg-space-2);
}

h2, .h2 {
  font-size: 1.8rem;  /* 36px */
  line-height: 48px;  /* 4 baseline units */
  font-weight: 700;
  color: var(--vg-color-heading);
  margin-bottom: var(--vg-space-1);
}

h3, .h3 {
  font-size: 1.4rem;  /* 28px */
  line-height: 36px;  /* 3 baseline units */
  font-weight: 700;
  color: var(--vg-color-heading);
  margin-bottom: var(--vg-space-1);
}

h4, .h4 {
  font-size: 1.2rem;  /* 24px */
  line-height: 36px;  /* 3 baseline units */
  font-weight: 700;
  color: var(--vg-color-heading);
  margin-bottom: var(--vg-space-1);
}

h5, .h5 {
  font-size: 1rem;    /* 20px */
  line-height: 24px;  /* 2 baseline units */
  font-weight: 700;
  color: var(--vg-color-heading);
  margin-bottom: var(--vg-space-1);
}

h6, .h6 {
  font-size: 0.8rem;  /* 16px */
  line-height: 24px;  /* 2 baseline units */
  font-weight: 700;
  color: var(--vg-color-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--vg-space-1);
}

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

/* --- Small text --- */
small, .small {
  font-size: 0.8rem;  /* 16px */
  line-height: 24px;  /* 2 baseline units */
}

/* --- Category/label text (like "VOEDING" in screenshots) --- */
.label, .category {
  font-size: 0.7rem;  /* 14px */
  line-height: 24px;  /* 2 baseline units */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--vg-color-accent);
}

/* --- Subtitle --- */
.subtitle {
  font-size: 1rem;
  line-height: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--vg-color-primary);
}

/* --- Links --- */
a {
  color: var(--vg-color-link);
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--vg-color-link-hover);
}

/* --- Code --- */
code, pre, kbd, samp {
  font-family: 'GAPMono', 'Consolas', monospace;
  font-size: 0.85rem;
}

pre {
  line-height: 24px;
  padding: var(--vg-space-2);
  overflow-x: auto;
}

/* --- Blockquote --- */
blockquote {
  padding-left: var(--vg-h-24);
  border-left: 3px solid var(--vg-color-primary);
  margin-bottom: var(--vg-space-2);
  color: var(--vg-color-text-muted);
  font-style: italic;
}

/* --- Lists (within content) --- */
.text-content ul,
.text-content ol {
  padding-left: var(--vg-h-32);
  margin-bottom: var(--vg-space-2);
}

.text-content ul {
  list-style: disc;
}

.text-content ol {
  list-style: decimal;
}

.text-content li {
  margin-bottom: var(--vg-space-1);
}
