:root {
  color-scheme: dark;
  --bg: #0b0e11;
  --panel: #151a1f;
  --panel-2: #1d242a;
  --line: #313a42;
  --text: #eef2f6;
  --muted: #a9b4bd;
  --green: #49dc78;
  --amber: #f0b24d;
  --cyan: #46c4e6;
  --red: #eb4a4a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 130px;
}

a {
  color: var(--cyan);
  text-underline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 20;
  padding: 12px;
  background: var(--panel);
}

.skip-link:focus {
  top: 8px;
}

.home-link {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 14px;
}

.snapshot-date {
  margin-bottom: 16px;
  color: var(--cyan);
  font-weight: 700;
}

.notice {
  margin-bottom: 28px;
  padding: 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: 8px;
  background: var(--panel);
  line-height: 1.55;
}

.notice p {
  margin-top: 8px;
  color: var(--muted);
}

#loadStatus:not(:empty) {
  margin-bottom: 24px;
  line-height: 1.55;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 32px;
  background: rgba(11, 14, 17, 0.94);
  border-bottom: 1px solid var(--line);
}

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

h1 {
  font-size: 24px;
  line-height: 1.15;
}

h2 {
  font-size: 30px;
  line-height: 1.16;
}

h3 {
  font-size: 18px;
}

.eyebrow {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 8px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

main {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 32px;
}

section {
  margin-bottom: 44px;
}

.status-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(420px, 1.3fr);
  gap: 28px;
  align-items: start;
}

.status-copy {
  padding-top: 8px;
}

.status-copy p:last-child,
.section-heading p {
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.55;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px;
}

.metric {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.metric strong {
  display: block;
  font-size: clamp(20px, 4.8vw, 30px);
  line-height: 1.1;
  margin: 10px 0;
  overflow-wrap: anywhere;
}

.metric span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 5px;
  color: #07100a;
  background: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric[data-status*="diagnostic"] span {
  background: var(--amber);
  color: #171006;
}

.metric[data-status*="oracle"] span {
  background: var(--cyan);
  color: #061015;
}

.metric p {
  color: var(--muted);
  line-height: 1.45;
}

.section-heading {
  margin-bottom: 18px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 18px;
}

.shot {
  margin: 0;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.shot img {
  display: block;
  width: 100%;
  aspect-ratio: 1040 / 620;
  height: auto;
  object-fit: contain;
}

.shot .caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  overflow-wrap: anywhere;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: step;
}

.pipeline li {
  counter-increment: step;
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  line-height: 1.45;
}

.pipeline li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--cyan);
  color: #061015;
  font-weight: 800;
}

.artifact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr);
  gap: 16px;
}

.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  padding: 18px;
  min-width: 0;
  line-height: 1.55;
}

dt {
  color: var(--text);
  font-weight: 800;
  margin-top: 14px;
}

dd {
  color: var(--muted);
  margin: 6px 0 0;
  line-height: 1.45;
}

ul {
  padding-left: 18px;
}

li {
  margin-bottom: 10px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

code {
  color: var(--cyan);
}

@media (max-width: 880px) {
  .topbar,
  .status-band,
  .artifact-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .topbar {
    position: static;
    padding: 18px;
  }

  main {
    padding: 18px;
  }

  .metric-grid,
  .gallery,
  .pipeline {
    grid-template-columns: 1fr;
  }

  .status-band,
  .artifact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  html {
    scroll-padding-top: 16px;
  }
}
