:root {
  --tlo: #eef3ef;
  --tekst: #1c2b2d;
  --akcent: #3454d1;
  --akcent-tekst: #ffffff;
  --karta: #ffffff;
  --linia: #cfdad3;
  --szerokosc: 1000px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --tlo: #141c1e;
    --tekst: #e6eeea;
    --akcent: #8da2ff;
    --akcent-tekst: #101734;
    --karta: #1d282b;
    --linia: #2f3d40;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--tlo);
  color: var(--tekst);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

a { color: var(--akcent); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--akcent);
  outline-offset: 3px;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--szerokosc);
  margin: 0 auto;
  padding: 1.2rem 1.5rem;
}
.logo { font-weight: 800; font-size: 1.2rem; color: var(--tekst); text-decoration: none; }
nav a { margin-left: 1.2rem; color: var(--tekst); text-decoration: none; }
nav a:hover { color: var(--akcent); }

main, footer { max-width: var(--szerokosc); margin: 0 auto; padding: 0 1.5rem; }

section { padding: 3rem 0; border-top: 1px solid var(--linia); }

.hero { border-top: none; padding: 5rem 0 4rem; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4.5rem); line-height: 1.05; margin: 0 0 1rem; }
.hero p { font-size: 1.2rem; max-width: 36ch; }

.button {
  display: inline-block;
  background: var(--akcent);
  color: var(--akcent-tekst);
  padding: 0.8rem 1.4rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}
.button:hover { opacity: 0.9; }

h2 { font-size: 1.8rem; margin: 0 0 1.5rem; }

.games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.game {
  background: var(--karta);
  border: 1px solid var(--linia);
  border-radius: 12px;
  overflow: hidden;
}
.game img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--linia); }
.game div { padding: 1rem 1.2rem 1.3rem; }
.game h3 { margin: 0 0 0.3rem; }
.game .status { font-size: 0.9rem; opacity: 0.75; margin: 0 0 0.6rem; }
.game p { margin: 0 0 0.8rem; }

.about p, #kontakt p { max-width: 60ch; }

footer { padding-top: 2rem; padding-bottom: 3rem; border-top: 1px solid var(--linia); opacity: 0.8; }

@media (max-width: 520px) {
  .top { flex-direction: column; gap: 0.5rem; }
  nav a { margin: 0 0.6rem; }
}
