:root {
  color-scheme: light;
  --ink: #171526;
  --muted: #69667b;
  --line: #e7e5ee;
  --surface: #ffffff;
  --background: #f7f7fa;
  --purple: #7e32e8;
  --purple-soft: #f0e9ff;
  --green: #12805c;
  --green-soft: #e5f7ef;
  --amber: #a86106;
  --amber-soft: #fff3d6;
  --red: #bc3340;
  --red-soft: #ffeaec;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -10%, rgba(126, 50, 232, 0.11), transparent 33rem),
    var(--background);
}

a {
  color: inherit;
}

.site-header,
main,
footer {
  width: min(100% - 40px, 820px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  height: 88px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand__mark {
  fill: var(--purple);
}

.brand__divider {
  width: 1px;
  height: 22px;
  margin-inline: 2px;
  background: var(--line);
}

.brand__page {
  color: var(--muted);
  font-weight: 550;
}

main {
  padding: 70px 0 80px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 56px;
  text-align: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 13px;
  font-weight: 700;
}

.status-badge__dot,
.service-state__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 13%, transparent);
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(38px, 7vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero__message {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.last-updated {
  margin: 17px 0 0;
  color: #8d899c;
  font-size: 13px;
}

.uptime-card,
.services,
.providers,
.incident-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 35px rgba(31, 24, 55, 0.045);
}

.uptime-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 25px 28px 28px;
}

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

h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.025em;
}

.uptime-card__number {
  align-self: center;
  color: var(--green);
  font-size: 27px;
  font-weight: 780;
  letter-spacing: -0.04em;
}

.uptime-bar {
  grid-column: 1 / -1;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #eceaf1;
}

.uptime-bar::before {
  display: block;
  width: var(--uptime-width, 100%);
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  content: "";
}

.services,
.providers,
.incident-card {
  margin-top: 22px;
  padding: 28px;
}

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

.section-heading > p {
  max-width: 280px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: right;
}

.service-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 58px;
  padding: 15px 17px;
  font-size: 14px;
  font-weight: 650;
}

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

.service-state {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 700;
}

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

.service-state--degraded,
.service-state--maintenance {
  color: var(--amber);
}

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

.incident-card {
  border-color: #f0c8cd;
  background: var(--red-soft);
}

.incident-card[hidden] {
  display: none;
}

.incident-card .eyebrow {
  color: var(--red);
}

.incident-card h2 {
  margin-bottom: 10px;
}

.incident-card > p:last-child {
  margin: 0;
  color: #714148;
  font-size: 14px;
  line-height: 1.65;
}

.provider-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.provider-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.provider-card:hover {
  border-color: #cfc9dc;
  box-shadow: 0 7px 20px rgba(31, 24, 55, 0.07);
  transform: translateY(-1px);
}

.provider-card:focus-visible {
  outline: 3px solid rgba(126, 50, 232, 0.25);
  outline-offset: 2px;
}

.provider-card__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: white;
  font-size: 14px;
  font-weight: 800;
}

.provider-card__icon--azure {
  background: #1689d9;
}

.provider-card__icon--cloudflare {
  background: #f38020;
}

.provider-card__icon--auth0 {
  background: #eb5424;
}

.provider-card strong,
.provider-card small {
  display: block;
}

.provider-card strong {
  margin-bottom: 3px;
  font-size: 14px;
}

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

.provider-card__arrow {
  color: #aaa6b6;
  font-size: 17px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 620px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 820px);
  }

  .site-header {
    height: 76px;
  }

  main {
    padding-top: 45px;
  }

  .hero {
    padding-bottom: 42px;
  }

  .hero__message {
    font-size: 16px;
  }

  .uptime-card,
  .services,
  .providers,
  .incident-card {
    padding: 21px;
    border-radius: 15px;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 8px;
    text-align: left;
  }

  .provider-grid {
    grid-template-columns: 1fr;
  }

  .service-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  footer {
    flex-direction: column;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
