:root {
  color-scheme: dark;
  --canvas: #121415;
  --recessed: #0c0e0f;
  --panel: #1a1c1d;
  --panel-bright: #202324;
  --line: #414942;
  --text: #e2e2e3;
  --muted: #b0b3b0;
  --quiet: #858d90;
  --sage: #a1d2ae;
  --sage-deep: #4e7c5d;
  --amber: #ebc077;
  --body-font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono-font: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  margin: 0;
  background:
    linear-gradient(var(--canvas), var(--canvas)) padding-box,
    repeating-linear-gradient(90deg, transparent 0, transparent 79px, rgb(255 255 255 / 0.018) 80px) border-box;
  color: var(--text);
  font-family: var(--body-font);
  font-size: 1rem;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration-color: var(--sage-deep);
  text-underline-offset: 0.2em;
}

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

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.eyebrow,
.wordmark,
nav,
.status,
.cta,
.panel-label,
.stage-number,
.console,
.console-status,
.site-footer {
  font-family: var(--mono-font);
}

h1,
h2,
h3,
p,
dd,
li {
  overflow-wrap: anywhere;
}

.shell {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 2;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.5rem 0.75rem;
  transform: translateY(-200%);
  background: var(--sage);
  color: #06381f;
  font-family: var(--mono-font);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--sage);
  outline-offset: 2px;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.nav-row,
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.wordmark {
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  font-size: 0.75rem;
}

nav a,
.site-footer a {
  text-decoration: none;
}

.status,
.console-status {
  margin: 0;
  color: var(--sage);
  font-size: 0.75rem;
  white-space: nowrap;
}

.status > span:first-child {
  font-size: 0.625rem;
}

.hero,
.path-section,
.console-section {
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.hero {
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.panel-label,
.stage-number {
  color: var(--quiet);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.65fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: end;
}

h1 {
  max-width: 15ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.25rem, 5.4vw, 4.75rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.03;
}

.lede {
  max-width: 39rem;
  margin-bottom: 1.75rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.125rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  border: 1px solid var(--sage);
  padding: 0.75rem 0.9rem;
  background: var(--sage);
  color: #06381f;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
}

.cta:hover {
  background: #bceec9;
  color: #06381f;
}

.hero-readout,
.console {
  border: 1px solid var(--line);
  background: var(--recessed);
}

.hero-readout {
  padding: 1rem;
}

.hero-readout ol {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-family: var(--mono-font);
  font-size: 0.8125rem;
}

.hero-readout li {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 0.5rem;
}

.hero-readout li + li {
  border-top: 1px solid rgb(65 73 66 / 60%);
  padding-top: 0.7rem;
}

.hero-readout span {
  color: var(--sage);
}

.path-section {
  border-bottom: 1px solid var(--line);
  background: #151718;
}

.section-heading,
.console-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.4rem, 3vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.section-heading p,
.console-heading p {
  max-width: 36rem;
  margin-bottom: 0;
  color: var(--muted);
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.path-grid article {
  min-width: 0;
  padding: 1.25rem;
  background: var(--panel);
}

.path-grid article + article {
  border-left: 1px solid var(--line);
}

.path-grid h3 {
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.path-grid article > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.console-section {
  scroll-margin-top: 1rem;
}

.console-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0.85rem;
  color: var(--quiet);
  font-size: 0.6875rem;
}

.console-bar span:last-child {
  text-align: right;
}

.console-bar span:first-child {
  color: var(--amber);
  letter-spacing: 0.18em;
}

.console-content {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.console-request,
.console-log {
  min-width: 0;
  padding: 1.25rem;
}

.console-request {
  border-right: 1px solid var(--line);
}

.console-request > p:nth-child(2) {
  margin-bottom: 1.25rem;
  color: var(--text);
}

dl {
  display: grid;
  gap: 0.6rem;
  margin: 0;
}

dl div {
  display: grid;
  grid-template-columns: 5.75rem minmax(0, 1fr);
  gap: 0.75rem;
  border-top: 1px solid rgb(65 73 66 / 60%);
  padding-top: 0.6rem;
}

dt,
dd {
  margin: 0;
  font-size: 0.75rem;
}

dt {
  color: var(--quiet);
}

dd {
  color: var(--sage);
}

.console-log {
  display: grid;
  align-content: center;
  gap: 0.85rem;
  background: #101213;
}

.console-log p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.console-log span {
  color: var(--sage);
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 0.6875rem;
}

.site-footer p {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .nav-row {
    align-items: flex-start;
    flex-wrap: wrap;
    padding-block: 1rem;
  }

  nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  .hero-grid,
  .console-content {
    grid-template-columns: 1fr;
  }

  .hero-readout {
    max-width: 32rem;
  }

  .section-heading,
  .console-heading {
    display: block;
  }

  .console-heading .console-status {
    margin-top: 1rem;
  }

  .path-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .path-grid article:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .path-grid article:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .console-request {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 420px) {
  .shell {
    width: min(100% - 1.25rem, 72rem);
  }

  .status {
    font-size: 0.6875rem;
  }

  .path-grid {
    grid-template-columns: 1fr;
  }

  .path-grid article + article,
  .path-grid article:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .console-bar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .console-bar span:nth-child(2) {
    display: none;
  }
}

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