@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #e01c24;
  --red-deep: #b01018;
  --red-soft: rgba(224, 28, 36, 0.10);
  --black: #111111;
  --text: #1a1a1a;
  --grey: #5c5c5c;
  --muted: #6e6e6e;
  --line: #d9d9d9;
  --line-soft: #ececec;
  --white: #ffffff;
  --paper: #f5f5f5;
  --panel: #ffffff;
  --panel-2: #f5f5f5;
  --max: 1180px;
  --header: 92px;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--black); text-decoration: none; }
a:hover { color: var(--red); }
h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  color: var(--black);
}
p { margin: 0 0 1em; }
.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.muted { color: var(--grey); }
.small { font-size: 0.9rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--line-soft);
}
.site-header::before {
  content: "";
  display: block;
  height: 3px;
  background: var(--black);
  position: absolute;
  left: 0; right: 0; top: 0;
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header); gap: 24px;
}
.logo { display: flex; align-items: center; flex: 0 0 auto; }
.logo img { height: 72px; width: auto; }
.nav {
  display: flex; align-items: center; gap: 16px;
  font-size: 0.88rem; font-weight: 500;
  letter-spacing: 0.01em;
}
.nav a { white-space: nowrap; }
.nav a { color: var(--text); }
.nav a[aria-current="page"] { color: var(--black); }
.nav a[aria-current="page"]::after {
  content: ""; display: block; height: 2px; margin-top: 6px;
  background: var(--red); border-radius: 1px;
}
.header-cta { margin-left: 8px; }
.nav-toggle {
  display: none; background: none; border: 0; color: var(--black);
  width: 44px; height: 44px; cursor: pointer; padding: 10px;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--black); margin: 6px 0; border-radius: 1px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 20px; border-radius: 6px;
  font-family: Inter, sans-serif; font-size: 0.92rem; font-weight: 600;
  letter-spacing: 0.01em; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; line-height: 1.2;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); color: #fff; }
.btn-ghost {
  background: transparent; color: var(--black);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--black); color: var(--black); }
.btn-atom {
  background: var(--black); color: var(--white);
}
.btn-atom:hover { background: #000; color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Hero */
.hero {
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(224,28,36,0.08), transparent 60%),
    var(--white);
}
.kicker {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--red); margin: 0 0 18px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  max-width: 16ch; margin-bottom: 18px;
}
.hero .lead {
  font-size: 1.15rem; color: var(--grey); max-width: 40rem; margin-bottom: 28px;
}
.section { padding: 72px 0; background: var(--white); }
main > .section:nth-of-type(even) { background: var(--paper); }
.section + .section { border-top: 1px solid var(--line-soft); }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 20px; margin-bottom: 32px; flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0; }
.section-head p { margin: 0; max-width: 36rem; }
.section-head-stack {
  display: block;
}
.section-head-stack h2 { margin: 0 0 12px; }
.section-head-stack p { max-width: 720px; }
.section-head-stack .kicker { max-width: none; margin: 0 0 18px; }

/* Cards */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.card:hover { border-color: #bdbdbd; box-shadow: 0 6px 20px rgba(0,0,0,0.06); }
.card-shot {
  aspect-ratio: 16 / 10;
  background: var(--paper);
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}
.card-shot img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
}
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-family: Inter, sans-serif; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.card-body h3 a:hover { color: var(--red); }
.tag {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--grey);
}
.card-body p { color: var(--grey); font-size: 0.92rem; margin: 0; flex: 1; }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { padding: 8px 0; }
.step-num {
  font-family: "Playfair Display", serif;
  color: var(--red); font-size: 1.4rem; margin-bottom: 8px;
}
.step h3 { font-family: Inter, sans-serif; font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.step p { color: var(--grey); font-size: 0.92rem; margin: 0; }

/* Trust strip */
.trust {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  padding: 22px 0 0; color: var(--grey); font-size: 0.9rem;
  border-top: 1px solid var(--line); margin-top: 56px;
}

/* Listing page */
.listing-hero { padding: 48px 0 0; background: var(--white); }
.listing-grid {
  display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 36px;
  padding: 28px 0 72px; align-items: start;
}
.listing-shot {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--paper);
}
.listing-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.spec { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 8px 0 20px; }
.spec th, .spec td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.spec th { color: var(--grey); font-weight: 500; width: 38%; padding-right: 16px; }
.note {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px; color: var(--grey);
  font-size: 0.92rem; margin: 0 0 20px;
}
.note strong { color: var(--black); font-weight: 600; }

