/* shortfree – site styles. Tokens follow brand/BRAND.md; shared by the app
   (index.html) and the generated TLD pages (cmd/shortfree/pages.go). */
:root {
  color-scheme: dark;
  --bg: #0B0C0E;
  --surface: #16181C;
  --surface-2: #24272D;
  --border: #3A3F47;
  --control-border: #8A919C;
  --text: #FAFAF7;
  --muted: #8A919C;
  --accent: #1FC16B;
  --free: var(--accent);
  --free-text: var(--free);
  --warning-text: var(--warning);
  --taken: #E5484D;
  --warning: #F5A524;
  --focus-ring: #1FC16B;
  --status-bg: #0B0C0E;
  --on-accent: #0B0C0E;
  --inverse-text: #FAFAF7;
  --lockup-edge: #3A3F47;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --radius-none: 0;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --gutter: var(--space-4);
  --tap: 44px;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #FAFAF7;
    --surface: #FAFAF7;
    --surface-2: #C9CDD3;
    --border: #C9CDD3;
    --control-border: #3A3F47;
    --text: #0B0C0E;
    --muted: #3A3F47;
    --free-text: #0E7A43;
    --warning-text: #8A5A00;
    --focus-ring: #0B0C0E;
    --lockup-edge: transparent;
  }
}

@media (min-width: 768px) { :root { --gutter: var(--space-8); } }
@media (min-width: 1280px) { :root { --gutter: var(--space-12); } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--space-6); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: break-word;
}
h1, h2, h3 { line-height: 1.2; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--text); text-decoration: underline; text-decoration-color: var(--control-border); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
code, .mono, .num, .domain, .tld { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
code { font-size: 0.875em; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 4px; }
sup { line-height: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.note { color: var(--muted); font-size: 14px; line-height: 20px; }
.warn-text { color: var(--warning-text); }
.free-text { color: var(--free-text); }

.skip {
  position: absolute; left: var(--space-4); top: var(--space-2); z-index: 10;
  padding: var(--space-3) var(--space-4); background: var(--text); color: var(--bg);
  border-radius: var(--radius-md); transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ---------- header / footer ---------- */
.top { border-bottom: 1px solid var(--border); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 72px; }
.brand { display: inline-flex; align-items: center; min-height: var(--tap); text-decoration: none; flex-shrink: 0; }
.lockup { display: block; width: 200px; height: 40px; }
.lk-word { fill: var(--text); }
.lk-edge { stroke: var(--lockup-edge); }
.nav { display: flex; align-items: center; gap: var(--space-1); }
.nav a {
  display: inline-flex; align-items: center; min-height: var(--tap); padding-inline: var(--space-3);
  border-radius: var(--radius-md); text-decoration: none; color: var(--muted); font-size: 14px;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
@media (max-width: 559px) { .nav .nav-opt { display: none; } }

.foot { border-top: 1px solid var(--border); margin-top: var(--space-16); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-6); padding-block: var(--space-6); color: var(--muted); font-size: 14px; }
.foot-mark { flex-shrink: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 var(--space-1); margin-left: auto; }
.foot nav a { display: inline-flex; align-items: center; min-height: var(--tap); padding-inline: var(--space-2); color: var(--muted); }
.foot nav a:hover { color: var(--text); }
@media (max-width: 767px) { .foot nav { margin-left: calc(-1 * var(--space-2)); width: 100%; } }

/* ---------- sections ---------- */
.section { margin-top: var(--space-16); }
.section h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2) var(--space-6); margin-bottom: var(--space-4); }
.panel { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: var(--space-6); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--tap); padding: 0 var(--space-4); border-radius: var(--radius-md);
  border: 1px solid var(--control-border); background: var(--surface); color: var(--text);
  font: inherit; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--surface-2); }
.btn-quiet { border-color: transparent; background: transparent; text-decoration: underline; text-decoration-color: var(--control-border); text-underline-offset: 3px; }
.btn-free { background: var(--free); border-color: var(--free); color: var(--on-accent); font-weight: 600; }
.btn-free:hover { background: var(--free); filter: none; text-decoration: underline; }

