@import url('../game/fonts/fonts.css');

:root {
  --bg: #0d0f14;
  --surface: #141821;
  --surface-2: #1b2029;
  --text: #e7e9ee;
  --text-muted: #9aa1b0;
  --border: #272d3a;
  --accent: #7c95ff;
  --accent-2: #a9b8ff;
  --good: #7fd9a0;
}

/* Overfit is a deliberately single-theme "lab terminal" brand: the game itself
   commits to this dark palette, so the site wrapping it does too, rather than
   presenting a different look on the way in. */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  line-height: 1.6;
}

h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; text-wrap: balance; margin: 0; }
a { color: var(--accent-2); }
.num { font-family: 'IBM Plex Mono', monospace; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }

header.site-nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
header.site-nav .inner {
  max-width: 880px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
header.site-nav .brand { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.1rem; text-decoration: none; color: var(--text); }
header.site-nav nav { display: flex; gap: 18px; }
header.site-nav nav a { color: var(--text-muted); text-decoration: none; font-size: .88rem; }
header.site-nav nav a:hover { color: var(--accent-2); }

.hero { padding: 56px 0 32px; text-align: center; }
.hero .kicker {
  display: inline-block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-2); background: rgba(124,149,255,.12); padding: 4px 12px; border-radius: 999px; margin-bottom: 16px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 12px; }
.hero p.lead { color: var(--text-muted); font-size: 1.05rem; max-width: 56ch; margin: 0 auto 26px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: .92rem; border: 1px solid transparent;
}
.btn.primary { background: var(--accent); color: #0d0f14; }
.btn.secondary { background: transparent; color: var(--text); border-color: var(--border); }

section { padding: 48px 0; border-top: 1px solid var(--border); }
section > .label {
  font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-2);
  font-weight: 600; margin-bottom: 8px;
}
section h2 { font-size: 1.6rem; margin-bottom: 6px; }
section .sub { color: var(--text-muted); margin: 0 0 24px; max-width: 64ch; }

.game-frame-wrap {
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface);
}
.game-frame-wrap iframe { display: block; width: 100%; height: 640px; border: 0; background: #0d0f14; }
.frame-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; border-top: 1px solid var(--border); font-size: .82rem; color: var(--text-muted);
}

.grid { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) { .grid { grid-template-columns: 1fr; } .game-frame-wrap iframe { height: 520px; } }

.portal-card {
  border: 1px solid var(--border); background: var(--surface); border-radius: 12px; padding: 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.portal-card h4 { font-size: 1rem; margin: 0; }
.portal-card .status {
  align-self: flex-start; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em;
  padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text-muted);
}
.portal-card p { margin: 0; color: var(--text-muted); font-size: .86rem; }

.devlog { display: flex; flex-direction: column; gap: 18px; }
.devlog-entry { border-left: 2px solid var(--border); padding-left: 16px; position: relative; }
.devlog-entry::before {
  content: ""; position: absolute; left: -5px; top: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}
.devlog-entry .tag {
  display: inline-block; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--accent-2); margin-bottom: 4px;
}
.devlog-entry h4 { font-size: .98rem; margin: 0 0 4px; font-family: 'IBM Plex Sans', sans-serif; font-weight: 600; }
.devlog-entry p { margin: 0; color: var(--text-muted); font-size: .88rem; }

footer.site-footer { padding: 28px 0 40px; color: var(--text-muted); font-size: .82rem; }
footer.site-footer .links { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
footer.site-footer .links a { color: var(--text-muted); }
footer.site-footer .links a:hover { color: var(--accent-2); }

.legal-doc { max-width: 720px; margin: 0 auto; padding: 48px 20px 80px; }
.legal-doc h1 { font-size: 1.8rem; margin-bottom: 6px; }
.legal-doc .updated { color: var(--text-muted); font-size: .82rem; margin-bottom: 28px; }
.legal-doc h2 { font-size: 1.1rem; margin: 32px 0 10px; }
.legal-doc p, .legal-doc li { color: var(--text); font-size: .92rem; }
.legal-doc .todo {
  background: rgba(232, 178, 115, .12); border: 1px solid rgba(232, 178, 115, .35); color: #e8b273;
  border-radius: 10px; padding: 14px 16px; margin-bottom: 28px; font-size: .86rem;
}
.legal-doc a.back { display: inline-block; margin-bottom: 20px; font-size: .86rem; }
