@font-face { font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/inter-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/inter-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Newsreader Variable'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/fonts/newsreader-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Newsreader Variable'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/fonts/newsreader-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --font-ui: "Inter Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Newsreader Variable", Georgia, serif;
  --paper: #f3f4f6;
  --line: #e3e6ea;
  --ink: #161b24;
  --ink-2: #394150;
  --muted: #5f6673;
  --focus: #2d6ac1;
  --ok: #318850;
  --ok-text: #2a7544;
  --good: #6fb58a;
  --brand: #b4532a;
  --warn: #cb7300;
  --warn-text: #9a5700;
  --bad: #c43f3e;
  --bad-text: #962c2c;
  --none: #e3e6ea;
  --rail: #161b24;
  --rail-ink: #f5f6f8;
  --rail-muted: #8d94a0;
  --dot-ok: #4aa56a;
  --dot-warn: #e08a1e;
  --dot-bad: #de5a59;
  --dot-grey: #8d94a0;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1218;
    --line: #262b35;
    --ink: #e8eaee;
    --ink-2: #c3c8d1;
    --muted: #949ba7;
    --focus: #5b8fe0;
    --ok: #4aa56a;
    --ok-text: #6fcf8f;
    --good: #3b7d54;
    --brand: #d97b4f;
    --warn: #e08a1e;
    --warn-text: #f0b35c;
    --bad: #de5a59;
    --bad-text: #f08a89;
    --none: #262b35;
  }
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-ui); font-size: 16px; line-height: 1.5; }
a { color: inherit; }
a:focus-visible, .bar i:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 760px; margin: 0 auto; padding-inline: 16px; }

.night { background: var(--rail); color: var(--rail-ink); border-bottom: 4px solid var(--dot-grey); }
.night.ok { border-bottom-color: var(--dot-ok); }
.night.brief { border-bottom-color: var(--dot-warn); }
.night.down { border-bottom-color: var(--dot-bad); }
@media (prefers-color-scheme: dark) { .night { box-shadow: 0 1px 0 var(--line); } }
h1 em { font-style: italic; }
header.wrap { padding-block: 22px 36px; }
.logo { display: inline-block; }
.logo img { height: 30px; width: auto; display: block; }
h1 { font-family: var(--font-display); font-weight: 500; font-size: 32px; line-height: 1.1; letter-spacing: -0.02em; margin: 36px 0 14px; }
.summary { display: flex; align-items: flex-start; gap: 10px; font-size: 18px; line-height: 1.4; margin: 0; }
.summary .dot { margin-top: 7px; }
.checked { color: var(--rail-muted); font-size: 14px; margin: 10px 0 0 22px; min-height: 1.5em; }

.dot { flex: none; display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--dot-grey); }
.dot.ok, .dot.up { background: var(--dot-ok); }
.dot.brief { background: var(--dot-warn); }
.dot.down { background: var(--dot-bad); }
.dot.paused, .dot.unknown { background: var(--dot-grey); }

main.wrap { padding-block: 8px 24px; }
.services, .incidents { list-style: none; margin: 0; padding: 0; }
.svc { padding: 24px 0; border-bottom: 1px solid var(--line); }
.svc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.svc-name { font-weight: 700; font-size: 17px; min-width: 0; }
.svc-status { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; text-align: right; }
.svc-status.up { color: var(--ok-text); }
.svc-status.brief { color: var(--warn-text); }
.svc-status.down { color: var(--bad-text); }
.svc-status.unknown { color: var(--muted); }
.svc-desc { margin: 2px 0 14px; font-size: 14px; color: var(--muted); }

.bar { --gap-base: 2px; position: relative; display: flex; gap: var(--gap-base); height: 28px; }
.bar i { --c: var(--none); flex: 1 1 0; min-width: 0; border-radius: 2px; background: var(--c); }
.bar i.ok { --c: var(--ok); }
.bar i.good { --c: var(--good); }
.bar i.warn { --c: var(--warn); }
.bar i.bad { --c: var(--bad); }
.svc.unknown .bar { opacity: 0.45; }
@media (max-width: 480px) { .bar { --gap-base: 1px; } }
.bar canvas { position: absolute; inset: 0 auto 0 0; width: var(--barw); height: 100%; }
.svc.fit .bar { width: var(--barw); }
.svc.fit .bar i { position: relative; background: transparent; }
.svc.fit .bar-foot { width: var(--barw); }
.bar-foot { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.bar-foot span:first-child { text-align: left; }
.bar-foot span:last-child { text-align: right; }
.bar-foot .uptime { color: var(--ink-2); font-weight: 600; text-align: center; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 16px 0 0; font-size: 13px; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 2px; background: var(--none); display: inline-block; }
.legend i.ok { background: var(--ok); }
.legend i.good { background: var(--good); }
.legend i.warn { background: var(--warn); }
.legend i.bad { background: var(--bad); }

section { padding-top: 32px; }
h2 { font-family: var(--font-display); font-weight: 500; font-size: 24px; letter-spacing: -0.01em; margin: 0 0 12px; }
.inc, .none { padding: 14px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.inc:first-child, .none:first-child { border-top: 0; padding-top: 0; }
.inc-item { font-weight: 700; }
.inc-when { font-size: 14px; color: var(--ink-2); }
.inc p { margin: 6px 0 0; }
.inc-note.quiet { font-size: 14px; color: var(--muted); }

footer.wrap { padding-block: 0 40px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot .links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot a { color: var(--brand); }

@media (min-width: 640px) {
  header.wrap { padding-block: 28px 56px; }
  h1 { font-size: 44px; margin-top: 56px; }
  .summary { font-size: 20px; }
}
