:root {
  --bg: #08080b;
  --fg: #eeeae3;
  --muted: #a39e94;
  --line: #1d1d22;
  --line-strong: #2a2a32;
  --surface: #101014;
  --accent: #e8a54b;
  --live: #7dcc7a;
  --stub: #e8a54b;
  --display: "Instrument Sans", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --measure: 38rem;
  --wide: 68rem;
  --space: 1.25rem;
  --radius: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  background: var(--bg);
  color: var(--fg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  background: var(--bg);
  color: var(--fg);
  letter-spacing: -0.011em;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--fg);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--fg);
}

a[target="_blank"]::after {
  content: none;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

.skip-link {
  position: absolute;
  left: var(--space);
  top: -3rem;
  z-index: 10;
  padding: 0.4rem 0.7rem;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--fg);
  font-size: 0.875rem;
}

.skip-link:focus {
  top: var(--space);
}

.wrap {
  width: min(var(--wide), calc(100% - (var(--space) * 2)));
  margin-inline: auto;
}

.wrap--prose {
  width: min(var(--measure), calc(100% - (var(--space) * 2)));
}

.wrap--dash {
  width: min(var(--wide), calc(100% - (var(--space) * 2)));
}

@media (min-width: 720px) {
  :root {
    --space: 2.5rem;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 1.1rem 0;
  background: rgba(8, 8, 11, 0.84);
  backdrop-filter: blur(14px);
}

.site-header__inner,
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.site-header__inner {
  align-items: center;
}

.site-footer__inner {
  align-items: baseline;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}

.mark {
  display: block;
  width: 1.65rem;
  height: auto;
  flex-shrink: 0;
}

.wordmark {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
}

.auspices {
  margin-left: calc(1.65rem + 0.55rem);
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}

.auspices:hover {
  color: var(--fg);
}

.wordmark[aria-current="page"] {
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.35rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--fg);
}

.nav a[aria-current="page"] {
  text-decoration: none;
  box-shadow: inset 0 -1px 0 var(--fg);
}

main {
  padding: 2.75rem 0 4.5rem;
}

.site-footer {
  padding: 0 0 2.5rem;
}

.site-footer__inner {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--fg);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.footer-auspices {
  margin: 0;
  color: var(--muted);
}

.footer-auspices a {
  color: var(--fg);
}

hr.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 3.5rem 0;
}

.display,
h1.display {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

h1.display {
  margin: 0 0 1.1rem;
  font-size: clamp(3.4rem, 12vw, 7.2rem);
}

h1.page-title {
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--muted);
}

.tagline,
.hero__claim {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--fg);
}

.lede-short,
.subtag,
.hero__lede {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
}

.subtag {
  margin: 0 0 2.25rem;
}

.links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.35rem;
  margin: 1.75rem 0 0;
  font-size: 0.875rem;
}

.links-row a {
  color: var(--muted);
  text-decoration: none;
}

.links-row a:hover {
  color: var(--fg);
}

h2 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.025em;
}

h3 {
  margin: 2rem 0 0.7rem;
  font-size: 1rem;
  font-weight: 600;
}

p {
  margin: 0 0 1.1rem;
}

p:last-child {
  margin-bottom: 0;
}

.lede,
.section p {
  max-width: 40rem;
}

.mono,
.status-panel dd,
.status-table td,
.tape__id,
.snap__id,
.bar__meta,
.find,
.facts dd {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.indicator,
.pip {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--stub);
  flex-shrink: 0;
}

.indicator--stub,
.pip--stub {
  background: var(--stub);
  animation: pulse 1.8s ease-in-out infinite;
}

.indicator--live,
.pip--live {
  background: var(--live);
  animation: pulse 1.8s ease-in-out infinite;
}

.indicator--lg {
  width: 0.55rem;
  height: 0.55rem;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.32;
  }
}

@media (prefers-reduced-motion: reduce) {
  .indicator--stub,
  .indicator--live,
  .pip--stub,
  .pip--live {
    animation: none;
  }
}

/* Landing hero */
.hero {
  padding: 3.25rem 0 3.5rem;
}

.hero h1 {
  max-width: 12ch;
  margin-bottom: 0.85rem;
}

.hero__claim {
  max-width: 22rem;
}

.hero__lede {
  margin-top: 1.15rem;
}

/* Instrument strip — not a boxed dashboard */
.tape {
  display: grid;
  gap: 1.25rem 2rem;
  margin: 0 0 4rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 800px) {
  .tape {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: end;
  }
}

.tape__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.65rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--muted);
}

