/* ==========================================================================
   Empyrean Intelligence - Machines that learn from experience they can verify
   Design System: Instrument Panel / Lab Notebook
   ========================================================================== */

:root {
  /* Fonts */
  --font-serif: "Newsreader", Georgia, serif;
  --font-sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Spacing Scale (8px base) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;

  /* Layout widths */
  --width-prose: 68ch;
  --width-site: 1080px;

  /* Light Theme (default) */
  --bg: #F3F1EC;           /* paper */
  --ink: #17191C;          /* ink */
  --muted: #5B6068;        /* muted ink */
  --rule: #D6D2C8;         /* rule */
  --signal: #0F6E6A;       /* teal signal */
  --signal-bg: rgba(15, 110, 106, 0.08);
  --warning: #B5541C;      /* broken / fails state */
  --warning-bg: rgba(181, 84, 28, 0.08);

  --surface: #ECE8E0;
  --surface-subtle: #FAF9F6;
  --terminal-bg: #1A1D20;
  --terminal-ink: #ECEAE4;
  --diff-del-bg: rgba(181, 84, 28, 0.12);
  --diff-del-text: #8C370B;
  --diff-add-bg: rgba(15, 110, 106, 0.12);
  --diff-add-text: #0B4F4C;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101214;         /* ground */
    --ink: #E7E4DD;        /* ink */
    --muted: #9AA0A8;      /* muted */
    --rule: #2A2E33;       /* rule */
    --signal: #4FB3AC;     /* teal signal */
    --signal-bg: rgba(79, 179, 172, 0.1);
    --warning: #E07A45;    /* broken / fails state */
    --warning-bg: rgba(224, 122, 69, 0.1);

    --surface: #181B1F;
    --surface-subtle: #14171A;
    --terminal-bg: #0B0D0E;
    --terminal-ink: #E7E4DD;
    --diff-del-bg: rgba(224, 122, 69, 0.18);
    --diff-del-text: #FFA575;
    --diff-add-bg: rgba(79, 179, 172, 0.18);
    --diff-add-text: #7FE5DE;
  }
}

/* Explicit data-theme override if toggled */
[data-theme="light"] {
  --bg: #F3F1EC;
  --ink: #17191C;
  --muted: #5B6068;
  --rule: #D6D2C8;
  --signal: #0F6E6A;
  --signal-bg: rgba(15, 110, 106, 0.08);
  --warning: #B5541C;
  --warning-bg: rgba(181, 84, 28, 0.08);
  --surface: #ECE8E0;
  --surface-subtle: #FAF9F6;
  --terminal-bg: #1A1D20;
  --terminal-ink: #ECEAE4;
  --diff-del-bg: rgba(181, 84, 28, 0.12);
  --diff-del-text: #8C370B;
  --diff-add-bg: rgba(15, 110, 106, 0.12);
  --diff-add-text: #0B4F4C;
}

[data-theme="dark"] {
  --bg: #101214;
  --ink: #E7E4DD;
  --muted: #9AA0A8;
  --rule: #2A2E33;
  --signal: #4FB3AC;
  --signal-bg: rgba(79, 179, 172, 0.1);
  --warning: #E07A45;
  --warning-bg: rgba(224, 122, 69, 0.1);
  --surface: #181B1F;
  --surface-subtle: #14171A;
  --terminal-bg: #0B0D0E;
  --terminal-ink: #E7E4DD;
  --diff-del-bg: rgba(224, 122, 69, 0.18);
  --diff-del-text: #FFA575;
  --diff-add-bg: rgba(79, 179, 172, 0.18);
  --diff-add-text: #7FE5DE;
}

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

html {
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.25;
  margin: 0;
}

h1 {
  font-size: 2.25rem;
  letter-spacing: -0.01em;
}

@media (min-width: 640px) {
  h1 { font-size: 2.75rem; }
}

h2 {
  font-size: 1.625rem;
  margin-bottom: var(--space-2);
}

h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-1);
}

p {
  margin: 0 0 var(--space-2) 0;
}

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

a {
  color: var(--signal);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: opacity 0.15s ease;
}

a:hover {
  opacity: 0.8;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

/* Small uppercase mono labels */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: block;
  margin-bottom: var(--space-1);
}

.mono {
  font-family: var(--font-mono);
}

/* Layout Wrappers */
.container {
  width: 100%;
  max-width: var(--width-site);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-2);
  padding-right: var(--space-2);
}