/* ---------- status words (BRAND.md: always a word, colour is a second cue) ---------- */
.status {
  display: inline-block; padding: 2px var(--space-2); border-radius: var(--radius-sm);
  background: var(--status-bg); color: var(--inverse-text);
  font-family: var(--font-mono); font-size: 13px; line-height: 20px; white-space: nowrap;
}
.status[data-state="free"] { color: var(--free); }
.status[data-state="taken"] { color: var(--taken); }
.status[data-state="dropping"], .status[data-state="unverified"] { color: var(--warning); }
.status[data-state="unknown"] { color: var(--inverse-text); }
@media (prefers-color-scheme: light) {
  .status[data-state="free"], .status[data-state="dropping"], .status[data-state="unverified"] { padding-inline: 0; background: transparent; }
  .status[data-state="free"] { color: var(--free-text); }
  .status[data-state="dropping"], .status[data-state="unverified"] { color: var(--warning-text); }
}

/* ---------- hero + search ---------- */
.hero { padding-top: var(--space-16); }
.hero h1 { font-size: clamp(32px, 6vw, 64px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; max-width: 16ch; }
.hero h1 span { color: var(--muted); display: block; }
.lede { margin-top: var(--space-6); max-width: 60ch; color: var(--muted); font-size: 18px; line-height: 28px; }
.search { margin-top: var(--space-10); max-width: 640px; }
.search-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: var(--space-2); }
.search-box {
  display: flex; align-items: center; gap: var(--space-3);
  border: 1px solid var(--control-border); border-radius: var(--radius-md); background: var(--surface);
  padding-inline: var(--space-4); cursor: text;
}
.search-box:focus-within { outline: 2px solid var(--focus-ring); outline-offset: 4px; }
.prompt { font-family: var(--font-mono); font-size: 20px; color: var(--muted); }
.search input {
  flex: 1; min-width: 0; height: 64px; border: 0; background: none; color: var(--text);
  font-family: var(--font-mono); font-size: clamp(20px, 5vw, 28px); letter-spacing: 0.02em;
}
.search input:focus, .search input:focus-visible { outline: none; }
.search input::placeholder { color: var(--muted); opacity: 1; }
.hint { margin-top: var(--space-2); color: var(--muted); font-size: 14px; line-height: 20px; }

.results { margin-top: var(--space-6); max-width: 880px; }
.results:empty { margin-top: 0; }
.result-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2) var(--space-4); margin-bottom: var(--space-3); }
.result-head p { font-size: 14px; color: var(--muted); }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-2) var(--space-4);
  padding: var(--space-2) 0; border-bottom: 1px solid var(--border); min-height: 56px;
}
.row .domain { font-size: 16px; overflow-wrap: anywhere; }
.row .meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); justify-content: flex-end; }
.row .aside { color: var(--muted); font-size: 13px; }
.row .actions { display: flex; gap: var(--space-2); }
.row.focus { border: 1px solid var(--control-border); border-radius: var(--radius-lg); padding: var(--space-4); margin-bottom: var(--space-3); background: var(--surface); }
.row.focus .domain { font-size: 22px; }
.row-explain { grid-column: 1 / -1; color: var(--muted); font-size: 14px; line-height: 20px; }
@media (max-width: 559px) {
  .row { grid-template-columns: 1fr; }
  .row .meta { justify-content: flex-start; }
}
.msg { padding: var(--space-4) 0; color: var(--muted); }

.facts { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-12); margin: var(--space-12) 0 0; padding-top: var(--space-6); border-top: 1px solid var(--border); }
.facts div { min-width: 0; }
.facts dt { color: var(--muted); font-size: 14px; line-height: 20px; }
.facts dd { margin: var(--space-1) 0 0; font-size: 20px; line-height: 28px; min-height: 28px; }

