:root {
  --bg: #dfdfdf;
  --ink: #040404;
  --muted: #8f8f8f;
  --stroke: #9d9d9d;
  --ok: #169be5;
  --incident: #ff8a00;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Neue Haas Grotesk Display Pro", "Neue Haas Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.status-shell {
  width: min(1128px, calc(100vw - 72px));
  margin: 22px auto 34px;
}

.status-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wordmark {
  display: inline-flex;
  align-items: flex-end;
  gap: 8px;
  line-height: 1;
}

.brand-main {
  font-size: 54px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-sub {
  font-size: 50px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ok);
}

.theme-toggle {
  margin-left: 2px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1.6px solid #202020;
  background: transparent;
  color: #202020;
  font-size: 26px;
  padding: 0;
  cursor: default;
}

.sun-icon {
  transform: translateY(-1px);
  font-size: 27px;
}

.overall-wrap {
  margin-top: 52px;
  display: flex;
  justify-content: center;
}

.overall-pill {
  min-width: 370px;
  max-width: 520px;
  border: 3px solid var(--stroke);
  border-radius: 16px;
  background: transparent;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  font-size: 53px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.overall-mark {
  font-size: 48px;
  line-height: 1;
  transform: translateY(1px);
}

.overall-pill.is-incident {
  border-color: var(--incident);
  color: var(--incident);
}

.service-list {
  margin-top: 56px;
}

.service-item {
  margin-bottom: 48px;
}

.service-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 6px 0 30px;
}

.service-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.chevron {
  width: 14px;
  height: 14px;
  border-top: 4px solid #222;
  border-right: 4px solid #222;
  transform: rotate(45deg) translateY(-1px);
  transform-origin: center;
}

.service-name {
  margin: 0;
  font-size: 52px;
  letter-spacing: -0.04em;
  line-height: 1;
  font-weight: 700;
}

.service-updated {
  margin: 0;
  color: var(--muted);
  font-size: 35px;
  letter-spacing: -0.03em;
  line-height: 1;
  font-weight: 600;
}

.service-state {
  margin: 0;
  font-size: 35px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ok);
}

.service-state.incident {
  color: var(--incident);
}

.sparkline {
  border: 3px solid var(--stroke);
  border-radius: 18px;
  padding: 11px 16px;
  display: flex;
  gap: 14px;
  overflow: hidden;
  background: transparent;
}

.bar {
  width: 12px;
  height: 90px;
  border-radius: 8px;
  flex: 0 0 auto;
  background: var(--ok);
}

.sparkline.incident .bar {
  background: var(--incident);
}

.status-footer {
  margin-top: 14px;
  padding-left: 34px;
  font-size: 24px;
}

.status-footer a {
  color: #1d1d1d;
  text-decoration: none;
}

@media (max-width: 1180px) {
  .status-shell {
    width: calc(100vw - 44px);
  }

  .brand-main {
    font-size: 44px;
  }

  .brand-sub {
    font-size: 42px;
  }

  .overall-pill {
    font-size: 42px;
    height: 52px;
    min-width: 330px;
  }

  .overall-mark {
    font-size: 38px;
  }

  .service-name {
    font-size: 42px;
  }

  .service-updated,
  .service-state {
    font-size: 28px;
  }

  .bar {
    width: 10px;
    height: 78px;
  }
}

@media (max-width: 760px) {
  .status-shell {
    width: calc(100vw - 24px);
    margin: 16px auto 30px;
  }

  .status-header {
    gap: 8px;
  }

  .brand-main {
    font-size: 34px;
  }

  .brand-sub {
    font-size: 32px;
  }

  .theme-toggle {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 18px;
  }

  .sun-icon {
    font-size: 20px;
  }

  .overall-wrap {
    margin-top: 28px;
  }

  .overall-pill {
    min-width: 0;
    width: 100%;
    font-size: 32px;
    height: 48px;
  }

  .overall-mark {
    font-size: 30px;
  }

  .service-list {
    margin-top: 34px;
  }

  .service-item {
    margin-bottom: 28px;
  }

  .service-head {
    padding: 0 4px 0 12px;
    margin-bottom: 8px;
  }

  .chevron {
    width: 10px;
    height: 10px;
    border-top-width: 3px;
    border-right-width: 3px;
  }

  .service-title-wrap {
    gap: 8px;
    align-items: center;
  }

  .service-name {
    font-size: 24px;
  }

  .service-updated,
  .service-state {
    font-size: 16px;
  }

  .sparkline {
    gap: 8px;
    padding: 8px 10px;
  }

  .bar {
    width: 8px;
    height: 52px;
    border-radius: 6px;
  }

  .status-footer {
    padding-left: 14px;
    font-size: 16px;
  }
}
