:root {
  --bg: #060606;
  --panel: #0f0f10;
  --line: #2a2a2c;
  --text: #f5f5f5;
  --muted: #bbbbbe;
  --lime: #baff2c;
  --lime-soft: rgba(186, 255, 44, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% -10%, #1e1e21 0, var(--bg) 44%);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 0.8px, transparent 0.8px);
  background-size: 2px 2px;
  mix-blend-mode: soft-light;
  opacity: 0.16;
}

.portal {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  margin: 2rem auto 3rem;
}

.hero {
  margin-bottom: 1.2rem;
}

.eyebrow {
  margin: 0;
  color: var(--lime);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  font-size: 0.78rem;
}

h1 {
  margin: 0.35rem 0 0.55rem;
  font-size: clamp(1.7rem, 4vw, 2.75rem);
  line-height: 1.05;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 75ch;
}

.layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1rem;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.guide h2,
.catalog h2 {
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.guide ol {
  margin: 0;
  padding-left: 1.05rem;
  color: var(--muted);
  display: grid;
  gap: 0.62rem;
}

code {
  color: var(--lime);
  font-family: "SFMono-Regular", ui-monospace, Menlo, monospace;
  font-size: 0.86em;
}

.ghost-link {
  display: inline-block;
  margin-top: 0.85rem;
  color: var(--text);
  text-decoration-color: var(--lime);
  text-underline-offset: 0.2rem;
}

.catalog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

button {
  border: 1px solid var(--line);
  color: var(--text);
  background: #161618;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}

button:hover {
  border-color: var(--lime);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.75rem;
}

.project-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem;
  background: var(--panel);
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

h3 {
  margin: 0;
  font-size: 1rem;
}

.status {
  font-size: 0.73rem;
  text-transform: uppercase;
  border: 1px solid #3c3c3f;
  border-radius: 999px;
  padding: 0.16rem 0.55rem;
  color: var(--muted);
}

.project-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
  min-height: 3.8em;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.chips span {
  font-size: 0.74rem;
  color: #d0d0d0;
  background: #1a1a1d;
  border: 1px solid #303034;
  border-radius: 999px;
  padding: 0.2rem 0.52rem;
}

.links {
  display: flex;
  gap: 0.85rem;
}

.links a {
  color: var(--lime);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.87rem;
}

.links a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.empty {
  border: 1px dashed #404045;
  border-radius: 12px;
  padding: 1rem;
  color: var(--muted);
  grid-column: 1 / -1;
}

@media (max-width: 930px) {
  .layout {
    grid-template-columns: 1fr;
  }
}
