@font-face {
  font-family: Inter;
  src: url("/assets/InterVariable-1f021a24.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #111317;
  --surface: #1a1d23;
  --line: #343943;
  --text: #f0f1f3;
  --muted: #a6acb7;
  --accent: #efa1b7;
  --good: #81ceaa;
  --warn: #d5b77b;
  --bad: #f29599;
  --unknown: #3a3f4a;
  --unknown-text: #a6acb7;
}
html[data-theme="light"] {
  color-scheme: light;
  --bg: #faf9f7;
  --surface: #fff;
  --line: #d7d9df;
  --text: #222631;
  --muted: #586170;
  --accent: #9e3656;
  --good: #18764b;
  --warn: #85600f;
  --bad: #aa3442;
  --unknown: #dcdfe5;
  --unknown-text: #586170;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 Inter, system-ui, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; touch-action: manipulation; }
button {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
}
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
code { font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }

header, main, footer { max-width: 1120px; margin: auto; padding-left: 40px; padding-right: 40px; }
header {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { font-size: 20px; color: var(--text); display: flex; align-items: center; gap: 6px; }
.brand:hover { text-decoration: none; }
.brand strong { font-weight: 500; color: var(--accent); }
.mark { background: #f9e7ed; border-radius: 7px; padding: 5px; margin-right: 5px; }
nav { display: flex; align-items: center; gap: 24px; }
main { min-height: calc(100vh - 200px); padding-top: 46px; padding-bottom: 54px; }
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  padding-bottom: 30px;
  color: var(--muted);
  font-size: 12px;
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; padding: 10px; background: var(--surface); z-index: 10; }

h1 { font-size: 32px; line-height: 1.25; letter-spacing: -0.8px; font-weight: 600; margin: 10px 0 14px; display: flex; align-items: center; gap: 14px; }
h2 { font-size: 18px; font-weight: 600; margin: 0 0 5px; }
p { margin: 0 0 18px; }
.eyebrow { font-size: 12px; letter-spacing: 1.5px; font-weight: 600; color: var(--accent); margin-bottom: 12px; }
.lede { font-size: 16px; max-width: 720px; color: var(--muted); line-height: 1.7; }
.muted { color: var(--muted); }
.crumbs { margin-bottom: 8px; }

.dot { width: 8px; height: 8px; border-radius: 100%; display: inline-block; flex-shrink: 0; background: var(--unknown-text); }
h1 .dot { width: 14px; height: 14px; }
.dot.up, .dot.operational { background: var(--good); }
.dot.partial, .dot.degraded { background: var(--warn); }
.dot.down, .dot.outage { background: var(--bad); }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--unknown-text); white-space: nowrap; }
.status.up { color: var(--good); }
.status.partial { color: var(--warn); }
.status.down { color: var(--bad); }

.hero { padding-bottom: 34px; border-bottom: 1px solid var(--line); margin-bottom: 34px; }
.since { font-size: 13px; }
.windows {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 0;
}
.windows div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.windows dt { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.windows dd { margin: 0; display: flex; flex-direction: column; }
.windows strong { font-size: 24px; font-weight: 600; letter-spacing: -0.4px; font-variant-numeric: tabular-nums; }
.windows .muted { font-size: 12px; }
.definition { display: grid; gap: 8px; margin: 18px 0 0; max-width: 820px; }
.definition div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
.definition dt { color: var(--muted); }
.definition dd { margin: 0; }

.group { margin-bottom: 44px; }
.group > h2 + .muted { margin-bottom: 14px; }
.components { list-style: none; padding: 0; margin: 12px 0 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.component { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.component:last-child { border-bottom: 0; }
.component-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 12px; }
.component-head > div:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.component-name { color: var(--text); font-size: 15px; font-weight: 600; }
.component-head .muted { font-size: 13px; }
.component-meta { display: flex; align-items: center; gap: 18px; flex-shrink: 0; font-variant-numeric: tabular-nums; }

.bars { display: grid; grid-template-columns: repeat(90, minmax(0, 1fr)); gap: 2px; height: 32px; }
.bars span { border-radius: 2px; background: var(--unknown); }
.bars .up { background: var(--good); }
.bars .minor { background: var(--warn); }
.bars .major { background: var(--bad); }
.bars span:hover { opacity: 0.75; }
.bar-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-top: 6px; }
.bar-axis .short, nav .short { display: none; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 500; font-size: 12px; }
tbody tr:last-child td { border-bottom: 0; }
.prose td { white-space: normal; }
.empty { padding: 18px 20px; border: 1px dashed var(--line); border-radius: 10px; }

.locations { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.locations li { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }

.prose { max-width: 820px; }
.prose h2 { margin-top: 34px; margin-bottom: 10px; }
.prose p, .prose li { color: var(--muted); line-height: 1.7; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); }
.prose .table-wrap { margin-bottom: 18px; }

@media (max-width: 700px) {
  header, main, footer { padding-left: 16px; padding-right: 16px; }
  header { height: 72px; }
  .brand { font-size: 17px; }
  .brand { gap: 4px; }
  .mark { width: 28px; height: 28px; margin-right: 3px; }
  nav { gap: 12px; }
  nav button { padding: 7px 9px; font-size: 13px; }
  nav a { font-size: 13px; white-space: nowrap; }
  nav .long { display: none; }
  th, td { padding: 9px 10px; }
  main { padding-top: 30px; }
  h1 { font-size: 26px; }
  .windows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .component { padding: 16px; }
  .component-head { flex-direction: column; gap: 8px; }
  .bars { grid-template-columns: repeat(30, minmax(0, 1fr)); }
  .bars span:nth-child(-n + 60) { display: none; }
  .bar-axis .long { display: none; }
  .bar-axis .short, nav .short { display: inline; }
  .definition div { grid-template-columns: 1fr; gap: 0; }
  footer { flex-direction: column; gap: 6px; }
}
