:root {
  --bg: #0b0d10;
  --bg-elev: #12161c;
  --bg-card: #161b22;
  --line: #2a3340;
  --text: #e8edf4;
  --muted: #9aa7b8;
  --accent: #7ec8c4;
  --accent-2: #c4b07e;
  --warn: #d4a574;
  --fail: #d07a7a;
  --ok: #8fbf88;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --vqx: "VQX02", var(--mono);
  --max: 1120px;
}
@font-face {
  font-family: "VQX02";
  src: url("/assets/vqx-0.2.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+E000-E0FF;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
  font-size: 16px;
}
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
header.site {
  border-bottom: 1px solid var(--line);
  background: rgba(11,13,16,.92);
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(8px);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 3.4rem; gap: 1rem;
}
.brand {
  font-family: var(--mono); letter-spacing: .18em; color: var(--text);
  text-decoration: none; font-weight: 600;
}
nav.site { display: flex; gap: .85rem; flex-wrap: wrap; }
nav.site a { color: var(--muted); text-decoration: none; font-size: .92rem; }
nav.site a:hover { color: var(--text); }
.hero { padding: 3.2rem 0 2.4rem; }
.kicker {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .14em;
  color: var(--accent); text-transform: uppercase;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: .12em; margin: .4rem 0 .2rem; }
.sub { color: var(--muted); font-size: 1.15rem; max-width: 40rem; }
.glyph-stream, .glyph-stream {
  font-family: var(--vqx);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  letter-spacing: .12em;
  line-height: 1.4;
  margin: 1.4rem 0;
  color: var(--text);
  word-break: break-all;
}
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  border: 1px solid var(--line); background: var(--bg-card);
  color: var(--text); text-decoration: none; padding: .55rem .9rem;
  border-radius: 4px; font-size: .92rem;
}
.btn.primary { border-color: var(--accent); color: var(--accent); }
.btn:hover { border-color: var(--text); }
section { padding: 2.2rem 0; border-top: 1px solid var(--line); }
h2 { font-size: 1.35rem; margin: 0 0 .8rem; letter-spacing: .04em; }
h3 { font-size: 1.05rem; margin: 1.2rem 0 .4rem; }
p, li { color: var(--text); }
.muted { color: var(--muted); }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 6px; padding: 1rem 1.05rem;
}
.card h3 { margin-top: 0; }
code, pre, .mono { font-family: var(--mono); }
pre {
  background: #0a0c0f; border: 1px solid var(--line);
  padding: 0.9rem; overflow-x: auto; font-size: .82rem;
  border-radius: 4px;
}
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: .4rem .3rem; vertical-align: top; }
.codec {
  display: grid; gap: 1rem; grid-template-columns: 1fr 1fr;
}
@media (max-width: 800px) {
  .codec { grid-template-columns: 1fr; }
  nav.site { gap: .55rem; }
  nav.site a { font-size: .82rem; }
}
textarea, input[type="text"] {
  width: 100%; background: #0a0c0f; color: var(--text);
  border: 1px solid var(--line); border-radius: 4px;
  font-family: var(--mono); padding: .6rem; font-size: .88rem;
}
button.ctl {
  background: var(--bg-elev); color: var(--text); border: 1px solid var(--line);
  padding: .4rem .7rem; border-radius: 4px; cursor: pointer;
}
label.chk { display: flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .9rem; }
.out-glyphs {
  min-height: 2.4rem; font-family: var(--vqx); font-size: 1.8rem;
  letter-spacing: .1em; word-break: break-all;
}
.status { font-family: var(--mono); font-size: .8rem; color: var(--ok); }
.status.err { color: var(--fail); }
.beacon-big {
  font-family: var(--vqx); font-size: 2.4rem; letter-spacing: .16em;
}
footer {
  border-top: 1px solid var(--line); padding: 1.6rem 0 2.4rem;
  color: var(--muted); font-size: .88rem;
}
.preview-row, .preview-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.preview-cell {
  width: 7.2rem; border: 1px solid var(--line); padding: .5rem;
  background: var(--bg-elev); text-align: center;
}
.preview-cell .g { font-family: var(--vqx); font-size: 1.7rem; display: block; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
