@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/newsreader-latin-wght-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/newsreader-latin-wght-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
}

:root {
  --bg: #F7F5EF;
  --surface: #FFFEFB;
  --sunk: #EFECE3;
  --ink: #2A2722;
  --ink-soft: #6B655B;
  --line: #E2DDD1;
  --clay: #B8583A;
  --clay-text: #A94F33;
  --clay-ink: #FFFFFF;
  --clay-wash: #F3E3DA;
  --good: #3F7A52;
  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.5rem;
  --step-3: 2.125rem;
  --step-4: clamp(2.4rem, 5.2vw, 3.6rem);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #23211E;
    --surface: #2C2A26;
    --sunk: #35322D;
    --ink: #ECE7DD;
    --ink-soft: #A69E91;
    --line: #3E3A34;
    --clay: #DE7A57;
    --clay-text: #DE7A57;
    --clay-ink: #1F1B17;
    --clay-wash: #3D2C24;
    --good: #7DBB8E;
    color-scheme: dark;
  }
}

:root[data-theme="light"] {
  --bg: #F7F5EF;
  --surface: #FFFEFB;
  --sunk: #EFECE3;
  --ink: #2A2722;
  --ink-soft: #6B655B;
  --line: #E2DDD1;
  --clay: #B8583A;
  --clay-text: #A94F33;
  --clay-ink: #FFFFFF;
  --clay-wash: #F3E3DA;
  --good: #3F7A52;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #23211E;
  --surface: #2C2A26;
  --sunk: #35322D;
  --ink: #ECE7DD;
  --ink-soft: #A69E91;
  --line: #3E3A34;
  --clay: #DE7A57;
  --clay-text: #DE7A57;
  --clay-ink: #1F1B17;
  --clay-wash: #3D2C24;
  --good: #7DBB8E;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--clay-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  margin: 0;
}

main {
  flex: 1;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px));
}

.dom {
  font-family: var(--font-mono);
  font-size: 0.95em;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.dom b {
  color: var(--clay-text);
  font-weight: 500;
}

.eyebrow {
  color: var(--ink-soft);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.num,
.price,
td.price,
.score {
  font-variant-numeric: tabular-nums;
}

.skip-link {
  position: fixed;
  z-index: 30;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header */
.top {
  position: sticky;
  z-index: 10;
  top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
}

.top-inner {
  display: flex;
  min-height: 60px;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 1.05rem;
  text-decoration: none;
  white-space: nowrap;
}

.brand b {
  color: var(--clay-text);
  font-weight: 500;
}

.brand-mark {
  display: block;
  width: 28px;
  height: 28px;
  flex: none;
}

.brand-mark-tile { fill: var(--clay); }
.brand-mark-glyph { fill: none; stroke: var(--clay-ink); stroke-width: 6.5; stroke-linecap: round; }
.brand-mark-dot { fill: var(--clay-ink); }

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-size: 0.95rem;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  display: inline-grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.theme-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font: 500 0.95rem var(--font-body);
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn:hover {
  border-color: var(--ink-soft);
}

.btn-primary {
  border-color: var(--clay);
  background: var(--clay);
  color: var(--clay-ink);
}

.btn-primary:hover {
  border-color: var(--clay);
  filter: brightness(1.06);
}

.btn-lg {
  min-height: 48px;
  padding: 13px 26px;
  font-size: 1.05rem;
}

.nav .btn {
  color: var(--ink);
}

/* Hero and ending navigation */
.hero {
  padding-block: clamp(48px, 9vw, 104px) 40px;
  text-align: center;
}

.hero h1 {
  max-width: 24ch;
  margin: 18px auto 0;
  font-size: var(--step-4);
  line-height: 1.08;
}

.hero h1 em {
  color: var(--clay-text);
  font-style: italic;
}

.hero .lede {
  max-width: 56ch;
  margin: 18px auto 0;
  color: var(--ink-soft);
  font-size: var(--step-1);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.cta-row .btn-primary {
  box-shadow: 0 10px 26px -14px color-mix(in srgb, var(--clay) 72%, transparent);
}

.endings {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  color: var(--ink-soft);
  font-size: var(--step--1);
}

.ending-label {
  margin-right: 4px;
}

.chip {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--sunk);
  color: var(--ink-soft);
  cursor: pointer;
  font: 500 var(--step--1) var(--font-body);
  text-decoration: none;
}

.chip.tld {
  gap: 0.35rem;
  background: transparent;
  font-family: var(--font-mono);
}

.chip.tld .ending-count {
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 400;
}

.chip.tld:hover {
  border-color: var(--ink-soft);
  color: var(--ink);
}

.chip.tld[aria-current="true"] {
  border-color: color-mix(in srgb, var(--clay) 40%, var(--line));
  background: var(--clay-wash);
  color: var(--ink);
}

.ending-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.ledger-empty {
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-size: var(--step--1);
}

.ledger-heading {
  margin: 20px 0 10px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
}

.empty-state {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
  color: var(--ink-soft);
}

.ending-soon {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
}

.ending-soon small {
  font-family: var(--font-body);
}

.endings-more {
  display: none;
  flex-basis: 100%;
  margin: 0;
  text-align: center;
}

.fresh {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: var(--step--1);
}

.fresh .num {
  min-width: 0;
}

.dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  margin-top: 0.5em;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--good) 18%, transparent);
}

