/* Contrast measured 2026-09-28: --muted is 5.69:1 on --bg and 5.45:1 on --panel;
   --line (control outlines) is 3.42:1 and 3.28:1. Check again before changing any. */
:root {
  --bg: #0c0c0b;
  --panel: #121210;
  --ink: #e9e6de;
  --muted: #8e8a81;
  --rule: #2a2925;
  --line: #6a665e;
  --signal: #ffb000;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 400;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 64px 24px; }
.screen, .foot { width: 100%; max-width: 46rem; margin: 0 auto; }
.mark { margin: 0 0 40px;font-weight: 700; font-size: clamp(34px, 7.5vw, 84px); letter-spacing: -0.04em; line-height: 1; }
.mark a { color: inherit; text-decoration: none; }

.panel { border: 1px solid var(--rule); background: var(--panel); font-size: clamp(13px, 1.5vw, 15px); }
.bar { display: flex; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--rule); color: var(--muted); font-size: 12px; }
.rows { padding: 8px 0; }
.row { display: grid; grid-template-columns: 15rem 1fr; align-items: center; gap: 16px; padding: 8px 16px; }
.row .k { color: var(--muted); }
button.opt { font: inherit; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
button.opt:hover .box { color: var(--signal); }
.opt:focus-visible, .cells:focus-visible { outline: 1px dashed var(--signal); outline-offset: 4px; }
.box { color: var(--muted); }
.opt[aria-checked="true"] .box { color: var(--signal); }
.radios { display: flex; gap: 24px; flex-wrap: wrap; }
.meter { display: flex; align-items: center; gap: 12px; }
.cells { display: inline-flex; gap: 3px; cursor: pointer; }
.cells i { width: 12px; height: 16px; border: 1px solid var(--line); }
.cells i.lit { background: var(--signal); border-color: var(--signal); }
.meter output { color: var(--ink); min-width: 4.5em; }

.log { border-top: 1px solid var(--rule); padding: 12px 16px; min-height: calc(2 * 1.6em + 24px); color: var(--muted); font-size: 13px; line-height: 1.6; }
.log p { margin: 0; }
.log .ok { color: var(--signal); }
.cursor { display: inline-block; width: .6em; height: 1.1em; vertical-align: -0.2em; background: var(--signal); animation: blink 1.1s steps(1) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }

/* Terms, privacy, 404 */
.doc { width: 100%; max-width: 46rem; margin: 0 auto; }
.doc .mark { font-size: clamp(24px, 4vw, 32px); margin-bottom: 48px; }
.doc h1 { font-size: 20px; font-weight: 700; margin: 0 0 24px; }
.doc h2 { font-size: 15px; font-weight: 700; margin: 32px 0 8px; }
.doc p { font-size: 14px; line-height: 1.75; margin: 0 0 14px; }
.doc a, .doc .ok { color: var(--signal); }
.doc .mark a { color: var(--ink); }
.doc .muted { color: var(--muted); }
body.page main { justify-content: flex-start; }

footer { border-top: 1px solid var(--rule); padding: 20px 24px 28px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.foot { display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; }
footer p { margin: 0; }
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }
footer nav a { margin-right: 16px; }
@media (max-width: 560px) {
  .row { grid-template-columns: 1fr; gap: 6px; }
}
