:root {
  --paper: #f6f6f3;
  --ink: #141f26;
  --ink-2: #33434b;
  --muted: #6a7579;
  --line: #dcdedb;
  --rose: #d9587a;
  --teal: #2f8a86;
  --sans: 'PingFang SC', 'HarmonyOS Sans SC', 'MiSans', 'Microsoft YaHei', 'Noto Sans SC', system-ui, sans-serif;
  --latin: 'SF Pro Display', 'Helvetica Neue', 'Segoe UI', Arial, var(--sans);
  --mono: 'SF Mono', ui-monospace, Menlo, Consolas, monospace;
  --gutter: clamp(20px, 5vw, 72px);
  --wrap: min(1200px, 100% - var(--gutter) * 2);
  --ease: cubic-bezier(.22, .7, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.8; -webkit-font-smoothing: antialiased; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
h1, h2, p, dl, dd, ul { margin: 0; padding: 0; }
a:focus-visible, input:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
::selection { background: color-mix(in oklab, var(--rose) 25%, white); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The dots of the domain are drawn, not typed: each one could be a club. */
.domain i, .mark i { display: inline-block; border-radius: 50%; background: var(--rose); }
.domain i:nth-of-type(2), .mark i:nth-of-type(2) { background: var(--teal); }

.bar { width: var(--wrap); margin: 0 auto; padding: 28px 0; display: flex; justify-content: space-between; align-items: center; }
.mark { display: inline-flex; align-items: baseline; gap: .12em; font-family: var(--latin); font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.mark i { width: .26em; height: .26em; }
.bar-link { font-size: 14px; color: var(--ink-2); padding: 6px 0; border-bottom: 1px solid var(--line); transition: border-color .2s ease; }
.bar-link:hover { border-color: var(--ink); }

.hero { width: var(--wrap); margin: 0 auto; padding: clamp(56px, 13vh, 140px) 0 clamp(56px, 9vw, 112px); }
.domain { display: flex; align-items: baseline; gap: .06em; font-family: var(--latin); font-size: clamp(64px, 17vw, 236px); font-weight: 200; line-height: .95; letter-spacing: -.045em; margin-left: -.05em; }
.domain i { width: .15em; height: .15em; flex-shrink: 0; transform: translateY(-.02em); }
.hero-text { margin-top: clamp(28px, 4vw, 48px); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; padding-top: 22px; border-top: 1px solid var(--ink); }
.lead { font-size: clamp(19px, 2vw, 24px); font-weight: 600; letter-spacing: .02em; }
.lead-en { font-family: var(--latin); font-size: 15px; color: var(--muted); letter-spacing: .02em; }

.facts { width: var(--wrap); margin: 0 auto; }
.facts dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.facts dl > div { padding: 28px 32px 8px 0; }
.facts dl > div + div { padding-left: 32px; border-left: 1px solid var(--line); }
.facts dt { font-size: 13px; color: var(--muted); letter-spacing: .12em; margin-bottom: 12px; }
.facts dd { font-size: 15px; line-height: 1.95; color: var(--ink-2); text-wrap: pretty; }
.facts strong { font-family: var(--latin); font-weight: 600; color: var(--ink); }
.owner { font-family: var(--latin); font-weight: 600; color: var(--ink); }
.facts code { font-family: var(--mono); font-size: .9em; padding: 1px 6px; background: color-mix(in oklab, var(--ink) 6%, transparent); white-space: nowrap; }
.email { font-family: var(--latin); color: var(--ink); border-bottom: 1px solid var(--rose); transition: color .2s ease; }
.email:hover { color: var(--rose); }

/* The address composer: typing a name shows the address it would become. */
.compose { width: var(--wrap); margin: 0 auto clamp(96px, 12vw, 160px); }
.compose h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 600; letter-spacing: -.01em; margin-bottom: clamp(28px, 4vw, 44px); }
.address-line { display: flex; flex-wrap: wrap; align-items: baseline; font-family: var(--latin); font-size: clamp(34px, 6.4vw, 84px); font-weight: 200; letter-spacing: -.03em; line-height: 1.2; }
.address-field { display: inline-grid; max-width: 100%; }
.address-field > * { grid-area: 1 / 1; font: inherit; letter-spacing: inherit; min-width: 2ch; }
.address-sizer { visibility: hidden; white-space: pre; padding: 0 .04em; }
.address-field input { width: 100%; min-width: 0; padding: 0 .04em; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); caret-color: var(--rose); outline: none; }
.address-field input::placeholder { color: color-mix(in oklab, var(--ink) 25%, var(--paper)); }
.address-field input:focus { border-bottom-color: var(--rose); }
.address-suffix { color: var(--muted); }
.status { min-height: 1.8em; margin-top: 18px; font-size: 14px; color: var(--muted); }
.status[data-state="taken"], .status[data-state="reserved"], .status[data-state="invalid"] { color: #b2493d; }
.status[data-state="open"] { color: var(--teal); }
.apply { display: inline-flex; align-items: center; gap: 14px; margin-top: 28px; padding: 16px 22px; background: var(--ink); color: #fff; font-size: 16px; font-weight: 600; letter-spacing: .02em; transition: background-color .25s ease; }
.apply:hover { background: color-mix(in oklab, var(--ink) 80%, var(--rose)); }
.apply svg, .directory svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .25s var(--ease); }
.apply:hover svg, .directory a:hover svg { transform: translate(2px, -2px); }
.apply[aria-disabled="true"] { background: color-mix(in oklab, var(--ink) 30%, var(--paper)); pointer-events: none; }

.directory { width: var(--wrap); margin: clamp(88px, 12vw, 160px) auto clamp(96px, 12vw, 160px); }
.directory h2 { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .12em; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
/* Live sites, shown as they are: the screenshot is the example. */
.directory ul { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 40px; padding-top: 32px; }
.directory a { display: block; }
.shot { display: block; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s var(--ease); }
.directory a:hover .shot img { transform: scale(1.02); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) 20px; align-items: baseline; gap: 4px 16px; padding: 18px 0 16px; border-bottom: 1px solid var(--line); transition: border-color .25s ease; }
.directory a:hover .row { border-color: var(--ink); }
.row-domain { font-family: var(--latin); font-size: clamp(22px, 2.2vw, 28px); font-weight: 300; letter-spacing: -.02em; }
.row-suffix { color: var(--muted); }
.row-name { grid-row: 2; font-size: 14px; color: var(--ink-2); }
.directory svg { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--muted); }

.foot { width: var(--wrap); margin: 0 auto; padding: 22px 0 32px; display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.foot [data-owner] { font-family: var(--latin); }

@media (max-width: 760px) {
  .facts dl { grid-template-columns: minmax(0, 1fr); }
  .facts dl > div, .facts dl > div + div { padding: 22px 0 18px; border-left: 0; }
  .facts dl > div + div { border-top: 1px solid var(--line); }
  .directory ul { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .apply { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