.stale-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding-block: 11px;
  border-radius: var(--r-sm);
  background: var(--clay-wash);
  color: var(--ink);
  font-size: var(--step--1);
}

.stale-mark {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--clay);
}

/* Sections and ledgers */
section.block {
  padding-block: 56px;
  border-top: 1px solid var(--line);
}

.head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.head h2 {
  margin-top: 8px;
  font-size: var(--step-3);
  line-height: 1.15;
}

.head p:not(.eyebrow) {
  max-width: 52ch;
  margin-top: 10px;
  color: var(--ink-soft);
}

.ledger-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  overscroll-behavior-inline: contain;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th {
  padding: 11px 18px;
  background: var(--sunk);
  color: var(--ink-soft);
  font: 600 var(--step--1) var(--font-body);
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

td {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  vertical-align: baseline;
  white-space: nowrap;
}

.ledger-wrap table {
  min-width: 680px;
}

td.price {
  display: table-cell;
  margin: 0;
  font-family: var(--font-body);
  font-size: inherit;
  font-weight: 500;
  text-align: right;
}

td.price a {
  color: var(--ink);
  text-decoration-color: var(--line);
}

th.r {
  text-align: right;
}

td.src a {
  font-size: var(--step--1);
}

.ledger-caption {
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: var(--step--1);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--sunk);
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.ask-ledgers {
  margin-top: 24px;
}

.ask-ledgers h3 {
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: var(--step-1);
  font-weight: 600;
}

.ask-ledgers .price a {
  color: var(--ink-soft);
}

.ask-ledgers .ledger-wrap + .ledger-wrap {
  margin-top: 12px;
}

/* Process */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}

.reading .steps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reading .steps .step:nth-child(odd) {
  border-left: 0;
}

.reading .steps .step:nth-child(even) {
  border-left: 1px solid var(--line);
}

.reading .steps .step:nth-child(n+3) {
  border-top: 1px solid var(--line);
}

.step {
  padding: 24px 22px;
  border-left: 1px solid var(--line);
}

.step:first-child {
  border-left: 0;
}

.step .n {
  color: var(--clay-text);
  font-family: var(--font-mono);
  font-size: var(--step--1);
}

.step h3 {
  margin-top: 10px;
  font-size: var(--step-2);
}

.step p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Free sample and score bars */
.names td.score {
  width: 220px;
}

.bar {
  display: flex;
  width: 140px;
  height: 6px;
  overflow: hidden;
  margin-top: 6px;
  border-radius: 3px;
  background: var(--sunk);
}

.bar i {
  display: block;
  height: 100%;
  flex: 0 0 auto;
}

.score-part:nth-child(1) {
  background: var(--clay);
}

.score-part:nth-child(2) {
  background: color-mix(in srgb, var(--clay) 68%, var(--surface));
}