/* ---------- matrix ---------- */
.matrix { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.matrix th, .matrix td { text-align: right; border-bottom: 1px solid var(--border); padding: 0; }
.matrix thead th { font-size: 13px; font-weight: 500; color: var(--muted); padding: var(--space-3) var(--space-4); white-space: nowrap; }
.matrix th:first-child { text-align: left; padding-left: 0; }
.matrix tbody th { font-family: var(--font-mono); font-weight: 600; font-size: 16px; padding: 0 var(--space-4) 0 0; }
.matrix tbody th a { display: inline-flex; align-items: center; min-height: var(--tap); text-decoration: none; }
.matrix tbody th a:hover { text-decoration: underline; }
.matrix .ph td, .matrix .ph th { height: 64px; color: var(--muted); padding-inline: var(--space-4); }
.cell {
  display: block; width: 100%; min-height: 64px; padding: var(--space-3) var(--space-4);
  border: 0; background: none; color: var(--text); text-align: right; cursor: pointer;
  font-family: var(--font-mono); font-size: 16px; line-height: 24px;
}
.cell:hover { background: var(--surface-2); }
.cell:focus-visible { outline-offset: -2px; }
.cell .zero, .zero { color: var(--muted); }
.cell .q { color: var(--warning-text); font-size: 13px; }
.bar { display: block; height: 4px; margin-top: var(--space-1); background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--free); }
.drop-n { display: block; padding: var(--space-3) var(--space-4); font-family: var(--font-mono); }

@media (max-width: 767px) {
  .matrix thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .matrix, .matrix tbody { display: block; }
  .matrix tbody tr {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: var(--space-3); overflow: hidden;
  }
  .matrix tbody th { grid-column: 1; grid-row: 1; padding: var(--space-1) var(--space-4); border-bottom: 1px solid var(--border); background: var(--surface-2); }
  .matrix tbody td { display: block; text-align: left; border-bottom: 0; }
  .matrix tbody td:nth-of-type(even) { border-left: 1px solid var(--border); }
  .matrix tbody td:nth-of-type(n+3) { border-top: 1px solid var(--border); }
  .matrix tbody td:last-child {
    grid-column: 2; grid-row: 1; display: flex; align-items: center; justify-content: flex-end;
    border: 0; border-bottom: 1px solid var(--border); background: var(--surface-2);
  }
  .matrix tbody td:last-child::before { padding: 0; }
  .matrix tbody td:last-child .drop-n { padding: 0 var(--space-4) 0 var(--space-2); }
  .matrix td::before { content: attr(data-label); display: block; padding: var(--space-3) var(--space-4) 0; color: var(--muted); font-size: 13px; line-height: 20px; }
  .matrix .cell, .matrix .drop-n { text-align: left; padding-top: var(--space-1); min-height: 0; }
  .matrix .ph { min-height: 160px; }
  .matrix .ph td::before { content: none; }
  .matrix .ph td { display: none; }
}

/* ---------- browse ---------- */
.filters { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-6); align-items: flex-end; }
.seg { border: 0; margin: 0; padding: 0; min-width: 0; max-width: 100%; }
.seg legend, .field label { display: block; padding: 0; margin-bottom: var(--space-2); font-size: 14px; font-weight: 600; }
.seg-opts { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.seg-opt { position: relative; }
.seg-opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg-opt span {
  display: inline-flex; align-items: center; justify-content: center; min-width: var(--tap); min-height: var(--tap);
  padding: 0 var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-md);
  font-family: var(--font-mono); font-size: 14px; color: var(--muted); background: var(--surface);
}
.seg-opt:hover span { color: var(--text); border-color: var(--control-border); }
.seg-opt input:checked + span { background: var(--text); border-color: var(--text); color: var(--bg); }
.seg-opt input:focus-visible + span { outline: 2px solid var(--focus-ring); outline-offset: 4px; }
.field input {
  height: var(--tap); width: 140px; padding: 0 var(--space-3); border: 1px solid var(--control-border);
  border-radius: var(--radius-md); background: var(--surface); color: var(--text); font-family: var(--font-mono); font-size: 16px;
}
.field input::placeholder { color: var(--muted); opacity: 1; }
.count { margin: var(--space-6) 0 var(--space-3); font-size: 14px; color: var(--muted); min-height: 20px; }
.list, .domain-grid {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 0 var(--space-4);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr));
  border-top: 1px solid var(--border);
}
.list { min-height: 240px; }
.list:empty { min-height: 0; border-top: 0; }
.list li, .domain-grid li { border-bottom: 1px solid var(--border); }
.list a, .domain-grid li > span {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  min-height: var(--tap); padding: 0 var(--space-1); font-family: var(--font-mono); font-size: 15px; text-decoration: none;
}
.list a:hover { background: var(--surface-2); }
.list .unv a::after { content: "?"; color: var(--warning-text); }
.pick {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); width: 100%;
  min-height: var(--tap); padding: 0 var(--space-1); border: 0; background: none; color: var(--text);
  font-family: var(--font-mono); font-size: 15px; text-align: left; cursor: pointer;
}
.pick:hover { background: var(--surface-2); text-decoration: underline; text-decoration-color: var(--control-border); text-underline-offset: 3px; }
.pick:focus-visible { outline-offset: -2px; }
.list .unv .pick::after { content: "?"; color: var(--warning-text); }
.list .saved .pick::after { content: "saved"; color: var(--muted); font-family: var(--font-body); font-size: 12px; }
.list .unv.saved .pick::after { content: "? saved"; color: var(--warning-text); }
.more { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; margin-top: var(--space-4); }
.view-note { margin-top: var(--space-4); max-width: 80ch; }
#retry4 { margin-bottom: var(--space-4); }
.views { margin-bottom: var(--space-6); }
.views h3 { font-size: 14px; font-weight: 600; margin-bottom: var(--space-2); }
.views ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--space-4); }
.views a { display: inline-flex; align-items: center; min-height: var(--tap); font-size: 14px; color: var(--muted); }
.views a:hover, .views a[aria-current] { color: var(--text); }
.views a[aria-current] { text-decoration-color: currentColor; }

