:root {
  color: #1f1f1f;
  background: #f7f7f7;
  font-family:
    Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --surface: #ffffff;
  --text: #1f1f1f;
  --muted: #686868;
  --line: #dedede;
  --blue: #234fa6;
  --amber: #8a5a12;
  --red: #a33a32;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #f7f7f7;
  color: var(--text);
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.page-label,
.eyebrow,
.updated,
.section-heading p,
.component-state,
footer {
  color: var(--muted);
  font-size: 0.86rem;
}

main {
  padding-block: 86px 70px;
}

.hero {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 32px;
  font-size: clamp(2.35rem, 7vw, 4.7rem);
  font-weight: 530;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

h2 {
  margin-bottom: 6px;
  font-size: 1.3rem;
  font-weight: 560;
  letter-spacing: -0.025em;
}

.status-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.status-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.12rem;
}

.status-icon {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--blue);
  font-size: 0.95rem;
  font-weight: 700;
}

.status-card p {
  max-width: 620px;
  margin: 14px 0 0 42px;
  color: var(--muted);
  line-height: 1.65;
}

body[data-state="degraded"] .status-icon,
body[data-state="maintenance"] .status-icon {
  color: var(--amber);
}

body[data-state="outage"] .status-icon,
body[data-state="unknown"] .status-icon {
  color: var(--red);
}

.components {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.3fr);
  gap: 60px;
  margin-top: 82px;
}

.section-heading p {
  line-height: 1.55;
}

.component-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.component-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 58px;
  border-bottom: 1px solid var(--line);
}

.component-state {
  flex: none;
}

.component-state::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.component-state[data-state="operational"] {
  color: var(--blue);
}

.component-state[data-state="degraded"],
.component-state[data-state="maintenance"] {
  color: var(--amber);
}

.component-state[data-state="outage"],
.component-state[data-state="unknown"] {
  color: var(--red);
}

.updated {
  margin-top: 34px;
}

.no-script {
  margin-top: 28px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  line-height: 1.55;
}

footer {
  display: flex;
  justify-content: space-between;
  padding-block: 24px 36px;
  border-top: 1px solid var(--line);
}

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

  .site-header {
    min-height: 66px;
  }

  main {
    padding-block: 60px 54px;
  }

  h1 {
    margin-bottom: 26px;
  }

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

  .status-card p {
    margin-left: 0;
  }

  .components {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 62px;
  }
}

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