.score-part:nth-child(3) {
  background: color-mix(in srgb, var(--clay) 40%, var(--surface));
}

.w-0 { width: 0%; }
.w-1 { width: 1%; }
.w-2 { width: 2%; }
.w-3 { width: 3%; }
.w-4 { width: 4%; }
.w-5 { width: 5%; }
.w-6 { width: 6%; }
.w-7 { width: 7%; }
.w-8 { width: 8%; }
.w-9 { width: 9%; }
.w-10 { width: 10%; }
.w-11 { width: 11%; }
.w-12 { width: 12%; }
.w-13 { width: 13%; }
.w-14 { width: 14%; }
.w-15 { width: 15%; }
.w-16 { width: 16%; }
.w-17 { width: 17%; }
.w-18 { width: 18%; }
.w-19 { width: 19%; }
.w-20 { width: 20%; }
.w-21 { width: 21%; }
.w-22 { width: 22%; }
.w-23 { width: 23%; }
.w-24 { width: 24%; }
.w-25 { width: 25%; }
.w-26 { width: 26%; }
.w-27 { width: 27%; }
.w-28 { width: 28%; }
.w-29 { width: 29%; }
.w-30 { width: 30%; }
.w-31 { width: 31%; }
.w-32 { width: 32%; }
.w-33 { width: 33%; }

.locked-name {
  display: inline-block;
  filter: blur(5px);
  user-select: none;
}

.unlock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  background: var(--clay-wash);
}

.unlock p {
  font-size: 0.95rem;
}

.locked-label {
  color: var(--ink-soft);
  font-size: var(--step--1);
}

/* Stories and plans */
.stories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.story {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.2s;
}

.story:hover {
  transform: translateY(-2px);
  border-color: var(--ink-soft);
}

.story .fig {
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1;
}

.story h3 {
  font-family: var(--font-body);
  font-size: var(--step-1);
  font-weight: 600;
}

