/* spacemanslot.net — single stylesheet. Dark, editorial, telemetry-inspired. */
:root {
  --bg: #05070D;
  --surface: #0B1020;
  --raised: #12182A;
  --line: #1C2438;
  --line-2: #2A3552;
  --text: #E9EEF7;
  --muted: #94A0B8;
  --a1: #69D5FF;
  --a2: #A6FFCB;
  --warn: #FFC58A;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "Segoe UI Mono", Menlo, Consolas, monospace;
  --wrap: 74rem;
  --r: 10px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.7 var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--a1); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #B4EAFF; }
:focus-visible { outline: 2px solid var(--a2); outline-offset: 3px; border-radius: 3px; }
::selection { background: #1D4E66; color: #fff; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.015em; font-weight: 650; margin: 0; text-wrap: balance; }
p { margin: 0 0 1.15em; }
main { flex: 1 0 auto; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.15rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--a2); color: #04130B; padding: .6rem 1rem; z-index: 50; font-weight: 600; }
.skip:focus { left: .5rem; top: .5rem; }

/* ---------- header */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(5, 7, 13, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--text); text-decoration: none; font: 600 .98rem/1 var(--mono); letter-spacing: .01em; padding: .5rem 0; }
.brand svg { color: var(--a1); }
.brand i { font-style: normal; color: var(--muted); }
.nav-btn { display: none; background: none; border: 1px solid var(--line-2); color: var(--text); font: 500 .82rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 0 .95rem; min-height: 2.75rem; min-width: 2.75rem; border-radius: 7px; cursor: pointer; touch-action: manipulation; }
.nav-btn[aria-expanded="true"] { border-color: var(--a1); color: var(--a1); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem 1.35rem; }
.site-nav a { display: block; padding: .55rem 0; color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--text); }
.site-nav a.on, .site-nav a[aria-current] { color: var(--text); border-bottom-color: var(--a1); }
@media (max-width: 47.99rem) {
  .js .nav-btn { display: block; }
  .site-nav { flex-basis: 100%; }
  .js .site-nav { display: none; }
  .js .site-nav.open { display: block; padding-bottom: .8rem; }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .js .site-nav a.on, .js .site-nav a[aria-current] { border-bottom-color: var(--line); color: var(--a1); }
}

/* ---------- page head */
.page { padding-block: 1.6rem 4rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .15rem .5rem; margin: 0 0 1.6rem; padding: 0; font: 500 .78rem/1.5 var(--mono); letter-spacing: .03em; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--line-2); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--a1); }
.crumbs [aria-current] { color: var(--text); }
.eyebrow { font: 500 .76rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--a2); margin: 0 0 .9rem; }
.page-head { max-width: 50rem; padding-bottom: 1.8rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(1.95rem, 5.4vw, 3rem); letter-spacing: -0.028em; }
.lede { font-size: clamp(1.1rem, 2.4vw, 1.28rem); line-height: 1.6; color: #C9D2E3; margin: 1.1rem 0 0; }
.meta { font: 400 .8rem/1 var(--mono); color: var(--muted); margin: 1.3rem 0 0; }

/* ---------- article grid + toc */
.page-grid { display: grid; gap: 1.5rem 3.5rem; }
.prose { min-width: 0; max-width: 46rem; }
.toc { font-size: .92rem; }
.toc details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: .85rem 1rem; }
.toc summary { cursor: pointer; font: 500 .76rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; margin: .7rem 0 0; padding: 0; }
.toc li { border-left: 1px solid var(--line-2); }
.toc a { display: block; padding: .32rem 0 .32rem .85rem; margin-left: -1px; border-left: 1px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.4; }
.toc a:hover { color: var(--text); border-left-color: var(--a1); }
@media (min-width: 64rem) {
  .page-grid { grid-template-columns: minmax(0, 46rem) 15rem; justify-content: space-between; }
  .page-grid.no-toc { grid-template-columns: minmax(0, 46rem); justify-content: start; }
  .toc { order: 2; }
  .toc details { position: sticky; top: 5rem; background: none; border: 0; padding: 0; }
  .toc summary { list-style: none; cursor: default; pointer-events: none; }
  .toc summary::-webkit-details-marker { display: none; }
}

