/* ============================================================
   MINERIA DS · typography
   Font pairing + reusable type-utility classes.
   Requires tokens.css to be loaded first.
   ============================================================ */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --ff-serif: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --ff-sans:  "Inter", "Helvetica Neue", system-ui, -apple-system, sans-serif;
  --ff-mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

/* ---- Body baseline ---- */
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  font-family: var(--ff-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}

/* ---- Display & headings (serif) ---- */
.t-display {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 88px;
  line-height: 0.95;
  letter-spacing: -0.025em;
}
.t-h1 {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 60px;
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0;
}
.t-h2 {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
}
.t-h3 {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}
.t-h4 {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.25;
  margin: 0;
}
.t-quote {
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.3;
}

/* ---- Body (sans) ---- */
.t-body  { font-size: 15px; line-height: 1.55; }
.t-small { font-size: 13px; line-height: 1.5;  }
.t-lead  { font-size: 18px; line-height: 1.55; color: var(--ink-soft); }

/* ---- Caption / eyebrow (mono) ---- */
.t-eyebrow {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.t-eyebrow-accent {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.t-caption {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
}

/* ---- Inline ornaments ---- */
.t-italic-accent { font-style: italic; color: var(--color-primary); }
.t-link {
  color: var(--color-link);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.t-link:hover { color: var(--color-primary-hover); }

/* Responsive cap for very small viewports */
@media (max-width: 720px) {
  .t-display { font-size: 56px; }
  .t-h1      { font-size: 44px; }
  .t-h2      { font-size: 28px; }
}