/* ---------- freshness ---------- */
.facts .age { color: var(--muted); font-size: 14px; }
.facts .status { vertical-align: 2px; }
.stale { margin-top: var(--space-4); max-width: 80ch; }
.coverage { margin-top: var(--space-4); font-size: 14px; }
.coverage summary { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--muted); cursor: pointer; }
.coverage summary:hover { color: var(--text); }
.coverage-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 0 var(--space-6); border-top: 1px solid var(--border); }
.coverage-list li { min-height: var(--tap); display: flex; align-items: center; gap: var(--space-2); border-bottom: 1px solid var(--border); color: var(--muted); }
.coverage-list .mono { color: var(--text); }

/* ---------- shortlist ---------- */
#sl-h:focus { outline: none; }
#sl-count { color: var(--muted); font-weight: 400; }
.shared { margin-bottom: var(--space-6); }
.shared h3 { font-size: 16px; font-weight: 600; }
.shared .note { margin: var(--space-1) 0 var(--space-3); }
.shared .rows { margin-bottom: var(--space-4); }
#sl-storage { margin-bottom: var(--space-3); }

/* ---------- details dialog ---------- */
.details {
  width: min(560px, calc(100% - 2 * var(--space-4))); max-height: calc(100dvh - 2 * var(--space-4)); overflow: auto;
  padding: var(--space-6); border: 1px solid var(--control-border); border-radius: var(--radius-lg);
  background: var(--surface); color: var(--text);
}
.details::backdrop { background: rgb(11 12 14 / 0.72); }
.d-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-3); }
.d-head h2 { font-size: 24px; font-weight: 600; overflow-wrap: anywhere; padding-top: var(--space-2); }
.details h3 { font-size: 14px; font-weight: 600; margin-top: var(--space-6); }
.details h3 + .note { margin: var(--space-1) 0 var(--space-2); }
.d-status { line-height: 24px; }
.d-status .status { margin-right: var(--space-1); }
.details .note { margin-top: var(--space-2); }
.d-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.d-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--space-4); }
.d-links a { display: inline-flex; align-items: center; min-height: var(--tap); }
@media (max-width: 559px) {
  .details { width: 100%; max-width: none; margin: auto 0 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; border-bottom: 0; padding: var(--space-4) var(--gutter) var(--space-6); max-height: 92dvh; }
}

/* ---------- feeds ---------- */
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: var(--space-12) var(--space-8); }
.two .note { margin-top: var(--space-1); }
.feed { list-style: none; margin: var(--space-4) 0 0; padding: 0; max-height: 400px; overflow: auto; border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 15px; }
.feed li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-1) var(--space-3); min-height: var(--tap); padding: var(--space-1) 0; border-bottom: 1px solid var(--border); }
.feed a { display: inline-flex; align-items: center; min-height: var(--tap); text-decoration: none; }
.feed a:hover { text-decoration: underline; }
.feed .pick { width: auto; padding: 0; }
.feed .when { color: var(--muted); font-size: 13px; }
.feed .empty { font-family: var(--font-body); color: var(--muted); font-size: 14px; }