.tape__live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  line-height: 1;
}

.tape__phase {
  color: var(--accent);
}

.tape--live .tape__phase {
  color: var(--live);
}

.tape__id {
  margin: 0;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  word-break: break-all;
}

.tape__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1.25rem;
  margin: 0;
}

.tape__facts dt,
.snap__facts .k,
.facts dt,
.status-panel dt,
.section-label {
  margin: 0 0 0.2rem;
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.tape__facts dd,
.facts dd {
  margin: 0;
  font-size: 0.875rem;
  color: var(--fg);
}

.tape__more {
  display: inline-block;
  margin: 0.85rem 0 0;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line-strong);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.tape__more:hover {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
}

.split-prose {
  display: grid;
  row-gap: 2.5rem;
}

@media (min-width: 800px) {
  .split-prose {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 4rem;
    row-gap: 2.5rem;
    align-items: start;
  }
}

.subtag + .section,
.section + .section {
  margin-top: 2.75rem;
  padding-top: 2.75rem;
  border-top: 1px solid var(--line);
}

.split-prose > .section {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

@media (min-width: 800px) {
  .split-prose > .section:nth-child(n + 3) {
    padding-top: 1.75rem;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 799px) {
  .split-prose > .section + .section {
    padding-top: 2.5rem;
    border-top: 1px solid var(--line);
  }
}

.split-prose h2 {
  margin-bottom: 0.75rem;
}

.split-prose p {
  color: var(--muted);
}

.split-prose p:first-of-type {
  color: var(--fg);
}

.split-prose pre {
  margin: 0.75rem 0 0;
  padding: 0;
}

/* Status */
.dash-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin: 0 0 2.5rem;
}

.dash-head h1 {
  margin: 0;
}

.dash-head__line {
  margin: 0;
  max-width: 28rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--muted);
}

.status-banner {
  margin: 0 0 1.75rem;
}

h1.status-banner__title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.35rem;
  line-height: 1;
}

.status-banner p {
  margin: 0;
  color: var(--muted);
}

.snap {
  margin: 0 0 2.75rem;
}

.snap__id {
  margin: 0.15rem 0 1.15rem;
  font-size: clamp(1.35rem, 3.4vw, 2.1rem);
  letter-spacing: -0.04em;
  line-height: 1.2;
  word-break: break-all;
}

.snap__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: 0.85rem 1.5rem;
  margin: 0 0 1.35rem;
  padding: 0;
  list-style: none;
}

.snap__facts li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.snap__facts .k {
  display: block;
  margin: 0;
}

.compose {
  display: flex;
  height: 0.45rem;
  overflow: hidden;
  background: var(--line);
}

.compose__seg {
  display: block;
  min-width: 1px;
  height: 100%;
  background: var(--accent);
}

.compose__seg:nth-child(even) {
  background: var(--fg);
  opacity: 0.35;
}

.compose__seg:nth-child(3n) {
  opacity: 0.55;
}

.split {
  display: grid;
  gap: 2.75rem;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 4rem;
    align-items: start;
  }
}

.split__h {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin-bottom: 1.1rem;
}

.split__h h2,
.split h2 {
  margin: 0;
}

.split input[type="search"] {
  width: min(14rem, 100%);
  padding: 0.35rem 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  color: var(--fg);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.split input[type="search"]::placeholder {
  color: var(--muted);
}

.bars {
  display: grid;
  gap: 0.85rem;
}

.bar.is-hidden {
  display: none;
}

.bar__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.3rem;
  font-size: 0.75rem;
}

.bar__meta .muted {
  color: var(--muted);
}

.bar__track {
  height: 4px;
  background: var(--line);
}

.bar__fill {
  display: block;
  height: 100%;
  background: var(--fg);
}

.finds {
  margin: 0;
  padding: 0;
  list-style: none;
}

.find {
  display: grid;
  grid-template-columns: 5.75rem minmax(0, 1fr);
  column-gap: 1rem;
  row-gap: 0.15rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
}

.find:last-child {
  border-bottom: 1px solid var(--line);
}

.find__h {
  grid-column: 2;
  min-width: 0;
  font-size: 0.9375rem;
  color: var(--fg);
}

.find__meta {
  grid-column: 2;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
}

