:root {
  color-scheme: light;
  --navy: #011349;
  --ink: #172343;
  --muted: #505d7d;
  --blue: #003ffa;
  --border: #dce3f2;
  --surface: #fff;
  --green: #09724a;
  --amber: #8b4d03;
  --red: #af243f;
  --up: #17a676;
  --mixed: #e6a345;
  --down: #d44661;
  --unknown: #dce3f1;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at top right, #e7eeff 0, transparent 52rem), #f6f8ff;
  color: var(--ink);
  font: 1rem/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--blue); }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 3px; }
.wrap { width: calc(100% - 2.5rem); max-width: 56rem; margin: 0 auto; }
.skip-link, .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  z-index: 1;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  clip-path: none;
  padding: .6rem 1rem;
  background: var(--surface);
}
.topbar { border-bottom: 1px solid var(--border); background: #ffffffdc; }
.topbar .wrap, footer.wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.topbar .wrap { min-height: 4.25rem; }
.topbar nav a, footer a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.brand { display: flex; align-items: center; gap: .55rem; color: var(--navy); text-decoration: none; font-weight: 750; }
nav a, footer a { color: var(--muted); font-size: .875rem; text-decoration: none; }
nav a:hover, footer a:hover { text-decoration: underline; color: var(--blue); }
main { padding: 2.75rem 0 2.5rem; }
main:focus { outline: none; }
h1, h2, h3, p { margin: 0; }
h1 { color: var(--navy); font-size: clamp(2.15rem, 5vw, 3rem); line-height: 1.15; letter-spacing: -.045em; margin-bottom: 1.4rem; }
h2 { font-size: 1.25rem; letter-spacing: -.02em; }
h3 { font-size: 1rem; }
.summary {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1.65rem;
  background: linear-gradient(115deg, #011349, #102f7e);
  color: #fff;
  border-radius: 1.1rem;
  box-shadow: 0 .65rem 1.7rem #01134917;
}
.summary h2 { font-size: clamp(1.1rem, 4vw, 1.55rem); }
.summary p { color: #d9e4ff; margin-top: .2rem; }
.summary .timestamp { color: #c0cdef; font-size: .875rem; margin-top: .7rem; }
.indicator {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #ffffff50;
  background: #ffffff14;
  border-radius: 50%;
  color: #bdc9e7;
}
.summary.operational .indicator { color: #62e8bb; }
.summary.investigating .indicator { color: #ffc77d; }
.summary.outage .indicator { color: #ff8ba1; }
.dot { display: inline-block; flex: none; width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; }
.indicator .dot { width: .7rem; height: .7rem; }
.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .25rem 1rem;
  margin: 2rem 0 .8rem;
}
.section-heading span { color: var(--muted); font-size: .875rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 1rem; box-shadow: 0 2px 12px #01134908; }
.service, .empty, .incident { padding: 1.25rem 1.4rem; }
.service + .service, .incident + .incident { border-top: 1px solid var(--border); }
.service-heading, .incident-title { display: flex; justify-content: space-between; align-items: start; gap: .4rem 1rem; flex-wrap: wrap; }
.service-heading p, .incident p, .empty { color: var(--muted); }
.service-heading p { margin-top: .15rem; }
.service-status {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border-radius: 999px;
  padding: .25rem .65rem;
  font-size: .875rem;
  font-weight: 650;
  color: var(--muted);
  background: #eef1f7;
}
.service-status.operational { color: var(--green); background: #e8f8f0; }
.service-status.investigating { color: var(--amber); background: #fff3df; }
.service-status.outage { color: var(--red); background: #ffedf0; }
.history {
  display: grid;
  grid-template-columns: repeat(30, minmax(0, 1fr));
  gap: clamp(2px, .6vw, 5px);
  list-style: none;
  padding: 0;
  margin: 1rem 0 .45rem;
}
.history li { height: 1.6rem; border-radius: .24rem; }
.history li:hover { outline: 1px solid var(--muted); outline-offset: 1px; }
.up { background: var(--up); }
.mixed { background: var(--mixed); }
.down { background: var(--down); }
.history .unknown, .swatch.unknown { background: var(--unknown); }
.history-labels {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: .4rem;
  color: var(--muted);
  font-size: .875rem;
  font-variant-numeric: tabular-nums;
}
.history-labels strong { color: var(--ink); font-weight: 650; }
.history-labels span:last-child { text-align: right; }
.chart-note { margin-top: .75rem; color: var(--muted); font-size: .875rem; }
.chart-note ul { display: flex; flex-wrap: wrap; gap: .25rem .9rem; padding: 0; margin: 0 0 .35rem; list-style: none; }
.chart-note li { display: flex; gap: .35rem; align-items: center; }
.swatch { width: .65rem; height: .65rem; border-radius: .15rem; }
.incident-list { list-style: none; margin: 0; padding: 0; }
.incident p { margin-top: .35rem; font-size: .875rem; }
footer.wrap { padding: .6rem 0 1.1rem; border-top: 1px solid var(--border); font-size: .875rem; color: var(--muted); }

@media (max-width: 36rem) {
  .wrap { width: calc(100% - 1.75rem); }
  main { padding-top: 1.75rem; }
  .summary, .service, .empty, .incident { padding: 1rem; }
  .summary { gap: .75rem; }
  .indicator { width: 1.9rem; height: 1.9rem; }
  .history li { height: 1.35rem; border-radius: .15rem; }
}
