:root {
  color-scheme: dark;
  --bg: #0a0b0d;
  --panel: #101216;
  --panel-raised: #15181d;
  --border: #262b33;
  --text: #f3f5f7;
  --muted: #929aa6;
  --quiet: #69727e;
  --green: #58d68d;
  --green-soft: rgba(88, 214, 141, 0.12);
  --amber: #f5c451;
  --amber-soft: rgba(245, 196, 81, 0.12);
  --red: #f07b72;
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 50% -25%, rgba(88, 214, 141, 0.08), transparent 42rem),
    var(--bg);
}

a { color: inherit; }

.page-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 10px;
  height: 10px;
  border: 2px solid var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--green-soft);
}

.header-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.badge {
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 650;
}

.badge-confirmed { color: var(--green); border-color: rgba(88, 214, 141, 0.35); background: var(--green-soft); }
.badge-signal { color: var(--amber); border-color: rgba(245, 196, 81, 0.35); background: var(--amber-soft); }

main { padding: 44px 0 0; }

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--panel-raised), var(--panel));
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--quiet);
}

.hero[data-state="confirmed"]::after { background: var(--green); }
.hero[data-state="signal"]::after { background: var(--amber); }

.eyebrow, .label {
  margin: 0 0 11px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(34px, 7vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-summary {
  max-width: 720px;
  margin: 22px 0 0;
  color: #c4cad1;
  font-size: 16px;
  line-height: 1.65;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.5fr 1fr;
  gap: 1px;
  margin-top: 44px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--border);
}

.hero-grid > div {
  min-width: 0;
  padding: 18px;
  background: rgba(10, 11, 13, 0.72);
}

.hero-grid strong, .hero-grid .source-link { display: block; font-size: 14px; }
.subvalue { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.source-link { color: var(--text); font-weight: 650; text-underline-offset: 3px; }
.source-link:hover { color: var(--green); }

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(270px, 0.75fr);
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

h2 { margin: 0; font-size: 20px; letter-spacing: -0.025em; }
.section-heading .eyebrow { margin-bottom: 7px; }
.timezone-note { color: var(--quiet); font-size: 11px; white-space: nowrap; }

.timeline, .health-list { margin: 0; padding: 0; list-style: none; }
.timeline-item { display: grid; grid-template-columns: 24px 1fr; padding: 0 24px; }
.timeline-rail { position: relative; border-left: 1px solid var(--border); }
.timeline-rail::before {
  content: "";
  position: absolute;
  top: 31px;
  left: -4px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--green);
  border-radius: 50%;
  background: var(--panel);
}

.timeline-body { padding: 26px 0; border-bottom: 1px solid var(--border); }
.timeline-item:last-child .timeline-body { border-bottom: 0; }
.timeline-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.signal-type { color: var(--green); font-size: 10px; font-weight: 750; letter-spacing: 0.09em; text-transform: uppercase; }
.signal-source, .signal-time { color: var(--muted); font-size: 11px; }
.signal-summary { margin: 12px 0; color: #d9dde2; font-size: 14px; line-height: 1.6; }
.timeline-details { display: flex; gap: 16px; color: var(--muted); font-size: 11px; }

.health-list { padding: 8px 20px; }
.health-item { display: flex; justify-content: space-between; gap: 12px; padding: 16px 4px; border-bottom: 1px solid var(--border); }
.health-item:last-child { border-bottom: 0; }
.health-identity { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.health-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--quiet); }
.health-healthy { background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.health-degraded { background: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }
.health-unavailable { background: var(--red); }
.health-detail { color: var(--muted); font-size: 11px; }
.empty-state { padding: 28px 24px; color: var(--muted); font-size: 13px; }

.disclosure {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.disclosure > span { display: grid; place-items: center; flex: 0 0 20px; height: 20px; border: 1px solid var(--quiet); border-radius: 50%; }
.disclosure p { margin: 0; }
footer { padding: 28px 0 36px; color: var(--quiet); font-size: 11px; }

@media (max-width: 780px) {
  .page-shell { width: min(100% - 24px, 640px); }
  .site-header { min-height: 64px; }
  .header-meta #last-checked { display: none; }
  main { padding-top: 22px; }
  .hero { padding: 28px 22px; }
  .hero-grid { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .health-panel { order: -1; }
  .section-heading { padding: 20px; }
  .timeline-item { padding: 0 18px; }
  .timeline-meta { align-items: flex-start; flex-direction: column; gap: 5px; }
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f3f4f1;
    --panel: #fafbf8;
    --panel-raised: #ffffff;
    --border: #d9ddd8;
    --text: #171a18;
    --muted: #626b65;
    --quiet: #89918c;
  }
  body { background: var(--bg); }
  .hero-grid > div { background: rgba(255, 255, 255, 0.75); }
  .hero-summary, .signal-summary { color: #3b423e; }
}