.story p,
.story .meta {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.story .meta {
  margin-top: auto;
  font-size: var(--step--1);
}

.plans {
  display: grid;
  max-width: 860px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-inline: auto;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.plan.pick {
  border-color: color-mix(in srgb, var(--clay) 50%, var(--line));
  box-shadow: 0 14px 40px -26px color-mix(in srgb, var(--clay) 58%, transparent);
}

.plan h3 {
  font-size: var(--step-2);
}

.plan p,
.plan ul {
  color: var(--ink-soft);
}

.plan .price {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 2.8rem;
  line-height: 1;
}

.plan .price small {
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.plan ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  list-style: none;
}

.plan li::before {
  margin-right: 8px;
  color: var(--clay-text);
  content: "—";
}

.plan .btn {
  justify-content: center;
  margin-top: auto;
}

.other-endings-note {
  margin-top: 18px;
  color: var(--ink-soft);
  text-align: center;
}

.note {
  max-width: 78ch;
  padding-block: 28px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: var(--step--1);
}

/* Footer */
.site-footer {
  padding-block: 32px 48px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.footer-branding {
  display: grid;
  gap: 6px;
}

.footer-branding .brand {
  margin-bottom: 3px;
}

.last-checked {
  font-size: var(--step--1);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer a {
  color: var(--ink-soft);
}

.site-footer .hostinger-link {
  text-decoration-style: dotted;
}

/* R2 pages and shared reading layout */
.date {
  display: inline-block;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.date-short {
  display: none;
}

.list-page {
  padding-block: 48px 72px;
}

.page-heading {
  margin-bottom: 26px;
}

.page-heading .eyebrow {
  margin-bottom: 8px;
}

.page-heading h1 {
  font-size: var(--step-4);
  line-height: 1.1;
}

.page-heading > p:last-child {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: var(--step-1);
}

.ending-label {
  color: var(--ink-soft);
  font-size: var(--step--1);
}

.ending-count {
  font-family: var(--font-body);
  font-size: 0.78em;
  font-variant-numeric: tabular-nums;
}

.list-filter-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 12px;
  margin-block: 22px 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}

.filter-control {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.filter-control label,
.field label {
  color: var(--ink-soft);
  font-size: var(--step--1);
  font-weight: 600;
}

.filter-control select,
.field input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}

.list-filter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.list-filter-actions .btn,
.filter-reset {
  min-height: 44px;
}

.filter-reset {
  display: inline-flex;
  align-items: center;
  padding-inline: 8px;
  color: var(--ink-soft);
}

.names-ledger table {
  min-width: 700px;
}

.names-ledger td.score {
  width: 150px;
  font-variant-numeric: tabular-nums;
}

.names-ledger td.score strong {
  font-weight: 600;
}

.register-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--ink-soft);
  font-size: var(--step--1);
  text-decoration-style: dotted;
}

.domain-row-locked {
  user-select: none;
}

.reading {
  max-width: 68ch;
  padding-block: 52px 76px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.7;
}

.reading h1 {
  margin-bottom: 12px;
  font-size: var(--step-4);
  line-height: 1.12;
}

.reading h2 {
  margin: 30px 0 8px;
  font-size: var(--step-2);
  line-height: 1.2;
}

.reading p + p {
  margin-top: 12px;
}

.reading code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.reading .lede {
  margin-bottom: 28px;
  color: var(--ink-soft);
}

.article-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -8px 0 24px;
}

.article-categories .chip[aria-current="true"] {
  border-color: var(--line);
  background: var(--sunk);
  color: var(--ink);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: -12px 0 32px;
  color: var(--ink-soft);
  font-size: var(--step--1);
}

.article-body h2 {
  margin-top: 30px;
}

.article-body figure,
.article-body p,
.article-body ul,
.article-body ol {
  margin-block: 14px;
}

.pull-figure {
  margin-block: 28px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pull-figure__value {
  font-family: var(--font-display);
  font-size: var(--step-4);
  line-height: 1.08;
  font-variant-numeric: tabular-nums;
}

.pull-figure figcaption {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: var(--step--1);
}

.article-sources {
  margin-top: 36px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: var(--step--1);
  line-height: 1.6;
}

.article-sources h2 {
  margin: 0 0 12px;
  font-size: var(--step-2);
}

.article-sources ol {
  padding-left: 1.4em;
}

.article-sources li + li {
  margin-top: 8px;
}

.article-cta {
  margin-top: 38px;
  padding: clamp(18px, 4vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--clay-wash);
}

.article-cta h2 {
  margin: 0;
}

.article-cta p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: var(--step--1);
}

.article-cta .cta-row {
  justify-content: flex-start;
  margin-top: 16px;
}

.article-related {
  border-top: 1px solid var(--line);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.plans .price {
  font-variant-numeric: tabular-nums;
}

.checkout-page,
.account-page {
  max-width: 900px;
  padding-block: 48px 72px;
}

.checkout-card,
.account-card,
.account-empty {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.checkout-card {
  max-width: 680px;
  margin-inline: auto;
  padding: clamp(20px, 5vw, 36px);
}

.checkout-card h1,
.account-page h1 {
  font-size: var(--step-3);
}

.checkout-intro {
  margin-top: 8px;
  color: var(--ink-soft);
}

.checkout-summary {
  margin-block: 24px;
  padding: 16px;
  border-radius: var(--r-sm);
  background: var(--sunk);
}

.checkout-summary-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-weight: 600;
}

.checkout-summary-title .num {
  font-variant-numeric: tabular-nums;
}

.checkout-summary p {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: var(--step--1);
}

.checkout-field {
  margin-bottom: 18px;
}

.checkout-field input {
  margin-top: 5px;
}

.checkout-field small {
  display: block;
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: var(--step--1);
}

.consent-control {
  display: grid;
  min-height: 44px;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  margin: 8px 0 0;
}

.consent-checkbox {
  width: 20px;
  height: 20px;
  margin: 12px;
  accent-color: var(--clay);
}

.consent-control label {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding-block: 6px;
  color: var(--ink);
  font-size: var(--step--1);
  line-height: 1.45;
  cursor: pointer;
}

.form-error {
  margin: 4px 0 14px 44px;
  color: var(--clay-text);
  font-size: var(--step--1);
}

.checkout-submit {
  min-height: 48px;
  justify-content: center;
  width: 100%;
}

.account-page > .page-heading {
  margin-bottom: 22px;
}

.account-card {
  overflow: hidden;
}

.account-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
}

.account-meta h2 {
  font-size: var(--step-2);
}

.account-meta p {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: var(--step--1);
}

.account-status {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sunk);
  color: var(--ink-soft);
  font-size: var(--step--1);
}

