/* StarRaid — minimal static site. Dark "deep space" theme, no dependencies. */

:root {
  --bg: #0a0e17;
  --bg-alt: #0e1422;
  --panel: #131b2e;
  --panel-2: #18223a;
  --border: #243049;
  --text: #d7e0f0;
  --muted: #8696b5;
  --accent: #4fd1c5;
  --accent-2: #7aa2ff;
  --maxw: 1040px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, monospace; font-size: 0.9em; }

/* --- header / nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { color: var(--text); font-weight: 700; letter-spacing: 0.5px; }
.brand:hover { text-decoration: none; color: var(--accent); }
.nav-links { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.nav-links a { color: var(--muted); font-size: 0.92rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links .ext { color: var(--accent); }

/* --- hero --- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(1200px 500px at 70% -10%, rgba(122, 162, 255, 0.16), transparent 60%),
    radial-gradient(900px 500px at 10% 10%, rgba(79, 209, 197, 0.12), transparent 55%);
}
.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, #fff, transparent),
    radial-gradient(1px 1px at 60% 70%, #cfe0ff, transparent),
    radial-gradient(1px 1px at 80% 20%, #fff, transparent),
    radial-gradient(1px 1px at 35% 80%, #aebfe6, transparent),
    radial-gradient(1px 1px at 90% 55%, #fff, transparent),
    radial-gradient(1px 1px at 12% 60%, #fff, transparent);
  opacity: 0.5;
}
.hero-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 5rem 1.25rem 4rem;
}
.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -1px;
  background: linear-gradient(120deg, #fff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tagline { font-size: clamp(1.1rem, 2.4vw, 1.45rem); max-width: 44ch; margin: 0.25rem 0 0.75rem; }
.sub { color: var(--muted); max-width: 60ch; margin: 0 0 1.75rem; }
.cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 0.6rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  background: var(--panel);
  font-weight: 600;
  font-size: 0.95rem;
}
.btn:hover { border-color: var(--accent); text-decoration: none; }
.btn.primary { background: var(--accent); color: #042a26; border-color: var(--accent); }
.btn.primary:hover { background: #6ee0d5; }
.lineage { color: var(--muted); font-size: 0.85rem; margin-top: 2rem; }

/* --- sections --- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 4rem 1.25rem; }
.section.alt { max-width: none; background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section.alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); margin: 0 0 1rem; }
.section > p { color: var(--muted); max-width: 70ch; }
.section > p strong { color: var(--text); }

/* --- game cards --- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-top: 1.75rem; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem; }
.card h3 { margin: 0 0 0.5rem; font-size: 1.08rem; color: var(--accent); }
.card p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.card p strong, .card p em { color: var(--text); }

/* --- status --- */
.status-list { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 0.6rem; }
.status-list li { display: flex; align-items: baseline; gap: 0.7rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; transform: translateY(1px); }
.dot.done { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.dot.wip { background: var(--accent-2); box-shadow: 0 0 8px var(--accent-2); }
.note { color: var(--muted); font-size: 0.9rem; border-left: 2px solid var(--border); padding-left: 1rem; }

/* --- repos --- */
.repos { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin-top: 1.75rem; }
.repo { display: block; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem; transition: border-color 0.15s, transform 0.15s; }
.repo:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.repo h3 { margin: 0 0 0.45rem; color: var(--text); font-size: 1.1rem; display: flex; align-items: center; gap: 0.6rem; }
.repo p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.tag { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; color: var(--accent); background: rgba(79, 209, 197, 0.1); border: 1px solid var(--border); border-radius: 999px; padding: 0.12rem 0.55rem; }

/* --- code blocks --- */
pre {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  overflow-x: auto;
  margin: 1.25rem 0;
}
pre code { color: #c7d6f5; line-height: 1.55; }

/* --- footer --- */
.site-footer { border-top: 1px solid var(--border); padding: 2.5rem 1.25rem; text-align: center; color: var(--muted); }
.site-footer p { margin: 0.3rem 0; }
.site-footer .muted { font-size: 0.85rem; }

@media (max-width: 560px) {
  .nav-links { gap: 0.75rem; }
  .hero-inner { padding: 3.5rem 1.25rem 3rem; }
}
