/* pqrbtc.org: one stylesheet, no external fonts, no frameworks. */
:root {
  --ink: #16131d;
  --ink-2: #4a4458;
  --ink-3: #7a7389;
  --paper: #fbfaf7;
  --paper-2: #f2eff7;
  --line: #e3dfea;
  --violet: #6d28d9;
  --violet-2: #8b5cf6;
  --violet-deep: #3b1a7a;
  --night: #120d1f;
  --good: #0f7b55;
  --bad: #b4232c;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --r: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 17px/1.6 var(--sans); color: var(--ink); background: var(--paper); text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }
a { color: var(--violet); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--violet-deep); }
:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Header */
header.site { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 19px; letter-spacing: -0.01em; }
header nav { display: flex; gap: 22px; margin-left: auto; }
header nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
header nav a:hover, header nav a[aria-current] { color: var(--ink); }
header nav a[aria-current] { box-shadow: inset 0 -2px var(--violet-2); }
@media (max-width: 900px) { header nav { display: none; } .bar .btn { margin-left: auto; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; background: var(--violet); color: #fff; text-decoration: none; font-weight: 650; font-size: 16px; transition: background .15s ease, transform .15s ease; }
.btn:hover { background: var(--violet-deep); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.small { padding: 8px 16px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); color: var(--ink); }
.on-night .btn.ghost { color: #fff; box-shadow: inset 0 0 0 1.5px #ffffff40; }

/* Type */
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 .5em; }
h1 { font-size: clamp(40px, 6.4vw, 76px); font-weight: 800; letter-spacing: -0.04em; }
h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 780; }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(19px, 2vw, 23px); line-height: 1.5; color: var(--ink-2); max-width: 40em; }
.eyebrow { font: 600 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--violet); margin-bottom: 18px; display: block; }
.mono { font-family: var(--mono); }

