/* AUN-2152 type families. html[data-type] picks a family, html[data-mark] picks the wordmark face.
   No data-type = the current site (Departure Mono + JetBrains Mono). All fonts SIL OFL 1.1, self-hosted from /fonts. */
@font-face { font-family: 'Geist'; src: url('/fonts/geist-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/fonts/geist-mono-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('/fonts/ibm-plex-sans-latin-standard-normal.woff2') format('woff2'); font-weight: 100 700; font-stretch: 85% 100%; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/fonts/ibm-plex-mono-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Mona Sans'; src: url('/fonts/mona-sans-latin-standard-normal.woff2') format('woff2'); font-weight: 200 900; font-stretch: 75% 125%; font-display: swap; }
@font-face { font-family: 'Hubot Sans'; src: url('/fonts/hubot-sans-latin-standard-normal.woff2') format('woff2'); font-weight: 200 900; font-stretch: 75% 125%; font-display: swap; }
/* Metric-matched fallbacks (AUN-2152): Arial (or metric-compatible Liberation Sans) sized to Mona Sans / Hubot Sans 600 at 110% width, tuned against rendered widths, so the web-font swap does not shift layout. */
@font-face{font-family:'Mona Sans Fallback';src:local('Arial'),local('ArialMT'),local('Liberation Sans'),local('LiberationSans'),local('Roboto'),local('Helvetica Neue');size-adjust:104.4%;ascent-override:101.8%;descent-override:29.9%;line-gap-override:0%}
@font-face{font-family:'Hubot Sans Fallback';src:local('Arial Bold'),local('Arial-BoldMT'),local('Liberation Sans Bold'),local('LiberationSans-Bold'),local('Roboto Bold'),local('Helvetica Neue Bold');font-weight:500 900;size-adjust:108.4%;ascent-override:98.9%;descent-override:29.0%;line-gap-override:0%}

/* Family tokens */
html[data-type="geist"] { --sans: 'Geist', system-ui, sans-serif; --mono: 'Geist Mono', ui-monospace, monospace; --head: var(--sans); --head-stretch: 100%; }
html[data-type="plex"]  { --sans: 'IBM Plex Sans', system-ui, sans-serif; --mono: 'IBM Plex Mono', ui-monospace, monospace; --head: var(--sans); --head-stretch: 100%; }
html[data-type="mona"]  { --sans: 'Mona Sans', 'Mona Sans Fallback', system-ui, sans-serif; --mono: "JetBrains Mono", "JetBrains Mono Fallback", monospace; --head: 'Hubot Sans', 'Hubot Sans Fallback', var(--sans); --head-stretch: 110%; }

/* Hierarchy (Major Third, base 16, floor 13): 13 caption · 14 small/UI · 16 body · 20 h3 · 25 h2 · 31 h1 · fluid display */
html[data-type] {
  --fs-caption: 13px; --fs-small: 14px; --fs-body: 16px; --fs-h3: 20px; --fs-h2: 25px; --fs-h1: 31px;
}
html[data-type] body { font: 400 var(--fs-body)/1.6 var(--sans); letter-spacing: -.003em; -webkit-font-smoothing: antialiased; }

/* Mono only where the text IS code: commands, prompts, diagram labels, graph node ids, PR repos */
html[data-type] :is(.install, .install code, .prompt, code, pre, kbd, .diagram text, .routing-node, .owner) { font-family: var(--mono); letter-spacing: 0; }
html[data-type] .install { font-size: var(--fs-small); }

/* Display and headings: family head face, tight tracking, weight carries hierarchy */
html[data-type] .display { font-family: var(--head); font-stretch: var(--head-stretch); font-weight: 600; letter-spacing: -.03em; line-height: 1.08; }
html[data-type] .section-title { font-family: var(--head); font-stretch: var(--head-stretch); font-size: var(--fs-h2); font-weight: 600; letter-spacing: -.02em; color: var(--bright); }
html[data-type] h3:not(.display):not(:has(.index-row)) { font-weight: 600; letter-spacing: -.01em; }
html[data-type] .intro { font-size: 18px; line-height: 1.55; color: var(--body); max-width: 44ch; }
html[data-type] .repo-line { font-size: var(--fs-body); line-height: 1.5; }
html[data-type] :is(.repo-links, .header-links a, footer) { font-size: var(--fs-small); font-weight: 500; }
html[data-type] :is(.friend-repo small, .contribution-meta, .progress-count) { font-size: var(--fs-caption); }

/* Wordmark: pixel keeps Departure Mono (identity); sans uses the family head face */
html[data-type]:not([data-mark="pixel"]) .wordmark { font-family: var(--head); font-stretch: var(--head-stretch); font-weight: 650; letter-spacing: -.045em; line-height: 1; }
html[data-mark="pixel"] .wordmark { font-family: 'Departure Mono', monospace; font-weight: 400; letter-spacing: 0; }
