@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&display=swap");

:root {
  color-scheme: light;
  --bg: #ffffff;
  --text: #000000;
  --online: #34c759;
  --offline: #ff3b30;
  --unknown: rgba(0, 0, 0, 0.56);
  --loading: rgba(0, 0, 0, 0.36);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #090909;
  --text: #f5f5f7;
  --online: #30d158;
  --offline: #ff6961;
  --unknown: rgba(245, 245, 247, 0.62);
  --loading: rgba(245, 245, 247, 0.44);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family:
    "SF Pro Display", "SF Pro Text", "Manrope", -apple-system, BlinkMacSystemFont,
    sans-serif;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.landing {
  width: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
}

.name,
.server-state {
  margin: 0;
  letter-spacing: -0.075em;
}

.name {
  font-size: clamp(4.6rem, 11vw, 7.75rem);
  line-height: 0.94;
  font-weight: 700;
}

.server-state {
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.server-state.is-loading {
  color: var(--loading);
}

.server-state.is-online {
  color: var(--online);
}

.server-state.is-offline {
  color: var(--offline);
}

.server-state.is-unknown {
  color: var(--unknown);
}

@media (max-width: 640px) {
  .landing {
    gap: 10px;
    padding-inline: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body {
    transition: none;
  }
}
