/* ==========================================================
   FeatureKreep — site styles
   Change the colours here and they update everywhere.
   ========================================================== */
:root {
  --bg: #0F0F0D;
  --surface: #161614;
  --surface-2: #1D1D1A;
  --line: #2E2D29;
  --text: #EDEBE4;
  --text-2: #C9C6BC;
  --muted: #A3A097;
  --accent: #C6F432;
  --on-accent: #0F0F0D;

  --display: 'Bricolage Grotesque', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--display);
  -webkit-font-smoothing: antialiased;
  transition: background-color .4s ease;
}

a { color: var(--text); }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 16px; }

/* ---------- "Grid" feature ---------- */
body.grid {
  background-image:
    linear-gradient(rgba(237, 235, 228, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 235, 228, .05) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ---------- Header ---------- */
.site-header {
  padding-top: 28px; padding-bottom: 28px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.02em;
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--accent); color: var(--on-accent);
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.main-nav {
  display: flex; flex-wrap: wrap; gap: 28px;
  font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .08em;
}
.main-nav a { text-decoration: none; padding: 12px 0; }

/* ---------- Hero ---------- */
.hero-wrap {
  position: relative; overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg) url(media/montage-poster.jpg) center / cover no-repeat;
}
.bgvid {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.35) blur(2px); transform: scale(1.04);
  transition: filter .6s ease;
}
.veil {
  position: absolute; inset: 0; background: var(--bg);
  opacity: .8; transition: opacity .6s ease;
}
.hero-wrap:hover .veil { opacity: .55; }
.hero-wrap:hover .bgvid { filter: saturate(1) blur(0); }

.hero-inner { position: relative; padding-top: 120px; padding-bottom: 112px; }

.eyebrow {
  margin: 0 0 20px; font-family: var(--mono); font-size: 13px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--text-2);
}

.hero {
  margin: 0; font-size: clamp(56px, 12vw, 176px); line-height: .92;
  font-weight: 800; letter-spacing: -0.045em;
}

/* Each letter jumps and turns lime on hover */
.ch { display: inline-block; transition: transform .25s ease, color .25s ease; }
.ch:hover { transform: translateY(-14px) rotate(-6deg); color: var(--accent); }

.lede { margin: 32px 0 0; max-width: 560px; font-size: 20px; line-height: 1.5; color: var(--text-2); }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; white-space: nowrap; padding: 14px 0;
  border-bottom: 1px solid var(--line);
  background: var(--accent); color: var(--on-accent);
  font-family: var(--mono); font-weight: 600; font-size: 14px; letter-spacing: .12em;
}
.track { display: flex; width: max-content; animation: slide 22s linear infinite; }
.track span { padding-right: 40px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-top: 96px; padding-bottom: 48px; }
h2 { margin: 0; font-size: clamp(36px, 5vw, 56px); font-weight: 800; letter-spacing: -0.03em; }
.section-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 36px;
}
.hint { font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* ---------- Game cards ---------- */
.games-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }

.card {
  display: flex; flex-direction: column; text-decoration: none; overflow: hidden;
  border: 1px solid var(--line); border-radius: 18px; background: var(--surface);
  transition: transform .3s var(--ease-out), border-color .3s;
}
.card:hover { transform: translateY(-6px); border-color: var(--accent); color: var(--text); }

.thumb-box { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.thumb {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s var(--ease-out);
}
.thumb-placeholder {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 13px; color: var(--muted);
  background-image: radial-gradient(circle at 40% 40%, #2A3312 0, transparent 55%);
}
.card:hover .thumb { transform: scale(1.04) rotate(-1deg); }

.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; }
.card-meta { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-title { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.card-pitch { font-size: 16px; line-height: 1.5; color: var(--text-2); }
.go { flex: none; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
.card:hover .go { transform: translateX(6px); }

/* ---------- About ---------- */
.about {
  padding-top: 72px; padding-bottom: 72px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; align-items: start;
}
.about p { margin: 0; font-size: 20px; line-height: 1.6; color: var(--text-2); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer-grid {
  padding-top: 72px; padding-bottom: 48px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px;
}
.ico, .arr { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico { stroke: var(--accent); }
.arr { stroke: currentColor; }

.email {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: clamp(22px, 3vw, 34px); font-weight: 700; letter-spacing: -0.02em; word-break: break-all;
}
.socials { display: flex; flex-direction: column; font-size: 22px; font-weight: 600; }
.soc {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none;
  transition: padding-left .25s, color .2s;
}
.soc:hover { padding-left: 12px; }
.soc-icon {
  width: 40px; height: 40px; flex: none; border-radius: 10px;
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  transition: background-color .2s, border-color .2s;
}
.soc:hover .soc-icon { background: var(--accent); border-color: var(--accent); }
.soc:hover .soc-icon .ico { stroke: var(--on-accent); }
.soc-label { flex: 1 1 auto; }
.copyright { padding-bottom: 32px; font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ---------- Accessibility: respect "reduce motion" ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .track { animation: none !important; }
  .bgvid { display: none; }
}
