:root {
  color-scheme: dark;
  --page-bg: #0f1115;
  --nav-bg: #17191f;
  --border: #30333c;
  --inactive: #9b9da9;
  --text: #ececf5;
  --active-bg: #4f4c72;
  --dot-online: #3dd68c;
  --dot-offline: #e85d5d;
  --dot-unknown: #6b6e7a;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, sans-serif;
}

.site-header {
  display: flex;
  justify-content: center;
  padding: 16px;
}

.site-nav {
  width: max-content;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--nav-bg);
}

.nav-compact {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px;
}

.nav-link,
.menu-toggle {
  border: 0;
  border-radius: 999px;
  color: var(--inactive);
  background: transparent;
  font: inherit;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link {
  padding: 12px 16px;
}

.nav-link:hover,
.nav-link:focus-visible,
.menu-toggle:hover,
.menu-toggle:focus-visible {
  color: var(--text);
}

.nav-link[aria-current="page"] {
  color: var(--text);
  background: var(--active-bg);
}

.content-list {
  width: min(100% - 32px, 720px);
  margin: 44px auto 0;
}

.content-ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.content-item {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  text-transform: uppercase;
}

.content-item a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-error {
  color: var(--dot-offline);
  font-weight: 600;
}

.status-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  text-transform: none;
  font-weight: 600;
}

.status-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

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

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

.status-dot.unknown {
  background: var(--dot-unknown);
}

.status-label {
  text-transform: uppercase;
  font-weight: 700;
}

.status-meta {
  width: 100%;
  font-size: 14px;
  font-weight: 400;
  color: var(--inactive);
  text-transform: none;
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px;
  }

  .site-nav {
    width: auto;
    border-radius: 20px;
  }

  .nav-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px;
  }

  .compact-home {
    padding: 10px 14px;
  }

  .menu-toggle {
    display: inline-grid;
    width: 40px;
    height: 36px;
    place-items: center;
    padding: 0;
    cursor: pointer;
  }

  .hamburger {
    position: relative;
    width: 18px;
    height: 12px;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
  }

  .hamburger::after {
    position: absolute;
    top: 3px;
    right: 0;
    left: 0;
    border-top: 2px solid currentColor;
    content: "";
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 4px;
  }

  .site-nav.is-open .nav-links {
    display: flex;
  }

  .nav-link {
    padding: 11px 14px;
    text-align: center;
  }
}
