/* Układ: wąska scena o proporcjach slajdu, wszystko od lewej; między każdymi dwoma blokami
   ta sama przerwa (--rytm). Akcenty w Antonie jak na grafikach Mai, stopka na środku. */
:root {
  --ink: #000000;        /* tło, identyczne z tłem grafik: obrazy wtapiają się bez ramek */
  --paper: #ffffff;      /* tekst główny */
  --yolk: #fce010;       /* żółty z grafik, próbkowany z pliku */
  --ash: #a39f93;        /* ciepła szarość metadanych */
  --soot: #1c1b18;       /* linie i tła pomocnicze */

  --f-disp: "Anton", Impact, "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --f-text: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --t-label: 0.72rem;
  --t-small: clamp(0.92rem, 0.85rem + 0.25vw, 1.02rem);
  --t-body: clamp(1.08rem, 0.92rem + 0.7vw, 1.42rem);
  --t-lead: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);
  --t-d-m: clamp(1.95rem, 1.1rem + 3.4vw, 3.6rem);
  --t-d-l: clamp(2.7rem, 1.2rem + 6vw, 5.8rem);
  --t-d-xl: clamp(4.4rem, 1.6rem + 11vw, 10.5rem);

  --gutter: clamp(1.25rem, 5vw, 2.25rem);
  --rytm: clamp(1.4rem, 1rem + 1.6vw, 2.2rem);   /* jedna przerwa między blokami w obrębie slajdu */
  --odstep: clamp(3rem, 2rem + 4vw, 5rem);       /* jedna przerwa między slajdami */
  --radius: clamp(1rem, 3vw, 1.9rem);

  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-text);
  font-weight: 600;
  font-size: var(--t-body);
  line-height: 1.62;
  letter-spacing: 0.018em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--yolk); color: var(--ink); }
:focus-visible { outline: 2px solid var(--yolk); outline-offset: 4px; border-radius: 2px; }

