/* TypeCraft — premium editorial typography directory.
 * Palette: deep ink navy, warm white, single brass accent. */

:root {
  --bg: #fbf8f3;
  --bg-2: #f3eee2;
  --bg-3: #e9e1cd;
  --ink: #0b1733;
  --ink-2: #1a2547;
  --ink-soft: #4a536e;
  --ink-mute: #6b7390;
  --rule: #e3dccb;
  --rule-2: #cfc7b1;
  --accent: #c9842b;
  --accent-2: #a36a17;
  --warn: #b04a2e;
  --display: 'Fraunces', 'Times New Roman', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, monospace;
  --shadow-sm: 0 1px 2px rgba(11,23,51,.04), 0 2px 6px rgba(11,23,51,.04);
  --shadow-md: 0 8px 24px rgba(11,23,51,.08);
  --shadow-lg: 0 20px 60px rgba(11,23,51,.18);
  --r: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-2); text-decoration: none; transition: color .15s; }
a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 48px 0; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: rgba(251,248,243,.92);
  backdrop-filter: saturate(140%) blur(8px);
  position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; gap: 36px; padding: 18px 28px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  font-family: var(--display); font-weight: 900; font-size: 26px;
  letter-spacing: -0.02em; line-height: 1;
  padding: 9px 13px; background: var(--ink); color: var(--bg);
  border-radius: 10px; box-shadow: var(--shadow-md);
}
.brand-mark-light { background: #fff; color: var(--ink); display: inline-block; margin-bottom: 14px; }
.brand-dot { color: var(--accent); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.brand-tagline { font-size: 12px; color: var(--ink-mute); letter-spacing: 0.02em; }
.nav { display: flex; gap: 28px; flex: 1; }
.nav a { color: var(--ink-2); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--accent-2); text-decoration: none; }
.search-form {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-2); border: 1px solid transparent;
  border-radius: 999px; padding: 6px 6px 6px 18px;
  transition: border-color .15s;
}
.search-form:focus-within { border-color: var(--ink); background: #fff; }
.search-form input { background: none; border: 0; outline: 0; font-family: inherit; font-size: 14px; width: 220px; color: var(--ink); }
.search-form button {
  background: var(--ink); color: var(--bg); border: 0; border-radius: 999px;
  width: 34px; height: 34px; cursor: pointer; font-family: var(--display);
  font-weight: 700; font-size: 16px;
}
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; gap: 16px; padding: 14px 20px; }
  .nav { order: 3; flex-basis: 100%; gap: 18px; overflow-x: auto; }
  .search-form input { width: 140px; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: #f4f0e6;
  padding: 88px 0 72px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(1200px 600px at 80% -20%, rgba(201,132,43,.18), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; gap: 14px; align-items: center;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
  margin: 0 0 28px;
}
.hero-eyebrow span:nth-child(2) { color: var(--ink-mute); color: rgba(255,255,255,.4); }
.hero h1 {
  font-family: var(--display);
  font-size: clamp(48px, 8vw, 104px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.0;
  margin: 0 0 24px;
  max-width: 18ch;
  font-style: normal;
}
.hero h1 em { font-style: italic; font-weight: 400; color: var(--accent); }
.hero .lede {
  font-size: 19px; line-height: 1.55; color: rgba(244,240,230,.78);
  margin: 0 0 36px; max-width: 56ch;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px; padding: 28px 0 0;
  border-top: 1px solid rgba(255,255,255,.12);
}
.hero-stat-num { font-family: var(--display); font-size: 36px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.hero-stat-num em { color: var(--accent); font-style: normal; }
.hero-stat-lbl { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,.5); margin-top: 8px; }
@media (max-width: 700px) {
  .hero { padding: 56px 0 48px; }
  .hero-stats { grid-template-columns: repeat(2,1fr); gap: 20px; }
}

/* ---------- Hero specimen carousel ---------- */
.hero-specimens {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r);
  overflow: hidden;
}
.hero-specimen {
  background: var(--ink);
  padding: 28px 24px 24px;
  display: flex; flex-direction: column; gap: 16px;
  transition: background .2s;
  color: #f4f0e6;
}
.hero-specimen:hover { background: var(--ink-2); text-decoration: none; }
.hero-specimen-glyph { font-size: 80px; line-height: 1; color: #fff; }
.hero-specimen-name { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,.55); }
.hero-specimen-fam { font-family: var(--display); font-size: 18px; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px;
  font-weight: 600; font-size: 15px;
  transition: all .15s ease;
  border: 1px solid transparent;
}
.btn-primary { background: #fff; color: var(--ink); }
.btn-primary:hover { background: var(--accent); color: var(--ink); text-decoration: none; transform: translateY(-1px); }
.btn-ghost { color: #f4f0e6; border-color: rgba(255,255,255,.25); background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--accent-2); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn-light { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn-light:hover { background: var(--ink); color: #fff; text-decoration: none; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section.alt { background: var(--bg-2); }
.section.dark { background: var(--ink); color: #f4f0e6; }
.section-head { margin-bottom: 44px; max-width: 720px; }
.section-head .eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent-2); font-weight: 600; margin: 0 0 14px; }
.section-head h2 { font-family: var(--display); font-size: clamp(32px,4vw,48px); font-weight: 400; letter-spacing: -0.018em; margin: 0 0 12px; line-height: 1.05; }
.section-head h2 em { color: var(--accent-2); font-style: italic; }
.section-head p { color: var(--ink-soft); font-size: 18px; margin: 0; max-width: 60ch; }
.section.dark .section-head h2 em { color: var(--accent); }
.section.dark .section-head p { color: rgba(255,255,255,.7); }
.section-cta { margin-top: 36px; }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.cat-grid-large { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.cat-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 26px 24px;
  color: var(--ink);
  transition: all .2s ease;
  display: flex; flex-direction: column; gap: 10px;
}
.cat-card:hover { border-color: var(--ink); transform: translateY(-3px); text-decoration: none; box-shadow: var(--shadow-md); }
.cat-card-head { display: flex; justify-content: space-between; align-items: baseline; }
.cat-card-name { font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.cat-card-count { font-size: 12px; color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.cat-card-desc { font-size: 14px; color: var(--ink-soft); margin: 0; line-height: 1.55; }
.cat-card-link { color: var(--accent-2); font-weight: 600; font-size: 13px; margin-top: 6px; }

/* ---------- Use case cards ---------- */
.usecase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.usecase-grid-large { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; }
.usecase-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 30px 28px;
  color: var(--ink);
  transition: all .2s ease;
  display: flex; flex-direction: column; gap: 12px;
  position: relative; overflow: hidden;
}
.usecase-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--accent); opacity: 0; transition: opacity .2s;
}
.usecase-card:hover { border-color: var(--ink); transform: translateY(-3px); text-decoration: none; box-shadow: var(--shadow-md); }
.usecase-card:hover::before { opacity: 1; }
.usecase-card h3 { font-family: var(--display); font-size: 26px; margin: 0; font-weight: 600; letter-spacing: -0.01em; }
.usecase-card p { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 8px; line-height: 1.55; }
.usecase-count { color: var(--accent-2); font-size: 13px; font-weight: 600; margin-top: auto; }

/* ---------- Font grid (cards) ---------- */
.font-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.font-grid-narrow { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.font-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 24px 22px;
  color: var(--ink);
  transition: all .2s ease;
  display: block;
  min-height: 168px;
}
.font-card:hover { border-color: var(--ink); transform: translateY(-3px); text-decoration: none; box-shadow: var(--shadow-md); }
.font-card-preview {
  font-size: 32px; line-height: 1.15;
  height: 84px; overflow: hidden; margin-bottom: 18px;
  color: var(--ink); letter-spacing: -0.01em;
}
.font-card-meta { display: flex; flex-direction: column; gap: 3px; padding-top: 14px; border-top: 1px solid var(--rule); }
.font-card-name { font-weight: 600; font-size: 15px; }
.font-card-cat { font-size: 12.5px; color: var(--ink-mute); }

/* ---------- Pager ---------- */
.pager {
  margin: 56px 0 16px;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 24px; font-size: 14px;
}
.pager a { color: var(--ink); font-weight: 600; padding: 10px 18px; border: 1px solid var(--rule); border-radius: 999px; }
.pager a:hover { background: var(--ink); color: #fff; text-decoration: none; }
.pager a[rel="prev"] { justify-self: start; }
.pager a[rel="next"] { justify-self: end; }
.pager-status { color: var(--ink-mute); font-variant-numeric: tabular-nums; text-align: center; }

/* ---------- Page head ---------- */
.page-head { padding: 56px 0 36px; }
.page-head h1 { font-family: var(--display); font-size: clamp(38px, 5.5vw, 64px); font-weight: 400; margin: 0 0 16px; letter-spacing: -0.025em; line-height: 1.05; }
.page-head h1 em { font-style: italic; color: var(--accent-2); }
.page-head .lede { color: var(--ink-soft); font-size: 19px; margin: 0; max-width: 68ch; line-height: 1.55; }
.page-head-count { font-size: 13px; color: var(--ink-mute); margin-top: 18px; font-variant-numeric: tabular-nums; }
.breadcrumbs { padding: 20px 0 0; font-size: 13px; color: var(--ink-mute); }
.breadcrumbs a { color: var(--ink-mute); }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs span[aria-hidden] { margin: 0 8px; color: var(--rule-2); }
.breadcrumbs span[aria-current] { color: var(--ink); }

/* ---------- Font detail page ---------- */
.font-hero {
  background: var(--ink);
  color: #f4f0e6;
  padding: 56px 0 64px;
  position: relative; overflow: hidden;
}
.font-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(900px 500px at 90% 100%, rgba(201,132,43,.18), transparent 65%);
  pointer-events: none;
}
.font-hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 48px; align-items: end;
}
.font-hero-meta .eyebrow { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin: 0 0 20px; }
.font-hero h1 { font-family: var(--display); font-size: clamp(56px, 9vw, 120px); font-weight: 400; letter-spacing: -0.03em; margin: 0 0 16px; line-height: 0.95; }
.font-hero-credit { color: rgba(255,255,255,.7); font-size: 17px; margin: 0 0 32px; }
.font-hero-credit strong { color: #fff; font-weight: 600; }
.font-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.font-hero-glyph {
  font-size: clamp(160px, 22vw, 320px);
  line-height: 0.85; color: var(--accent);
  text-align: right; letter-spacing: -0.04em;
}
@media (max-width: 900px) { .font-hero-inner { grid-template-columns: 1fr; } .font-hero-glyph { text-align: left; } }

.font-page-grid { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 64px; padding: 64px 0 80px; }
@media (max-width: 1000px) { .font-page-grid { grid-template-columns: 1fr; } }
.font-main h2 { font-family: var(--display); font-size: 32px; margin: 56px 0 18px; font-weight: 500; letter-spacing: -0.012em; }
.font-main h2:first-child { margin-top: 0; }

.specimen-block { padding-bottom: 40px; border-bottom: 1px solid var(--rule); }
.specimen-toolbar {
  display: flex; gap: 16px; align-items: center;
  margin-bottom: 28px; padding: 14px 18px;
  background: var(--bg-2); border-radius: 10px;
  font-size: 13px; color: var(--ink-mute);
}
.specimen-toolbar strong { color: var(--ink); }
.specimen-display {
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.98; margin: 0 0 24px;
  letter-spacing: -0.025em; color: var(--ink);
  word-break: break-word;
}
.specimen-large { font-size: clamp(36px, 5vw, 56px); line-height: 1.1; margin: 0 0 24px; letter-spacing: -0.012em; }
.specimen-medium { font-size: 22px; line-height: 1.45; margin: 0 0 24px; color: var(--ink-soft); }
.specimen-paragraph { font-size: 17px; line-height: 1.65; max-width: 64ch; }
.specimen-charset {
  font-size: 24px; line-height: 1.5; padding: 24px;
  background: var(--bg-2); border-radius: 10px; margin: 24px 0;
  word-break: break-word;
}

.weights-block { margin-top: 56px; }
.weights-list { display: grid; gap: 10px; }
.weight-item {
  display: flex; align-items: baseline; gap: 28px;
  padding: 18px 22px; background: #fff; border: 1px solid var(--rule); border-radius: 10px;
}
.weight-label { font-family: var(--sans); font-weight: 500; font-size: 12px; color: var(--ink-mute); width: 130px; flex-shrink: 0; text-transform: uppercase; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
.weight-sample { font-size: 28px; line-height: 1.1; color: var(--ink); }

.code-block {
  background: var(--ink); color: #d8d4cb;
  border-radius: 10px; padding: 20px 22px;
  font-family: var(--mono); font-size: 14px; line-height: 1.6;
  overflow-x: auto;
}
.code-block .c-key { color: #c9d1f8; }
.code-block .c-str { color: #f7c98a; }
.code-block .c-com { color: #6f7591; font-style: italic; }
.code-tabs { display: flex; gap: 6px; margin: 18px 0 0; }
.code-tab { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-mute); padding: 6px 12px; background: var(--bg-2); border-radius: 999px; font-weight: 600; }

/* ---------- Sidebar ---------- */
.font-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 86px; height: max-content; }
.side-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 24px 22px;
}
.side-card h3 { font-family: var(--display); margin: 0 0 16px; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.meta-dl { margin: 0; display: grid; grid-template-columns: 110px 1fr; gap: 10px 14px; font-size: 14px; }
.meta-dl dt { color: var(--ink-mute); font-weight: 500; }
.meta-dl dd { margin: 0; color: var(--ink); }
.side-list { margin: 0; padding: 0; list-style: none; }
.side-list li { padding: 9px 0; border-top: 1px solid var(--rule); font-size: 14.5px; }
.side-list li:first-child { border-top: 0; }
.side-list a { color: var(--ink); font-weight: 500; }
.side-list a:hover { color: var(--accent-2); }

.resources-block { background: var(--bg-2); border-radius: var(--r); padding: 24px 22px; }
.resources-block h3 { font-family: var(--display); margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.resources-block .resources-lede { font-size: 13px; color: var(--ink-mute); margin: 0 0 14px; line-height: 1.5; }
.resources-block ul { list-style: none; margin: 0; padding: 0; }
.resources-block li { padding: 8px 0; border-top: 1px solid var(--rule); font-size: 14px; }
.resources-block li:first-child { border-top: 0; }
.resources-block a { color: var(--ink); font-weight: 500; }
.resources-block a:hover { color: var(--accent-2); }

/* ---------- Prose / long-form ---------- */
.prose { max-width: 720px; }
.prose-center { margin: 0 auto; }
.prose h2 { font-family: var(--display); font-size: 32px; margin: 48px 0 16px; font-weight: 500; letter-spacing: -0.012em; line-height: 1.15; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--display); font-size: 22px; margin: 36px 0 12px; font-weight: 600; }
.prose p { margin: 0 0 18px; font-size: 17px; line-height: 1.7; color: var(--ink); }
.prose strong { font-weight: 600; }
.prose a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--ink); }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 18px; }
.prose li { margin-bottom: 8px; line-height: 1.65; }
.prose blockquote {
  border-left: 3px solid var(--accent); padding: 4px 0 4px 24px;
  font-family: var(--display); font-size: 22px; line-height: 1.4; font-style: italic;
  color: var(--ink-2); margin: 32px 0;
}