/* ---------- cards / resources ---------- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6); background: var(--surface); display: flex; flex-direction: column; gap: var(--space-2); }
.card h3 { font-size: 16px; font-weight: 600; }
.card h3 a { display: inline-flex; align-items: center; min-height: var(--tap); margin-block: calc(-1 * var(--space-3)); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card p { color: var(--muted); font-size: 14px; line-height: 20px; }
.card .card-links { margin-top: auto; padding-top: var(--space-2); display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); }
.card .card-links a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--text); }

.tld-index { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); border-top: 1px solid var(--border); gap: 0 var(--space-6); }
.tld-index li { display: flex; align-items: center; gap: var(--space-1); border-bottom: 1px solid var(--border); font-family: var(--font-mono); }
.tld-index a { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); min-width: var(--tap); text-decoration: none; color: var(--muted); }
.tld-index a:first-child { justify-content: flex-start; color: var(--text); font-weight: 600; margin-right: auto; }
.tld-index a:hover { color: var(--text); text-decoration: underline; }

.steps { list-style: none; counter-reset: step; margin: var(--space-6) 0; padding: 0; display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.steps li { counter-increment: step; border-top: 1px solid var(--control-border); padding-top: var(--space-4); }
.steps h3 { font-size: 16px; font-weight: 600; }
.steps h3::before { content: counter(step) ". "; font-family: var(--font-mono); color: var(--muted); }
.steps p { margin-top: var(--space-2); color: var(--muted); }
.how > .note { max-width: 80ch; }

.state-error h2 { font-size: 18px; }
.state-error p { margin: var(--space-2) 0 var(--space-4); color: var(--muted); }
#error { margin-top: var(--space-8); }

/* ---------- generated TLD pages ---------- */
.crumbs { margin-top: var(--space-6); font-size: 14px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.crumbs li { display: inline-flex; align-items: center; color: var(--muted); }
.crumbs li + li::before { content: "/"; padding-inline: var(--space-2); color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--muted); }
.crumbs [aria-current] { color: var(--text); }
.page-head { padding-top: var(--space-8); }
.page-head h1 { font-size: clamp(28px, 5vw, 48px); font-weight: 700; letter-spacing: -0.02em; max-width: 24ch; }
.page-head .lede { margin-top: var(--space-4); }
.page-facts { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-12); margin: var(--space-8) 0 0; padding-top: var(--space-6); border-top: 1px solid var(--border); }
.page-facts dt { color: var(--muted); font-size: 14px; }
.page-facts dd { margin: var(--space-1) 0 0; font-family: var(--font-mono); font-size: 20px; }
.lens { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.lens th, .lens td { padding: var(--space-3) var(--space-4) var(--space-3) 0; border-bottom: 1px solid var(--border); text-align: right; }
.lens th:first-child, .lens td:first-child { text-align: left; }
.lens thead th { font-size: 13px; font-weight: 500; color: var(--muted); }
.lens td { font-family: var(--font-mono); }
.lens td a { display: inline-flex; align-items: center; min-height: var(--tap); }
.lens-wrap { overflow-x: auto; }
@media (max-width: 479px) { .lens th:nth-child(4), .lens td:nth-child(4) { display: none; } }
.domain-grid li > span { cursor: text; user-select: all; }
.section > h2 + .note { margin: var(--space-1) 0 var(--space-4); }
.sub { margin-top: var(--space-8); font-size: 16px; font-weight: 600; }
.sub + .note { margin: var(--space-1) 0 var(--space-3); }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-6); }
.pager a, .pager span { display: inline-flex; align-items: center; justify-content: center; min-width: var(--tap); min-height: var(--tap); padding: 0 var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-md); font-family: var(--font-mono); font-size: 14px; text-decoration: none; }
.pager a:hover { border-color: var(--control-border); background: var(--surface-2); }
.pager [aria-current] { background: var(--text); color: var(--bg); border-color: var(--text); }
.pager .gap { border: 0; min-width: 0; padding: 0; color: var(--muted); }
.letters { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 96px), 1fr)); border-top: 1px solid var(--border); gap: 0 var(--space-4); }
.letters li { display: flex; justify-content: space-between; align-items: center; min-height: var(--tap); border-bottom: 1px solid var(--border); font-family: var(--font-mono); font-size: 15px; }
.letters li span:last-child { color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.method { max-width: 80ch; }
.method p + p { margin-top: var(--space-3); }
.method p { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