/* ---------- prose */
.prose h2 { font-size: clamp(1.4rem, 3.4vw, 1.78rem); margin: 2.6rem 0 .9rem; padding-top: .2rem; }
.prose h3 { font-size: 1.16rem; margin: 1.9rem 0 .6rem; letter-spacing: -0.005em; }
.prose h4 { font-size: 1rem; margin: 1.4rem 0 .4rem; }
.prose > :first-child, .prose > section:first-child > h2 { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1.25em; padding-left: 1.3rem; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--a1); }
.prose strong { font-weight: 650; color: #fff; }
.prose code, .formula { font-family: var(--mono); font-size: .92em; }
.prose code { background: var(--raised); padding: .12em .4em; border-radius: 4px; }
.formula { display: block; background: var(--surface); border: 1px solid var(--line); border-left: 2px solid var(--a1); border-radius: 0 var(--r) var(--r) 0; padding: .95rem 1.1rem; margin: 0 0 1.3em; color: var(--a2); overflow-x: auto; white-space: nowrap; }
.prose sup a { text-decoration: none; font: 500 .72em var(--mono); padding: 0 .1em; }

.takeaways { background: linear-gradient(180deg, var(--surface), rgba(11, 16, 32, .5)); border: 1px solid var(--line); border-radius: var(--r); padding: 1.3rem 1.3rem .5rem; margin-bottom: 2.2rem; position: relative; }
.takeaways::before { content: ""; position: absolute; left: 0; top: 1.2rem; bottom: 1.2rem; width: 2px; background: var(--a2); border-radius: 2px; }
.prose .takeaways h2 { font: 500 .76rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--a2); margin: 0 0 .95rem; padding: 0; }
.takeaways ul { list-style: none; padding: 0; }
.takeaways li { position: relative; padding-left: 1.4rem; margin-bottom: .65em; line-height: 1.55; }
.takeaways li::before { content: ""; position: absolute; left: 0; top: .62em; width: .5rem; height: 1px; background: var(--a2); }

.callout { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.05rem 1.2rem; margin: 0 0 1.4em; font-size: .98rem; }
.callout > :last-child { margin-bottom: 0; }
.callout-title { font: 500 .75rem/1 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--a1); margin: 0 0 .65rem; }
.callout.warn { border-color: #4A3B26; }
.callout.warn .callout-title { color: var(--warn); }

.table-wrap { overflow-x: auto; margin: 0 0 1.5em; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: .94rem; line-height: 1.5; }
.table-fig { margin: 0 0 1.5em; }
.table-fig .table-wrap { margin: 0; }
.table-fig figcaption { color: var(--muted); font: 400 .78rem/1.5 var(--mono); padding: 0 0 .55rem; }
th, td { text-align: left; padding: .7rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font: 500 .75rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--raised); white-space: nowrap; }
tbody th { font-weight: 600; color: #fff; }
tbody tr:last-child > * { border-bottom: 0; }
table.model td:first-child { font-family: var(--mono); color: var(--a2); white-space: nowrap; }

.steps { list-style: none; counter-reset: s; padding: 0 !important; }
.steps > li { counter-increment: s; position: relative; padding: 0 0 1rem 3rem; margin: 0; }
.steps > li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: .15rem; font: 500 .8rem/1.6 var(--mono); color: var(--a1); border: 1px solid var(--line-2); border-radius: 6px; padding: 0 .4rem; background: var(--surface); }
.steps > li:not(:last-child)::after { content: ""; position: absolute; left: .95rem; top: 2.1rem; bottom: .2rem; width: 1px; background: var(--line-2); }
.steps > li > strong:first-child { display: block; }

