/* Sycamore Hill Studios — shared styles.
   Palette lifted from Idle Orbit so the site and the games feel related. */

:root {
  --bg: #0a0e1a;
  --bg-raised: #141a2e;
  --bg-raised-2: #1b2238;
  --border: #252d47;
  --text: #e8ecf5;
  --text-dim: #99a3bd;
  --accent: #00e5a0;
  --accent-dim: #00b47e;
  --gold: #ffc44d;
  --radius: 12px;
  --maxw: 880px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Starfield: two layered radial-gradient tiles, no images to load. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,.55), transparent),
    radial-gradient(1px 1px at 70% 15%, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 45% 75%, rgba(255,255,255,.35), transparent),
    radial-gradient(1.5px 1.5px at 85% 60%, rgba(255,255,255,.3), transparent),
    radial-gradient(1px 1px at 10% 85%, rgba(255,255,255,.4), transparent);
  background-size: 300px 300px, 250px 250px, 400px 400px, 350px 350px, 280px 280px;
  opacity: .7;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ── Header ───────────────────────────────────────────── */
header {
  border-bottom: 1px solid var(--border);
  background: rgba(10, 14, 26, .85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}
.brand {
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 9px;
}
.brand .orb {
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent), 0 0 22px rgba(0,229,160,.45);
  flex: none;
}
nav { display: flex; gap: 20px; flex-wrap: wrap; }
nav a { color: var(--text-dim); text-decoration: none; font-size: 15px; }
nav a:hover, nav a:focus-visible { color: var(--accent); }

/* ── Type ─────────────────────────────────────────────── */
h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.2; margin: 0 0 10px; letter-spacing: -.5px; }
h2 { font-size: 21px; margin: 2.2em 0 .6em; color: var(--text); }
h3 { font-size: 17px; margin: 1.6em 0 .4em; }
p { margin: .8em 0; }
a { color: var(--accent); }
.lede { font-size: 18px; color: var(--text-dim); margin-bottom: 28px; }
.muted { color: var(--text-dim); }
.date { color: var(--text-dim); font-style: italic; font-size: 14px; }

main { padding: 44px 0 72px; }
section { margin-bottom: 44px; }

/* ── Game cards ───────────────────────────────────────── */
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.game {
  display: block;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, transform .15s;
}
.game:hover, .game:focus-visible {
  border-color: var(--accent-dim);
  transform: translateY(-2px);
}
.game .title { font-weight: 650; margin-bottom: 3px; }
.game .meta { color: var(--text-dim); font-size: 13.5px; }

/* ── Buttons / badges ─────────────────────────────────── */
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 22px 0; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #06281e;
  font-weight: 650;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 999px;
  border: 0;
  font-size: 15px;
  cursor: pointer;
}
.btn:hover, .btn:focus-visible { background: #22f0b4; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
  font-weight: 500;
  cursor: default;
}

.pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .4px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.pill.live { color: var(--accent); border-color: var(--accent-dim); }
.pill.soon { color: var(--gold); border-color: #6b5620; }

/* ── Feature list ─────────────────────────────────────── */
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.features li { padding-left: 26px; position: relative; color: var(--text-dim); }
.features li::before {
  content: "◆";
  position: absolute;
  left: 4px;
  color: var(--accent);
  font-size: 11px;
  top: 4px;
}
.features strong { color: var(--text); font-weight: 600; }

/* ── Panels ───────────────────────────────────────────── */
.panel {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

/* ── Contact form ─────────────────────────────────────── */
form { display: grid; gap: 14px; max-width: 520px; }
label { font-size: 14px; font-weight: 600; display: block; margin-bottom: 5px; }
input, textarea {
  width: 100%;
  background: var(--bg-raised-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 11px 13px;
  font: inherit;
  font-size: 15px;
}
input:focus, textarea:focus { outline: 2px solid var(--accent-dim); outline-offset: 1px; }
textarea { min-height: 140px; resize: vertical; }

/* Honeypot — hidden from people, visible to bots. Not display:none,
   which some bots specifically skip. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { font-size: 15px; min-height: 22px; margin: 0; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #ff6b6b; }

/* ── Footer ───────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 26px 0 40px;
  color: var(--text-dim);
  font-size: 14px;
}
footer a { color: var(--text-dim); }
footer a:hover { color: var(--accent); }
.footer-legal { margin-top: 8px; font-size: 13px; opacity: .8; }

@media (max-width: 520px) {
  nav { gap: 14px; }
  main { padding: 30px 0 52px; }
}
