:root {
  --bg: #ffffff;
  --ink: #0e0e0e;
  --muted: #8b8b8b;
  --line: #e4e4e4;
  --gap: 10px;
  --side: 4vw;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter Tight", "Inter", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; background: #f1f1f1; }

/* --- górny pasek --- */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--side);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
}
.logo { font-weight: 700; font-size: 20px; letter-spacing: -.02em; text-transform: uppercase; }
.bar nav { display: flex; gap: 28px; font-size: 14px; }
.bar nav a { color: var(--muted); transition: color .2s; }
.bar nav a:hover, .bar nav a[aria-current] { color: var(--ink); }

/* --- wielka typografia --- */
.hero { padding: 12vh var(--side) 10vh; }
.hero h1 {
  font-weight: 700;
  font-size: clamp(56px, 11vw, 190px);
  line-height: .88;
  letter-spacing: -.045em;
  text-transform: uppercase;
}
/* na stronie głównej napis w jednej linii, żeby okładki były widoczne od razu */
.hero-home { padding: 7vh var(--side) 6vh; }
.hero-home h1 { font-size: clamp(40px, 6.6vw, 120px); }
.hero-home p { margin-top: 16px; }
.hero p { margin-top: 28px; max-width: 520px; color: var(--muted); font-size: 17px; }

.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tags span {
  font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  border: 1px solid currentColor; border-radius: 999px; padding: 2px 9px;
}

/* --- strona główna: okładki sesji, 2 w rzędzie --- */
.covers {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6vw 2vw;
  padding: 0 var(--side) 14vh;
}
.cover .frame { overflow: hidden; aspect-ratio: 4 / 5; }
.cover img { height: 100%; object-fit: cover; object-position: 50% 25%; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.cover:hover img { transform: scale(1.025); }
.cover .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 16px; }
.cover h2 { font-weight: 600; font-size: clamp(28px, 3.4vw, 54px); letter-spacing: -.035em; line-height: 1; }
.cover .count { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cover .tags { margin-top: 10px; color: var(--muted); }

/* --- strona sesji --- */
.intro {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4vw; align-items: end;
  padding: 0 var(--side) 8vh;
}
.intro p { font-size: 18px; max-width: 520px; }
.intro .tags { margin-top: 16px; }

.blocks { display: flex; flex-direction: column; gap: var(--gap); }
/* proporcje znane z góry, więc miejsce jest zarezerwowane przed wczytaniem */
.blocks img { aspect-ratio: var(--r); }

/* jedno zdjęcie na wysokość ekranu */
.b-full { display: flex; justify-content: center; padding: 0 var(--side); }
.b-full img {
  width: auto;
  height: min(calc(100vh - 2 * var(--gap)), calc((100vw - 2 * var(--side)) / var(--r)));
}

/* poziome na całą szerokość */
.b-wide img { width: 100%; }

/* rząd bez przycinania: szerokość ∝ proporcjom, wysokości równe */
.b-row {
  display: flex; gap: var(--gap);
  width: min(calc(100% - 2 * var(--side)), calc(var(--sum) * 96vh));
  margin: 0 auto;
}
.b-row > img, .b-row > figure { flex: var(--r) 1 0; min-width: 0; }

/* podpisy pod kadrami */
.blocks figure { display: flex; flex-direction: column; }
.b-full figure { align-items: flex-start; }
.blocks figcaption {
  display: flex; gap: 12px; margin-top: 8px;
  font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums;
}
.blocks figcaption b { font-weight: 500; color: var(--ink); }
/* kadr z podpisem na wysokość ekranu: zostawia miejsce na podpis */
.b-full figure img { height: min(calc(100vh - 2 * var(--gap) - 28px), calc((100vw - 2 * var(--side)) / var(--r))); }
.kadry { gap: 9vh; }
/* seria: rząd zdjęć z jednym wspólnym podpisem */
.b-set { width: min(calc(100% - 2 * var(--side)), calc(var(--sum) * 92vh)); margin: 0 auto; }
.b-set .b-row { width: 100%; }
.b-wide figcaption { padding: 0 var(--side); }

/* nagłówek działu na stronie głównej (Kadry pod sesjami) */
html { scroll-behavior: smooth; }
#sesje, #kadry, #kontakt { scroll-margin-top: 70px; }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 0 var(--side) 6vh;
  border-top: 1px solid var(--line); padding-top: 8vh;
}
.section-head h2 { font-weight: 700; font-size: clamp(48px, 9vw, 150px); line-height: .9; letter-spacing: -.045em; text-transform: uppercase; }
.section-head .count { color: var(--muted); font-size: 13px; white-space: nowrap; }

/* duże + dwa mniejsze jedno pod drugim */
.b-feature {
  display: grid; grid-template-columns: 2fr 1fr; gap: var(--gap);
  /* przy kadrach 2:3 wysokość bloku ≈ jego szerokość, więc limit 96vh mieści go w ekranie */
  width: min(calc(100% - 2 * var(--side)), 96vh);
  margin: 0 auto;
}
.b-feature.reverse { grid-template-columns: 1fr 2fr; }
.b-feature .big { grid-row: span 2; height: 100%; }
.b-feature.reverse .big { grid-column: 2; grid-row: 1 / span 2; }
.b-feature img { object-fit: cover; object-position: 50% 30%; }
.b-feature img:not(.big) { aspect-ratio: 2 / 3; }

.credits {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4vw;
  padding: 14vh var(--side) 0;
}
.credits dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 32px; }
.credits dt { color: var(--muted); }

/* następna sesja */
.next {
  display: block; margin-top: 14vh; padding: 6vh var(--side) 8vh;
  border-top: 1px solid var(--line);
}
.next small { color: var(--muted); font-size: 13px; }
.next .row { display: flex; justify-content: space-between; align-items: center; gap: 4vw; margin-top: 10px; }
.next strong {
  font-weight: 700; font-size: clamp(48px, 9vw, 150px);
  line-height: .9; letter-spacing: -.045em; text-transform: uppercase;
}
.next img { width: clamp(90px, 12vw, 180px); aspect-ratio: 4 / 5; object-fit: cover; }
.next:hover strong { text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .08em; }

footer.site {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 28px var(--side); border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13px;
}

@media (max-width: 760px) {
  :root { --gap: 6px; --side: 16px; }
  .bar nav { gap: 16px; }
  .covers { grid-template-columns: 1fr; gap: 56px; }
  .intro, .credits { grid-template-columns: 1fr; }
  .b-full { padding: 0; }
  .b-full img { height: auto; width: 100%; }
  .b-row { flex-wrap: wrap; width: 100%; padding: 0 var(--side); }
  .b-row > img, .b-row > figure { flex-basis: calc(50% - var(--gap)); }
  .b-full figure { width: 100%; }
  .b-full figure img { height: auto; width: 100%; }
  .kadry { gap: 48px; }
  .b-feature { width: calc(100% - 2 * var(--side)); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
