:root {
  color-scheme: light;
  --ink: #102e36;
  --muted: #60747a;
  --line: #dce7e8;
  --surface: #ffffff;
  --canvas: #f2f7f6;
  --nav: #061c25;
  --brand: #087c70;
  --brand-dark: #075e58;
  --highlight: #d6fb62;
  --operational: #10865f;
  --degraded: #bd7200;
  --outage: #c83d50;
  --maintenance: #687982;
  --shadow: 0 20px 56px rgba(13, 55, 62, .08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 280px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 0%, rgba(8, 124, 112, .09), transparent 28rem),
    var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: var(--brand-dark);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 40%, transparent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 10px;
  left: 12px;
  padding: 10px 14px;
  color: var(--nav);
  border-radius: 9px;
  background: var(--highlight);
  font-weight: 750;
  text-decoration: none;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.status-header {
  width: min(1120px, calc(100% - 40px));
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.status-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.status-brand img {
  width: 40px;
  height: 40px;
}

.status-brand span {
  display: grid;
  gap: 1px;
}

.status-brand strong {
  font-size: 16px;
  letter-spacing: -.01em;
}

.status-brand small {
  color: var(--muted);
  font-size: 12px;
}

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

.status-header nav a {
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.status-header .header-signin {
  padding: 10px 16px;
  color: #fff;
  border-radius: 9px;
  background: var(--nav);
}

.status-main {
  width: min(980px, calc(100% - 40px));
  margin: 30px auto 72px;
}

.status-hero,
.status-card,
.summary-grid article {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 97%, transparent);
  box-shadow: var(--shadow);
}

.status-hero {
  position: relative;
  min-height: 206px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 23px;
  padding: 35px 38px;
  overflow: hidden;
  border-radius: 24px;
}

.status-hero::after {
  position: absolute;
  right: -90px;
  bottom: -130px;
  width: 280px;
  height: 280px;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(8, 124, 112, .13), transparent 68%);
  pointer-events: none;
}

.overall-indicator {
  position: relative;
  z-index: 1;
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--maintenance);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--maintenance) 14%, transparent);
}

.overall-indicator.is-loading {
  animation: pulse 1.5s ease-in-out infinite;
}

.overall-indicator.operational {
  background: var(--operational);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--operational) 14%, transparent);
}

.overall-indicator.degraded {
  background: var(--degraded);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--degraded) 14%, transparent);
}

.overall-indicator.outage,
.overall-indicator.unknown {
  background: var(--outage);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--outage) 14%, transparent);
}

.overall-indicator.maintenance {
  background: var(--maintenance);
}

.status-hero-copy {
  position: relative;
  z-index: 1;
}

.status-hero h1,
.section-heading h2 {
  margin: 0;
  letter-spacing: -.035em;
}

.status-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}

.status-hero-copy > p:not(.eyebrow) {
  max-width: 650px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.status-hero-copy .status-hero-meta {
  font-size: 12px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.refresh-button {
  position: relative;
  z-index: 1;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}

.refresh-button:hover {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  background: #f9fcfb;
}

.refresh-button:disabled {
  cursor: wait;
  opacity: .72;
}

.refresh-button span {
  font-size: 19px;
  line-height: 1;
}

.refresh-button.is-refreshing span {
  animation: spin .9s linear infinite;
}

.refresh-button b {
  font-size: 13px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-top: 16px;
}

.summary-grid article {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: 16px;
}

.summary-grid span,
.summary-grid small {
  color: var(--muted);
  font-size: 12px;
}

.summary-grid strong {
  margin: 7px 0 4px;
  font-size: clamp(23px, 3vw, 30px);
  letter-spacing: -.04em;
}

.summary-grid small {
  margin-top: auto;
  line-height: 1.35;
}

.status-card {
  padding: 29px 32px;
  margin-top: 16px;
  border-radius: 20px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-heading h2 {
  font-size: 25px;
}

.last-updated,
.incident-window {
  color: var(--muted);
  font-size: 12px;
}

.incident-window {
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--canvas);
}

.history-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  padding: 11px 0 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.history-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.history-legend i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #dce5e6;
}

.history-legend i.operational { background: var(--operational); }
.history-legend i.degraded { background: var(--degraded); }
.history-legend i.outage { background: var(--outage); }

.service-row {
  padding: 25px 0;
  border-top: 1px solid var(--line);
}

.service-row:first-child {
  border-top: 0;
}

.service-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.service-name {
  margin: 0;
  font-size: 17px;
  font-weight: 760;
  letter-spacing: -.015em;
}

.service-description {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.state-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--maintenance);
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.state-label::before {
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 50%;
  background: currentColor;
}

.state-label.operational { color: var(--operational); }
.state-label.degraded { color: var(--degraded); }
.state-label.outage { color: var(--outage); }

.service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.service-meta span {
  padding: 5px 8px;
  color: var(--muted);
  border-radius: 7px;
  background: var(--canvas);
  font-size: 11px;
}

.service-meta b {
  color: var(--ink);
}

.service-meta .is-stale {
  color: var(--degraded);
  background: color-mix(in srgb, var(--degraded) 10%, white);
}

.service-message {
  margin: 11px 0 0;
  padding: 9px 11px;
  color: var(--muted);
  border-left: 3px solid var(--maintenance);
  border-radius: 0 7px 7px 0;
  background: var(--canvas);
  font-size: 12px;
}

.service-message.degraded { border-left-color: var(--degraded); }
.service-message.outage { border-left-color: var(--outage); }

.uptime-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

.history-bars {
  height: 24px;
  display: grid;
  grid-template-columns: repeat(30, minmax(2px, 1fr));
  gap: 3px;
}

.history-day {
  min-width: 2px;
  border-radius: 3px;
  background: #dce5e6;
}

.history-day.operational { background: var(--operational); }
.history-day.degraded { background: var(--degraded); }
.history-day.outage { background: var(--outage); }
.history-day.maintenance { background: var(--maintenance); }

.uptime-value {
  min-width: 73px;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.incident-clear {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--operational) 18%, var(--line));
  border-radius: 13px;
  background: color-mix(in srgb, var(--operational) 5%, white);
}

