:root {
  --paper: #E4E8EB;
  --card: #F3F5F7;
  --ink: #16202B;
  --ink-soft: #61707E;
  --rule: #C3CCD3;
  --nominal: #2E6B5E;
  --attention: #A9761C;
  --critical: #93301F;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  padding: 20px 16px 56px;
}

.wrap { max-width: 720px; margin: 0 auto; }

.mono { font-family: 'IBM Plex Mono', monospace; font-variant-numeric: tabular-nums; }

.eyebrow {
  font-size: 10px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-soft);
}

.masthead {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 2px;
}
.masthead h1 { font-size: 19px; font-weight: 700; letter-spacing: -.015em; }
.masthead .sub { font-size: 11px; color: var(--ink-soft); margin-top: 1px; }

.btn {
  display: inline-block;
  font-family: inherit; font-size: 11px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  background: var(--ink); color: var(--card);
  border: none; padding: 9px 13px; text-decoration: none; cursor: pointer;
}
.btn:hover { background: #243546; }
.btn:focus-visible { outline: 2px solid var(--attention); outline-offset: 2px; }

.rail {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--rule);
  margin-top: 14px;
}
.cell { padding: 12px 14px 12px 0; display: flex; gap: 9px; align-items: flex-start; }
.cell + .cell { padding-left: 14px; border-left: 1px solid var(--rule); }
.lamp {
  width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex: none;
  background: var(--nominal);
}
.lamp.warn { background: var(--attention); }
.lamp.crit { background: var(--critical); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .28; } }
.cell .v { font-size: 15px; font-weight: 500; margin-top: 1px; letter-spacing: -.01em; }

footer {
  margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--rule);
  font-size: 11px; color: var(--ink-soft); display: flex; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
}

@media (max-width: 560px) {
  .rail { grid-template-columns: 1fr; }
  .cell { padding: 10px 0; border-left: none !important; border-top: 1px solid var(--rule); }
  .cell:first-child { border-top: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
