/* Scourgeyworks — studio site.
   Layout: one column, 1120px max, games as alternating full-width panels that
   each carry their own palette; the studio chrome stays a dark navy so both a
   neon shooter and a pastel card game sit comfortably on the same page.
   Single committed dark look (chosen, not defaulted). */

:root {
  color-scheme: dark;
  --bg: #0f1120;          /* studio ground: the Decapsulation board, lifted */
  --bg-2: #161930;        /* raised surface */
  --line: #262a48;
  --fg: #eceef8;
  --muted: #a3a8c6;
  --gold: #f2bf4d;        /* studio accent: PCB trace gold, chick yellow */
  --cyan: #4de6ff;        /* Decapsulation hero */
  --red: #ff4059;         /* Decapsulation horde */
  --sky: #5cc8ff;         /* Innocent Chicks logo blue */
  --pink: #ff5fae;        /* Innocent Chicks logo pink */
  --cream: #fff7e6;       /* Innocent Chicks panel ground */
  --ink: #1d1a2e;         /* text on cream */

  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1120px;
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  padding-inline: var(--gutter);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: 0.18em; }
a:hover { color: #ffd77a; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: var(--gutter); top: -100px;
  background: var(--gold); color: var(--bg); padding: 10px 14px; border-radius: 8px;
  font-weight: 700; text-decoration: none; z-index: 10;
}
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- header */
.top {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 18px 8px;
  flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); }