.incident-clear > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--operational);
  font-weight: 800;
}

.incident-clear strong {
  font-size: 14px;
}

.incident-clear p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.incident {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.incident:first-child {
  border-top: 0;
  padding-top: 2px;
}

.incident-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.incident h3 {
  margin: 0;
  font-size: 16px;
}

.incident-status {
  padding: 5px 9px;
  color: var(--muted);
  border-radius: 999px;
  background: var(--canvas);
  font-size: 10px;
  font-weight: 780;
  text-transform: capitalize;
}

.incident-status.major,
.incident-status.critical {
  color: var(--outage);
  background: color-mix(in srgb, var(--outage) 9%, white);
}

.incident-services,
.incident-time,
.empty-state {
  color: var(--muted);
  font-size: 12px;
}

.incident-update {
  margin: 14px 0 0;
  padding-left: 14px;
  border-left: 3px solid var(--line);
}

.incident-update p {
  margin: 0 0 5px;
  line-height: 1.55;
}

.empty-state {
  margin: 0;
  padding: 18px 0;
}

.error-state {
  padding: 18px;
  color: var(--outage);
  border-radius: 12px;
  background: color-mix(in srgb, var(--outage) 8%, white);
}

.status-footer {
  width: min(1120px, calc(100% - 40px));
  min-height: 90px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.status-footer div {
  display: flex;
  gap: 18px;
}

.status-footer a {
  font-weight: 700;
  text-decoration: none;
}

.noscript {
  margin: 0;
  padding: 16px;
  color: #fff;
  background: var(--outage);
  text-align: center;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  50% { opacity: .5; }
}

@media (max-width: 760px) {
  .status-header,
  .status-footer,
  .status-main {
    width: min(100% - 28px, 980px);
  }

  .status-main {
    margin-top: 14px;
  }

  .status-hero {
    min-height: 0;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: flex-start;
    padding: 27px 23px;
    border-radius: 18px;
  }

  .refresh-button {
    grid-column: 2;
    justify-self: start;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .status-card {
    padding: 24px 22px;
  }
}

@media (max-width: 500px) {
  .status-header {
    min-height: 72px;
  }

  .status-brand img {
    width: 35px;
    height: 35px;
  }

  .status-brand strong {
    font-size: 14px;
  }

  .status-header nav > a:first-child {
    display: none;
  }

  .status-header .header-signin {
    padding: 9px 12px;
  }

  .status-main {
    margin-bottom: 48px;
  }

  .status-hero {
    gap: 19px 17px;
  }

  .overall-indicator {
    width: 16px;
    height: 16px;
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--maintenance) 14%, transparent);
  }

  .status-hero h1 {
    font-size: 29px;
  }

  .summary-grid article {
    min-height: 118px;
    padding: 16px;
  }

  .summary-grid strong {
    font-size: 24px;
  }

  .section-heading,
  .service-topline,
  .incident-header {
    align-items: flex-start;
  }

  .section-heading,
  .service-topline {
    flex-direction: column;
    gap: 9px;
  }

  .history-legend {
    gap: 8px 12px;
  }

  .history-bars {
    gap: 2px;
  }

  .uptime-line {
    grid-template-columns: 1fr;
  }

  .uptime-value {
    display: none;
  }

  .status-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