/* Domains table */
.filters {
  display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px;
}
.filters input, .filters select {
  background: var(--white); color: var(--text);
  border: 1px solid var(--line); border-radius: 6px;
  padding: 10px 12px; font: inherit; font-size: 0.92rem;
}
.filters input { flex: 1 1 240px; min-width: 180px; }
.filters select { min-width: 160px; }
.filters input:focus, .filters select:focus, .field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--red); outline-offset: 0; border-color: var(--red);
}
.count { color: var(--grey); font-size: 0.9rem; margin: 0 0 16px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table.domains { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.domains th, table.domains td {
  padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}
table.domains th {
  background: var(--paper); font-weight: 600; font-size: 0.75rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey);
}
table.domains tr:last-child td { border-bottom: 0; }
table.domains tr:hover td { background: var(--paper); }
.domain-name { font-weight: 600; letter-spacing: -0.01em; color: var(--black); }
.price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.actions { display: grid; grid-template-columns: repeat(3, 7.4rem); gap: 6px; }
.actions .btn { padding: 7px 6px; font-size: 0.74rem; justify-content: center; text-align: center; white-space: nowrap; }
.btn-off { background: #f1f1f1; color: #9a9a9a; border: 1px solid #e2e2e2; cursor: default; pointer-events: none; }
@media (max-width: 760px) { .actions { grid-template-columns: 1fr; } }

/* Forms */
form.stack { display: grid; gap: 14px; max-width: 640px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--black); }
.field input, .field select, .field textarea {
  background: var(--white); color: var(--text);
  border: 1px solid var(--line); border-radius: 6px;
  padding: 11px 12px; font: inherit;
}
.field textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error, .form-ok { padding: 12px 14px; border-radius: 6px; font-size: 0.92rem; }
.form-error { background: var(--red-soft); border: 1px solid var(--red); color: var(--text); }
.form-ok { background: #eef6ef; border: 1px solid #8fb896; color: var(--text); }

/* Prose pages */
.prose { max-width: 42rem; }
.prose h2 { font-size: 1.7rem; margin-top: 1.6em; }
.prose h3 { font-family: Inter, sans-serif; font-size: 1.05rem; font-weight: 600; margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.2em; color: var(--text); }
.prose li { margin: 0.35em 0; }
.prose a { color: var(--black); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.prose a:hover { color: var(--red); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.panel {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 26px;
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 3px solid var(--black);
  padding: 36px 0 28px;
  color: var(--grey); font-size: 0.88rem;
  background: var(--paper);
}
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px;
  margin-bottom: 28px;
}
.site-footer a { color: var(--black); }
.site-footer a:hover { color: var(--red); }
.site-footer h4 {
  font-family: Inter, sans-serif; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 12px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 8px; }
.legal { border-top: 1px solid var(--line); padding-top: 18px; color: var(--muted); }

/* 404 */
.empty { padding: 100px 0 120px; text-align: center; }
.empty h1 { font-size: 3rem; }

@media (max-width: 1100px) {
  .grid-3, .grid-2, .steps, .listing-grid, .two-col, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 44px; }
  .section { padding: 52px 0; }
  .logo img { height: 58px; }
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: var(--header);
    background: var(--white); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; padding: 16px 24px 22px; gap: 14px;
  }
  .site-header.open .nav { display: flex; }
  .header-cta { display: none; }
  .wrap { width: min(var(--max), calc(100% - 32px)); }
}

.featured-domains .card-body { padding: 20px 20px 18px; }
.featured-domains h3 { font-family: Inter, sans-serif; font-size: 1.05rem; margin: 0; }
.featured-domains a.card:hover h3 { color: var(--red); }

.tag-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.chip {
  display: inline-block; font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.02em; color: var(--grey);
  background: var(--paper); border: 1px solid var(--line-soft);
  border-radius: 999px; padding: 2px 8px; line-height: 1.4;
}
table.domains td:nth-child(2) { color: var(--text); font-size: 0.88rem; white-space: nowrap; }
#category { min-width: 200px; }

#registrar { min-width: 160px; }
table.domains th.sortable { cursor: pointer; user-select: none; }
table.domains th.sortable:hover { color: var(--black); }
table.domains th[aria-sort="ascending"]::after { content: " \25B2"; font-size: 0.65em; }
table.domains th[aria-sort="descending"]::after { content: " \25BC"; font-size: 0.65em; }
.age { white-space: nowrap; font-variant-numeric: tabular-nums; }
.domain-name .domain-link { font-weight: 600; color: var(--black); }
.domain-name .domain-link:hover { color: var(--red); }
.developed-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--red);
  border: 1px solid var(--red);
  border-radius: 999px;
  vertical-align: 1px;
  background: var(--white);
  line-height: 1.4;
  white-space: nowrap;
}
#developed { min-width: 160px; }

