@font-face { font-family: "Krona One"; src: url("/fonts/krona-one.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Brygada 1918"; src: url("/fonts/brygada-1918.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Brygada 1918"; src: url("/fonts/brygada-1918-italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  --bench: #4a0d1e;
  --bench-deep: #360815;
  --crimson: #be123c;
  --blush: #fecdd3;
  --pale: #fff1f2;
  --ink: #2c0711;
  --ink-soft: #4d1a26;
  --cut-red: #7a0824;
  --cut-green: #063f2f;
  --cut-grey: #38262b;
  --wide: "Krona One", "Arial Narrow", sans-serif;
  --text: "Brygada 1918", Georgia, serif;
  --edge: clamp(18px, 4.6vw, 76px);
  --metal-flat: linear-gradient(118deg, #ddcfcd 0%, #efe4e2 34%, #cdbdbb 58%, #e6dad8 100%);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: #b08a90 var(--bench-deep); }
body { margin: 0; background: var(--bench); color: var(--blush); font: 400 clamp(16px, 1.15vw, 18px)/1.55 var(--text); overflow-x: clip; -webkit-font-smoothing: antialiased; }
::selection { background: var(--crimson); color: var(--pale); }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 9; padding: 10px 14px; background: var(--pale); color: var(--ink); }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

.metal { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.no-gl .metal { display: none; }

/* ---------- the sheet on the bench ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 600px; color: var(--ink); isolation: isolate; }
.no-gl .hero-sheet, .no-gl .source-sheet, .no-gl .watch-plate { background: var(--metal-flat); }
.hero-sheet { position: absolute; left: 0; top: 0; right: clamp(14px, 3.4vw, 56px); bottom: clamp(16px, 5.4vh, 56px); padding: clamp(12px, 2.4vh, 26px) var(--edge) clamp(14px, 3vh, 30px); display: flex; flex-direction: column; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--wide); font-size: 12px; text-decoration: none; min-height: 44px; }
.links { display: flex; align-items: center; gap: clamp(12px, 2vw, 30px); }
.links a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.links a:hover { text-decoration: underline; }
.hero-copy { margin-top: clamp(6px, 3vh, 34px); max-width: 26em; }
h1 { font: 500 clamp(19px, 1.9vw, 30px)/1.16 var(--text); letter-spacing: -.01em; text-wrap: balance; }
.lede { margin-top: .5em; font-size: clamp(14px, 1.05vw, 16px); line-height: 1.42; color: var(--ink); max-width: 25em; }
.bench { flex: 1; display: flex; flex-direction: column; min-height: 0; margin-top: clamp(4px, 1.4vh, 16px); }
.plate-field { position: relative; flex: 1; min-height: 110px; cursor: text; }
.plate-field input { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: transparent; color: transparent; caret-color: transparent; font-size: 16px; }
.plate-field input:focus { outline: none; }
.plate-field input::selection { background: transparent; color: transparent; }
.plate-field:focus-within { box-shadow: 0 2px 0 var(--ink); }
.emboss { display: none; }
.no-gl .emboss { display: block; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 100%; font: 400 clamp(26px, 8vw, 120px)/1.05 var(--wide); overflow-wrap: anywhere; color: var(--ink); }
.emboss span { display: inline; }
.burin { position: absolute; left: 0; top: 0; width: 2px; height: 40px; background: var(--crimson); opacity: 0; pointer-events: none; }
.plate-field:focus-within .burin { opacity: 1; animation: blink 1.1s steps(1) infinite; }
.no-gl .burin { display: none; }
@keyframes blink { 50% { opacity: 0; } }

.plate-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "hint go" "cells go"; column-gap: 20px; row-gap: 3px; align-items: end; margin-top: clamp(4px, 1.4vh, 16px); }
.plate-hint { grid-area: hint; font-size: 14px; line-height: 1.3; color: var(--ink); }
.cells { grid-area: cells; display: flex; flex-wrap: wrap; column-gap: clamp(12px, 2vw, 30px); font-size: 14px; line-height: 1.35; }
.cell-k { font-weight: 600; }
.cell-v { font-style: italic; overflow-wrap: anywhere; }
.cell-v:empty { display: none; }
.cell-s { color: var(--ink); }
.cell.taken .cell-s { color: var(--cut-red); font-weight: 600; }
.cell.free .cell-s { color: var(--cut-green); font-weight: 600; }
.cell.busy .cell-s, .cell.unchecked .cell-s, .cell.error .cell-s { color: var(--cut-grey); }

.go { grid-area: go; appearance: none; border: 0; border-radius: 2px; min-height: 52px; padding: 0 clamp(20px, 2.6vw, 42px); background: var(--crimson); color: var(--pale); font: 400 clamp(12px, 1vw, 15px) var(--wide); cursor: pointer; box-shadow: inset 0 1px 1px rgba(40, 0, 10, .55), inset 0 -1px 0 rgba(255, 220, 225, .3), 0 1px 0 rgba(255, 255, 255, .6); transition: background-color .15s, transform .1s; }
.go:hover { background: #a50f33; }
.go:active { transform: translateY(1px); }
.go:disabled { background: #7d3a4a; cursor: progress; }
.go:focus-visible { outline: 2px solid var(--ink); }

/* ---------- results: what came back, set on the bench ---------- */
.results { position: relative; padding: clamp(150px, 19vw, 300px) var(--edge) clamp(56px, 9vh, 110px); isolation: isolate; }
.results .metal { height: calc(clamp(150px, 19vw, 300px) + 64px); bottom: auto; }
.summary { position: relative; max-width: 24em; margin: clamp(22px, 3vh, 40px) 0 clamp(30px, 6vh, 70px) auto; font: 400 clamp(23px, 3.1vw, 50px)/1.14 var(--text); letter-spacing: -.012em; color: var(--pale); text-wrap: balance; }
.summary strong { font-weight: 700; }
.no-gl .results { padding-top: 40px; }
.no-gl .summary { margin-left: 0; }

.card { display: grid; grid-template-columns: minmax(150px, 3fr) 9fr; column-gap: clamp(20px, 3vw, 48px); padding-block: clamp(20px, 3vh, 34px); border-top: 1px solid rgba(254, 205, 211, .28); }
.card-head h3 { font: 400 clamp(12px, 1vw, 14px)/1.4 var(--wide); }
.badge { display: block; margin-top: 6px; font-size: 16px; font-weight: 600; }
.badge.busy { font-weight: 400; color: #f4bcc4; }
.badge.taken, .row.taken .state { color: #ff9eae; }
.badge.free, .row.free .state { color: #8fe5c6; }
.badge.unchecked, .badge.error, .row.unchecked .state, .row.error .state { color: #e7ccd0; }
.rows { display: grid; }
.row { padding-block: 10px; border-top: 1px solid rgba(254, 205, 211, .14); }
.row:first-child { border-top: 0; padding-top: 0; }
.strip { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; }
.row-title { font: 500 clamp(19px, 2vw, 30px)/1.2 var(--text); color: var(--pale); overflow-wrap: anywhere; min-width: 0; }
.sym { font-weight: 400; color: var(--blush); }
.state { font-weight: 600; white-space: nowrap; }
.row-meta, .more, .empty { margin-top: 5px; color: #f4c7cd; max-width: 62ch; }
.empty { margin-top: 0; font-size: clamp(17px, 1.4vw, 21px); color: var(--blush); }
.row-links { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 18px; margin-top: 4px; }
.row-links a { min-height: 40px; display: inline-flex; align-items: center; }
.ext { color: inherit; }
.btn-sm { padding: 0 14px; border-radius: 2px; background: var(--crimson); color: var(--pale); text-decoration: none; }
.skeleton { height: 16px; margin-bottom: 11px; max-width: 34em; background: rgba(254, 205, 211, .16); }
.skeleton:nth-child(2) { width: 62%; }

/* ---------- checks: one turned plate per clash ---------- */
.checks { position: relative; padding-top: clamp(64px, 13vh, 150px); }
.checks > h2 { position: relative; z-index: 2; margin-inline: var(--edge); max-width: 11.5em; font: 400 clamp(36px, 6.9vw, 112px)/.98 var(--text); letter-spacing: -.03em; color: var(--pale); }
.intro { position: relative; z-index: 2; margin: clamp(14px, 2.4vh, 26px) var(--edge) 0; max-width: 24em; font-size: clamp(16px, 1.3vw, 20px); }
.chapter { position: relative; min-height: min(100vh, 880px); display: flex; align-items: center; padding: clamp(36px, 7vh, 80px) var(--edge); }
.chapter-copy { position: relative; z-index: 2; width: min(34%, 31em); }
.no-gl .chapter { min-height: 0; }
.ch-handle { justify-content: flex-end; }
.ch-ticker { margin-top: -6vh; }
.ch-domain { min-height: min(112vh, 980px); align-items: flex-end; justify-content: flex-end; }
.ch-domain .chapter-copy { width: min(46%, 38em); }
.chapter h3 { font: 500 clamp(24px, 2.5vw, 38px)/1.1 var(--text); letter-spacing: -.012em; color: var(--pale); }
.chapter-copy > p { margin-top: 12px; }
.from { color: #f4c7cd; font-size: 15px; }
.from .ext { display: inline-block; padding-block: 6px; }
.tlds { font: 400 clamp(12px, 1vw, 14px)/1.7 var(--wide); color: var(--pale); }
.legend { margin-top: clamp(14px, 2.6vh, 24px); display: grid; gap: 7px; font-size: 15px; line-height: 1.38; }
.legend div { display: grid; grid-template-columns: 8.6em minmax(0, 1fr); column-gap: 14px; }
.mark { font-weight: 600; }
.mark.taken { color: #ff9eae; }
.mark.free { color: #8fe5c6; }
.mark.unchecked, .mark.error { color: #eed7da; }
.legend dd { color: #f4c7cd; }

/* ---------- how: the same answer, in the enamel colour ---------- */
.how { position: relative; background: var(--crimson); color: var(--pale); padding: clamp(60px, 13vh, 150px) var(--edge) clamp(130px, 25vh, 280px); }
.how h2 { font: 400 clamp(12px, 1vw, 14px)/1.4 var(--wide); }
.sentences { margin-top: clamp(26px, 6vh, 60px); counter-reset: none; }
.sentences li { font: 400 clamp(29px, 5.3vw, 88px)/1.04 var(--text); letter-spacing: -.024em; max-width: 15.5em; text-wrap: pretty; opacity: var(--lit, 1); }
.sentences li + li { margin-top: clamp(28px, 7vh, 76px); }
.sentences li:nth-child(2) { margin-left: clamp(0px, 16vw, 300px); max-width: 13em; }
.sentences li:nth-child(3) { margin-left: clamp(0px, 5vw, 90px); }

/* ---------- sources: a large sheet with the names cut into it ---------- */
.sources { position: relative; margin-top: clamp(-190px, -14vh, -70px); color: var(--ink); isolation: isolate; }
.source-sheet { position: relative; margin-left: 0; margin-right: clamp(14px, 6vw, 110px); padding: clamp(30px, 6vh, 64px) var(--edge) clamp(34px, 7vh, 72px); }
.source-sheet h2 { max-width: 19em; font: 500 clamp(19px, 1.9vw, 30px)/1.16 var(--text); letter-spacing: -.01em; }
.src { margin-top: clamp(22px, 4vh, 48px); }
.src p { max-width: 31em; margin-top: 8px; font-size: clamp(15px, 1.1vw, 17px); line-height: 1.42; color: var(--ink); text-shadow: 0 1px 0 rgba(255, 255, 255, .28); }
.src-name { display: inline-block; font-family: var(--wide); text-decoration: none; line-height: 1.02; color: transparent; }
.src-name span { display: inline-block; }
.no-gl .src-name { color: var(--ink); }
.src-name:hover { color: var(--crimson); }
.src-name:focus-visible { outline-color: var(--ink); }
.src-gecko .src-name { font-size: clamp(34px, 8.8vw, 148px); }
.src-dex { margin-left: clamp(0px, 25vw, 480px); }
.src-dex .src-name { font-size: clamp(27px, 5vw, 86px); }
.src-x { display: grid; grid-template-columns: auto minmax(0, 31em); justify-content: start; align-items: end; column-gap: clamp(16px, 2.4vw, 40px); }
.src-x .src-name { font-size: clamp(112px, 25vw, 410px); line-height: .9; }
.src-x p { margin-bottom: clamp(4px, 2vw, 34px); }
.src-reg { margin-top: clamp(20px, 3vh, 34px); margin-left: clamp(0px, 8vw, 150px); }
.src-reg .src-name { font-size: clamp(31px, 6.6vw, 112px); }
.src-reg .src-name span { margin-right: .28em; }
.src-reg p { margin-top: clamp(14px, 2.2vw, 36px); }
.sources-note { max-width: 36em; margin: clamp(26px, 5vh, 50px) 0 0 auto; font-size: clamp(15px, 1.1vw, 17px); line-height: 1.42; text-shadow: 0 1px 0 rgba(255, 255, 255, .28); }

/* ---------- name watch: a blank plate, fixed to the wall ---------- */
.watch { position: relative; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); gap: clamp(26px, 4vw, 70px); align-items: center; padding: clamp(70px, 14vh, 170px) 0 clamp(70px, 14vh, 170px) var(--edge); }
.watch-copy h2 { font: 400 clamp(35px, 5.5vw, 92px)/1 var(--text); letter-spacing: -.028em; color: var(--pale); text-wrap: balance; }
.watch-copy p { margin-top: clamp(14px, 2.6vh, 26px); max-width: 30em; }
.watch-plate { position: relative; color: var(--ink); min-width: 0; isolation: isolate; }
.watch-form { position: relative; display: grid; gap: clamp(16px, 2.6vh, 26px); padding: clamp(36px, 7vh, 72px) var(--edge) clamp(36px, 7vh, 72px) clamp(26px, 4vw, 70px); }
.field label { display: block; font-size: 15px; font-weight: 600; }
.field input { width: 100%; height: 50px; border: 0; padding: 0; background: transparent; color: var(--ink); font: 500 clamp(19px, 1.7vw, 26px) var(--text); border-radius: 0; caret-color: var(--crimson); }
.no-gl .field input { border-bottom: 1px solid var(--ink); }
.field input:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.field input[aria-invalid="true"] { outline: 2px solid var(--cut-red); }
.watch-form .go { grid-area: auto; justify-self: start; padding-inline: 26px; }
.form-msg:empty { display: none; }
.form-msg { font-weight: 600; }
.fine { font-size: 15px; color: var(--ink); text-shadow: 0 1px 0 rgba(255, 255, 255, .28); }

/* ---------- foot ---------- */
.foot { position: relative; overflow: hidden; background: var(--bench-deep); padding: clamp(30px, 6vh, 60px) var(--edge) 0; }
.foot-line { font-size: clamp(18px, 1.7vw, 26px); color: var(--pale); max-width: 24em; }
.foot-note { margin-top: 8px; max-width: 38em; font-size: 15px; color: #f4c7cd; }
.foot-mark { margin: clamp(24px, 5vh, 50px) 0 -.17em calc(var(--edge) * -.3); white-space: nowrap; font: 400 13.4vw/1 var(--wide); color: #5d1529; }

/* ---------- phones: plate above, text below ---------- */
@media (max-width: 760px) {
  .links { gap: 11px; font-size: 13.5px; }
  .brand span { display: none; }
  .plate-foot { grid-template-areas: "hint hint" "cells go"; }
  .cells { flex-direction: column; font-size: 13.5px; }
  .plate-hint { font-size: 13.5px; }
  .go { min-height: 48px; }
  .results { padding-top: 148px; }
  .results .metal { height: 212px; }
  .summary { margin-left: 0; }
  .card { grid-template-columns: 1fr; row-gap: 12px; }
  .chapter, .ch-domain, .ch-handle { display: block; min-height: 0; padding: 0 var(--edge) clamp(34px, 7vh, 54px); margin-top: 0; }
  .chapter .metal { position: relative; inset: auto; width: calc(100% + var(--edge) * 2); height: 78vw; margin: 0 0 -14vw calc(var(--edge) * -1); }
  .chapter-copy, .ch-domain .chapter-copy { width: auto; }
  .ch-ticker { margin-top: 6px; }
  .legend div { grid-template-columns: 7.6em minmax(0, 1fr); column-gap: 10px; }
  .how { padding-bottom: 130px; }
  .sentences li:nth-child(2) { margin-left: 8vw; }
  .sentences li:nth-child(3) { margin-left: 0; }
  .src-dex, .src-reg { margin-left: 0; }
  .src-dex { padding-left: 7vw; }
  .src-x { grid-template-columns: auto minmax(0, 1fr); }
  .watch { grid-template-columns: 1fr; padding-right: 0; }
  .watch-copy { padding-right: var(--edge); }
  .watch-plate { margin-left: calc(var(--edge) * -.2); }
  .watch-form { padding-left: 22px; padding-right: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .plate-field:focus-within .burin { animation: none; }
  * { transition: none !important; }
}