.prose {
  max-width: var(--width-prose);
}

.site-main {
  flex: 1 0 auto;
  padding-bottom: var(--space-8);
}

/* Rules / Separators */
.section-rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: var(--space-6) 0;
}

/* Navigation */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--bg);
  border-bottom: 1px solid var(--rule);
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-wordmark {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
}

.nav-wordmark .location-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
}

.theme-toggle {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 2px;
  text-transform: uppercase;
}

.theme-toggle:hover {
  color: var(--ink);
  border-color: var(--muted);
}

/* Hero Section */
.hero {
  padding-top: var(--space-6);
  padding-bottom: var(--space-4);
}

.hero-mission {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  line-height: 1.3;
  margin-bottom: var(--space-2);
  color: var(--ink);
}

@media (min-width: 640px) {
  .hero-mission {
    font-size: 2.25rem;
  }
}

.hero-position {
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: var(--space-4);
}

/* Hero: the orbit. Deliberately one world (deep space) in both themes, so every color is explicit. */
.hero-space {
  position: relative;
  min-height: calc(100vh - 64px);
  min-height: calc(100svh - 64px);
  overflow: hidden;
  background: #07090C;
  color: #E9E6DF;
}

.orbit-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* soft vignette: the edges fall away into space, nothing sits on top of the system */
.hero-space::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, rgba(7, 9, 12, 0) 55%, rgba(7, 9, 12, 0.75) 100%);
}

/* the legend sits on the bottom edge of the orbit, on the dark ground, so its colors are explicit */
.orbit-legend.orbit-legend-hero {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: var(--space-3);
  justify-content: center;
  padding: 0 var(--space-2);
}

.orbit-legend.orbit-legend-hero a {
  color: #E9E6DF;
}

.orbit-legend.orbit-legend-hero a:focus-visible {
  outline-color: #4FB3AC;
}

.orbit-legend.orbit-legend-hero em {
  color: #8F949B;
}

/* Mission: the statement, on the page's own ground, directly under the orbit */
.mission {
  padding-top: var(--space-10);
  padding-bottom: var(--space-6);
}

.mission .hero-mission {
  font-size: 1.75rem;
  line-height: 1.2;
  text-wrap: balance;
}

.mission-note {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
  margin-bottom: var(--space-3);
}

.mission-cta a {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--signal);
  text-decoration: none;
}

.mission-cta a:hover,
.mission-cta a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Research posts */
.post-head {
  padding-top: var(--space-8);
  padding-bottom: var(--space-4);
}

.post-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  line-height: 1.12;
  text-wrap: balance;
  margin: var(--space-1) 0 var(--space-2);
}

@media (min-width: 640px) {
  .post-title {
    font-size: 3rem;
  }
}

.post-dek {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--muted);
}

.post h2 {
  margin-top: var(--space-6);
}

.post-summary {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: var(--space-3);
  margin-bottom: var(--space-4);
}

.post-summary h2 {
  margin-top: 0;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.post-summary ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-left: 1.1rem;
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
  margin: var(--space-3) 0;
}

.post-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.post-table th,
.post-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

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

.post-table-num td {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.post-note {
  font-size: 0.8125rem;
  color: var(--muted);
}

.post-correction {
  font-size: 0.875rem;
  border-left: 3px solid var(--warning);
  background: var(--warning-bg);
  padding: var(--space-2) var(--space-3);
}

.post-figure {
  margin: var(--space-4) 0;
}

.post-figure figcaption {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: var(--space-2);
}

.bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bar-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr 3rem;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.875rem;
}

.bar-track {
  height: 14px;
  background: var(--surface);
  border-radius: 2px;
  overflow: hidden;
}

.bar {
  display: block;
  height: 100%;
  background: var(--muted);
}

.bar-signal { background: var(--signal); }
.bar-warning { background: var(--warning); }

.bar-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.post-details {
  font-size: 0.875rem;
  color: var(--muted);
}

.post-back {
  margin-top: var(--space-6);
  padding-bottom: var(--space-6);
}

.post-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-8);
  max-width: var(--width-prose);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-3);
  border: 1px solid var(--rule);
  border-radius: 3px;
  color: var(--ink);
  text-decoration: none;
}

.post-card:hover,
.post-card:focus-visible {
  border-color: var(--signal);
}

.post-card-meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.post-card-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.2;
}

.post-card-dek {
  font-size: 0.9375rem;
  color: var(--muted);
}