.account-card > h3 {
  padding: 0 20px 12px;
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 600;
}

.account-downloads {
  min-width: 520px;
}

.account-downloads td:last-child {
  text-align: right;
}

.account-downloads code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

.account-downloads .btn {
  min-height: 44px;
  padding: 7px 15px;
}

.account-note {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: var(--step--1);
}

.account-note pre {
  max-width: 100%;
  overflow-x: visible;
  margin-top: 8px;
  padding: 10px;
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--ink);
  font-size: 0.9em;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.account-empty {
  max-width: 680px;
  margin-inline: auto;
  padding: clamp(20px, 5vw, 36px);
  text-align: center;
}

.account-empty h2 {
  font-size: var(--step-2);
}

.account-empty > p {
  max-width: 48ch;
  margin: 8px auto 20px;
  color: var(--ink-soft);
}

.token-form {
  max-width: 400px;
  margin: 0 auto;
  text-align: left;
}

.token-form .btn {
  width: 100%;
  min-height: 44px;
  justify-content: center;
  margin-top: 12px;
}

.faq {
  max-width: 860px;
  margin: 48px auto 0;
  border-top: 1px solid var(--line);
}

.faq h2 {
  margin: 30px 0 16px;
  font-size: var(--step-3);
}

.faq details {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.faq summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}

.faq details p {
  max-width: 68ch;
  padding: 4px 0 8px;
  color: var(--ink-soft);
}

.pricing-note {
  max-width: 860px;
  margin: 18px auto 0;
  color: var(--ink-soft);
  font-size: var(--step--1);
  text-align: center;
}

