/* ==========================================================================
   Męskie Kręgi — Pabianice
   Zgodne z art-direction-v1.0.md — paleta, typografia, rytm strony.
   ========================================================================== */

/* ---------- Custom properties (art-direction-v1.0.md, sekcja 1) ---------- */

:root {
  --bg-dark: #181613;
  --bg-light: #EFE9DD;

  --text-on-dark: #EDE7DB;
  --text-on-light: #211F1B;

  --muted-on-dark: #8C867A;
  --muted-on-light: #6E695E;

  --accent: #AE5330;

  --line-on-dark: #332F2A;
  --line-on-light: #DCD4C3;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;

  --gutter-left: clamp(1.25rem, 7vw, 6.5rem);
  --gutter-right: clamp(1.25rem, 5vw, 3.5rem);

  --fs-hero: clamp(3rem, 5vw + 2.2rem, 8rem);
  --fs-hero-question: clamp(1.5rem, 1.2vw + 1.1rem, 2.5rem);
  --fs-lede: clamp(1.4rem, 1vw + 1.15rem, 2.25rem);
  --fs-fullscreen: clamp(2rem, 2.4vw + 1.4rem, 4rem);
  --fs-body: clamp(1.05rem, 0.25vw + 1rem, 1.2rem);
  --fs-quote: clamp(1.05rem, 0.5vw + 0.95rem, 1.35rem);
  --fs-kicker: 0.78rem;
  --fs-credential: 0.95rem;

  --measure: 38ch;
}

/* ---------- Reset ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a {
  color: inherit;
}

p { margin: 0 0 1.1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

h1, h2 { font-family: var(--font-display); margin: 0; }

::selection {
  background: var(--accent);
  color: var(--text-on-dark);
}

/* ---------- Focus visibility (accessibility) ---------- */

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Layout primitives ---------- */

.container {
  max-width: 1400px;
  padding-left: var(--gutter-left);
  padding-right: var(--gutter-right);
}

.section {
  padding-top: clamp(3.5rem, 8vh, 7rem);
  padding-bottom: clamp(3.5rem, 8vh, 7rem);
  position: relative;
}

.section--dark { background: var(--bg-dark); color: var(--text-on-dark); }
.section--light { background: var(--bg-light); color: var(--text-on-light); }

.accent { color: var(--accent); }

/* ---------- Section kicker labels (art-direction sekcja 2) ---------- */

.kicker {
  font-family: var(--font-mono);
  font-size: var(--fs-kicker);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted-on-dark);
  margin-bottom: 2.25em;
}

.kicker--light { color: var(--muted-on-light); }

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
}

.hero__stage {
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 6rem;
  padding-bottom: 3rem;
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.hero__title .line { display: block; }

.hero__question {
  margin-top: 0.6em;
  font-family: var(--font-display);
  font-size: var(--fs-hero-question);
  font-weight: 500;
  font-style: italic;
}

.hero__question .accent {
  display: inline-block;
  opacity: 0;
  animation: reveal 0.9s ease-out 0.5s forwards;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(0.3em); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__question .accent { opacity: 1; animation: none; transform: none; }
}

.hero__reveal {
  padding-top: 2rem;
  padding-bottom: clamp(4rem, 10vh, 7rem);
  font-size: var(--fs-lede);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.25;
}

.hero__reveal p { max-width: 22ch; }

/* ==========================================================================
   STAN
   ========================================================================== */

.lede {
  font-family: var(--font-display);
  font-size: var(--fs-lede);
  font-weight: 400;
  line-height: 1.25;
  max-width: 24ch;
  margin-bottom: 1.4em;
}

.stan__list {
  margin: 1.6em 0;
}

.stan__list p {
  max-width: 34ch;
}

.stan__list p:nth-child(1) { margin-left: 0; }
.stan__list p:nth-child(2) { margin-left: clamp(0.5rem, 3vw, 2.25rem); }
.stan__list p:nth-child(3) { margin-left: clamp(0.25rem, 1.5vw, 1rem); }
.stan__list p:nth-child(4) { margin-left: clamp(0.75rem, 4.5vw, 3.25rem); }
.stan__list p:nth-child(5) { margin-left: clamp(0.25rem, 2vw, 1.5rem); }

/* ==========================================================================
   NIE TYLKO TY — pełnoekranowy moment "Ja też"
   ========================================================================== */

.fullscreen-moment {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 3rem var(--gutter-right) 3rem var(--gutter-left);
  position: relative;
}

.fullscreen-moment::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(174, 83, 48, 0.10), transparent 60%);
  pointer-events: none;
}

