:root {
  color-scheme: dark;
  --ink: #f8f6ff;
  --muted: #aaa4b8;
  --ground: #111017;
  --card: #191720;
  --raised: #211e2a;
  --line: rgba(248,246,255,.11);
  --violet: #bda5ff;
  --green: #7ee1a5;
  --red: #ff8d89;
  --gray: #777181;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 75% -10%, rgba(189,165,255,.15), transparent 36rem), var(--ground); color: var(--ink); }
a { color: inherit; text-underline-offset: .22em; }
.topbar, main, footer { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.topbar, footer { display: flex; min-height: 72px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: 11px; align-items: center; font-weight: 760; text-decoration: none; }
.brand span { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 50%; background: var(--violet); color: #17121f; font: 800 13px/1 ui-monospace, monospace; box-shadow: 0 0 0 6px rgba(189,165,255,.1); }
nav { display: flex; gap: 22px; }
nav a { color: var(--muted); font-size: 14px; text-decoration: none; }
nav a:hover, nav a:focus-visible { color: var(--ink); }
.hero { padding: clamp(76px, 12vw, 145px) 0 68px; }
.kicker { margin: 0 0 14px; color: var(--violet); font: 700 11px/1.2 ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { text-wrap: pretty; }
h1, h2 { text-wrap: balance; }
h1 { max-width: 950px; margin: 0; font-size: clamp(45px, 8vw, 92px); line-height: .98; letter-spacing: -.06em; }
h2 { margin: 0; font-size: clamp(27px, 4vw, 42px); line-height: 1.05; letter-spacing: -.04em; }
h3 { margin: 0; font-size: 16px; }
.lede { max-width: 730px; margin: 28px 0 34px; color: var(--muted); font-size: clamp(16px, 2vw, 20px); line-height: 1.65; }
.switcher { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); }
.switcher button { min-height: 42px; padding: 0 17px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: 650 13px/1 inherit; cursor: pointer; transition: color 160ms, background-color 160ms, transform 160ms; }
.switcher button:hover { color: var(--ink); }
.switcher button:active { transform: scale(.97); }
.switcher button.active { background: var(--violet); color: #17121f; }
button:focus-visible, a:focus-visible { outline: 3px solid rgba(189,165,255,.35); outline-offset: 2px; }
.verdict { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; padding: clamp(24px, 4vw, 38px); border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: 0 24px 70px rgba(0,0,0,.23); }
.verdict-mark { display: grid; width: 84px; height: 84px; place-items: center; border-radius: 18px; background: var(--green); color: #0e2116; font: 800 26px/1 ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.verdict.failed .verdict-mark { background: var(--red); color: #2b0e0d; }
.verdict p:last-child { margin: 10px 0 0; color: var(--muted); line-height: 1.55; }
.suite { padding: 92px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 11px; }
.legend span { display: flex; align-items: center; gap: 7px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; }
.pass { background: var(--green); }
.fail { background: var(--red); }
.skip { background: var(--gray); }
.levels { display: grid; gap: 10px; }
.level { display: grid; grid-template-columns: 54px minmax(150px,.42fr) 1fr; gap: 18px; align-items: start; padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: var(--card); }
.level-number { color: var(--violet); font: 750 13px/1.4 ui-monospace, monospace; }
.level-title p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.checks { display: flex; flex-wrap: wrap; gap: 7px; }
.check { display: inline-flex; gap: 7px; align-items: center; padding: 7px 9px; border-radius: 7px; background: var(--raised); color: var(--muted); font: 600 11px/1.2 ui-monospace, monospace; }
.check::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gray); }
.check.pass::before { background: var(--green); }
.check.fail::before { background: var(--red); }
.principle { display: grid; grid-template-columns: auto minmax(220px,.65fr) 1fr; gap: 24px; align-items: start; padding: 38px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quote-mark { color: var(--violet); font: 800 54px/.7 Georgia, serif; }
blockquote { margin: 0; font-size: clamp(24px, 3vw, 36px); font-weight: 700; line-height: 1.15; letter-spacing: -.035em; }
.principle p { margin: 0; color: var(--muted); line-height: 1.65; }
.run-it { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 7vw, 90px); align-items: end; padding: 90px 0; }
pre { margin: 0; padding: 22px; overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; background: #0b0a0f; color: var(--green); font: 500 13px/1.75 ui-monospace, monospace; }
footer { min-height: 90px; border-top: 1px solid var(--line); border-bottom: 0; color: var(--muted); font-size: 12px; }
@media (max-width: 760px) {
  .section-head, footer { align-items: flex-start; flex-direction: column; }
  .level { grid-template-columns: 45px 1fr; }
  .checks { grid-column: 2; }
  .principle, .run-it { grid-template-columns: 1fr; }
  footer { justify-content: center; gap: 8px; }
}
@media (max-width: 500px) { .verdict { grid-template-columns: 1fr; } .verdict-mark { width: 64px; height: 64px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .switcher button { transition: none; } }
