:root {
  --page: #111214;
  --text: #f2f1ed;
  --muted: #9a9a9a;
  --hairline: rgba(255, 255, 255, 0.09);
  --online: #22c55e;
  --offline: #9c5656;
  --checking: #6f7073;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.topbar {
  width: 100%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  border-bottom: 1px solid var(--hairline);
}

.brand,
.topbar-meta,
.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand {
  color: var(--text);
}

.topbar-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.mini-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--checking);
  transition: background-color 180ms ease;
}

.mini-dot.online {
  background: var(--online);
}

.mini-dot.offline {
  background: var(--offline);
}

.mini-dot.checking {
  background: var(--checking);
}

.page-shell {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: 64px 24px;
}

.status-wrap {
  width: min(760px, 100%);
  text-align: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-size: clamp(3.2rem, 10vw, 7.6rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
  font-weight: 800;
}

.status-line {
  margin-top: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-text {
  color: var(--text);
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 700;
  transition: color 180ms ease;
}

.status-text.online {
  color: var(--online);
}

.status-text.offline {
  color: var(--offline);
}

.status-text.checking {
  color: var(--checking);
}

.outage-message {
  max-width: 620px;
  margin: 22px auto 0;
  color: #b96868;
  font-size: clamp(0.95rem, 2.6vw, 1.08rem);
  line-height: 1.65;
  font-weight: 600;
}

.outage-message[hidden] {
  display: none;
}

.last-seen {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(0.92rem, 2.4vw, 1.05rem);
  font-weight: 500;
}
.last-seen:empty {
  display: none;
}

.accent-line {
  width: 46px;
  height: 2px;
  margin: 34px auto 0;
  background: var(--checking);
  transition: background-color 180ms ease;
}

.status-wrap[data-state="online"] .accent-line {
  background: var(--online);
}

.status-wrap[data-state="offline"] .accent-line {
  background: var(--offline);
}

.status-wrap[data-state="checking"] .accent-line {
  background: var(--checking);
}

@media (max-width: 640px) {
  .topbar {
    height: 62px;
    padding: 0 18px;
  }

  .topbar-meta {
    display: none;
  }

  .page-shell {
    min-height: calc(100vh - 62px);
    padding: 48px 18px;
  }

  .status-line {
    margin-top: 34px;
  }
}

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