:root {
  --bg-0: #0f1720;
  --bg-1: #162231;
  --bg-2: #1d2d40;
  --text: #eef3f8;
  --muted: #9db0c4;
  --accent: #2f9e8b;
  --accent-soft: rgba(47, 158, 139, 0.16);
  --border: rgba(238, 243, 248, 0.12);
  --shadow: 0 24px 60px rgba(4, 12, 20, 0.35);
  --font-display: "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  --font-body: "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(47, 158, 139, 0.22), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(79, 140, 210, 0.18), transparent 50%),
    linear-gradient(160deg, var(--bg-0), var(--bg-1) 45%, var(--bg-2));
}

.portal {
  width: min(720px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 4.5rem 0 3rem;
}

.portal-header {
  margin-bottom: 2.25rem;
}

.brand {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.15;
  font-weight: 700;
}

.lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.site-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.site-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.site-list li a:hover,
.site-list li a:focus-visible {
  border-color: rgba(47, 158, 139, 0.55);
  background: var(--accent-soft);
  transform: translateY(-1px);
  outline: none;
}

.site-name {
  font-weight: 600;
  font-size: 1.05rem;
}

.site-path {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
}

.site-list .empty {
  padding: 1.25rem 1.2rem;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.portal-footer {
  margin-top: 2.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .portal {
    width: min(100% - 1.5rem, 720px);
    padding-top: 3rem;
  }

  .site-list li a {
    flex-direction: column;
    align-items: flex-start;
  }
}
