*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #0a0e14;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8edf4;
  --text-muted: #8b9cb3;
  --accent: #3ddea8;
  --accent-dim: rgba(61, 222, 168, 0.15);
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(1.5rem, 4vw, 3rem);
  overflow-x: hidden;
}

.hero__glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(61, 222, 168, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(80, 120, 255, 0.08), transparent);
}

.hero__header {
  position: relative;
  text-align: center;
  padding: clamp(1rem, 3vh, 2rem) 0 clamp(1.5rem, 4vh, 2.5rem);
  flex-shrink: 0;
}

.hero__label {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__title {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-family: var(--font-mono);
}

.hero__tagline {
  margin: 1rem auto 0;
  max-width: 36rem;
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  line-height: 1.5;
  color: var(--text-muted);
}

.site-list {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: 0.75rem;
  align-content: start;
  max-width: 72rem;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  overflow-y: auto;
}

.site-list__item {
  margin: 0;
}

.site-list__error {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
}

.site-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 0.35rem;
  height: 100%;
  padding: 1rem 1.125rem;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.625rem;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.site-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(61, 222, 168, 0.35);
  transform: translateY(-1px);
}

.site-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.site-card__host {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
}

.site-card__name {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.site-card__desc {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.site-card__status {
  justify-self: start;
  margin-top: 0.25rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
}

.site-card__status--planned {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
}

.site-card__status--live {
  color: var(--accent);
  background: var(--accent-dim);
}

.hero__footer {
  position: relative;
  flex-shrink: 0;
  margin-top: clamp(1.5rem, 3vh, 2rem);
  text-align: center;
}

.hero__footer p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

@media (max-height: 700px) {
  .hero__header {
    padding-bottom: 1rem;
  }

  .hero__tagline {
    display: none;
  }
}