.fullscreen-moment p {
  font-family: var(--font-display);
  font-size: var(--fs-fullscreen);
  font-weight: 500;
  line-height: 1.1;
  max-width: 14ch;
  margin: 0;
}

/* ==========================================================================
   OPÓR — cytaty poza siatką, jak natrętna myśl
   ========================================================================== */

.opor__quotes {
  margin: 1.8em 0;
  display: flex;
  flex-direction: column;
  gap: 0.85em;
}

.opor__quote {
  font-family: var(--font-mono);
  font-size: var(--fs-quote);
  color: var(--muted-on-dark);
  max-width: 32ch;
}

.opor__quotes .opor__quote:nth-child(1) { margin-left: 0; }
.opor__quotes .opor__quote:nth-child(2) { margin-left: clamp(0.5rem, 6vw, 3.5rem); }
.opor__quotes .opor__quote:nth-child(3) { margin-left: clamp(0.25rem, 3vw, 1.75rem); }
.opor__quotes .opor__quote:nth-child(4) { margin-left: clamp(0.5rem, 7vw, 4.25rem); }

/* ==========================================================================
   Strefa przejścia węgiel → papier (NIE TYLKO TY + OPÓR + CO SIĘ DZIEJE)
   ========================================================================== */

.transition-zone {
  background: var(--bg-dark);
}

.photo {
  margin: clamp(2.5rem, 6vh, 4.5rem) 0 0;
  width: 100%;
}

.photo img {
  width: 100%;
  height: auto;
  filter: grayscale(1) contrast(1.05) brightness(0.92);
}

.fade-strip {
  height: clamp(6rem, 16vh, 11rem);
  background: linear-gradient(to bottom, var(--bg-dark), var(--bg-light));
}

/* ==========================================================================
   KTO PROWADZI — pełne przejście na papier, jedyny moment ciepła
   ========================================================================== */

.section--warm {
  background: linear-gradient(170deg, var(--bg-light) 0%, #F2ECE0 55%, var(--bg-light) 100%);
}

.kto-prowadzi__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vh, 4rem);
  align-items: start;
}

.kto-prowadzi__text .kicker { color: var(--muted-on-light); }

.kto-prowadzi__lede {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.4vw + 1.2rem, 2.6rem);
  font-weight: 500;
  line-height: 1.2;
  max-width: 18ch;
  margin: 0.9em 0 1em;
}

.kto-prowadzi__credential {
  font-size: 0.95rem;
  color: var(--muted-on-light);
  margin-top: 1.6em;
}

.maciej-frame {
  position: relative;
  width: min(87vw, 360px);
  aspect-ratio: 687 / 900;
  border: 1px solid var(--line-on-light);
  justify-self: start;
  align-self: center;
  overflow: hidden;
}

.maciej-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   PRAKTYCZNIE — tryb techniczny
   ========================================================================== */

.section--mono p {
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 0.2vw + 0.9rem, 1.05rem);
  line-height: 1.7;
  max-width: 42ch;
}

.section--mono .kicker { color: var(--muted-on-light); }

.section--mono a {
  text-decoration: underline;
  text-decoration-color: var(--line-on-light);
  text-underline-offset: 0.15em;
}

.section--mono a:hover { text-decoration-color: currentColor; }

/* ==========================================================================
   KONTEKST — cicho, jak stopka redakcyjna
   ========================================================================== */

.section--quiet {
  padding-top: clamp(2.5rem, 5vh, 4rem);
  padding-bottom: clamp(2.5rem, 5vh, 4rem);
}

.section--quiet p {
  font-size: 0.95rem;
  color: var(--muted-on-light);
  max-width: 48ch;
}

.section--quiet .kicker { color: var(--muted-on-light); }

/* ==========================================================================
   CICHY KROK — echo HERO w świetle
   ========================================================================== */

.hero-echo {
  padding-top: clamp(5rem, 14vh, 9rem);
  padding-bottom: clamp(6rem, 18vh, 11rem);
}

.hero-echo__stage p {
  font-family: var(--font-display);
  font-size: var(--fs-lede);
  font-weight: 400;
  line-height: 1.3;
  max-width: 22ch;
}

.hero-echo__final {
  font-weight: 500;
}

.accent-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.accent-link:hover { text-decoration-thickness: 2px; }

/* ==========================================================================
   Responsywność — tablet / desktop
   ========================================================================== */

@media (min-width: 700px) {
  .kto-prowadzi__grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  }

  .maciej-frame {
    justify-self: end;
  }
}

@media (min-width: 1000px) {
  .hero__title { letter-spacing: -0.03em; }
}
