/* theholyslop.com: strona stoi w tym samym pokoju co filmy (niebieska ściana, drewniana podłoga),
   a nagłówki są złożone jak napisy z rolek. Część o studiu przejmuje ciemne kolory apki. */
:root {
  --wall: #8fbedb;
  --wall-deep: #7cafd0;
  --floor: #6a3c26;
  --floor-dark: #4d2a1a;
  --skirting: #f3e6cc;
  --ink: #15131c;
  --ink-soft: #211f29;
  --line: #34313f;
  --paper: #fffdf6;
  --mute: #a9a5b8;
  --spoken: #6cf5a5;
  --holy: #ffe14d;
  --display: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --gutter: clamp(1rem, 4vw, 3rem);
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 500 1.0625rem/1.6 var(--display);
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--holy);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - 2 * var(--gutter), 76rem);
  margin-inline: auto;
}

/* ——— wspólne klocki ——— */

.logo {
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--paper);
  background: var(--ink);
  padding: 0.3rem 0.8rem 0.4rem;
  border-radius: 0.6rem;
}
.logo b {
  font-weight: inherit;
  color: var(--holy);
}

/* Czarna tabliczka z białym tekstem: tak w filmach wyglądają napisy ekranowe. */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
  font-size: 0.875rem;
  line-height: 1.2;
  padding: 0.5rem 0.85rem;
  border-radius: 0.55rem;
  text-decoration: none;
}
.pill svg {
  width: 1rem;
  height: 1rem;
}
a.pill:hover {
  background: #000;
}

/* Napis z rolki: wersaliki, biały środek, ciemny obrys. */
.caption {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  line-height: 1;
  color: #fff;
  -webkit-text-stroke: 0.13em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 0.07em 0 var(--ink);
}
.caption.dark {
  color: var(--ink);
  letter-spacing: -0.02em;
  -webkit-text-stroke: 0;
  text-shadow: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  padding: 0.95rem 1.3rem;
  border-radius: 0.8rem;
  border: 3px solid var(--ink);
  box-shadow: 0 5px 0 var(--ink);
  transition: transform 0.12s, box-shadow 0.12s;
}
.btn svg {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
}
.btn:hover {
  transform: translateY(2px);
  box-shadow: 0 3px 0 var(--ink);
}
.btn:active {
  transform: translateY(5px);
  box-shadow: 0 0 0 var(--ink);
}
.btn-ink {
  background: var(--ink);
  color: var(--paper);
}
.btn-paper {
  background: var(--paper);
  color: var(--ink);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1rem;
}

/* ——— scena: ściana, podłoga, filmy ——— */

.stage {
  --floor-h: clamp(6.5rem, 15vw, 11rem);
  position: relative;
  isolation: isolate;
  background: linear-gradient(var(--wall), var(--wall-deep));
  color: var(--ink);
  overflow: hidden;
}
.stage::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: var(--floor-h);
  border-top: 0.7rem solid var(--skirting);
  background:
    repeating-linear-gradient(104deg, transparent 0 9.5rem, rgb(0 0 0 / 0.28) 9.5rem 9.7rem),
    linear-gradient(var(--floor), var(--floor-dark));
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem var(--gutter) 0;
}
.top nav {
  display: flex;
  gap: 0.5rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: end;
  gap: clamp(1.5rem, 4vw, 4rem);
  width: min(100% - 2 * var(--gutter), 82rem);
  margin-inline: auto;
  padding-top: clamp(2rem, 5vw, 4.5rem);
}

.hero-copy {
  align-self: center;
  padding-bottom: calc(var(--floor-h) + 2.5rem);
}
.hero h1 {
  font-size: clamp(3.4rem, 8.2vw, 7.6rem);
}
.hero h1 span {
  display: inline-block;
  animation: spoken 0.62s both;
}
.hero h1 span:nth-child(1) {
  animation-delay: 0.5s;
}
.hero h1 span:nth-child(2) {
  animation-delay: 1.02s;
}
.hero h1 span:nth-child(3) {
  animation-delay: 1.44s;
  animation-duration: 1s;
}
/* Słowo zapala się na zielono w chwili, gdy „pada” — tak jak w napisach filmów. */
@keyframes spoken {
  0%,
  100% {
    color: #fff;
    transform: none;
  }
  12%,
  78% {
    color: var(--spoken);
    transform: scale(1.06) rotate(-1.5deg);
  }
}

.lede {
  max-width: 34rem;
  margin-top: 1.6rem;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  font-weight: 600;
  line-height: 1.5;
}
.hero .actions {
  margin-top: 1.9rem;
}

.reel {
  display: grid;
  grid-template-columns: 1fr 1.22fr 1fr;
  align-items: end;
  gap: clamp(0.6rem, 1.4vw, 1.25rem);
  padding-bottom: calc(var(--floor-h) * 0.3);
}
.film {
  display: grid;
  justify-items: center;
  gap: 0.8rem;
}
.film:first-child .screen {
  rotate: -2.5deg;
}
.film:last-child .screen {
  rotate: 2.5deg;
}

.screen {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  padding: 0;
  font: inherit;
  color: var(--paper);
  cursor: pointer;
  background: var(--ink);
  border: 0.35rem solid var(--ink);
  border-radius: 1.15rem;
  overflow: hidden;
  box-shadow: 0 1.4rem 1.6rem -0.6rem rgb(20 8 0 / 0.55);
}
.screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sound {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--ink);
  border-radius: 0.5rem;
  padding: 0.4rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 800;
}
.sound svg {
  width: 1rem;
  height: 1rem;
}
.screen[aria-pressed='true'] .sound {
  background: var(--spoken);
  color: var(--ink);
}
.film .title {
  text-align: center;
}