/* Sections */
section { padding: clamp(64px, 9vw, 120px) 0; }
section + section { border-top: 1px solid var(--line); }
.on-night { background: var(--night); color: #efeaf8; border-top: 0 !important; }
.on-night h2, .on-night h3 { color: #fff; }
.on-night .lead, .on-night p { color: #c9c0dc; }
.on-night a { color: #c4b1ff; }
.tint { background: var(--paper-2); }

/* Hero */
.hero { padding-top: clamp(56px, 8vw, 110px); }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: center; }
.hero h1 .soft { color: var(--ink-3); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-mark { position: relative; justify-self: center; width: min(340px, 80vw); aspect-ratio: 1; }
.hero-mark img { width: 100%; filter: drop-shadow(0 30px 60px #5b21b640); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-mark { width: 180px; order: -1; justify-self: start; } }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 64px; border-top: 1px solid var(--line); }
.facts div { padding: 22px 20px 0 0; }
.facts b { display: block; font: 750 30px/1.1 var(--sans); letter-spacing: -0.03em; }
.facts span { color: var(--ink-3); font-size: 14px; }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, 1fr); row-gap: 20px; } }

/* The time comparison: the signature element */
.race { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 40px 0 28px; }
.lane { border-radius: var(--r); padding: 28px 28px 24px; background: #ffffff0a; box-shadow: inset 0 0 0 1px #ffffff1a; }
.lane .who { font: 600 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: #a99fc0; }
.lane .t { font: 800 clamp(56px, 9vw, 112px)/1 var(--sans); letter-spacing: -0.05em; margin: 18px 0 10px; color: #fff; }
.lane .t small { font-size: .32em; letter-spacing: -0.01em; font-weight: 650; color: #c9c0dc; margin-left: 6px; }
.lane.us { background: linear-gradient(160deg, #6d28d9, #3b1a7a); box-shadow: none; }
.track { height: 8px; border-radius: 99px; background: #ffffff1f; overflow: hidden; margin-top: 18px; }
.track i { display: block; height: 100%; background: #fff; border-radius: 99px; }
@media (max-width: 760px) { .race { grid-template-columns: 1fr; } }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-weight: 650; color: var(--ink-2); background: var(--paper-2); font-size: 14px; }
td:first-child { color: var(--ink-2); font-weight: 600; white-space: nowrap; }
td.us, th.us { background: #f6f1ff; }
.on-night .table-wrap { background: #ffffff08; box-shadow: inset 0 0 0 1px #ffffff1c; }
.on-night th { background: #ffffff10; color: #d8d0ea; }
.on-night td { border-color: #ffffff14; color: #e6e0f3; }
.on-night td:first-child { color: #b9afcf; }
.on-night td.big { font-weight: 750; color: #fff; }

/* Feature grid */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; margin-top: 48px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 56px; margin-top: 40px; }
@media (max-width: 860px) { .grid3, .grid2 { grid-template-columns: 1fr; } }
.feature .num { font: 600 13px/1 var(--mono); color: var(--violet); display: block; margin-bottom: 14px; }
.feature p { color: var(--ink-2); }

/* Split section */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* Terminal / code */
pre, .term { white-space: pre; font: 14.5px/1.65 var(--mono); background: var(--night); color: #e8e2f6; border-radius: var(--r); padding: 22px 24px; overflow-x: auto; }
.term .c { color: #8c82a3; }
.term .p { color: #c4b1ff; }
code { font-family: var(--mono); font-size: .92em; background: var(--paper-2); padding: .12em .38em; border-radius: 6px; }
pre code { background: none; padding: 0; font-size: inherit; }

/* Name card */
.namecard { border-radius: 20px; padding: 28px; background: #fff; box-shadow: 0 1px 0 var(--line), 0 30px 60px -30px #3b1a7a40, inset 0 0 0 1px var(--line); }
.namecard .handle { font: 800 clamp(34px, 4.5vw, 52px)/1 var(--sans); letter-spacing: -0.04em; }
.namecard .handle span { color: var(--violet); }
.namecard dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 24px 0 0; font-size: 15px; }
.namecard dt { color: var(--ink-3); }
.namecard dd { margin: 0; font-family: var(--mono); font-size: 14px; overflow-wrap: anywhere; }

/* Callout */
.note { border-left: 3px solid var(--violet-2); padding: 4px 0 4px 20px; color: var(--ink-2); margin: 28px 0; }
.status { display: inline-flex; gap: 8px; align-items: center; font: 600 13px/1 var(--mono); padding: 8px 12px; border-radius: 99px; background: #fff4d6; color: #7a5200; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #e0a100; }

/* Steps */
.steps { counter-reset: s; display: grid; gap: 0; margin-top: 40px; }
.steps > div { counter-increment: s; display: grid; grid-template-columns: 72px 1fr; padding: 28px 0; border-top: 1px solid var(--line); }
.steps > div::before { content: counter(s, decimal-leading-zero); font: 600 15px/1.6 var(--mono); color: var(--violet); }
.steps h3 { margin-bottom: .35em; }
.steps p { color: var(--ink-2); max-width: 44em; }

/* Documents from docs/ */
.doc { width: min(780px, 100% - 48px); margin: 0 auto; padding: 72px 0 96px; }
.doc h1 { font-size: clamp(36px, 5vw, 56px); }
.doc h2 { font-size: 30px; margin-top: 2em; }
.doc h3 { margin-top: 1.6em; }
.doc table { margin: 1.4em 0; font-size: 15px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); border-radius: 10px; display: block; overflow-x: auto; }
.doc td:first-child { white-space: normal; }
.doc blockquote { margin: 1.6em 0; padding: 2px 0 2px 20px; border-left: 3px solid var(--violet-2); color: var(--ink-2); }
.doc img { border-radius: 8px; }
.doc li { margin: .3em 0; }

/* Footer */
footer.site { background: var(--night); color: #b9afcf; padding: 72px 0 40px; font-size: 15px; }
footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
footer .brand { color: #fff; margin-bottom: 14px; }
footer h2 { font: 600 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #8c82a3; margin-bottom: 16px; }
footer .cols a:not(.brand) { display: block; color: #ddd5ee; text-decoration: none; margin-bottom: 9px; }
footer .cols a:hover { color: #fff; }
footer .fine { margin-top: 56px; padding-top: 24px; border-top: 1px solid #ffffff1a; font-size: 13px; color: #8c82a3; }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr 1fr; } }
.track i.full { width: 100%; }
.track i.tiny { width: 1.2%; min-width: 6px; }
.fine-print { margin-top: 18px; }
.page-head { padding-bottom: 24px; }
.page-head + section { border-top: 0; padding-top: 24px; }
