:root {
  --bg: #050505;
  --bg2: #0d0d0c;
  --ink: #ece7dc;
  --mute: #9a948a;
  --line: #24221f;
  --or: #FF6A00;
  --ok: #7bd88f;
  --bad: #ff5a4a;
  --serif: "Cormorant Garamond", "EB Garamond", Garamond, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mono: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--serif);
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(1200px 600px at 80% -10%, rgba(255,106,0,.07), transparent 60%);
}
a { color: var(--ink); text-decoration-color: var(--or); text-underline-offset: 3px; }
a:hover { color: var(--or); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; }
code, pre, .k, .h, .b, .st, nav, .num, .btn, dt, .built, .note { font-family: var(--mono); }
code { font-size: .86em; color: #f4c79f; }
.dim { color: var(--mute); font-weight: 400; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--or); color: #000; padding: .5em 1em; z-index: 10; }
.skip:focus { left: 1em; }

.top {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1180px; margin: 0 auto; padding: 18px 24px; font-size: 13px; letter-spacing: .04em;
}
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; }
.top ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.top ul a { text-decoration: none; color: var(--mute); }
.top ul a:hover { color: var(--or); }

.cover { margin: 0 auto; position: relative; width: 100%; max-width: min(1600px, calc(88vh * 16 / 9)); }
.cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%); }
@media (max-width: 1100px) { .cover img { -webkit-mask-image: none; mask-image: none; } }
.cover::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(transparent, var(--bg)); }

.intro { max-width: 820px; margin: -40px auto 0; padding: 0 24px 40px; position: relative; text-align: center; }
h1, h2, h3 { font-weight: 500; letter-spacing: .01em; line-height: 1.15; }
h1 { font-size: clamp(30px, 4.6vw, 54px); margin: 0 0 .4em; }
h1::after { content: ""; display: block; width: 64px; height: 2px; background: var(--or); margin: .45em auto 0; }
.lede { font-size: clamp(18px, 2vw, 21px); color: #d8d2c6; margin: 0 auto 1.6em; }
.lede em { color: var(--or); font-style: italic; }
.cta, .controls { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  padding: 11px 18px; border: 1px solid var(--or); background: var(--or); color: #0a0a0a;
  text-decoration: none; border-radius: 2px; transition: background .2s, color .2s;
}
.btn:hover { background: transparent; color: var(--or); }
.btn.ghost { background: transparent; color: var(--ink); border-color: #4a463f; }
.btn.ghost:hover { border-color: var(--or); color: var(--or); }

main section { max-width: 1080px; margin: 0 auto; padding: 72px 24px; border-top: 1px solid var(--line); }
h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 0 0 .5em; }
.num { color: var(--or); font-size: .45em; vertical-align: middle; margin-right: .6em; letter-spacing: .1em; }
.sub { color: #cfc9bd; max-width: 70ch; margin: 0 0 2em; }
h3 { font-size: 22px; margin: 0 0 .35em; }

.grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); counter-reset: p; }
.grid li { background: var(--bg); padding: 26px 22px; counter-increment: p; position: relative; }
.grid li::before { content: "0" counter(p); font-family: var(--mono); font-size: 12px; color: var(--or); display: block; margin-bottom: 14px; }
.grid p { margin: 0; color: #cfc9bd; font-size: 16px; }

.links { display: flex; align-items: stretch; gap: 0; margin: 0 0 28px; overflow-x: auto; padding-bottom: 6px; }
.block {
  flex: 1 1 0; min-width: 200px; border: 1px solid #3a3631; padding: 14px 16px; background: var(--bg2);
  display: flex; flex-direction: column; gap: 4px; position: relative; transition: border-color .4s, box-shadow .4s;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0 50%);
}
.block .k { font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: .08em; }
.block .h { font-size: 18px; color: var(--ink); }
.block .b { font-size: 11px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.block .st { font-size: 11px; height: 1em; letter-spacing: .1em; }
.block.genesis .h { color: #5d5850; }
.block.busy { border-color: var(--or); box-shadow: inset 0 0 0 1px var(--or); }
.block.ok { border-color: var(--ok); }
.block.ok .st { color: var(--ok); }
.block.bad { border-color: var(--bad); box-shadow: inset 0 0 0 1px var(--bad); }
.block.bad .st { color: var(--bad); }
.block.forged .b { color: var(--bad); text-decoration: line-through; }
.arrow { flex: 0 0 34px; align-self: center; height: 2px; background: linear-gradient(90deg, #3a3631, var(--or)); position: relative; }
.arrow::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left-color: var(--or); border-right: 0; }

.term { border: 1px solid #2c2925; background: #080807; border-radius: 6px; overflow: hidden; }
.bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #121110; border-bottom: 1px solid #23211e; font: 12px var(--mono); color: var(--mute); }
.bar i { width: 10px; height: 10px; border-radius: 50%; background: #2e2b27; }
.bar i:first-child { background: var(--or); }
.bar span { margin-left: 8px; }
pre { margin: 0; padding: 18px 20px; overflow-x: auto; font-size: 13px; line-height: 1.7; color: #d9d4c9; }
pre .p { color: var(--or); }
pre .ok { color: var(--ok); font-weight: 600; }
pre .bad { color: var(--bad); font-weight: 600; }
.controls { justify-content: flex-start; margin-top: 18px; }
.note { font-size: 12px; color: var(--mute); max-width: 80ch; }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 22px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; column-gap: 10px; }
.steps li::before { content: counter(s, upper-roman) "."; font-family: var(--serif); font-size: 26px; color: var(--or); grid-row: span 2; line-height: 1.1; }
.steps pre { background: #0b0b0a; border: 1px solid var(--line); border-left: 2px solid var(--or); border-radius: 2px; }
.steps h3 .dim { font-family: var(--mono); font-size: 12px; margin-left: 8px; }
.docs { margin-top: 2em; font-family: var(--mono); font-size: 14px; }

.proof dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.proof dl div { background: var(--bg); padding: 18px 20px; }
dt { font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }
dd { margin: 0; font-size: 16px; }

.built { text-align: center; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); padding: 40px 24px; margin: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

footer { max-width: 1080px; margin: 0 auto; padding: 36px 24px 56px; text-align: center; font-size: 15px; }
footer p { margin: .3em 0; }
footer .dim { font-family: var(--mono); font-size: 12px; }

@media (max-width: 720px) {
  .top ul { gap: 14px; }
  .top ul li:nth-child(3) { display: none; }
  .intro { margin-top: -10px; }
  .links { flex-direction: column; }
  .arrow { width: 2px; height: 22px; flex-basis: 22px; background: linear-gradient(#3a3631, var(--or)); }
  .arrow::after { right: -4px; top: auto; bottom: -1px; border: 5px solid transparent; border-top-color: var(--or); border-bottom: 0; }
  .block { clip-path: none; min-width: 0; }
  .steps li { grid-template-columns: 34px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