/* ——— studio (kolory apki) ——— */

.studio {
  padding-block: clamp(4rem, 9vw, 8rem) clamp(3rem, 6vw, 5rem);
}
.studio h2,
.track h2 {
  font-weight: 800;
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  max-width: 22em;
  text-wrap: balance;
}
.intro {
  max-width: 40rem;
  margin-top: 1.25rem;
  color: var(--mute);
  font-size: 1.125rem;
}

.shot img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #111015;
}
.shot.big {
  margin-top: clamp(2rem, 4vw, 3.5rem);
}
.shot.big .pan {
  border-radius: 0.75rem;
  box-shadow: 0 0 0 0.5rem var(--ink-soft);
}

.notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem clamp(1.5rem, 3vw, 3rem);
  margin-top: 2.25rem;
}
.notes dt,
.shot figcaption strong {
  font-weight: 800;
  color: var(--paper);
}
.notes dt {
  font-size: 1.125rem;
  padding-top: 0.9rem;
  border-top: 3px solid var(--holy);
}
.notes dd {
  margin-top: 0.4rem;
  color: var(--mute);
  font-size: 1rem;
}

.pair {
  display: grid;
  grid-template-columns: 4fr 5fr;
  align-items: start;
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(3rem, 6vw, 5rem);
}
.pair figcaption {
  margin-top: 1rem;
  color: var(--mute);
  font-size: 1rem;
  max-width: 34rem;
}

/* ——— etapy jako ścieżka na osi czasu ——— */

.track {
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(4rem, 9vw, 8rem);
}
.clips {
  counter-reset: clip;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  margin-top: 2rem;
  padding: 0.4rem;
  background: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
}
.clips li {
  counter-increment: clip;
  display: grid;
  align-content: start;
  gap: 0.35rem;
  min-height: 8.5rem;
  padding: 0.9rem 1rem 1.1rem;
  border-radius: 0.55rem;
  border-left: 0.4rem solid var(--c);
  background: color-mix(in srgb, var(--c) 22%, var(--ink));
}
.clips li::before {
  content: counter(clip) ' / 8';
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--c);
  font-variant-numeric: tabular-nums;
}
.clips b {
  font-weight: 800;
  font-size: 1.1875rem;
  line-height: 1.2;
}
.clips span {
  font-size: 0.9375rem;
  line-height: 1.45;
  color: #d5d1e0;
}

/* ——— obserwuj ——— */

.follow {
  background: var(--holy);
  color: var(--ink);
  padding-block: clamp(4rem, 9vw, 7.5rem);
}
.follow h2 {
  font-size: clamp(2.4rem, 6.4vw, 5.6rem);
  max-width: 12em;
  text-wrap: balance;
}
.follow p {
  max-width: 34rem;
  margin-top: 1.4rem;
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.5;
}
.follow .actions {
  margin-top: 2.2rem;
}
.btn.big {
  padding: 1.1rem 1.6rem 1.1rem 1.4rem;
  font-size: 1.125rem;
  border-color: var(--ink);
  box-shadow: 0 5px 0 rgb(0 0 0 / 0.35);
}
.btn.big svg {
  width: 1.9rem;
  height: 1.9rem;
}
.btn.big span {
  display: grid;
}
.btn.big small {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--holy);
}

/* ——— stopka ——— */

.foot {
  padding-block: 2.5rem 3rem;
  color: var(--mute);
  font-size: 0.875rem;
}
.foot .wrap {
  display: grid;
  gap: 0.9rem;
  justify-items: start;
}
.foot .logo {
  padding-inline: 0;
  font-size: 1.25rem;
}
.foot p {
  max-width: 44rem;
}

/* ——— 404 ——— */

.lost {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(var(--wall), var(--wall-deep));
  color: var(--ink);
  font-weight: 600;
}
.lost main {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
  width: min(100% - 2rem, 36rem);
}
.lost .caption {
  font-size: clamp(2.4rem, 8vw, 4.5rem);
}

/* ——— węższe ekrany ——— */

@media (max-width: 60rem) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-copy {
    padding-bottom: 0;
  }
  .hero h1 {
    font-size: clamp(3.2rem, 15vw, 6.5rem);
  }
  .notes {
    grid-template-columns: 1fr;
  }
  .pair {
    grid-template-columns: 1fr;
  }
  .clips {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 40rem) {
  /* Filmy jako przewijany rząd: jeden duży na ekranie, następny wystaje z boku. */
  .hero {
    width: 100%;
  }
  .hero-copy {
    padding-inline: var(--gutter);
  }
  .reel {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 64vw;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0.5rem 18vw calc(var(--floor-h) * 0.3);
    scrollbar-width: none;
  }
  .reel::-webkit-scrollbar {
    display: none;
  }
  .film {
    scroll-snap-align: center;
  }
  .film:first-child .screen,
  .film:last-child .screen {
    rotate: none;
  }
  .film.lead {
    order: -1;
  }
  .top .pill {
    padding: 0.55rem;
    font-size: 0;
    gap: 0;
  }
  .top .pill svg {
    width: 1.15rem;
    height: 1.15rem;
  }
  /* Zrzut całego okna jest nieczytelny po zmniejszeniu, więc zostaje duży i przesuwa się palcem. */
  .shot.big .pan {
    overflow-x: auto;
  }
  .shot.big .pan img {
    width: 56rem;
    max-width: none;
  }
  .clips {
    grid-template-columns: 1fr;
  }
  .clips li {
    min-height: 0;
  }
  .btn.big {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero h1 span {
    animation: none;
  }
  .btn {
    transition: none;
  }
}