.site-footer nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 900px) {
  .list-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .list-filter-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .date-long {
    display: none;
  }

  .date-short {
    display: inline;
  }

  .list-filter-form {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .list-filter-actions {
    align-items: stretch;
  }

  .list-filter-actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .ending-filters .chip,
  .endings .chip {
    min-height: 44px;
  }

  .names-ledger table {
    min-width: 0;
  }

  #names .ledger-wrap,
  .names-ledger {
    overflow-x: auto;
  }

  #names .names,
  .names-ledger .names {
    width: 100%;
    min-width: 0;
    table-layout: auto;
  }

  #names .names th:nth-child(3),
  #names .names td:nth-child(3),
  .names-ledger .names th:nth-child(3),
  .names-ledger .names td:nth-child(3) {
    display: none;
  }

  #names .names th,
  #names .names td,
  .names-ledger .names th,
  .names-ledger .names td {
    padding-inline: 3px;
  }

  #names .names th,
  .names-ledger .names th {
    font-size: 0.62rem;
    letter-spacing: 0.01em;
  }

  #names .names td,
  .names-ledger .names td {
    white-space: normal;
  }

  #names .names .dom,
  .names-ledger .names .dom {
    white-space: nowrap;
  }

  #names .names .domain-checked,
  .names-ledger .names .domain-checked {
    display: none;
  }

  #names .names th:nth-child(2),
  #names .names td:nth-child(2),
  .names-ledger .names th:nth-child(2),
  .names-ledger .names td:nth-child(2) {
    width: auto;
  }

  #names .names th:nth-child(4),
  #names .names td:nth-child(4),
  .names-ledger .names th:nth-child(4),
  .names-ledger .names td:nth-child(4) {
    width: 26%;
  }

  #names .names th:nth-child(5),
  #names .names td:nth-child(5),
  .names-ledger .names th:nth-child(5),
  .names-ledger .names td:nth-child(5) {
    width: 19%;
  }

  #names .names th:nth-child(6),
  #names .names td:nth-child(6),
  .names-ledger .names th:nth-child(6),
  .names-ledger .names td:nth-child(6) {
    width: 16%;
  }

  #names .names th:first-child,
  #names .names td:first-child,
  .names-ledger .names th:first-child,
  .names-ledger .names td:first-child {
    width: 2.5rem;
    min-width: 2.5rem;
    padding-right: 0.5rem;
    text-align: right;
  }

  #names .names th:nth-child(2),
  #names .names td:nth-child(2),
  .names-ledger .names th:nth-child(2),
  .names-ledger .names td:nth-child(2) {
    padding-left: 0.4rem;
    padding-right: 0.4rem;
  }

  #names .names th:nth-child(4),
  #names .names td:nth-child(4),
  .names-ledger .names th:nth-child(4),
  .names-ledger .names td:nth-child(4) {
    padding-left: 0.5rem;
  }

  #names .names .bar,
  .names-ledger .names .bar {
    width: 52px;
  }

  .account-card .ledger-wrap {
    overflow-x: hidden;
  }

  .account-card .ledger-wrap .account-downloads {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .account-downloads thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
  }

  .account-downloads tbody,
  .account-downloads tr {
    display: block;
  }

  .account-downloads tr + tr {
    border-top: 1px solid var(--line);
  }

  .account-downloads td {
    display: grid;
    grid-template-columns: minmax(76px, 0.4fr) minmax(0, 1fr);
    gap: 12px;
    padding: 8px 12px;
    border: 0;
    white-space: normal;
  }

  .account-downloads td::before {
    content: attr(data-label);
    color: var(--ink-soft);
    font-size: var(--step--1);
    font-weight: 600;
  }

  .account-downloads td:last-child {
    text-align: left;
  }

  .account-downloads td:last-child .btn {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }

  .account-note pre,
  .account-note code {
    max-width: 100%;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 820px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .step:nth-child(3) {
    border-left: 0;
  }

  .step:nth-child(n+3) {
    border-top: 1px solid var(--line);
  }

  .stories {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .endings .ending-soon {
    display: none;
  }

  .endings-more {
    display: block;
  }

  .sales-ledger th:nth-child(4),
  .sales-ledger td:nth-child(4),
  .ask-ledgers th:nth-child(4),
  .ask-ledgers td:nth-child(4) {
    display: none;
  }

  .sales-ledger .ledger-wrap table,
  .ask-ledgers .ledger-wrap table {
    min-width: 0;
  }

  .sales-ledger th,
  .sales-ledger td,
  .ask-ledgers th,
  .ask-ledgers td {
    padding-inline: 6px;
  }

  .sales-ledger th,
  .ask-ledgers th {
    font-size: 0.7rem;
    letter-spacing: 0.02em;
  }

  .sales-ledger td.num,
  .ask-ledgers td.num {
    white-space: normal;
  }
}

@media (max-width: 720px) {
  .nav {
    display: none;
  }

  .top-inner {
    gap: 12px;
  }

  .header-actions {
    margin-left: auto;
  }

  .plans {
    grid-template-columns: 1fr;
  }

  .chip {
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .names-ledger .names .domain-checked {
    display: none;
  }

  .names-ledger .names th:nth-child(2),
  .names-ledger .names td:nth-child(2) {
    width: 46%;
  }

  .names-ledger .names .dom {
    font-size: 0.75em;
    white-space: nowrap;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step {
    border-left: 0;
  }

  .step + .step {
    border-top: 1px solid var(--line);
  }

  .reading .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .reading .steps .step {
    border-left: 0;
  }

  .reading .steps .step:nth-child(even) {
    border-left: 0;
  }

  .reading .steps .step + .step {
    border-top: 1px solid var(--line);
  }

  .download-link {
    padding-inline: 12px;
    font-size: 0.875rem;
  }

  .hero {
    padding-top: 54px;
  }

}

@media (prefers-reduced-motion: no-preference) {
  .hero > * {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .hero > *:nth-child(2) {
    animation-delay: 0.06s;
  }

  .hero > *:nth-child(3) {
    animation-delay: 0.12s;
  }

  .hero > *:nth-child(n+4) {
    animation-delay: 0.18s;
  }

  @keyframes rise {
    from { transform: translateY(8px); opacity: 0.001; }
    to { transform: none; opacity: 1; }
  }
}

/* Ending and category landing pages */
.landing-page {
  padding-block: 28px 64px;
}

.landing-breadcrumb {
  margin-bottom: 22px;
  color: var(--ink-soft);
  font-size: var(--step--1);
}

.landing-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-breadcrumb li + li::before {
  margin-inline: 9px;
  color: var(--line);
  content: "/";
}

.landing-breadcrumb a {
  color: var(--ink-soft);
}

.landing-breadcrumb [aria-current="page"] {
  color: var(--ink);
}

.landing-heading .eyebrow {
  margin-bottom: 8px;
}

.landing-heading h1 {
  max-width: 24ch;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.12;
}

.landing-intro {
  max-width: 68ch;
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: var(--step-1);
  line-height: 1.6;
}

.landing-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 24px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}

.landing-stats-category {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.landing-stats > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 16px 20px;
}

.landing-stats > div + div {
  border-left: 1px solid var(--line);
}

.landing-stats dt {
  order: 2;
  color: var(--ink-soft);
  font-size: var(--step--1);
  line-height: 1.4;
}

.landing-stats dd {
  order: 1;
  margin: 0 0 2px;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1.12;
  font-variant-numeric: tabular-nums;
}

.landing-stale {
  margin-top: 12px;
  padding-inline: 14px;
}

.landing-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.landing-section {
  margin-top: 56px;
}

.landing-section h2 {
  margin-bottom: 16px;
  font-size: var(--step-2);
  line-height: 1.2;
}

.landing-ledger .names {
  min-width: 700px;
}

.landing-empty-sample {
  margin-bottom: 12px;
  color: var(--ink-soft);
}

.landing-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.landing-chips .chip {
  min-height: 44px;
}

.landing-lang {
  margin: 0 0 8px;
  font-size: 13px;
}

.landing-faq {
  max-width: 68ch;
}

.landing-faq details {
  border-bottom: 1px solid var(--line);
  padding-block: 12px;
}

.landing-faq details:first-of-type {
  border-top: 1px solid var(--line);
}

.landing-faq summary {
  cursor: pointer;
  font-weight: 600;
  min-height: 24px;
}

.landing-faq details p {
  margin: 8px 0 0;
  color: var(--ink-soft);
}

.landing-disclaimer {
  margin-top: 56px;
}

.footer-links,
.footer-endings {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.site-footer nav {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-endings {
  gap: 4px;
}

.footer-endings-label {
  margin-right: 8px;
  color: var(--ink-soft);
  font-size: var(--step--1);
}

.site-footer .footer-endings a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding-inline: 8px;
  color: var(--ink-soft);
  text-decoration: none;
}

@media (max-width: 720px) {
  .landing-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-stats > div {
    padding: 14px 16px;
  }

  .landing-stats > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .landing-section {
    margin-top: 40px;
  }

  .landing-disclaimer {
    margin-top: 40px;
  }
}

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

/* Domain checker */
.check-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  max-width: 640px;
}

.check-form .field {
  flex: 1 1 260px;
  min-width: 0;
}

.check-form .btn {
  min-height: 44px;
  min-width: 120px;
  justify-content: center;
}

.check-quota,
.check-note,
.check-muted {
  color: var(--ink-soft);
  font-size: var(--step--1);
}

.check-quota {
  margin: 10px 0 0;
}

.check-error {
  margin: 12px 0 0;
  color: var(--clay-text);
  font-weight: 600;
}

.check-limit {
  margin-top: 20px;
  border-radius: var(--r-md);
}

.check-results {
  margin-top: 32px;
}

.check-ok {
  color: var(--good);
}

.check-note {
  max-width: 68ch;
  margin-top: 12px;
}