.mark { width: 30px; height: 30px; flex: none; }
.wordmark { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; letter-spacing: -0.01em; }
.wordmark b { font-weight: 800; }
.nav { display: flex; align-items: center; gap: 4px 6px; flex-wrap: wrap; }
.nav a {
  color: var(--muted); text-decoration: none; font-weight: 600;
  padding: 10px 12px; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center;
}
.nav a:hover { color: var(--fg); background: var(--bg-2); }
.nav .nav-cta { color: var(--bg); background: var(--gold); padding-inline: 16px; }
.nav .nav-cta:hover { background: #ffd77a; color: var(--bg); }

/* ---------------------------------------------------------------- hero */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding-block: clamp(40px, 8vw, 96px) clamp(32px, 6vw, 64px);
  position: relative;
}
.hero::before {
  /* faint circuit grid behind the headline, fades out toward the bottom */
  content: ""; position: absolute; inset: 0 calc(-1 * var(--gutter)); z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.45;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
}
.eyebrow {
  margin: 0 0 14px; font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
}
.hero h1 {
  margin: 0; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.1rem, 6vw, 4.2rem); line-height: 1.05; letter-spacing: -0.02em;
  text-wrap: balance; max-width: 16ch;
}
.lede { margin: 20px 0 0; max-width: 58ch; font-size: 1.2rem; color: var(--muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-strip {
  list-style: none; margin: 36px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  color: var(--muted); font-family: var(--font-mono); font-size: 0.85rem; font-weight: 500;
}
.hero-strip li::before { content: "▸ "; color: var(--gold); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; min-height: 48px; padding: 10px 20px; border-radius: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; text-align: center; border: 2px solid transparent;
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sub { font-family: var(--font-body); font-weight: 400; font-size: 0.8rem; opacity: 0.85; }
.btn-primary { background: var(--gold); color: var(--bg); }
.btn-primary:hover { background: #ffd77a; color: var(--bg); }
.btn-secondary { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--muted); color: var(--fg); }
.btn-steam { background: #1b2838; color: #c7d5e0; border-color: #2a475e; }
.btn-steam:hover { border-color: #66c0f4; color: #fff; }
.btn.is-soon { cursor: default; opacity: 0.72; }
.btn.is-soon:hover { transform: none; border-color: #2a475e; color: #c7d5e0; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* ---------------------------------------------------------------- games */
.section-title {
  max-width: var(--max); margin: 0 auto 22px;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.01em;
}
.games { padding-block: 24px 40px; display: grid; gap: 28px; }
.games .section-title { width: 100%; }

.game {
  max-width: var(--max); width: 100%; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px);
  align-items: center;
  padding: clamp(20px, 3.5vw, 40px);
  border-radius: var(--radius);
  background: var(--panel-bg, var(--bg-2));
  color: var(--panel-fg, var(--fg));
  border: 1px solid var(--panel-line, var(--line));
}
.game-art { position: relative; min-width: 0; }
.game-art img { border-radius: 12px; width: 100%; }
.game-body { min-width: 0; display: grid; gap: 14px; align-content: start; }
.game-kicker {
  margin: 0; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--panel-accent, var(--gold));
}
.game-title {
  margin: 0; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.05; letter-spacing: -0.02em;
}
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--panel-tag-line, var(--line));
  background: var(--panel-tag-bg, transparent);
  color: var(--panel-tag-fg, var(--muted));
}
.game-blurb { margin: 4px 0 0; font-size: 1.05rem; max-width: 60ch; }
.features { margin: 0; padding-left: 1.2em; max-width: 62ch; display: grid; gap: 8px; }
.features li::marker { color: var(--panel-accent, var(--gold)); }
.features b { font-weight: 700; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.social { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 0.95rem; }
.social a { color: var(--panel-link, var(--gold)); font-weight: 600; }

/* Decapsulation: neon on the dark board */
.game-decap {
  --panel-bg: #0d0f1c;
  --panel-line: #24304f;
  --panel-accent: var(--cyan);
  --panel-tag-line: #24304f;
  --panel-tag-fg: #b9c3e6;
  background-image: radial-gradient(60% 80% at 20% 50%, rgba(77, 230, 255, 0.10), transparent 70%);
}
.game-decap .game-title { color: var(--cyan); text-shadow: 0 0 18px rgba(77, 230, 255, 0.35); }
.game-decap .game-art img { box-shadow: 0 0 0 1px #24304f, 0 24px 60px -20px rgba(77, 230, 255, 0.35); }
.game-decap .btn-secondary { color: var(--fg); }

/* Innocent Chicks: cream and sky, its own world inside the dark page */
.game-chicks {
  --panel-bg: var(--cream);
  --panel-fg: var(--ink);
  --panel-line: #f3d9a4;
  --panel-accent: #d0338a;
  --panel-tag-line: #b9e3ff;
  --panel-tag-bg: #ffffff;
  --panel-tag-fg: #2c5f80;
  --panel-link: #b8267a;
  background-image: radial-gradient(70% 90% at 85% 20%, rgba(92, 200, 255, 0.28), transparent 70%);
}
.game-chicks .game-art { grid-column: 2; grid-row: 1; }
.game-chicks .game-body { grid-column: 1; grid-row: 1; }
.game-chicks .game-title img { width: min(100%, 360px); height: auto; }
.game-chicks .chicks-cards { box-shadow: 0 24px 50px -22px rgba(29, 26, 46, 0.55); }
.game-chicks .chicks-mascot {
  position: absolute; width: 26%; max-width: 150px; right: -3%; bottom: -8%;
  filter: drop-shadow(0 10px 14px rgba(29, 26, 46, 0.35));
  transform: rotate(-8deg);
}
.game-chicks a { color: var(--panel-link); }
.game-chicks a:hover { color: #8e1a5c; }
.game-chicks .btn-primary { background: #d63384; color: #fff; }
.game-chicks .btn-primary:hover { background: #e8438f; color: #fff; }
.game-chicks .btn-secondary { color: var(--ink); border-color: #e2c48a; }
.game-chicks .btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.game-chicks :focus-visible { outline-color: var(--pink); }
.game-chicks .game-blurb { color: #3a3650; }

/* ---------------------------------------------------------------- about */
.about { max-width: var(--max); margin: 0 auto; padding-block: 40px 56px; border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.about-grid p { margin: 0; max-width: 62ch; color: var(--muted); }
.facts { margin: 32px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.facts > div { min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.facts dt { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- footer */
.foot {
  max-width: var(--max); margin: 0 auto; padding-block: 24px 40px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
}
.foot p { margin: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--fg); }

/* ---------------------------------------------------------------- narrow */
@media (max-width: 800px) {
  .game { grid-template-columns: minmax(0, 1fr); }
  .game-chicks .game-art, .game-chicks .game-body { grid-column: 1; }
  .game-chicks .game-art { grid-row: 1; }
  .game-chicks .game-body { grid-row: 2; }
  .game-chicks .chicks-mascot { right: 2%; bottom: -6%; }
  .btn { width: 100%; }
}
