:root {
  color-scheme: dark;
  --bg: #090b0e;
  --panel: #0e1217;
  --panel-2: #131920;
  --text: #f2f4f6;
  --muted: #9ba6b2;
  --line: #27313c;
  --red: #f04455;
  --red-dark: #8c1d2b;
  --amber: #f5b642;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 80% 2%, rgba(240, 68, 85, .11), transparent 26rem),
    linear-gradient(180deg, #07090b 0%, var(--bg) 38%, #080a0d 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .7rem 1rem; background: white; color: black; }
.skip-link:focus { top: 1rem; }

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(9,11,14,.88);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-size: .78rem; font-weight: 850; letter-spacing: .16em; }
.brand img { display: block; }
nav { display: flex; gap: 1.2rem; }
nav a, .footer-links a { color: var(--muted); font-size: .84rem; text-decoration: none; }
nav a:hover, .footer-links a:hover { color: var(--text); }

main, footer { max-width: var(--max); margin: 0 auto; }
section { padding: 6.5rem 1.5rem; border-bottom: 1px solid var(--line); }
.hero { min-height: 720px; display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 3rem; padding-top: 7rem; }
.eyebrow, .section-number { color: var(--red); font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
h1 { max-width: 850px; margin: 1.2rem 0 1.6rem; font-size: clamp(4rem, 9vw, 8rem); line-height: .85; letter-spacing: -.07em; }
h1 em { color: var(--red); font-family: Georgia, serif; font-weight: 400; }
h2 { margin: .7rem 0 1.2rem; font-size: clamp(2.3rem, 5vw, 4.8rem); line-height: .98; letter-spacing: -.05em; }
h3 { margin-top: 0; font-size: 1.18rem; }
.lede { max-width: 680px; margin: 0 0 1rem; font-family: Georgia, serif; font-size: clamp(1.45rem, 2.6vw, 2.2rem); line-height: 1.25; }
.intro, .prose, .capa > p, .myth > p, .challenge > p { max-width: 760px; color: #c7ced6; font-size: 1.08rem; }
.hero-mark { display: grid; place-items: center; }
.hero-mark img { width: min(44vw, 520px); filter: drop-shadow(0 0 60px rgba(240,68,85,.18)); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.1rem; border: 1px solid #3c4652; border-radius: 4px; text-decoration: none; font-weight: 750; }
.button:hover { border-color: #687687; background: rgba(255,255,255,.04); }
.button.primary { background: var(--red); border-color: var(--red); color: #fff; }
.button.primary:hover { background: #ff5667; border-color: #ff5667; }

.status-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; padding: 0 1.5rem; background: var(--panel); }
.status-strip div { padding: 1.5rem 1rem; border-right: 1px solid var(--line); }
.status-strip div:last-child { border-right: 0; }
.status-strip span, .ledger dt { display: block; color: var(--muted); font-size: .68rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.status-strip strong { display: block; margin-top: .2rem; font-size: .94rem; }
.status-strip .no strong { color: var(--red); }

.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 5rem; }
.prose p:first-child { margin-top: 0; }
.release { background: linear-gradient(145deg, rgba(255,255,255,.025), transparent 55%); }
.section-heading { max-width: 900px; margin-bottom: 3rem; }
.ledger { border-top: 1px solid var(--line); }
.ledger div { display: grid; grid-template-columns: 190px 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.ledger dd { margin: 0; overflow-wrap: anywhere; }
.hash, code { font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; }
.fine-print { color: var(--muted); font-size: .84rem; }

.capa { position: relative; margin: 5rem 1.5rem; padding: 4rem; border: 1px solid var(--red-dark); background: linear-gradient(145deg, rgba(140,29,43,.24), rgba(14,18,23,.85)); }
.capa::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--red); }
.capa-flag { display: inline-flex; padding: .35rem .6rem; margin-bottom: 1.4rem; background: var(--red); color: white; font-size: .7rem; font-weight: 900; letter-spacing: .12em; }
.capa h2 { max-width: 920px; }
.capa code { color: #ff9aa5; overflow-wrap: anywhere; }
.text-link { display: inline-block; margin-top: .7rem; color: #f4c2c8; font-weight: 750; text-underline-offset: .3em; }

.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 1.3rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.steps li > span { color: var(--red); font-family: ui-monospace, monospace; font-size: .78rem; }
.steps strong { font-size: 1.1rem; }
.steps p { margin: .15rem 0 0; color: var(--muted); }

.limits-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.limits-grid article { min-height: 190px; padding: 1.6rem; border: 1px solid var(--line); background: var(--panel); }
.limits-grid p { color: var(--muted); }
.limits-grid .negative { grid-column: 1 / -1; border-color: var(--red-dark); }
.myth blockquote { max-width: 950px; margin: 1rem 0 2rem; color: #f3d8db; font-family: Georgia, serif; font-size: clamp(2rem, 4.5vw, 4.2rem); line-height: 1.05; }

.network { background: linear-gradient(145deg, rgba(255,255,255,.022), transparent 62%); }
.site-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.site-card { display: flex; flex-direction: column; min-height: 210px; padding: 1.4rem; border: 1px solid var(--line); background: var(--panel); text-decoration: none; transition: border-color .18s ease, transform .18s ease, background .18s ease; }
.site-card:hover { border-color: var(--red); background: var(--panel-2); transform: translateY(-2px); }
.site-card strong { font-size: 1.14rem; }
.site-card p { flex: 1; margin: .65rem 0 1.2rem; color: var(--muted); font-size: .92rem; }
.site-card span { color: #f4c2c8; font-size: .75rem; overflow-wrap: anywhere; }

.verify { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
pre { overflow-x: auto; padding: 1.2rem; border: 1px solid var(--line); background: #050607; color: #d9e1e8; }
.verify > div:last-child > p { color: var(--muted); }
.challenge { text-align: center; }
.challenge h2, .challenge > p { margin-left: auto; margin-right: auto; }
.challenge .button { margin-top: 1rem; }

footer { padding: 3rem 1.5rem 4rem; color: var(--muted); }
.footer-brand { color: var(--text); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.3rem 0; }
footer > p { font-size: .72rem; letter-spacing: .1em; }

@media (max-width: 820px) {
  .masthead nav { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 5rem; }
  .hero-mark { display: grid; order: -1; }
  .hero-mark img { width: min(88vw, 440px); }
  .status-strip { grid-template-columns: repeat(2, 1fr); }
  .status-strip div { border-bottom: 1px solid var(--line); }
  .split, .verify { grid-template-columns: 1fr; gap: 2rem; }
  .capa { margin: 3rem 1rem; padding: 2rem 1.4rem; }
  .limits-grid { grid-template-columns: 1fr; }
  .limits-grid .negative { grid-column: auto; }
  .site-grid { grid-template-columns: 1fr; }
  .ledger div { grid-template-columns: 1fr; gap: .4rem; }
  section { padding: 4.5rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
