/* typography.css — LIM type scale, optical tuning, system sans */

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1;
  font-kerning: normal;
}

body {
  font-family: var(--lim-font-sans);
  font-weight: var(--lim-font-weight-regular);
  line-height: var(--leading-normal);
}

h1,
h2,
h3,
h4 {
  font-family: var(--lim-font-sans);
}

h1 {
  font-weight: var(--lim-font-weight-bold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
}

h2,
h3 {
  font-weight: var(--lim-font-weight-bold);
  letter-spacing: var(--tracking-section);
  line-height: var(--leading-snug);
}

h4 {
  font-weight: var(--lim-font-weight-semibold);
  letter-spacing: var(--tracking-section);
  line-height: var(--leading-snug);
}

p,
.page-hero__lead,
.home-hero__desc,
.mountain-hero__desc {
  font-weight: var(--lim-font-weight-regular);
}

/* Display — home / mountain hero */
.home-hero h1,
.mountain-hero h1 {
  font-family: var(--lim-font-sans);
  font-weight: var(--lim-font-weight-bold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-hero);
}

.home-hero__desc,
.mountain-hero__desc {
  line-height: 1.6;
  font-weight: var(--lim-font-weight-regular);
}

/* Section titles already covered by h2; reinforce docs rhythm */
.section > h2,
.docs-main h2 {
  font-weight: var(--lim-font-weight-bold);
  letter-spacing: var(--tracking-section);
}

/* Cards */
.card__title,
.chapter-card h3,
.doc-card__body h3,
.lib-card__title {
  font-family: var(--lim-font-sans);
  font-weight: var(--lim-font-weight-semibold);
  letter-spacing: var(--tracking-section);
}

/* Chrome */
.header-links a,
.docs-nav a,
.site-footer,
.btn,
.icon-btn {
  font-family: var(--lim-font-sans);
}

.btn {
  font-weight: var(--lim-font-weight-semibold);
}

.header-links a,
.docs-nav a {
  font-weight: var(--lim-font-weight-medium);
}

.page-hero__eyebrow,
.home-hero__eyebrow,
.mountain-hero__eyebrow,
.kicker {
  font-weight: var(--lim-font-weight-bold);
}

/* Code stays monospace — never inherit sans */
code,
kbd,
pre {
  font-family: var(--lim-font-mono);
}
