/*
 * Landing page „Dziedzictwo Przysięgi" / „Legacy of the Oath".
 * Statyczna, samowystarczalna (jeden CSS, zero JS). Paleta = tokeny z gry (apps/web/src/index.css),
 * żeby strona i gra wyglądały spójnie. Fonty z Google Fonts z solidnym fallbackiem serif/sans.
 */
:root {
  --bg0: #0f1115;
  --bg1: #161922;
  --bg2: #1e2230;
  --ink: #e8e3d6;
  --ink-muted: #bcb6a8;
  --beacon: #e7b06a; /* złoto — akcent wiodący */
  --beacon-soft: #f3d9ad;
  --shadow: #a886c4;
  --war: #db6c5f;
  --influence: #d8b45e;
  --expedition: #7fb89f;
  --scar: #d0726b;
  --line: #2c3140;
  --line-strong: #3d4456;
  --maxw: 64rem;
  --font-display: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg0);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--beacon);
  text-decoration: none;
}
a:hover {
  color: var(--beacon-soft);
}

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

/* ── Przełącznik języka ─────────────────────────────────────────── */
.lang {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  /* `.hero` jest position:relative i PÓŹNIEJ w DOM → bez tego maluje się NA wierzchu przełącznika
     (równy z-index = kolejność DOM) i zasłania go swoim tłem. z-index podnosi przełącznik nad hero. */
  z-index: 10;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}
.lang a {
  color: var(--ink-muted);
}
.lang a[aria-current='true'] {
  color: var(--beacon);
  font-weight: 600;
}

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 6.5rem 0 4rem;
  text-align: center;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(231, 176, 106, 0.08), transparent 55%),
    linear-gradient(180deg, var(--bg1), var(--bg0));
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1.05;
  margin: 0 0 0.4rem;
  letter-spacing: 0.01em;
}
.hero .tagline {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  color: var(--beacon);
  margin: 0 0 1.4rem;
}
.hero .pitch {
  max-width: 40rem;
  margin: 0 auto 2rem;
  color: var(--ink-muted);
  font-size: 1.1rem;
}

/* ── Przycisk CTA ───────────────────────────────────────────────── */
.cta {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--beacon);
  color: #1a1206;
  font-weight: 600;
  border-radius: 0.4rem;
  letter-spacing: 0.02em;
  transition: transform 0.12s ease, background 0.12s ease;
}
.cta:hover {
  background: var(--beacon-soft);
  color: #1a1206;
  transform: translateY(-1px);
}
.cta-note {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* ── Sekcje ─────────────────────────────────────────────────────── */
section {
  padding: 3.5rem 0;
}
.lede {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
  font-size: 1.15rem;
  color: var(--ink);
}

/* ── Filary ─────────────────────────────────────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}
@media (max-width: 860px) {
  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}
.pillar {
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 1.4rem 1.5rem;
}
.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0 0 0.5rem;
  color: var(--beacon-soft);
}
.pillar p {
  margin: 0;
  color: var(--ink-muted);
}

/* ── Galeria screenów ───────────────────────────────────────────── */
.shots {
  display: grid;
  gap: 2rem;
}
/* Para zrzutów obok siebie (Wyprawa + Cień) — pół szerokości każdy; na wąskich ekranach w kolumnę. */
.shot-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 640px) {
  .shot-row {
    grid-template-columns: 1fr;
  }
}
figure.shot {
  margin: 0;
}
figure.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-strong);
  border-radius: 0.6rem;
  background: var(--bg2);
  /* Placeholder zanim wgrasz prawdziwy plik: minimalna wysokość + tekst alt widoczny w ramce. */
  min-height: 12rem;
}
figure.shot figcaption {
  margin-top: 0.75rem;
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

h2.section-title {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 2rem;
}

/* ── Stopka ─────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--line);
  background: var(--bg1);
  text-align: center;
  padding: 3rem 0 3.5rem;
}
footer .status {
  color: var(--ink-muted);
  margin: 0 0 1.4rem;
}
footer .contact {
  margin-top: 1.4rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .cta {
    transition: none;
  }
}
