:root {
  --black: #0b0b0d;
  --purple: #7d43cf;
  --purple-dark: #6a35b6;
  --white: #fff;
  --text-soft: rgba(255, 255, 255, 0.88);
  --max: 1120px;
  --font: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--white);
  background: var(--purple);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--white); color: var(--black); padding: 8px 12px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--black);
}
.site-header .inner {
  max-width: var(--max); margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.brand img { width: 40px; height: auto; }
.nav-toggle {
  display: none; background: none; border: 0; color: var(--white);
  font-size: 1.6rem; cursor: pointer; padding: 4px 8px;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.site-nav a {
  text-decoration: none; text-transform: uppercase; font-weight: 700;
  font-size: 0.85rem; letter-spacing: 0.04em; color: var(--text-soft);
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--white); }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--black); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px 16px 16px; }
  .site-nav a { display: block; padding: 12px 0; }
}

/* Hero */
.hero {
  position: relative;
  min-height: clamp(260px, 42vw, 520px);
  display: grid; place-items: center; text-align: center;
  background: var(--black) center / cover no-repeat;
  padding: 48px 16px;
}
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.35); }
.hero > * { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem); text-transform: uppercase; letter-spacing: 0.03em; margin: 0;
}
.banner { margin: 0; background: var(--black); }
.banner img { width: 100%; max-height: 560px; object-fit: cover; }

/* Sections */
main section { padding: 56px 16px; }
.container { max-width: var(--max); margin: 0 auto; }
.narrow { max-width: 760px; margin: 0 auto; text-align: center; }
.section-title { font-size: clamp(1.6rem, 3.5vw, 2.4rem); text-transform: uppercase; text-align: center; }
.lead { font-size: 1.15rem; color: var(--text-soft); }

/* Home cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }
.card { text-align: center; }
.card a.thumb { display: block; border-radius: 8px; overflow: hidden; }
.card a.thumb img { aspect-ratio: 1; object-fit: cover; width: 100%; transition: transform 0.25s; }
.card a.thumb:hover img { transform: scale(1.04); }
.card h2 { font-size: 1.35rem; margin-top: 18px; }
.card h2 a { text-decoration: none; }
.card h2 a:hover { text-decoration: underline; }
.card p { color: var(--text-soft); margin: 0; }

/* Games */
.game { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.game + .game { margin-top: 64px; }
.game img { border-radius: 8px; width: 100%; }
.game h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); text-transform: uppercase; }
.game p { color: var(--text-soft); }
.steam-widget { width: 100%; max-width: 646px; height: 190px; border: 0; margin-top: 12px; }
.btn {
  display: inline-block; margin-top: 8px; padding: 12px 22px; border-radius: 6px;
  background: var(--black); color: var(--white); font-weight: 700; text-decoration: none;
}
.btn:hover { background: #222; }
@media (max-width: 760px) {
  .game { grid-template-columns: 1fr; gap: 20px; }
  .game img { max-width: 300px; margin: 0 auto; }
}

/* Services */
.services { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 20px; text-align: left; }
.services li { background: var(--purple-dark); padding: 20px 24px; border-radius: 8px; }
.services h2 { font-size: 1.15rem; margin-bottom: 4px; }
.services p { margin: 0; color: var(--text-soft); }
.portfolio-link { display: inline-block; margin-top: 16px; border-radius: 8px; overflow: hidden; }

/* Footer */
.site-footer { background: var(--black); padding: 40px 16px; text-align: center; }
.site-footer h2 { font-size: 1.1rem; font-weight: 700; }
.social { list-style: none; padding: 0; margin: 16px 0 24px; display: flex; gap: 20px; justify-content: center; }
.social a { display: block; width: 32px; height: 32px; opacity: 0.9; }
.social a:hover { opacity: 1; }
.social svg, .social img { width: 32px; height: 32px; }
.site-footer p { margin: 0; font-size: 0.9rem; color: var(--text-soft); }