.diagram { margin: 0 0 1.6em; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: .8rem .8rem .2rem; }
.diagram figcaption { font-size: .86rem; color: var(--muted); padding: .5rem .3rem .7rem; line-height: 1.5; }
.diagram figcaption span { font-family: var(--mono); font-size: .76rem; opacity: .85; }
.curve { display: block; width: 100%; }
.curve-m, .curve-legend { display: none; }
.curve .g { stroke: var(--line); stroke-width: 1; }
.curve .ax { fill: var(--muted); font: 400 13.5px var(--mono); }
.curve .trace { fill: none; stroke: var(--a1); stroke-width: 2.5; stroke-linecap: round; }
.curve .drop { stroke: var(--line-2); stroke-dasharray: 3 4; }
.curve circle.mk-out { fill: var(--a2); }
.curve circle.mk-half { fill: var(--bg); stroke: var(--a2); stroke-width: 2; }
.curve circle.mk-end { fill: var(--raised); stroke: var(--text); stroke-width: 2; }
.curve .lb { font: 500 14.5px var(--mono); fill: var(--a2); paint-order: stroke; stroke: var(--surface); stroke-width: 4px; }
.curve .end { stroke: var(--text); stroke-width: 2; fill: none; stroke-linecap: round; }
.curve .end-lb { fill: var(--text); }
.curve .num { font: 700 13px var(--mono); fill: var(--a2); }
.curve .num.mk-out { fill: #04130B; }
.curve .num.mk-end { fill: var(--text); }
.curve-legend { list-style: none; margin: .6rem 0 0; padding: 0 .2rem; gap: .35rem 1.1rem; flex-wrap: wrap; font: 500 .9rem/1.4 var(--mono); color: var(--text); }
.curve-legend li { display: flex; align-items: center; gap: .5rem; }
.curve-legend .n { display: inline-flex; width: 1.5rem; height: 1.5rem; border-radius: 50%; align-items: center; justify-content: center; font: 700 .8rem var(--mono); border: 2px solid var(--a2); color: var(--a2); flex: none; }
.curve-legend .n.mk-out { background: var(--a2); color: #04130B; }
.curve-legend .n.mk-end { border-color: var(--text); color: var(--text); background: var(--raised); }
@media (max-width: 40rem) {
  .curve-d { display: none; }
  .curve-m { display: block; }
  .curve-legend { display: flex; }
  /* The mobile variant renders at ~256px on a 320px screen (viewBox 340), so its text is sized up in viewBox units to stay >= 11px. */
  .curve-m .ax { font-size: 14.5px; }
  .curve-m .num { font-size: 15.5px; }
  .curve-m circle.badge { r: 12.5; }
}

.sources { font-size: .9rem; color: var(--muted); }
.sources a { color: var(--muted); }
.sources a:hover { color: var(--a1); }

.faq-item { border-top: 1px solid var(--line); padding: 1.15rem 0 .2rem; }
.faq-item h3 { font-size: 1.08rem; margin: 0 0 .5rem; }
.faq-item p { color: #C9D2E3; }

.explorer { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); padding: 1.2rem; margin: 0 0 1.5em; }
.explorer-title { font: 500 .76rem/1 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--a1); }
.explorer-fields { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); margin-bottom: 1rem; }
.explorer label { display: grid; gap: .35rem; font-size: .86rem; color: var(--muted); }
.explorer input { background: var(--bg); border: 1px solid var(--line-2); border-radius: 7px; color: var(--text); font: 500 1.1rem var(--mono); padding: .6rem .7rem; width: 100%; }
.explorer-out { font-size: 1.05rem; color: var(--text); margin-bottom: .6rem; min-height: 3.2em; }
.explorer-out b { color: var(--a2); font-family: var(--mono); }
.explorer-note { font-size: .84rem; color: var(--muted); margin: 0; }

