:root {
  color-scheme: dark;
  --bg: #0a1018;
  --bg-soft: #111a27;
  --panel: rgba(10, 15, 24, 0.86);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f7f1e7;
  --muted: #b9c3d8;
  --accent: #ff8b3d;
  --accent-soft: #ffd39a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 148, 76, 0.16), transparent 24%),
    radial-gradient(circle at 80% 0%, rgba(91, 157, 255, 0.16), transparent 28%),
    linear-gradient(180deg, #09101a 0%, #111725 100%);
  color: var(--text);
  font: 500 16px/1.6 "Segoe UI", Tahoma, sans-serif;
}

.hub-shell,
.not-found-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 56px;
}

.hub-hero,
.not-found-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  backdrop-filter: blur(20px);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.34);
}

.hub-kicker,
.not-found-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font: 700 0.78rem/1.4 "Press Start 2P", monospace;
  letter-spacing: 0.08em;
}

.hub-title,
.not-found-title {
  margin: 0;
  font: 700 clamp(1.4rem, 2.8vw, 2.8rem) / 1.15 "Press Start 2P", monospace;
  color: #fff5e4;
}

.hub-copy,
.not-found-copy {
  max-width: 60ch;
  margin: 20px 0 0;
  color: var(--muted);
}

.project-grid {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.project-card {
  position: relative;
  display: block;
  padding: 24px;
  border: 1px solid rgba(255, 181, 110, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 140, 61, 0.14), rgba(255, 140, 61, 0) 45%),
    rgba(16, 22, 34, 0.9);
  color: inherit;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 181, 110, 0.4);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.project-card:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
}

.project-card::after {
  content: "OPEN";
  position: absolute;
  right: 22px;
  top: 24px;
  color: var(--accent-soft);
  font: 700 0.68rem/1 "Press Start 2P", monospace;
}

.project-label {
  margin: 0 0 14px;
  color: #ffd3ab;
  font: 700 0.72rem/1.4 "Press Start 2P", monospace;
}

.project-title {
  margin: 0;
  font: 700 1.5rem/1.2 "Press Start 2P", monospace;
}

.project-copy {
  max-width: 46ch;
  margin: 18px 0 0;
  color: var(--muted);
}

.project-note {
  margin: 18px 0 0;
  color: #8ea1bf;
  font-size: 0.95rem;
}

.not-found-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.not-found-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 181, 110, 0.24);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  font: 700 0.72rem/1.2 "Press Start 2P", monospace;
}

.not-found-link.primary {
  background: linear-gradient(180deg, #ffb56e, #ff8642);
  color: #23160d;
  border-color: transparent;
}

@media (max-width: 640px) {
  .hub-shell,
  .not-found-shell {
    width: min(100% - 20px, 1120px);
    padding: 18px 0 28px;
  }

  .hub-hero,
  .not-found-panel {
    padding: 20px;
    border-radius: 20px;
  }

  .project-card {
    padding: 20px;
  }

  .project-card::after {
    position: static;
    display: block;
    margin-bottom: 14px;
  }
}