/* What brings what: an inline diagram drawn from the page tokens, so it follows the theme */
.fit-map {
  margin: var(--space-4) 0 0;
}

.fit-map-svg {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
}

.fit-node rect {
  fill: var(--surface-subtle);
  stroke: var(--rule);
  stroke-width: 1;
}

.fit-node-goal rect {
  fill: var(--ink);
  stroke: var(--ink);
}

.fit-name {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  fill: var(--ink);
}

.fit-node-goal .fit-name {
  fill: var(--bg);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.fit-brings {
  font-family: var(--font-serif);
  font-size: 14px;
  font-style: italic;
  fill: var(--muted);
}

.fit-node-goal .fit-brings {
  fill: var(--bg);
  opacity: 0.75;
}

.fit-edge {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.4;
}

.fit-edge-gate {
  stroke: var(--signal);
  stroke-dasharray: 4 5;
}

.fit-arrowhead {
  fill: var(--muted);
}

.fit-edge-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  fill: var(--signal);
}

.fit-dot-verify { fill: #4FB3AC; }
.fit-dot-sample { fill: #7AB0EC; }
.fit-dot-continual { fill: #E3B866; }
.fit-dot-experience { fill: #B2AAF6; }
.fit-dot-rsi { fill: #E88E9C; }

/* phones: the diagram's text would be too small to read, so the same content is shown as a list */
.fit-map-list {
  display: none;
  max-width: var(--width-prose);
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.fit-map-list li + li {
  margin-top: var(--space-1);
}

@media (max-width: 639px) {
  .fit-map-svg {
    display: none;
  }

  .fit-map-list {
    display: block;
  }
}

.orbit-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.orbit-legend a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--ink);
  text-decoration: none;
}

.orbit-legend a:hover,
.orbit-legend a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.orbit-legend a:focus-visible {
  outline: 1px solid var(--signal);
  outline-offset: 3px;
}

.orbit-legend em {
  font-style: normal;
  color: var(--muted);
}

.orbit-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

.orbit-dot-verify { background: #4FB3AC; box-shadow: 0 0 8px #4FB3AC; }
.orbit-dot-continual { background: #E3B866; box-shadow: 0 0 8px #E3B866; }
.orbit-dot-experience { background: #B2AAF6; box-shadow: 0 0 8px #B2AAF6; }
.orbit-dot-sample { background: #7AB0EC; box-shadow: 0 0 8px #7AB0EC; }
.orbit-dot-rsi { background: #E88E9C; box-shadow: 0 0 8px #E88E9C; }

.orbit-tip {
  position: absolute;
  z-index: 2;
  max-width: 240px;
  padding: 8px 10px;
  pointer-events: none;
  background: rgba(14, 17, 22, 0.92);
  border: 1px solid rgba(233, 230, 223, 0.18);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.45;
  color: #C4C1BA;
}

.orbit-tip strong {
  display: block;
  color: #F4F1EA;
  font-weight: 500;
  letter-spacing: 0.04em;
}

@media (min-width: 640px) {
  .mission .hero-mission {
    font-size: 2.25rem;
  }
}

@media (min-width: 900px) {
  .mission .hero-mission {
    font-size: 2.625rem;
  }
}

.hero-commands {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

/* Terminal / Command Block */
.terminal-block {
  background-color: var(--terminal-bg);
  color: var(--terminal-ink);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: var(--space-2) var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow-x: auto;
  gap: var(--space-2);
}

.terminal-content {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  min-width: 0;
  overflow-x: auto;
}

/* Narrow screens: keep the nav and the orbit inside the viewport */
@media (max-width: 559px) {
  .nav-links {
    gap: var(--space-2);
    font-size: 0.875rem;
  }

  .nav-wordmark {
    font-size: 1.125rem;
  }

  .nav-links li:nth-child(4),
  .nav-links li:nth-child(5) {
    display: none; /* Evidence and Contact: both are sections of this page, one scroll away */
  }
}

.prompt-symbol {
  color: var(--signal);
  user-select: none;
  font-weight: 600;
}

.copy-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--terminal-ink);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  padding: 3px 8px;
  cursor: pointer;
  border-radius: 2px;
  text-transform: uppercase;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.copy-btn.copied {
  border-color: var(--signal);
  color: var(--signal);
}

/* Measurement Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards-grid.cards-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.measurement-card {
  background-color: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-target-name {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--space-1);
}

.card-value {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--warning);
  margin-bottom: 2px;
}

.card-fraction {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: var(--space-2);
}

/* Interval Bar Graphic */
.interval-widget {
  margin: var(--space-2) 0;
}

.interval-scale-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--muted);
  margin-bottom: 3px;
}

.interval-track {
  position: relative;
  height: 6px;
  background-color: var(--rule);
  border-radius: 3px;
  width: 100%;
}

.interval-span {
  position: absolute;
  top: 0;
  height: 100%;
  background-color: var(--warning);
  opacity: 0.45;
  border-radius: 2px;
}

.interval-point {
  position: absolute;
  top: -3px;
  width: 4px;
  height: 12px;
  background-color: var(--warning);
  border-radius: 1px;
  transform: translateX(-50%);
}

.card-interval-text {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--muted);
  margin-top: 3px;
}

.card-limits {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
  margin-top: var(--space-2);
  border-top: 1px dashed var(--rule);
  padding-top: var(--space-1);
}

/* Scoreboard Table */
.table-container {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background-color: var(--surface);
  margin: var(--space-3) 0;
}

.scoreboard-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.8125rem;
}

.scoreboard-table th,
.scoreboard-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}

.scoreboard-table th {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background-color: var(--surface-subtle);
  border-bottom: 1px solid var(--rule);
}

.scoreboard-table tr:last-child td {
  border-bottom: 0;
}

.scoreboard-table td.num {
  font-family: var(--font-mono);
  font-weight: 500;
}

.scoreboard-table td.flagged-pct {
  color: var(--warning);
  font-weight: 600;
}

/* Diff Block */
.diff-block {
  background-color: var(--terminal-bg);
  color: var(--terminal-ink);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.5;
  overflow-x: auto;
  margin: var(--space-2) 0;
}

.diff-del {
  background-color: var(--diff-del-bg);
  color: var(--diff-del-text);
  display: block;
  margin: 0 -16px;
  padding: 0 16px;
}

.diff-add {
  background-color: var(--diff-add-bg);
  color: var(--diff-add-text);
  display: block;
  margin: 0 -16px;
  padding: 0 16px;
}

.diff-info {
  color: var(--muted);
}

/* Real tool output monospace block */
.tool-output {
  background-color: var(--terminal-bg);
  color: var(--terminal-ink);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.55;
  overflow-x: auto;
  white-space: pre;
  margin: var(--space-2) 0;
}

/* 12-Item Requirements Checklist Graphic */
.checklist-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-1);
  margin: var(--space-3) 0;
}

@media (min-width: 640px) {
  .checklist-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 12px;
  background-color: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.status-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.status-yes {
  background-color: var(--signal-bg);
  color: var(--signal);
  border: 1px solid var(--signal);
}

.status-no {
  background-color: var(--warning-bg);
  color: var(--warning);
  border: 1px solid var(--warning);
}

.status-unknown {
  background-color: var(--surface-subtle);
  color: var(--muted);
  border: 1px solid var(--rule);
}

/* Five Problems Grid */
.problems-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.problem-row {
  display: flex;
  flex-direction: column;
  padding: var(--space-2);
  border: 1px solid var(--rule);
  background-color: var(--surface);
  border-radius: 3px;
  gap: 4px;
}

@media (min-width: 640px) {
  .problem-row {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
  }
}

.problem-name {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.problem-status-shipped {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--signal);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.problem-status-research {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Release Cadence Block */
.cadence-timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.timeline-slot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 14px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background-color: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.timeline-slot.shipped {
  border-color: var(--signal);
}

.timeline-slot.upcoming {
  border-style: dashed;
  color: var(--muted);
}

/* Steps (Numbered sequence for how it works) */
.steps-list {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0;
  counter-reset: step-counter;
}

.step-item {
  counter-increment: step-counter;
  position: relative;
  padding-left: var(--space-5);
  margin-bottom: var(--space-3);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.step-item::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--signal);
  background-color: var(--surface);
}

/* Callout Box for Limits */
.limits-callout {
  border-left: 2px solid var(--warning);
  padding: var(--space-2) var(--space-3);
  background-color: var(--warning-bg);
  margin: var(--space-3) 0;
  font-size: 0.875rem;
}

.limits-title {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--warning);
  margin-bottom: var(--space-1);
  font-weight: 600;
}

/* Placeholder styling */
.placeholder {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: var(--space-4) 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
  }
}
