:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-soft: #f8fafb;
  --ink: #111827;
  --muted: #667085;
  --line: #d8dee6;
  --line-soft: #e8edf2;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --warn: #b7791f;
  --bad: #b42318;
  --ok: #15803d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 5vw, 56px);
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #0f172a;
  border-radius: 8px;
  background: #111827;
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.15;
}

.brand strong {
  font-size: 15px;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  border-radius: 6px;
  padding: 7px 10px;
  text-decoration: none;
  white-space: nowrap;
}

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

main {
  width: min(1140px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: clamp(28px, 6vw, 76px);
  align-items: end;
  padding: clamp(64px, 10vw, 108px) 0 clamp(42px, 6vw, 72px);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.08;
}

h1 {
  max-width: 820px;
  font-size: 64px;
  font-weight: 780;
}

h2 {
  font-size: 34px;
  font-weight: 760;
}

.lead {
  max-width: 700px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.ops-panel,
.service-card,
.metric,
.status-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.ops-panel {
  padding: 20px;
}

.ops-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.ops-header strong,
.ops-header span {
  display: block;
}

.ops-header strong {
  font-size: 16px;
}

.ops-header span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.signal-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--warn);
  box-shadow: 0 0 0 4px rgba(183, 121, 31, .14);
  transform: translateY(5px);
}

.signal-dot.ok {
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(21, 128, 61, .14);
}

.signal-dot.bad {
  background: var(--bad);
  box-shadow: 0 0 0 4px rgba(180, 35, 24, .14);
}

.ops-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 18px 0 0;
}

.ops-metrics div {
  min-width: 0;
  padding: 14px;
  border-radius: 8px;
  background: var(--surface-soft);
}

.ops-metrics dt,
.metric span,
.service-meta,
.muted {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.ops-metrics dd {
  margin: 5px 0 0;
  font-size: 22px;
  font-weight: 800;
}

.section {
  padding: clamp(42px, 7vw, 76px) 0;
  border-top: 1px solid var(--line);
}

.section.compact {
  padding: clamp(30px, 5vw, 54px) 0;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.text-link {
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.service-card {
  display: flex;
  min-height: 174px;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  text-decoration: none;
}

.service-card:hover {
  border-color: rgba(15, 118, 110, .55);
}

.service-card strong {
  font-size: 22px;
  line-height: 1.15;
}

.service-copy {
  color: var(--muted);
  font-size: 14px;
}

.split {
  display: grid;
  grid-template-columns: minmax(240px, 370px) minmax(0, 1fr);
  gap: clamp(24px, 6vw, 72px);
}

.principle-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.principle-list article {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.principle-list article:last-child {
  border-bottom: 0;
}

.principle-list strong {
  font-size: 15px;
}

.principle-list span {
  color: var(--muted);
}

.status-hero {
  padding: clamp(46px, 8vw, 82px) 0 28px;
}

.status-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.status-title h1 {
  font-size: 56px;
}

.status-chip {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.status-chip .signal-dot {
  transform: none;
}

.timestamp {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

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

.metric {
  min-height: 106px;
  padding: 18px;
}

.metric strong {
  display: block;
  margin-top: 12px;
  font-size: 24px;
}

.status-table {
  overflow: hidden;
}

.service-row {
  display: grid;
  grid-template-columns: 1fr 140px 110px 120px;
  gap: 16px;
  align-items: center;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.service-row:last-child {
  border-bottom: 0;
}

.service-name {
  min-width: 0;
}

.service-name strong {
  display: block;
  font-size: 15px;
}

.service-name span {
  color: var(--muted);
  font-size: 13px;
}

.pill {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.pill.ok {
  background: rgba(21, 128, 61, .11);
  color: var(--ok);
}

.pill.warn {
  background: rgba(183, 121, 31, .12);
  color: var(--warn);
}

.pill.bad {
  background: rgba(180, 35, 24, .10);
  color: var(--bad);
}

@media (max-width: 900px) {
  h1,
  .status-title h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 30px;
  }

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

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

  .service-row {
    grid-template-columns: 1fr 120px;
  }
}

@media (max-width: 620px) {
  h1,
  .status-title h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 26px;
  }

  .lead {
    font-size: 17px;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .nav-links {
    overflow-x: auto;
    justify-content: flex-start;
  }

  .status-title {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .principle-list article,
  .service-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
