/* Signal design language, light only (tokens from the monorepo's
   apps/landing/src/styles/global.signal.css). Color appears only where it
   means something; every state also carries a text label. */
@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #fafafa;
  --surface: #ffffff;
  --subtle: #f4f4f5;
  --text: #111113;
  --text-muted: #62636b;
  --text-faint: #9a9ba3;
  --line: #ebebee;
  --line-strong: #d9d9de;
  --on: #1a7f4b;
  --on-bg: #e8f6ee;
  --on-dot: #1fa463;
  --stale: #b45309;
  --stale-bg: #fdf3e3;
  --off: #85868e;
  --off-bg: #f0f0f2;
  --del: #c2362f;
  --del-bg: #fdeceb;
  --maint: #3f5bd1;
  --maint-bg: #eef1fd;
  --radius-panel: 0.75rem;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 "Geist", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap { max-width: 46rem; margin: 0 auto; padding: 28px 16px 40px; }

.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; }
.logo { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 16px; text-decoration: none; }
.logo i { width: 9px; height: 9px; border-radius: 50%; background: var(--on-dot); display: inline-block; }
.logo span { color: var(--text-muted); font-weight: 400; }
.feed { font-size: 13px; color: var(--text-muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px 11px; text-decoration: none; white-space: nowrap; }
.feed:hover { color: var(--text); }

h1 { font-size: 26px; line-height: 1.2; margin: 4px 0 8px; text-wrap: balance; }
h2 { font-size: 13px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin: 28px 0 10px; }
h3 { font-size: 15px; margin: 0; }
h3 a { text-decoration: none; }
h3 a:hover { text-decoration: underline; }

.banner { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-panel); }
.banner b { font-size: 18px; display: block; }
.banner small { display: block; color: var(--text-muted); font-size: 13px; margin-top: 2px; }
.banner[data-state="degraded"] { background: var(--stale-bg); border-color: #f3d9b0; }
.banner[data-state="down"] { background: var(--del-bg); border-color: #f5c6c3; }
.banner[data-state="maintenance"] { background: var(--maint-bg); border-color: #d5dcfa; }
.banner[data-state="unknown"] { background: var(--off-bg); border-color: var(--line-strong); }

.dot { width: 11px; height: 11px; border-radius: 50%; flex: none; background: var(--on); }
[data-state="degraded"] > .dot { background: var(--stale); }
[data-state="down"] > .dot { background: var(--del); }
[data-state="maintenance"] > .dot { background: var(--maint); }
[data-state="unknown"] > .dot { background: var(--off); }

.panel, .incident { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-panel); }
.panel { overflow: hidden; }
.incident { padding: 16px 18px; margin-bottom: 10px; }
.incident.upcoming { border-style: dashed; }
.incident.page { padding: 22px; }
.meta { color: var(--text-muted); font-size: 13px; margin: 3px 0 10px; }
.kind { color: var(--text-muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; margin: 0; }

.updates { list-style: none; margin: 0; padding: 0; }
.updates li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 4px 14px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.updates li:first-child { border-top: 0; }
.updates .when b { display: block; }
.updates .when time { color: var(--text-muted); font-size: 12px; }
.updates .text p { margin: 0 0 6px; }
.updates .text p:last-child { margin-bottom: 0; }

.row { padding: 14px 18px; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.rowhead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.rowhead .name small { color: var(--text-faint); font-size: 12px; margin-left: 4px; }
.state { font-size: 13px; font-weight: 500; white-space: nowrap; color: var(--on); }
.row[data-state="degraded"] .state { color: var(--stale); }
.row[data-state="down"] .state { color: var(--del); }
.row[data-state="maintenance"] .state { color: var(--maint); }
.row[data-state="unknown"] .state, .lastknown { color: var(--text-muted); }

.bars { display: flex; gap: 2px; height: 28px; margin-top: 10px; }
.day { flex: 1 1 0; min-width: 1px; border-radius: 2px; background: var(--on-dot); opacity: 0.85; }
.day.degraded { background: var(--stale); opacity: 1; }
.day.down { background: var(--del); opacity: 1; }
.day.maintenance { background: var(--maint); opacity: 1; }
.day.nodata { background: var(--line-strong); opacity: 1; }
.day:hover { opacity: 0.6; }
.axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-faint); margin-top: 4px; }

.past { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-panel); }
.past li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 14px; }
.past li:first-child { border-top: 0; }
.past span { color: var(--text-muted); font-size: 12px; white-space: nowrap; }
.none { color: var(--text-muted); font-size: 14px; }

.generated, .back { color: var(--text-faint); font-size: 12px; }
.back a { text-decoration: none; }
.foot { margin-top: 36px; text-align: center; color: var(--text-faint); font-size: 12px; }
.foot p { margin: 4px 0; }

@media (max-width: 480px) {
  .updates li { grid-template-columns: 1fr; }
  .past li { flex-direction: column; gap: 2px; }
  .bars { gap: 1px; }
}
