:root {
  color-scheme: dark;
  --page: #080d19;
  --surface: #101827;
  --surface-raised: #141f31;
  --line: rgba(180, 198, 230, .14);
  --text: #f2f5fc;
  --muted: #9aa8bf;
  --accent: #9bafff;
  --mint: #78e2ca;
  font: 15px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--page); }
body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 86% 0, rgba(84, 105, 208, .15), transparent 34rem),
    var(--page);
  color: var(--text);
}
a { color: inherit; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, main, .site-footer { width: min(1120px, calc(100% - 44px)); margin-inline: auto; }
.header-inner { display: flex; min-height: 74px; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; }
.brand-mark { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(155,175,255,.4); border-radius: 11px; background: rgba(155,175,255,.1); color: var(--accent); font-weight: 800; }
.brand-title { font-size: 13px; font-weight: 800; letter-spacing: .12em; }
.brand-subtitle { display: block; color: var(--muted); font-size: 10px; letter-spacing: .03em; }
.back-link { color: #c1ccdc; font-size: 12px; text-decoration: none; }
.back-link:hover, .resource-link:hover { color: var(--mint); }
main { padding: 52px 0 76px; }
.eyebrow { color: var(--mint); font-size: 10px; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
h1 { margin: 9px 0 10px; font-size: clamp(32px, 5vw, 52px); line-height: 1.12; letter-spacing: -.055em; }
.lede { max-width: 760px; margin: 0; color: #aab6c9; font-size: 15px; }
.publication { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; padding: 6px 10px; border: 1px solid rgba(120,226,202,.23); border-radius: 999px; background: rgba(120,226,202,.06); color: var(--mint); font-size: 11px; font-weight: 700; }
.publication::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ""; }
.section { margin-top: 35px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
h2 { margin: 0; font-size: 19px; letter-spacing: -.025em; }
.section-note { margin: 0; color: var(--muted); font-size: 11px; }
.resource-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 13px; }
.resource-grid.with-spacing { margin-top: 13px; }
.resource-card { display: flex; min-height: 166px; flex-direction: column; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(145deg, rgba(20,31,49,.92), rgba(13,21,34,.9)); }
.resource-card h3 { margin: 0 0 6px; font-size: 14px; }
.resource-card p { margin: 0; color: var(--muted); font-size: 11px; }
.resource-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 17px; }
.resource-link { display: inline-flex; min-height: 34px; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: #dce5ff; font-size: 10px; font-weight: 700; text-decoration: none; }
.resource-link.primary { border-color: transparent; background: #dce5ff; color: #10182a; }
.resource-link.primary:hover { background: white; color: #10182a; }
.resource-link svg { width: 13px; height: 13px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: rgba(16,24,39,.72); }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { background: rgba(255,255,255,.035); color: #c1ccdc; font-size: 10px; font-weight: 700; letter-spacing: .03em; }
td { color: #aab6c9; font-size: 11px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(155,175,255,.035); }
td:first-child { color: var(--text); font-weight: 700; white-space: nowrap; }
.table-link { display: inline-flex; align-items: center; gap: 5px; color: #dce5ff; font-size: 10px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.table-link:hover { color: var(--mint); }
.table-link svg { width: 13px; height: 13px; }
.missing { color: #728099; }
.callout { margin-top: 18px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.025); color: var(--muted); font-size: 11px; }
.callout a { color: #dce5ff; }
.table-title { margin: 26px 0 10px; color: #c1ccdc; font-size: 13px; font-weight: 700; }
.site-footer { display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); color: #77849b; font-size: 10px; }
.site-footer strong { color: #b7c2d5; font-weight: 650; }

body.collection-fonts .brand-mark { font-size: 1.5em; }
body.collection-fonts .brand-title { font-size: 19.5px; }
body.collection-fonts .brand-subtitle { font-size: 15px; }
body.collection-fonts .back-link { font-size: 18px; }
body.collection-fonts .eyebrow { font-size: 15px; }
body.collection-fonts h1 { font-size: clamp(48px, 7.5vw, 78px); }
body.collection-fonts .lede { font-size: 22.5px; }
body.collection-fonts .publication { font-size: 16.5px; }
body.collection-fonts h2 { font-size: 28.5px; }
body.collection-fonts .section-note { font-size: 16.5px; }
body.collection-fonts .resource-card h3 { font-size: 21px; }
body.collection-fonts .resource-card p { font-size: 16.5px; }
body.collection-fonts .resource-link { font-size: 15px; }
body.collection-fonts th { font-size: 15px; }
body.collection-fonts td { font-size: 16.5px; }
body.collection-fonts .table-link { font-size: 15px; }
body.collection-fonts .callout { font-size: 16.5px; }
body.collection-fonts .table-title { font-size: 19.5px; }
body.collection-fonts .site-footer { font-size: 15px; }
body.collection-fonts .calc-form label { font-size: 16.5px; }
body.collection-fonts .calc-form select,
body.collection-fonts .calc-form input { font-size: 19.5px; }
body.collection-fonts .calc-block h3,
body.collection-fonts .panel h3 { font-size: 21px; }
body.collection-fonts .calc-block .hint,
body.collection-fonts .hint,
body.collection-fonts .legend { font-size: 16.5px; }
body.collection-fonts .choice,
body.collection-fonts .calc-tabs button { font-size: 19.5px; }
body.collection-fonts .calc-status { font-size: 18px; }
body.collection-fonts .calc-summary b { font-size: 25.5px; }
body.collection-fonts .calc-summary span { font-size: 15px; }
body.collection-fonts .calc-table { font-size: 18px; }
body.collection-fonts .ztab { font-size: 18.7px; }

@media (max-width: 620px) {
  .header-inner, main, .site-footer { width: calc(100% - 32px); }
  .header-inner { min-height: 66px; }
  .brand-subtitle { max-width: 210px; font-size: 9px; }
  main { padding: 38px 0 56px; }
  .section-heading { align-items: start; flex-direction: column; gap: 4px; }
  th, td { padding: 10px; }
  .site-footer { align-items: start; flex-direction: column; justify-content: center; padding: 14px 0; gap: 3px; }
  body.collection-fonts .brand-subtitle { font-size: 13.5px; }
}
