:root {
  color-scheme: dark;
  --bg: #111315;
  --panel: #1b1f22;
  --text: #f2f1eb;
  --muted: #b8b3a7;
  --line: #34383b;
  --accent: #d4b56a;
  --accent-soft: rgba(212, 181, 106, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: radial-gradient(circle at top, #202529 0, #111315 42rem);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

.portal-shell {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 32px;
}

.intro {
  max-width: 680px;
}

.kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  line-height: 1;
  letter-spacing: 0;
}

.subtitle {
  margin: 18px 0 0;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 700;
}

.summary {
  max-width: 560px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 40px;
}

.portal-card {
  min-height: 112px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
}

.portal-card:hover,
.portal-card:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  outline: none;
}

.portal-card span {
  font-size: 1.05rem;
  font-weight: 700;
}

.portal-card small {
  color: var(--muted);
  font-size: 0.82rem;
}

footer {
  width: min(960px, calc(100% - 32px));
  margin: auto auto 24px;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 760px) {
  body {
    justify-content: flex-start;
  }

  .portal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 440px) {
  .portal-shell {
    padding-top: 40px;
  }

  .portal-grid {
    grid-template-columns: 1fr;
  }
}