/* ---------- Search ---------- */
.search-form-large { display: flex; gap: 8px; max-width: 640px; margin-top: 20px; }
.search-form-large input { flex: 1; padding: 16px 20px; font-size: 16px; border: 1px solid var(--rule-2); border-radius: 10px; font-family: inherit; background: #fff; }
.search-form-large input:focus { outline: 2px solid var(--ink); outline-offset: 2px; }
.search-form-large button { padding: 16px 26px; background: var(--ink); color: #fff; border: 0; border-radius: 10px; font-weight: 600; cursor: pointer; font-family: inherit; font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c8c2b3; padding: 80px 0 36px; margin-top: 96px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-brand { max-width: 360px; }
.site-footer h3 { font-family: var(--display); color: #fff; font-size: 26px; margin: 0 0 14px; font-weight: 500; letter-spacing: -0.01em; }
.site-footer h4 { color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 18px; font-weight: 600; }
.site-footer p { font-size: 14px; line-height: 1.65; color: rgba(255,255,255,.6); margin: 0; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { padding: 5px 0; }
.site-footer a { color: rgba(255,255,255,.78); font-size: 14px; }
.site-footer a:hover { color: var(--accent); }
.footer-resources { }
.footer-bottom { padding-top: 32px; border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,.4); }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Pairings ---------- */
.pairing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 22px; }
.pairing-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 0;
  color: var(--ink);
  transition: all .2s ease;
  overflow: hidden;
  display: block;
}
.pairing-card:hover { border-color: var(--ink); transform: translateY(-3px); text-decoration: none; box-shadow: var(--shadow-md); }
.pairing-card-spec { padding: 32px 28px 8px; }
.pairing-spec-a { font-size: 40px; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 6px; color: var(--ink); }
.pairing-spec-b { font-size: 17px; line-height: 1.45; color: var(--ink-soft); }
.pairing-card-meta { padding: 18px 28px 26px; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 4px; }
.pairing-card-title { font-weight: 600; font-size: 15px; }
.pairing-card-tagline { font-size: 13px; color: var(--ink-mute); }

/* ---------- Pairing detail ---------- */
.pairing-hero {
  background: var(--ink);
  color: #f4f0e6;
  padding: 64px 0 80px;
}
.pairing-hero h1 { font-family: var(--display); font-size: clamp(40px, 6vw, 76px); font-weight: 400; letter-spacing: -0.025em; margin: 0 0 16px; line-height: 1; }
.pairing-hero .pairing-tagline { font-size: 19px; color: rgba(255,255,255,.75); margin: 0 0 36px; max-width: 60ch; }
.pairing-demo {
  background: #fff;
  color: var(--ink);
  border-radius: var(--r);
  padding: 56px 48px;
  margin-top: 32px;
}
.pairing-demo-h { font-family: var(--display); font-size: clamp(40px, 5vw, 64px); margin: 0 0 16px; line-height: 1.1; letter-spacing: -0.018em; }
.pairing-demo-p { font-size: 17.5px; line-height: 1.65; color: var(--ink-soft); margin: 0; max-width: 60ch; }

/* ---------- Roundup pages ---------- */
.roundup-list { display: grid; gap: 32px; counter-reset: r; }
.roundup-item {
  display: grid; grid-template-columns: 80px 1fr 220px;
  gap: 28px; padding: 32px 0; border-bottom: 1px solid var(--rule);
  align-items: start;
}
.roundup-num {
  font-family: var(--display); font-size: 64px; font-weight: 400;
  color: var(--accent-2); line-height: 1; counter-increment: r;
  font-variant-numeric: tabular-nums;
}
.roundup-num::before { content: counter(r, decimal-leading-zero); }
.roundup-body h3 { font-family: var(--display); font-size: 28px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.012em; }
.roundup-body h3 a { color: var(--ink); }
.roundup-body h3 a:hover { color: var(--accent-2); text-decoration: none; }
.roundup-body p { font-size: 15.5px; color: var(--ink-soft); line-height: 1.6; margin: 0 0 8px; }
.roundup-body .meta { font-size: 12.5px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.08em; }
.roundup-spec {
  font-size: 36px; line-height: 1.1;
  text-align: right; color: var(--ink);
  letter-spacing: -0.012em;
}
@media (max-width: 800px) {
  .roundup-item { grid-template-columns: 1fr; gap: 12px; }
  .roundup-num { font-size: 40px; }
  .roundup-spec { text-align: left; font-size: 28px; }
}

/* ---------- 404 ---------- */
.notfound { padding: 96px 0; text-align: center; }
.notfound h1 { font-family: var(--display); font-size: clamp(48px,7vw,96px); margin: 0 0 16px; font-weight: 400; letter-spacing: -0.025em; }
.notfound p { color: var(--ink-soft); font-size: 18px; max-width: 50ch; margin: 0 auto 32px; }

/* === Hero & mobile polish === */
.hero { position: relative; }
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 75% 35%, rgba(201,132,43,.10), transparent 70%);
  pointer-events: none;
}
.hero h1 em { font-style: italic; color: var(--brass); font-weight: 300; }
.cat-grid-large { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }

@media (max-width: 720px) {
  .hero { padding: 56px 0 40px; }
  .hero h1 { font-size: clamp(40px, 11vw, 64px) !important; line-height: 1.02; letter-spacing: -.018em; }
  .hero-lede, .hero p.lede { font-size: 16.5px; line-height: 1.55; }
  .hero-stats { flex-wrap: wrap; gap: 18px 28px; }
  .hero-stats .stat-num { font-size: 28px; }
  .page-head h1 { font-size: clamp(36px, 9vw, 56px) !important; }
  .font-hero h1 { font-size: clamp(48px, 14vw, 84px) !important; line-height: 1; word-break: break-word; }
  .font-hero-glyph { font-size: clamp(120px, 36vw, 220px) !important; }
  .font-hero-inner { flex-direction: column; gap: 28px; align-items: flex-start !important; }
  .font-hero-cta { flex-wrap: wrap; gap: 10px; }
  .font-hero-cta .btn { flex: 1 0 auto; text-align: center; }
  .font-page-grid { grid-template-columns: 1fr !important; gap: 32px; }
  .font-side { order: 2; }
  .footer-grid { grid-template-columns: 1fr !important; gap: 32px; }
  .footer-bottom { padding: 20px 0 32px; font-size: 12.5px; }
  .container { padding-left: 18px; padding-right: 18px; }
  .breadcrumbs { padding: 12px 18px; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .specimen-display { font-size: clamp(56px, 16vw, 96px) !important; line-height: 1.05; word-break: break-word; }
  .specimen-large { font-size: clamp(20px, 5vw, 28px) !important; }
  .specimen-medium { font-size: 16px !important; line-height: 1.55; }
  .weights-list { grid-template-columns: 1fr !important; }
  .code-block { font-size: 12.5px; padding: 16px; overflow-x: auto; }
  .site-header { padding: 14px 18px; }
  .nav-links { gap: 14px; font-size: 14px; }
  .nav-links a { padding: 4px 0; }
  .cat-grid { grid-template-columns: 1fr !important; gap: 14px; }
  .pairing-demo { flex-direction: column !important; }
  .meta-dl dt { font-size: 11px; }
}

@media (max-width: 480px) {
  .nav-links { display: flex; flex-wrap: wrap; }
  .nav-links a { font-size: 13.5px; }
  .brand-mark { font-size: 22px; }
  .eyebrow { font-size: 11px; letter-spacing: .12em; }
}

/* Static-site: search replaced by a browse link styled like the old search box */
a.search-link { text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 600; gap: 12px; }
a.search-link .search-link-label { white-space: nowrap; }
a.search-link:hover { border-color: var(--ink); background: #fff; }
.search-browse-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