/* Category + Category 2 in the domains table */
td.cats { white-space: nowrap; }
td.cats .cat { display: block; }
td.cats .cat-2 { display: inline-block; margin-top: 4px; padding: 1px 8px; border: 1px solid var(--line-soft); border-radius: 999px; font-size: 0.78rem; color: var(--grey); background: var(--paper); line-height: 1.4; }

.table-wrap { overflow-x: auto; }

/* Home hero stage (2026-11-12g), modeled on the Swells hero */
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: 48px; align-items: center;
}
.hero-stage {
  position: relative; min-width: 0; padding: 15px; background: var(--white);
  border: 1px solid var(--line); border-radius: 30px;
  box-shadow: 0 30px 70px rgba(17,17,17,0.14), 0 8px 20px rgba(17,17,17,0.06);
  transform: rotate(1.5deg);
}
.hero-stage-tabs { display: flex; gap: 7px; padding: 4px 3px 14px; overflow-x: auto; }
.hero-stage-tabs button {
  flex: 1 0 auto; min-height: 38px; padding: 0 12px; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted); font: 700 12px/1 Inter, system-ui, sans-serif;
  cursor: pointer; transition: background .2s, color .2s;
}
.hero-stage-tabs button:hover { color: var(--black); }
.hero-stage-tabs button[aria-pressed="true"] { background: var(--red); color: var(--white); }
.hero-stage-tabs button:focus-visible { outline: 2px solid var(--black); outline-offset: 2px; }
.hero-stage-image {
  display: block; width: 100%; height: auto; aspect-ratio: 1.45; object-fit: cover; object-position: top;
  border-radius: 20px; background: var(--paper); border: 1px solid var(--line-soft);
}
.hero-stage-image.is-arriving { animation: hero-image-arrive .35s both; }
@keyframes hero-image-arrive { from { opacity: .55; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.hero-stage-credit {
  position: absolute; right: 24px; bottom: 82px; display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,0.94);
  color: var(--black); font-size: 11px; font-weight: 600; text-decoration: none;
  box-shadow: 0 2px 8px rgba(17,17,17,0.12);
}
.hero-stage-credit:hover { color: var(--red); }
.hero-stage-caption { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 17px 7px 5px; }
.hero-stage-caption strong { display: block; font-size: 16px; color: var(--black); }
.hero-stage-caption span { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.hero-stage-caption .hero-stage-index {
  margin: 0; color: var(--red); font: italic 28px/1 "Playfair Display", Georgia, serif;
}
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero-stage { width: min(100%, 620px); }
}
@media (max-width: 640px) {
  .hero-stage { border-radius: 22px; padding: 10px; transform: none; }
  .hero-stage-image { border-radius: 15px; }
  .hero-stage-credit { right: 18px; bottom: 74px; }
  .hero-stage-tabs button { padding: 0 10px; font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-stage-image.is-arriving { animation: none; }
}
