/* ============================================================
   Invest Lithuania — Typography tokens
   Typeface: TT Hoves. Scale from the 2026 web spec.
   Headings use Medium (H1–H4) / DemiBold (H5).
   Body ("Paragraph") + Tooltip use Light.
   Values below are DESKTOP; mobile sizes given as --*-m.
   ============================================================ */

:root {
  /* Families */
  --font-sans: "TT Hoves", "Hanken Grotesk", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: var(--font-sans);

  /* Weights */
  --fw-light: 300;    /* @kind font */
  --fw-medium: 500;   /* @kind font */
  --fw-demibold: 600; /* @kind font */

  /* ---- Type scale: size / line-height (desktop) ---- */
  --h1-size: 60px;    --h1-lh: 72px;    --h1-size-m: 36px; --h1-lh-m: 44px;
  --h2-size: 44px;    --h2-lh: 54px;    --h2-size-m: 30px; --h2-lh-m: 38px;
  --h3-size: 32px;    --h3-lh: 40px;    --h3-size-m: 24px; --h3-lh-m: 32px;
  --h4-size: 24px;    --h4-lh: 32px;    --h4-size-m: 20px; --h4-lh-m: 28px;
  --h5-size: 20px;    --h5-lh: 28px;    --h5-size-m: 20px; --h5-lh-m: 28px;

  --p1-size: 24px;    --p1-lh: 36px;    --p1-size-m: 20px; --p1-lh-m: 30px;
  --p2-size: 20px;    --p2-lh: 28px;    --p2-size-m: 16px; --p2-lh-m: 24px;
  --p3-size: 18px;    --p3-lh: 27px;    --p3-size-m: 14px; --p3-lh-m: 22px;
  --tooltip-size: 12px; --tooltip-lh: 16px;

  /* Letter spacing — TT Hoves is set tight on large display sizes */
  --tracking-display: -0.02em;
  --tracking-heading: -0.01em;
  --tracking-normal: 0;
}

/* ============================================================
   Type helper classes — apply the scale directly.
   Mobile sizes kick in below 768px.
   ============================================================ */

.il-h1, .il-h2, .il-h3, .il-h4, .il-h5 {
  font-family: var(--font-display);
  color: var(--text-primary);
  margin: 0;
  text-wrap: balance;
}
.il-h1 { font-weight: var(--fw-medium); font-size: var(--h1-size); line-height: var(--h1-lh); letter-spacing: var(--tracking-display); }
.il-h2 { font-weight: var(--fw-medium); font-size: var(--h2-size); line-height: var(--h2-lh); letter-spacing: var(--tracking-heading); }
.il-h3 { font-weight: var(--fw-medium); font-size: var(--h3-size); line-height: var(--h3-lh); letter-spacing: var(--tracking-heading); }
.il-h4 { font-weight: var(--fw-medium); font-size: var(--h4-size); line-height: var(--h4-lh); }
.il-h5 { font-weight: var(--fw-demibold); font-size: var(--h5-size); line-height: var(--h5-lh); }

.il-p1, .il-p2, .il-p3 {
  font-family: var(--font-sans);
  font-weight: var(--fw-light);
  color: var(--text-primary);
  margin: 0;
  text-wrap: pretty;
}
.il-p1 { font-size: var(--p1-size); line-height: var(--p1-lh); }
.il-p2 { font-size: var(--p2-size); line-height: var(--p2-lh); }
.il-p3 { font-size: var(--p3-size); line-height: var(--p3-lh); }

.il-tooltip-text {
  font-family: var(--font-sans);
  font-weight: var(--fw-light);
  font-size: var(--tooltip-size);
  line-height: var(--tooltip-lh);
}

@media (max-width: 768px) {
  .il-h1 { font-size: var(--h1-size-m); line-height: var(--h1-lh-m); }
  .il-h2 { font-size: var(--h2-size-m); line-height: var(--h2-lh-m); }
  .il-h3 { font-size: var(--h3-size-m); line-height: var(--h3-lh-m); }
  .il-h4 { font-size: var(--h4-size-m); line-height: var(--h4-lh-m); }
  .il-h5 { font-size: var(--h5-size-m); line-height: var(--h5-lh-m); }
  .il-p1 { font-size: var(--p1-size-m); line-height: var(--p1-lh-m); }
  .il-p2 { font-size: var(--p2-size-m); line-height: var(--p2-lh-m); }
  .il-p3 { font-size: var(--p3-size-m); line-height: var(--p3-lh-m); }
}
