:root {
  color-scheme: dark;
  --bg: #050a07;
  --panel: rgba(14, 22, 17, 0.82);
  --panel-strong: #101913;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f7f5;
  --muted: #94a099;
  --muted-strong: #bcc5bf;
  --green: #7cff00;
  --green-soft: rgba(124, 255, 0, 0.1);
  --amber: #f6c453;
  --amber-soft: rgba(246, 196, 83, 0.1);
  --red: #ff756f;
  --red-soft: rgba(255, 117, 111, 0.1);
  --blue: #7bb8ff;
  --blue-soft: rgba(123, 184, 255, 0.1);
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(
      circle at 50% -20%,
      rgba(124, 255, 0, 0.07),
      transparent 42rem
    ),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

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

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

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
  border-radius: 0.35rem;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.08;
  pointer-events: none;
}

.ambient-one {
  top: 10rem;
  right: -14rem;
  background: var(--green);
}

.ambient-two {
  bottom: 4rem;
  left: -18rem;
  background: #287b43;
}

.site-header,
main,
footer {
  width: min(100% - 2rem, 62rem);
  margin-inline: auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: end;
  gap: 0.16rem;
  width: 1.55rem;
  height: 1.3rem;
  transform: skewX(-15deg);
}

.brand-mark span {
  display: block;
  width: 0.38rem;
  border-radius: 0.2rem;
  background: var(--green);
}

.brand-mark span:nth-child(1) {
  height: 0.75rem;
}

.brand-mark span:nth-child(2) {
  height: 1rem;
}

.brand-mark span:nth-child(3) {
  height: 1.3rem;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  color: var(--muted-strong);
  font-size: 0.86rem;
  font-weight: 620;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--text);
}

.app-link {
  padding: 0.7rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

main {
  padding-block: 5.8rem 6rem;
}

.intro {
  max-width: 43rem;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.6rem, 6vw, 4.55rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.lede {
  max-width: 38rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.65;
}

.overall-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--line-strong);
  border-radius: 1.15rem;
  background: var(--panel);
  box-shadow: 0 1.2rem 3.2rem rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px);
}

.overall-card.status-operational {
  border-color: rgba(124, 255, 0, 0.28);
  background: linear-gradient(110deg, var(--green-soft), var(--panel) 58%);
}

.overall-card.status-degraded,
.overall-card.status-maintenance {
  border-color: rgba(246, 196, 83, 0.28);
  background: linear-gradient(110deg, var(--amber-soft), var(--panel) 58%);
}

.overall-card.status-partial_outage,
.overall-card.status-major_outage,
.overall-card.status-unavailable {
  border-color: rgba(255, 117, 111, 0.28);
  background: linear-gradient(110deg, var(--red-soft), var(--panel) 58%);
}

.overall-icon {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.overall-icon::before {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--muted);
  content: '';
}

.status-operational .overall-icon::before {
  background: var(--green);
  box-shadow: 0 0 1.1rem rgba(124, 255, 0, 0.65);
}

.status-degraded .overall-icon::before,
.status-maintenance .overall-icon::before {
  background: var(--amber);
}

.status-partial_outage .overall-icon::before,
.status-major_outage .overall-icon::before,
.status-unavailable .overall-icon::before {
  background: var(--red);
}

.status-loading .overall-icon::before {
  animation: breathe 1.5s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.overall-copy p:first-child {
  margin-bottom: 0.22rem;
  font-size: 1rem;
  font-weight: 720;
}

.overall-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.checked-time {
  display: grid;
  justify-items: end;
  gap: 0.25rem;
  color: var(--muted);
  font-size: 0.74rem;
}

.checked-time time {
  color: var(--muted-strong);
  font-weight: 650;
}

.status-section,
.incident-section {
  margin-top: 4.5rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.section-kicker {
  margin-bottom: 0.5rem;
  color: var(--muted);
  letter-spacing: 0.14em;
}

h2 {
  margin-bottom: 0;
  font-size: 1.45rem;
  letter-spacing: -0.025em;
}

#refresh-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.6rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted-strong);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  cursor: pointer;
}

#refresh-button:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

#refresh-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

#refresh-button.is-loading .refresh-icon {
  animation: spin 0.8s linear infinite;
}

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

.component-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: var(--panel);
  backdrop-filter: blur(18px);
}

.component-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
  min-height: 5rem;
  padding: 1rem 1.25rem;
}

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

.component-dot {
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 50%;
  background: var(--muted);
}

.component-dot.operational {
  background: var(--green);
  box-shadow: 0 0 0.7rem rgba(124, 255, 0, 0.38);
}

.component-dot.degraded,
.component-dot.maintenance {
  background: var(--amber);
}

.component-dot.partial_outage,
.component-dot.major_outage,
.component-dot.unavailable {
  background: var(--red);
}

.component-name {
  margin-bottom: 0.2rem;
  font-size: 0.92rem;
  font-weight: 680;
}

.component-description {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.status-pill,
.incident-pill {
  padding: 0.42rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted-strong);
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: capitalize;
  white-space: nowrap;
}

.status-pill.operational {
  background: var(--green-soft);
  color: var(--green);
}

.status-pill.degraded,
.status-pill.maintenance {
  background: var(--amber-soft);
  color: var(--amber);
}

.status-pill.partial_outage,
.status-pill.major_outage,
.status-pill.unavailable {
  background: var(--red-soft);
  color: var(--red);
}

.component-skeleton {
  height: 5rem;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.018) 20%,
    rgba(255, 255, 255, 0.055) 45%,
    rgba(255, 255, 255, 0.018) 70%
  );
  background-size: 220% 100%;
  animation: shimmer 1.2s linear infinite;
}

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

@keyframes shimmer {
  to {
    background-position-x: -220%;
  }
}

.incident-list {
  display: grid;
  gap: 0.9rem;
}

.incident-card,
.empty-state,
.noscript-card {
  margin: 0;
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.025);
}

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

.incident-title {
  margin-bottom: 0.3rem;
  font-size: 0.94rem;
  font-weight: 690;
}

.incident-meta,
.empty-state,
.noscript-card {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.incident-updates {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.incident-update {
  display: grid;
  gap: 0.28rem;
  padding-left: 0.85rem;
  border-left: 2px solid var(--line-strong);
  color: var(--muted-strong);
  font-size: 0.8rem;
  line-height: 1.5;
}

.incident-update time {
  color: var(--muted);
  font-size: 0.7rem;
}

.empty-state.success {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border-color: rgba(124, 255, 0, 0.17);
}

.empty-state.success::before {
  display: inline-grid;
  flex: 0 0 auto;
  width: 1.55rem;
  height: 1.55rem;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  content: '✓';
  font-weight: 800;
}

.noscript-card {
  margin-top: 2rem;
  border-color: rgba(246, 196, 83, 0.2);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem 2.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
}

footer p {
  margin: 0;
}

footer a:hover {
  color: var(--text);
}

@media (max-width: 680px) {
  .site-header {
    min-height: 4.8rem;
  }

  nav a:first-child {
    display: none;
  }

  main {
    padding-block: 4rem;
  }

  .overall-card {
    grid-template-columns: auto 1fr;
  }

  .checked-time {
    grid-column: 2;
    justify-items: start;
  }

  .component-row {
    grid-template-columns: auto 1fr;
  }

  .status-pill {
    grid-column: 2;
    justify-self: start;
  }

  footer {
    flex-direction: column;
  }
}

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