@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; }
.domain-controls { display: flex; padding: 3px; border: 1px solid var(--rule); gap: 3px; flex-shrink: 0; }
.domain-controls button { min-height: 44px; border: 0; padding: 8px 14px; font-size: 14px; background: transparent; color: var(--ink-2); }
.domain-controls button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.domain-controls button:hover:not([aria-pressed="true"]) { color: var(--ink); background: #f5f5f5; }

.specimen-rows { container-type: inline-size; margin-top: 28px; 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(40px, calc((100cqi - 7rem - 24px) * .15), 128px); }
.specimen-rows[data-format="punycode"] .domain-line { font-size: clamp(17px, calc((100cqi - 7rem - 24px) * .078), 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 submark keeps half its height (about 30px at 56px wide) clear on every side. */
.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: auto; }
.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; }
  .domain-controls { width: 100%; }
  .domain-controls button { flex: 1 1 auto; padding-inline: 12px; white-space: nowrap; }
  .domain-row { grid-template-columns: 1fr; row-gap: 2px; }
  .domain-row + .domain-row { margin-top: 14px; }
  .domain-line { font-size: clamp(36px, 17cqi, 72px); }
  .specimen-rows[data-format="punycode"] .domain-line { font-size: clamp(15px, 8.4cqi, 36px); }
  .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; }
}
