@font-face {
  font-family: SHDisplay;
  src: url("/assets/display.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: SHText;
  src: url("/assets/text.woff2") format("woff2");
  font-display: swap;
}
:root {
  color-scheme: dark;
  --paper: #080808;
  --ink: #f5f5f3;
  --muted: #bbb;
  --line: #454545;
  --good: #b6e9c2;
  --bad: #ffa99e;
  --pending: #f1d49e;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    17px/1.65 SHText,
    "PingFang SC",
    sans-serif;
}
::selection {
  background: var(--ink);
  color: var(--paper);
}
header,
main,
footer {
  width: min(920px, calc(100% - 64px));
  margin-inline: auto;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 32px 56px;
}
.brand {
  font:
    28px/1 SHDisplay,
    sans-serif;
  text-decoration: none;
}
h1 {
  font:
    clamp(44px, 7vw, 76px)/1.12 SHDisplay,
    "PingFang SC",
    sans-serif;
  margin: 0 0 40px;
  text-wrap: balance;
}
h2 {
  font-size: 26px;
  line-height: 1.3;
  margin: 0 0 12px;
  font-weight: 600;
}
p {
  margin: 0 0 16px;
  max-width: 70ch;
}
button,
a {
  color: inherit;
}
button {
  font: inherit;
  cursor: pointer;
  border: 1px solid var(--line);
  padding: 10px 18px;
  background: transparent;
  min-height: 44px;
}
button:hover {
  background: var(--ink);
  color: var(--paper);
}
button:disabled {
  opacity: 0.65;
  cursor: wait;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--pending);
  outline-offset: 5px;
}
a {
  text-underline-offset: 5px;
}
header button {
  padding: 6px 16px;
}
.summary {
  padding-bottom: 24px;
}
#scope,
#checked,
.note,
#incident-time,
footer {
  color: var(--muted);
}
.update-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.update-line p {
  margin: 0;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
ul {
  padding: 0;
  margin: 0;
  list-style: none;
}
li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
li:last-child {
  border-bottom: 1px solid var(--line);
}
.service-name {
  font-size: 21px;
  font-weight: 600;
}
.service-detail {
  font-size: 15px;
  color: var(--muted);
  margin-top: 3px;
}
.service-state {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: right;
  white-space: nowrap;
  font-weight: 600;
}
.service-state::before {
  content: "";
  height: 9px;
  width: 9px;
  background: currentColor;
}
.offered,
.up {
  color: var(--good);
}
.down {
  color: var(--bad);
}
.unavailable,
.unknown,
.stale {
  color: var(--pending);
}
.incident {
  margin: 44px 0 36px;
}
#incident-state {
  font-weight: 600;
}
#incident-message {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#incident-time {
  font-size: 15px;
}
.note {
  font-size: 15px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
nav {
  display: flex;
  gap: 28px;
  margin-top: 28px;
}
footer {
  font-size: 14px;
  padding: 40px 0 24px;
}
#error {
  margin-top: 16px;
  color: var(--bad);
}
@media (max-width: 560px) {
  header,
  main,
  footer {
    width: calc(100% - 36px);
  }
  header {
    padding-block: 24px 40px;
  }
  .brand {
    font-size: 25px;
  }
  h1 {
    margin-bottom: 30px;
  }
  h2 {
    font-size: 23px;
  }
  .update-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  li {
    gap: 12px;
    align-items: flex-start;
  }
  .service-name {
    font-size: 19px;
  }
  .service-detail {
    font-size: 14px;
    max-width: 22ch;
  }
  .service-state {
    font-size: 14px;
    gap: 7px;
  }
  .incident {
    margin-top: 36px;
  }
  footer {
    font-size: 13px;
  }
}
