/* Hallmark · brand: Meshradar (2026-12-01) · shape: status dashboard · v2.0.0 */
/* Critique: The overall state leads, with a service list and a timestamp directly below it. */
:root {
  --background: #070b14;
  --surface: #0f1729;
  --border: #233049;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #00e5a0;
  --focus: #06b6d4;
  --fault: #fca5a5;
  --maintenance: #fbbf24;
  --sample-up: #00a772;
  --sample-down: #e76c78;
  --sample-degraded: #e7ac43;
  --sample-unknown: #617089;
  --sans: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", "Fira Code", monospace;
  --radius: 8px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 1rem/1.55 var(--sans);
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a:active { color: var(--focus); }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 5px; }
.shell { width: min(100% - 2.5rem, 56rem); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 1;
  border-bottom: 1px solid var(--border);
  background: rgb(7 11 20 / .85);
  backdrop-filter: blur(14px);
}
.header-content {
  max-width: 1140px;
  margin-inline: auto;
  padding: .75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  line-height: 1.6;
}
.brand { display: inline-flex; align-items: center; gap: .5rem; font-size: 1.1rem; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.brand:hover, .site-link:hover { color: var(--text); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.5rem; }
.site-link { display: inline-flex; align-items: center; min-height: 36px; color: var(--muted); font-size: .875rem; font-weight: 500; white-space: nowrap; }
.site-link--signup { padding: .45rem 1.1rem; border-radius: var(--radius); background: var(--accent); color: var(--background); font-weight: 600; }
.site-link--signup:hover, .site-link--signup:active { color: var(--background); opacity: .85; }
@media (max-width: 37.5rem) {
  .header-content { flex-wrap: wrap; gap: .25rem; padding: .6rem 1.25rem; }
  .brand { min-height: 36px; }
  .site-nav { width: 100%; justify-content: space-between; gap: .25rem .5rem; }
  .site-link { min-height: 44px; font-size: .8125rem; }
  .site-link--signup { padding-inline: .65rem; }
}
.main-content { padding-block: clamp(2.65rem, 8vh, 5rem); }
h1, h2, p, dl { margin: 0; }
h1 { min-width: 0; overflow-wrap: break-word; font-size: 2.75rem; line-height: 1.12; letter-spacing: -.045em; }
h1, h2 { text-wrap: balance; }
.description { margin-top: .7rem; color: var(--muted); }
.overall { margin-top: 1.8rem; padding: 1.15rem 1.3rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.overall-text { font-weight: 700; font-size: 1.125rem; }
#status-time { margin-top: .3rem; color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.services { margin-top: 1.8rem; }
.services-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; margin-bottom: .45rem; }
.services h2 { font-size: 1rem; }
.history-period { color: var(--muted); font-size: .875rem; }
.service { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .55rem 1rem; padding-block: .8rem; border-bottom: 1px solid var(--border); }
.service:first-child { border-top: 1px solid var(--border); }
.service dt { font-weight: 600; }
.service dd { margin: 0; }
.service-state { font: 500 .875rem/1.5 var(--mono); text-align: right; }
.service-history { grid-column: 1 / -1; }
.service-history ol { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 36rem) { .service-history ol { gap: 2px; } }
.service-history li { min-width: 0; height: .8rem; border: 1px solid var(--border); border-radius: 2px; }
.service-history [data-state] { border-color: var(--block-color); background: var(--block-color); }
.services [data-state="up"] { --block-color: var(--sample-up); }
.services [data-state="down"] { --block-color: var(--sample-down); }
.services [data-state="degraded"] { --block-color: var(--sample-degraded); }
.services [data-state="unknown"] { --block-color: var(--sample-unknown); }
.history-legend:not([hidden]) { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin-top: .75rem; color: var(--muted); font-size: .75rem; }
.history-key::before { content: ""; display: inline-block; width: .65em; height: .65em; margin-inline-end: .35em; border-radius: 2px; background: var(--block-color); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: clip; clip-path: inset(50%); white-space: nowrap; }
[data-indicator="up"] { color: var(--accent); }
[data-indicator="down"] { color: var(--fault); }
[data-indicator="maintenance"] { color: var(--maintenance); }
[data-indicator="unknown"] { color: var(--muted); }
@media (max-width: 36rem) { h1 { font-size: 2.15rem; } }