/* ---------- cards */
.cards { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); margin: 0 0 1.6em; }
@media (min-width: 64rem) {
  .cards:has(> :nth-child(3):last-child), .cards:has(> :nth-child(5):last-child), .cards:has(> :nth-child(6):last-child), .cards:has(> :nth-child(9):last-child) { grid-template-columns: repeat(3, 1fr); }
}
.card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.15rem 1rem; text-decoration: none; color: var(--text); transition: border-color .15s, background .15s, transform .15s; }
.card:hover { border-color: var(--a1); background: var(--raised); color: var(--text); transform: translateY(-1px); }
.card-kicker { font: 500 .75rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.card .card-title { font-size: 1.08rem; margin: .6rem 0 .4rem; color: #fff; letter-spacing: -0.01em; }
.card:hover .card-title { color: var(--a1); }
.card p { font-size: .9rem; line-height: 1.5; color: var(--muted); margin: 0; }
.related { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.related > h2 { font: 500 .78rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.2rem; }

/* ---------- glossary */
.az { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 2rem; }
.az a { font: 500 .85rem/1 var(--mono); border: 1px solid var(--line-2); border-radius: 6px; padding: .5rem .65rem; text-decoration: none; color: var(--text); min-width: 2.2rem; text-align: center; }
.az a:hover { border-color: var(--a1); color: var(--a1); }
.prose .gloss-group h2 { font: 500 1rem/1 var(--mono); color: var(--a2); border-bottom: 1px solid var(--line); padding-bottom: .6rem; margin: 2.2rem 0 0; }
.gloss, .gloss-preview { margin: 0; }
.gloss > div { padding: 1rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 5rem; }
.gloss > div:target { background: var(--surface); box-shadow: -1rem 0 0 var(--surface), 1rem 0 0 var(--surface); }
.gloss dt { font-weight: 650; color: #fff; font-size: 1.05rem; }
.gloss dd { margin: .3rem 0 0; color: #C9D2E3; }
.gloss .more { font-size: .88rem; white-space: nowrap; }
.gloss-preview { display: grid; gap: 0 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.gloss-preview > div { padding: .95rem 0; border-top: 1px solid var(--line); }
.gloss-preview dt { font: 500 .92rem/1.4 var(--mono); }
.gloss-preview dt a { text-decoration: none; color: var(--a2); }
.gloss-preview dt a:hover { text-decoration: underline; }
.gloss-preview dd { margin: .3rem 0 0; color: var(--muted); font-size: .94rem; line-height: 1.55; }

/* ---------- home */
.hero { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; opacity: .5; -webkit-mask-image: radial-gradient(ellipse 80% 90% at 70% 30%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 80% 90% at 70% 30%, #000 10%, transparent 75%); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(40rem 22rem at 85% 0%, rgba(105, 213, 255, .09), transparent 70%); pointer-events: none; }
.hero-in { position: relative; z-index: 1; display: grid; gap: 2.5rem; padding-block: 3.2rem 3.4rem; align-items: center; }
.hero h1 { font-size: clamp(2.15rem, 6.6vw, 3.7rem); letter-spacing: -0.035em; line-height: 1.06; }
.hero h1 em { font-style: normal; color: var(--a1); }
.hero .lede { max-width: 36rem; }
.hero-links { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.btn { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .98rem; padding: .8rem 1.15rem; border-radius: 8px; text-decoration: none; border: 1px solid var(--line-2); color: var(--text); background: var(--surface); }
.btn:hover { border-color: var(--a1); color: var(--a1); }
.btn.primary { background: var(--a1); border-color: var(--a1); color: #04121A; }
.btn.primary:hover { background: #9BE3FF; color: #04121A; }
.panel { background: rgba(11, 16, 32, .82); border: 1px solid var(--line-2); border-radius: 14px; padding: .9rem .9rem .5rem; }
.panel-head { display: flex; justify-content: space-between; gap: 1rem; font: 500 .75rem/1 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); padding: .2rem .3rem .8rem; }
.panel-head span:first-child::before { content: ""; display: inline-block; width: .45rem; height: .45rem; border-radius: 50%; background: var(--a2); margin-right: .5rem; }
.panel-foot { font-size: .8rem; color: var(--muted); padding: .2rem .3rem .5rem; margin: 0; }
@media (min-width: 60rem) { .hero-in { grid-template-columns: 1.08fr .92fr; padding-block: 5rem; gap: 3.5rem; } }

.band { padding-block: 3.4rem; border-bottom: 1px solid var(--line); }
.band.alt { background: linear-gradient(180deg, rgba(11, 16, 32, .55), rgba(11, 16, 32, 0)); }
.band-head { max-width: 44rem; margin-bottom: 1.8rem; }
.band h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); letter-spacing: -0.025em; }
.band-head p { color: #C9D2E3; margin: .8rem 0 0; }
.band .more-link { font-weight: 600; text-decoration: none; }
.band .more-link:hover { text-decoration: underline; }
.split { display: grid; gap: 2rem 3.5rem; }
@media (min-width: 56rem) { .split { grid-template-columns: 1fr 1fr; } }
.split .prose { max-width: none; }
.facts { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.facts li { display: flex; justify-content: space-between; gap: 1.5rem; padding: .8rem 1.1rem; border-bottom: 1px solid var(--line); font-size: .95rem; }
.facts li:last-child { border-bottom: 0; }
.facts span:first-child { color: var(--muted); }
.facts span:last-child { font-family: var(--mono); font-size: .9rem; text-align: right; color: var(--text); }
.band .faq-list { max-width: 48rem; }

/* ---------- footer */
.site-foot { border-top: 1px solid var(--line); background: var(--bg); padding-block: 2.2rem 2.6rem; font-size: .88rem; color: var(--muted); }
.foot-in { display: flex; flex-wrap: wrap; gap: 1.2rem 2.5rem; justify-content: space-between; align-items: flex-start; }
.foot-brand { margin: 0; max-width: 32rem; line-height: 1.6; }
.foot-brand strong { color: var(--text); font: 600 .9rem var(--mono); }
.site-foot ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin: 0; padding: 0; }
.site-foot a { color: var(--muted); text-decoration: none; display: inline-block; padding: .45rem 0; }
.site-foot a:hover { color: var(--a1); }

.t-utility .page-head, .t-about .page-head, .t-contact .page-head { margin-bottom: 1.6rem; }
.notfound { text-align: center; padding-block: 5rem 6rem; }
.notfound .code { font: 500 clamp(3.5rem, 16vw, 7rem)/1 var(--mono); color: var(--a1); letter-spacing: -.04em; margin: 0 0 1rem; }
.notfound h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); margin-bottom: 1rem; }
.notfound p { color: var(--muted); max-width: 34rem; margin-inline: auto; }
.notfound .hero-links { justify-content: center; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card { transition: none; } }
@media print { .site-head, .site-foot, .toc, .related, .nav-btn { display: none; } body { background: #fff; color: #000; } }
