:root {
  --paper: #f2f4f7;
  --ink: #181a26;
  --velvet: #33245e;
  --ice: #dde5f0;
  --muted: #5b6070;
  --line: #d2d7e0;
  --surface: #ffffff;
  --serif: "Young Serif", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12131b; --ink: #eceef4; --velvet: #b6a5f0; --ice: #1f2232;
    --muted: #9ba1b3; --line: #2b2e3e; --surface: #191b26;
  }
}
:root[data-theme="dark"] {
  --paper: #12131b; --ink: #eceef4; --velvet: #b6a5f0; --ice: #1f2232;
  --muted: #9ba1b3; --line: #2b2e3e; --surface: #191b26;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.55 var(--sans);
}
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--velvet); outline-offset: 2px; }

.top, main, .foot { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.top { display: flex; justify-content: space-between; align-items: baseline; padding-top: 22px; }
.mark { font: 22px/1 var(--serif); text-decoration: none; }
.toplink { font-weight: 500; text-underline-offset: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
h1 { font-size: clamp(38px, 7vw, 60px); line-height: 1.04; margin: 64px 0 18px; max-width: 13ch; }
h2 { font-size: 28px; line-height: 1.15; margin: 0 0 12px; }
h3 { font-size: 21px; margin: 0 0 4px; }
.lede { font-size: 19px; max-width: 52ch; color: var(--muted); margin: 0; }
.lede strong { color: var(--ink); font-weight: 600; }

/* The address bar is the one loud element on the page. */
.demo { margin: 40px 0 0; }
.bar {
  display: flex; align-items: center; min-height: 72px; padding: 0 22px;
  background: var(--surface); border: 1.5px solid var(--ink); border-radius: 999px;
  font: 500 clamp(18px, 3.6vw, 27px)/1.2 var(--sans); overflow: hidden; white-space: nowrap;
}
.prefix { color: var(--velvet); font-weight: 600; }
.typed { color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.caret { width: 2px; height: 1.1em; background: var(--velvet); margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.result {
  margin: 14px 0 0 22px; padding: 18px 22px; background: var(--ice); border-radius: 18px;
  max-width: 520px;
}
.result.show { animation: open 420ms cubic-bezier(.2,.8,.2,1); }
@keyframes open { from { opacity: 0; transform: translateY(-6px); } }
.found { margin: 0 0 10px; font-weight: 600; }
.result ul { list-style: none; margin: 0; padding: 0; }
.result li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--line); }
.result li span:last-child { color: var(--muted); text-align: right; }
.fine { margin: 10px 0 0; font-size: 13px; color: var(--muted); }

section { margin-top: 88px; }
.join p { max-width: 52ch; margin: 0 0 20px; color: var(--muted); }
form { display: grid; gap: 6px; max-width: 460px; }
label { font-weight: 500; font-size: 15px; margin-top: 10px; }
.opt { color: var(--muted); font-weight: 400; }
input {
  font: inherit; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--ink);
}
input:focus { border-color: var(--velvet); }
button {
  margin-top: 16px; font: 600 17px/1 var(--sans); padding: 16px 22px; border: 0; border-radius: 999px;
  background: var(--velvet); color: var(--paper); cursor: pointer; justify-self: start;
}
button[disabled] { opacity: .6; cursor: default; }
.status { min-height: 1.5em; margin: 8px 0 0; font-weight: 500; }
.status.error { color: #b3261e; }

.steps ol { list-style: none; counter-reset: step; margin: 20px 0 0; padding: 0; display: grid; gap: 26px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; }
.steps li::before {
  content: counter(step); grid-row: span 2; width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--ink); display: grid; place-items: center; font: 18px/1 var(--serif);
}
.steps p { margin: 0; color: var(--muted); max-width: 52ch; }

.details dl { margin: 18px 0 0; }
.details div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.details dt { font-weight: 600; }
.details dd { margin: 0; color: var(--muted); }

.foot { margin-top: 96px; padding-bottom: 40px; font-size: 14px; color: var(--muted); }
.foot p { margin: 0 0 8px; max-width: 62ch; }

@media (max-width: 560px) {
  h1 { margin-top: 44px; }
  .bar { min-height: 60px; padding: 0 18px; }
  .result { margin-left: 0; }
  .details div { grid-template-columns: 1fr; gap: 2px; }
  section { margin-top: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .caret { animation: none; }
  .result.show { animation: none; }
}

.legal h1 { max-width: none; }
.legal section { margin-top: 40px; }
.legal p { max-width: 62ch; color: var(--muted); }
