:root {
  color-scheme: dark;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: #edf3f8;
  background: #101824;
  font-synthesis: none;
  --muted: #aab8c8;
  --line: #2c3949;
  --good: #79e1bb;
  --bad: #ffa894;
  --accent: #8bd8ed;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
.masthead,
main,
footer {
  max-width: 920px;
  margin-inline: auto;
  padding-inline: 32px;
}
.masthead {
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: #edf3f8;
  font-weight: 800;
  font-size: 25px;
  letter-spacing: -0.9px;
}
.brand span {
  border-left: 1px solid var(--line);
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}
.app-link {
  font-size: 14px;
  white-space: nowrap;
}
.overview {
  padding-block: 50px 38px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
h1 {
  margin: 0 0 14px;
  font-size: clamp(29px, 4.2vw, 42px);
  font-weight: 650;
  letter-spacing: -1.2px;
  line-height: 1.16;
}
.overview p {
  max-width: 620px;
  line-height: 1.6;
  margin: 0;
  color: var(--muted);
}
.overview .last-incident {
  font-size: 13px;
  margin-top: 16px;
}
.status-mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid currentColor;
  flex-shrink: 0;
  color: var(--muted);
  position: relative;
  margin-top: 2px;
}
.status-mark.up {
  color: var(--good);
  background: #79e1bb0d;
}
.status-mark.up::after {
  content: "";
  display: block;
  width: 18px;
  height: 10px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  position: absolute;
  top: 16px;
  left: 15px;
}
.status-mark.down {
  color: var(--bad);
  background: #ffa8940d;
}
.status-mark:not(.up)::after {
  content: "!";
  position: absolute;
  inset: 5px 0 0;
  text-align: center;
  font-size: 29px;
}
.update-row {
  border-top: 1px solid var(--line);
  padding-block: 18px 34px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.update-row p {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
}
button {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #526176;
  border-radius: 7px;
  padding: 9px 15px;
  color: #edf3f8;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
}
button:hover {
  background: #202d3d;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.35px;
  margin: 0 0 20px;
}
.services {
  border-block: 1px solid var(--line);
}
.service {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
}
.service + .service {
  border-top: 1px solid var(--line);
}
.service-name {
  margin: 0 0 5px;
  font-weight: 600;
  font-size: 16px;
}
.service-detail {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.service-state {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
}
.service-state::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.up {
  color: var(--good);
}
.down {
  color: var(--bad);
}
.unknown,
.muted {
  color: var(--muted);
}
.footnote {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
  margin: 16px 0;
}
.history {
  margin-top: 58px;
}
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.section-heading span {
  font-size: 13px;
  color: var(--muted);
}
details {
  border-top: 1px solid var(--line);
  padding-block: 21px;
}
summary {
  cursor: pointer;
  list-style-position: outside;
  margin-left: 17px;
  padding-left: 5px;
}
.incident-title {
  font-size: 16px;
  font-weight: 600;
}
.incident-state {
  display: inline-block;
  font-size: 12px;
  margin-left: 12px;
  font-weight: 500;
}
.incident-time {
  display: block;
  margin-top: 7px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.incident-body {
  padding-left: 22px;
  color: #c4d0dd;
  line-height: 1.75;
  font-size: 14px;
  max-width: 760px;
}
.incident-services {
  color: var(--muted);
  font-size: 12px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding-block: 48px 32px;
  color: var(--muted);
  font-size: 12px;
}
@media (max-width: 600px) {
  .masthead,
  main,
  footer {
    padding-inline: 22px;
  }
  .masthead {
    min-height: 86px;
  }
  .brand {
    font-size: 23px;
    gap: 12px;
  }
  .brand span {
    padding-left: 12px;
    font-size: 12px;
  }
  .app-link {
    font-size: 12px;
  }
  .overview {
    padding-block: 30px;
    gap: 16px;
  }
  .status-mark {
    width: 35px;
    height: 35px;
    margin-top: 4px;
  }
  .status-mark.up::after {
    width: 13px;
    height: 8px;
    top: 9px;
    left: 9px;
  }
  .status-mark:not(.up)::after {
    inset: 1px 0 0;
    font-size: 22px;
  }
  h1 {
    letter-spacing: -0.7px;
  }
  .service {
    gap: 12px;
  }
  .service-detail {
    max-width: 205px;
    line-height: 1.5;
  }
  .service-state {
    font-size: 12px;
  }
  .history {
    margin-top: 40px;
  }
  footer {
    flex-direction: column;
    gap: 6px;
  }
}
