@font-face { font-family: "Berkeley Mono"; src: url("assets/berkeley-mono.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #171717;
  --ink-2: #525252;
  --ink-3: #737373;
  --rule: #e5e5e5;
  --accent: #7ccf00;
  --accent-deep: #5ea500;
  --mono: "Berkeley Mono", "Courier New", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  /* The address specimen uses the interface font, the one browsers draw the address bar in. */
  --ui: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
@supports (color: oklch(0% 0 0)) {
  :root { --accent: oklch(76.8% 0.233 130.85); --accent-deep: oklch(64.8% 0.2 131.684); }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
h1, h2, p, figure, ul { margin: 0; }
h1, h2 { font-family: var(--mono); font-weight: 400; text-wrap: balance; }
code { font-family: var(--mono); }
img { display: block; max-width: 100%; }
.accent { color: var(--accent); }

.page-shell { max-width: 1440px; margin: auto; padding: 0 5.2%; }
.skip-link { position: absolute; z-index: 10; left: 20px; top: 12px; padding: 10px 16px; background: var(--ink); color: var(--paper); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

/* Header. The wordmark keeps at least the height of its ï (about 17px at 120px wide) clear on every side. */
.site-header { min-height: 88px; padding-block: 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--rule); }
.header-brand { display: block; flex-shrink: 0; }
.brand-wordmark { width: 120px; height: auto; }
.header-link { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; }

.text-link, .inspect-link, .header-link { text-decoration: underline; text-decoration-color: #a3a3a3; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.text-link:hover, .inspect-link:hover, .header-link:hover { text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.header-link { text-decoration-color: transparent; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 5%; align-items: center; padding: 40px 0 56px; }
.hero-copy { min-width: 0; }
.hero h1 { font-size: clamp(76px, 8.3vw, 119px); letter-spacing: -.085em; line-height: .96; margin: 0 0 24px -6px; }
.hero-deck { font: clamp(20px, 1.6vw, 23px)/1.4 var(--mono); letter-spacing: -.045em; }
.hero-description { color: var(--ink-2); max-width: 41ch; margin-top: 16px; }
.demo-notice { margin-top: 18px; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.demo-notice::before { content: ""; width: 9px; height: 9px; background: var(--accent); flex-shrink: 0; }
.inspect-link { min-height: 44px; display: inline-flex; align-items: center; gap: 14px; margin-top: 8px; font-size: 14px; }
.artwork { width: 100%; max-width: 540px; min-width: 0; justify-self: end; }
.artwork-frame { position: relative; aspect-ratio: 1; isolation: isolate; overflow: hidden; background: var(--paper); }
.illusion-poster, .illusion-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.motion-toggle { position: absolute; bottom: 12px; right: 12px; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; background: #ffffffeb; border: 1px solid #d4d4d4; color: var(--ink); }
.motion-toggle svg { fill: currentColor; }
.motion-toggle .icon-play, .motion-toggle[aria-pressed="true"] .icon-pause { display: none; }
.motion-toggle[aria-pressed="true"] .icon-play { display: block; }
.motion-toggle:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.illusion-canvas.is-inspecting { cursor: none; }
.artwork figcaption { font-size: 14px; color: var(--ink-3); padding-top: 12px; }

/* Shared section headings */
.specimen h2, .protect h2 { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.25; letter-spacing: -.05em; }

/* Address specimen */
.specimen { border-top: 1px solid var(--rule); padding: 48px 0 64px; }
.section-topline { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
/* The lever slides from the person to the computer; the thumb sits under the view on show. */
.format-switch { position: relative; display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.lever { position: relative; width: 96px; height: 48px; display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border: 1px solid var(--ink); background: var(--paper); }
.lever-thumb { position: absolute; top: 3px; left: 3px; width: calc(50% - 3px); height: calc(100% - 6px); background: var(--ink); transition: transform .28s cubic-bezier(.3, 1.3, .5, 1); }
.lever[aria-checked="true"] .lever-thumb { transform: translateX(100%); }
.lever-end { position: relative; display: grid; place-items: center; color: var(--ink-3); transition: color .2s; }
.lever-end svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.lever[aria-checked="false"] .lever-end:nth-child(2), .lever[aria-checked="true"] .lever-end:last-child { color: var(--paper); }
.lever:hover .lever-end { color: var(--ink); }
.lever:hover[aria-checked="false"] .lever-end:nth-child(2), .lever:hover[aria-checked="true"] .lever-end:last-child { color: var(--paper); }
/* An invisible ring keeps the small (?) at a 44px touch target. */
.format-help { position: relative; width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 1px solid var(--ink-3); border-radius: 50%; background: transparent; font: 13px/1 var(--mono); color: var(--ink-2); }
.format-help::after { content: ""; position: absolute; inset: -8px; }
.format-help:hover, .format-help[aria-expanded="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.format-tip { position: absolute; z-index: 5; top: calc(100% + 10px); right: 0; width: min(21rem, calc(100vw - 48px)); padding: 12px 14px; background: var(--ink); color: var(--paper); font-size: 14px; line-height: 1.5; }
.format-tip::before { content: ""; position: absolute; top: -6px; right: 11px; border: 6px solid transparent; border-top: 0; border-bottom-color: var(--ink); }

.example-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.picker-label { font-size: 14px; color: var(--ink-3); }
.picker-controls { display: flex; align-items: center; gap: 6px; min-width: 0; }
.picker-step, .picker-trigger { min-height: 44px; border: 1px solid var(--rule); background: transparent; }
.picker-step { width: 44px; display: grid; place-items: center; padding: 0; color: var(--ink-2); }
.picker-step svg, .picker-chevron { fill: none; stroke: currentColor; stroke-width: 1.5; }
.picker-step:hover { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.picker { position: relative; }
.picker-trigger { width: 18rem; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 14px; font-size: 14px; text-align: left; }
.picker-trigger:hover, .picker-trigger[aria-expanded="true"] { border-color: var(--ink); }
.picker-value, .picker-list li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.picker-value { flex: 1 1 auto; overflow: hidden; }
.picker-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.favicon { width: 20px; height: 20px; flex-shrink: 0; object-fit: contain; }
.picker-list { position: absolute; z-index: 5; top: calc(100% + 4px); left: 0; width: 100%; max-height: min(22rem, 60vh); overflow-y: auto; margin: 0; padding: 4px; list-style: none; background: var(--paper); border: 1px solid var(--ink); box-shadow: 0 8px 24px #0000001a; }
.picker-list:focus { outline: none; }
.picker-list li { min-height: 40px; padding: 6px 10px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.picker-list li.is-active { background: #f5f5f5; color: var(--ink); }
.picker-list li[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.picker-list li[aria-selected="true"] .here-badge { color: #d4d4d4; }
.picker-count { min-width: 4.5em; padding-left: 6px; font: 13px var(--mono); color: var(--ink-3); }
.here-badge { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.here-badge::before { content: ""; width: 7px; height: 7px; background: var(--accent); flex-shrink: 0; }

/* Rows scale with the longer line (--chars) so every lookalike fits on one line. */
.specimen-rows { --fit: 1.35; container-type: inline-size; margin-top: 20px; padding-block: 20px; border-block: 1px solid var(--rule); }
.domain-row { display: grid; grid-template-columns: 7rem minmax(0, 1fr); column-gap: 24px; align-items: baseline; }
.row-label { font-size: 14px; color: var(--ink-3); }
.domain-line { font-family: var(--ui); font-weight: 400; letter-spacing: -.01em; line-height: 1.12; white-space: nowrap; font-size: clamp(17px, calc((100cqi - 7rem - 24px) * var(--fit) / var(--chars, 9)), 128px); }
.specimen-rows[data-format="punycode"] { --fit: 1.48; }
.specimen-rows[data-format="punycode"] .domain-line { font-size: clamp(14px, calc((100cqi - 7rem - 24px) * var(--fit) / var(--chars, 19)), 72px); }
.domain-line mark {
  color: var(--ink); background-color: transparent;
  background-image: linear-gradient(var(--accent), var(--accent)); background-repeat: no-repeat; background-size: 100% 80%; background-position: 0 62%;
  padding-inline: .03em; margin-inline: -.03em;
}
.domain-line mark.is-sweeping { animation: sweep 520ms cubic-bezier(.2, .7, .2, 1); }
@keyframes sweep { from { background-size: 0% 80%; } to { background-size: 100% 80%; } }
.specimen-caption { font-size: 14px; color: var(--ink-3); margin-top: 12px; }
.specimen-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 5%; margin-top: 36px; }
.specimen-copy p { color: var(--ink-2); max-width: 60ch; }
.inline-code { font-size: .88em; color: var(--ink); background: #f5f5f5; padding: 1px 5px; white-space: nowrap; }

/* Protection and research */
.protect { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 7%; border-top: 1px solid var(--rule); padding: 56px 0 64px; }
.tips { list-style: none; padding: 0; margin-top: 24px; max-width: 62ch; border-bottom: 1px solid var(--rule); }
.tips li { padding: 16px 0; border-top: 1px solid var(--rule); color: var(--ink-2); }
.tips strong { display: block; color: var(--ink); font-weight: 600; }
.research { align-self: start; }
.research h2 { font-size: clamp(36px, 3.6vw, 52px); line-height: 1.1; letter-spacing: -.07em; }
.research-description { color: var(--ink-2); max-width: 40ch; margin-top: 14px; }
.research-actions { display: grid; justify-items: start; gap: 24px; margin-top: 24px; }
.research-button { background: var(--accent); color: var(--ink); min-height: 48px; display: inline-flex; align-items: center; justify-content: space-between; gap: 36px; padding: 12px 18px; font-size: 16px; transition: background .2s; }
.research-button span { font-size: 20px; line-height: 1; }
.research-button:hover { background: var(--accent-deep); }
.qr-link { display: grid; grid-template-columns: auto auto; align-items: center; gap: 16px; font-size: 13px; color: var(--ink-2); }
.qr-link img { width: 104px; height: 104px; border: 1px solid var(--rule); }
.qr-link:hover span { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Footer. The brand tile carries its own clear space around the submark. */
.site-footer { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 64px; padding: 40px 0 48px; border-top: 1px solid var(--rule); }
.footer-brand { align-self: start; }
.footer-brand img { width: 56px; height: 56px; }
.footer-copy p { color: var(--ink-2); max-width: 60ch; }
.footer-link { min-height: 44px; display: inline-flex; align-items: center; gap: 12px; font-size: 14px; }
.footer-copy .disclaimer { font-size: 13px; color: var(--ink-3); margin-top: 8px; max-width: 70ch; }

@media (max-width: 900px) {
  .hero { gap: 4%; }
  .hero h1 { font-size: clamp(68px, 9vw, 81px); }
  .hero-description { max-width: 36ch; }
  .section-topline { flex-direction: column; align-items: flex-start; gap: 18px; }
  .protect { grid-template-columns: 1fr; gap: 48px; }
  .research { border-top: 1px solid var(--rule); padding-top: 40px; }
}
@media (max-width: 640px) {
  .page-shell { padding-inline: 24px; }
  .site-header { min-height: 84px; padding-block: 18px; }
  .hero { grid-template-columns: 1fr; padding-top: 30px; padding-bottom: 40px; gap: 22px; }
  .hero h1 { font-size: clamp(76px, 20vw, 110px); margin-bottom: 22px; }
  .hero-deck { font-size: 20px; }
  .hero-description { max-width: 42ch; }
  .artwork { justify-self: center; max-width: 420px; }
  .artwork figcaption { padding-top: 8px; }
  .specimen { padding-block: 36px 44px; }
  .format-switch { width: 100%; }
  .format-help { margin-left: auto; }
  .format-tip { left: 0; right: auto; }
  .domain-row { grid-template-columns: 1fr; row-gap: 2px; }
  .domain-row + .domain-row { margin-top: 14px; }
  .specimen-rows { --fit: 1.53; }
  .specimen-rows[data-format="punycode"] { --fit: 1.6; }
  .domain-line { font-size: clamp(17px, calc(100cqi * var(--fit) / var(--chars, 9)), 72px); }
  .specimen-rows[data-format="punycode"] .domain-line { font-size: clamp(12px, calc(100cqi * var(--fit) / var(--chars, 19)), 36px); }
  .example-picker { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 10px; }
  .picker { flex: 1 1 0; min-width: 0; }
  .picker-trigger { width: 100%; }
  .picker-count { display: none; }
  .specimen-copy { grid-template-columns: 1fr; gap: 16px; margin-top: 28px; }
  .protect { padding-block: 40px 48px; gap: 40px; }
  .qr-link img { width: 96px; height: 96px; }
  .site-footer { grid-template-columns: 1fr; row-gap: 32px; padding-block: 36px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