.find__age {
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.connect-card {
  margin-top: 3.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1rem 3rem;
}

@media (min-width: 800px) {
  .connect-card {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
    align-items: start;
  }
}

.connect-card h2 {
  margin: 0 0 0.4rem;
}

.connect-card p {
  color: var(--muted);
}

.connect-card pre,
pre {
  margin: 0;
  padding: 1rem 0;
  overflow-x: auto;
  background: transparent;
  border: 0;
  color: var(--fg);
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.6;
}

code {
  font-family: var(--mono);
  font-size: 0.875em;
}

p code,
li code,
td code {
  font-size: 0.84em;
}

/* Legacy panel + table — used on architecture stack */
.status-panel {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.status-panel--hero {
  margin-top: 0.25rem;
}

.status-panel__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  margin-bottom: 1.05rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.status-panel__phase {
  color: var(--accent);
  text-transform: lowercase;
}

.status-panel--live .status-panel__phase,
.tape--live .tape__phase {
  color: var(--live);
}

.status-panel__updated {
  margin-left: auto;
}

.status-panel__grid,
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem 1.75rem;
  margin: 0;
}

@media (min-width: 800px) {
  .facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.status-panel__grid div,
.facts > div {
  min-width: 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.status-panel dd {
  margin: 0;
  font-size: 0.875rem;
  color: var(--fg);
  word-break: break-all;
}

.status-note {
  margin: 0.9rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.status-table-wrap {
  margin-top: 1.35rem;
  overflow-x: auto;
}

.status-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.status-table caption {
  caption-side: top;
  margin-bottom: 0.55rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
}

.status-table th,
.status-table td {
  padding: 0.45rem 0.75rem 0.45rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.8125rem;
  vertical-align: top;
}

.status-table th {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.headline-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem 1.5rem;
  margin: 0 0 1.5rem;
}

@media (min-width: 720px) {
  .headline-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.headline-stats dt {
  margin: 0 0 0.25rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.headline-stats dd {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  word-break: break-word;
}

.connect {
  margin-top: 2rem;
}

.connect pre {
  margin: 0.75rem 0 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-label {
  margin: 2rem 0 0.65rem;
}

.table-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin: 2rem 0 0.55rem;
}

.table-toolbar .section-label {
  margin: 0;
}

.table-toolbar input[type="search"] {
  width: min(16rem, 100%);
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.range-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.range-tabs button {
  padding: 0.15rem 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.range-tabs button[aria-pressed="true"] {
  color: var(--fg);
  box-shadow: inset 0 -1px 0 var(--fg);
}

.chart-panel {
  margin: 0 0 2.75rem;
  padding: 0;
}

.chart {
  width: 100%;
  height: 11rem;
}

.chart svg {
  display: block;
  width: 100%;
  height: 100%;
}

.chart-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--muted);
}

.status-table tr.is-hidden {
  display: none;
}

.waitlist {
  margin-top: 1.25rem;
  max-width: 28rem;
}

.waitlist label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.waitlist__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.waitlist input[type="email"] {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--fg);
  font-family: var(--body);
  font-size: 1rem;
}

.waitlist button {
  padding: 0.65rem 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--fg);
  font-family: var(--body);
  font-size: 0.9375rem;
  cursor: pointer;
}

.waitlist button:hover {
  border-color: var(--fg);
}

.waitlist button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.waitlist__status {
  min-height: 1.4em;
  margin: 0.7rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.waitlist__status[data-state="ok"] {
  color: var(--fg);
}

.waitlist__status[data-state="err"] {
  color: var(--stub);
}

.faq details {
  margin: 0;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}

.faq details:first-of-type {
  border-top: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-weight: 500;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: "";
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin-right: 0.7rem;
  border: 1px solid var(--muted);
  vertical-align: 0.15rem;
}

.faq details[open] summary::before {
  background: var(--fg);
  border-color: var(--fg);
}

.faq details p {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.faq details a {
  color: var(--fg);
}

.download {
  display: inline-block;
  margin: 0 0 2rem;
  font-size: 0.875rem;
}

.arch h2 {
  margin-top: 2.75rem;
}

.arch h2:first-child {
  margin-top: 0;
}

.arch ul,
.arch ol {
  margin: 0 0 1.15rem;
  padding-left: 1.2rem;
}

.arch li {
  margin-bottom: 0.4rem;
}

.arch table {
  width: 100%;
  margin: 0 0 1.25rem;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.arch th,
.arch td {
  padding: 0.45rem 0.6rem 0.45rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.arch th {
  color: var(--muted);
  font-weight: 500;
}

.toc {
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--muted);
}

.toc li {
  margin: 0.25rem 0;
}

.toc a {
  color: var(--muted);
  text-decoration: none;
}

.toc a:hover {
  color: var(--fg);
}