.ukryte { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Szyld: dokładnie jak nagłówek grafik */
.szyld {
  display: flex;
  justify-content: flex-start;
  max-width: 46rem;
  margin-inline: auto;
  padding-block: clamp(1.75rem, 4vw, 2.75rem) 0;
  padding-inline: var(--gutter);
}
.szyld__h { margin: 0; font: inherit; }
.szyld a {
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.34em;
  color: var(--yolk);
  text-decoration: none;
  text-transform: uppercase;
}

.scena {
  max-width: 46rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.scena > article { display: flex; flex-direction: column; gap: var(--odstep); padding-block: calc(var(--rytm) * 1.5) 0; }
.kadr { display: flex; flex-direction: column; gap: var(--rytm); }

/* Typografia */
.d {
  font-family: var(--f-disp);
  font-weight: 400;
  color: var(--yolk);
  line-height: 1.1;   /* polskie akcenty nad wielkimi literami potrzebują miejsca między wierszami */
  letter-spacing: 0.004em;
  margin: 0;
  text-wrap: balance;
  filter: url(#szorstki);
}
.d--caps { text-transform: uppercase; }
.d--m { font-size: var(--t-d-m); line-height: 1.12; }
.d--l { font-size: var(--t-d-l); }
.d--xl { font-size: var(--t-d-xl); line-height: 0.9; filter: url(#szorstki-mocny); }
.d--prawo { align-self: flex-end; text-align: right; }

.t { margin: 0; max-width: 33em; text-wrap: pretty; }
.t + .t { margin-top: 0; }
.t--lead {
  font-size: var(--t-lead);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: 0.01em;
}
.t--maly { font-size: var(--t-small); font-weight: 400; line-height: 1.7; color: var(--paper); }

.meta {
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ash);
  margin: 0;
}

/* Okładka wpisu */
.okladka .d { max-width: 20ch; }
.okladka .d--tytul { max-width: none; }
.d--tytul { font-size: clamp(2.3rem, 0.55rem + 6.4vw, 5.1rem); }
.d--rok { font-size: clamp(3.2rem, 0.4rem + 13.2vw, 8.6rem); white-space: nowrap; line-height: 0.9; filter: url(#szorstki-mocny); }
.obraz { margin: 0; }
.obraz--zaokr img { border-radius: var(--radius); }
.obraz--szeroki { width: 100%; }
.obraz--prawo { align-self: flex-end; width: min(86%, 38rem); }
.obraz--srodek { align-self: flex-start; width: min(78%, 30rem); }
.obraz figcaption { margin-top: 0.7rem; font-size: 0.72rem; font-weight: 400; letter-spacing: 0.06em; color: var(--ash); }

/* "Czy to mało? Tak." */
.duet {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  align-items: center;
  column-gap: clamp(1.4rem, 5vw, 3.5rem);
}
.duet__pytanie {
  margin: 0;
  font-size: clamp(1.9rem, 1.1rem + 3.2vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.01em;
}

/* Długie pytanie obok krótkiej odpowiedzi: pytanie się zawija, odpowiedź nie */
.duet--dlugi { grid-template-columns: minmax(0, 1fr) auto; }
.duet--dlugi .duet__pytanie { font-size: var(--t-lead); line-height: 1.22; }

/* Schodki słów */
.kaskada {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--rytm);
}
.kaskada li { font-size: var(--t-d-m); }
.kaskada li:nth-child(2) { padding-left: 11%; }
.kaskada li:nth-child(3) { align-self: center; padding-left: 14%; }
.kaskada li:nth-child(4) { align-self: flex-end; }

/* Ramka metody i zastrzeżeń */
/* bez linii: odstęp nad ramką jest taki sam jak wszędzie */
.ramka {
  display: grid;
  grid-template-columns: minmax(6rem, 9rem) minmax(0, 1fr);
  gap: var(--rytm) clamp(1rem, 4vw, 2.5rem);
}
.ramka .meta { color: var(--yolk); }
.ramka .t + .t { margin-top: var(--rytm); }

/* Źródła */
.zrodlo {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: var(--rytm);
  align-items: center;
}
.zrodlo__tekst { display: flex; flex-direction: column; gap: var(--rytm); min-width: 0; }
.cytowanie { font-size: var(--t-small); font-weight: 400; line-height: 1.6; margin: 0; overflow-wrap: anywhere; }
.cytowanie b { font-weight: 700; color: var(--yolk); }
.cytowanie a { color: var(--yolk); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

/* Strona główna */
.wpisy { list-style: none; margin: 0; padding: calc(var(--rytm) * 0.5) 0 0; }
.wpis a {
  display: flex;
  flex-direction: column;
  gap: var(--rytm);
  padding-block: var(--rytm) calc(var(--rytm) * 1.5);
  text-decoration: none;
  border-bottom: 1px solid var(--soot);
}
.wpis .d { max-width: 14ch; transition: transform 0.35s ease; }
.wpis img { border-radius: var(--radius); transition: opacity 0.35s ease; }
.wpis .t { font-size: var(--t-small); font-weight: 400; max-width: 34em; }
.wpis__dalej {
  font-size: var(--t-label);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--yolk);
}
.wpis__dalej::after { content: " \2192"; letter-spacing: 0; }
.wpis a:hover .d { transform: translateX(0.35rem); }
.wpis a:hover img { opacity: 0.86; }

/* Stopka */
.stopka {
  max-width: 46rem;
  margin-inline: auto;
  padding: calc(var(--rytm) * 3) var(--gutter) calc(var(--rytm) * 1.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  text-align: center;
}
.stopka ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.8rem; }
.stopka a, .stopka p {
  font-size: var(--t-label);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ash);
  margin: 0;
}
.stopka a:hover { color: var(--yolk); }
.stopka .mail { text-transform: none; letter-spacing: 0.08em; color: var(--paper); }

/* 404 */
.cisza { min-height: 60vh; justify-content: center; align-items: flex-start; padding-block: var(--rytm); }

@media (max-width: 34rem) {
  .ramka { grid-template-columns: minmax(0, 1fr); }
  .zrodlo { grid-template-columns: minmax(0, 1fr); }
  .zrodlo .obraz { width: min(72%, 18rem); justify-self: end; }
  .obraz--prawo { width: 100%; }
  .obraz--srodek { width: 92%; }
  .kaskada li:nth-child(3) { padding-left: 8%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Równe przerwy optycznie: przycinamy pustą przestrzeń nad wersalikami i pod linią bazową,
   żeby --rytm mierzył odstęp od tekstu do tekstu, a nie od pudełka do pudełka. */
.t, .d, .meta, .duet__pytanie, .cytowanie {
  text-box: trim-both cap alphabetic;
}
