:root {
  --ink: #0b0b0c;
  --ink-2: #141416;
  --paper: #ecebe6;
  --mute: #8d8b84;
  --line: rgba(236, 235, 230, 0.16);
  --sodium: #f2a93b;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --slide-time: 7000ms;
}

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

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

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #4a4944; border: 2px solid var(--ink); border-radius: 0; }
::-webkit-scrollbar-thumb:hover,
::-webkit-scrollbar-thumb:active { background: var(--sodium); }
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-width: thin; scrollbar-color: #4a4944 var(--ink); }
  html.scroll-hot { scrollbar-color: var(--sodium) var(--ink); }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

section[id] { scroll-margin-top: 68px; }

a { color: inherit; }

::selection { background: var(--sodium); color: var(--ink); }

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

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}
.skip:focus { top: 12px; }

.for-night { display: none; }
[data-mode="night"] .for-day,
[data-mode="night"] .shot[data-day-only] { display: none; }
[data-mode="night"] img.for-night { display: block; }
[data-mode="night"] span.for-night { display: inline; }

::view-transition-old(root),
::view-transition-new(root) { animation-duration: .6s; }

.top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 2.4vw, 36px);
  height: 68px;
  padding: 0 var(--gutter);
  transition: background-color .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.top.is-solid {
  background: rgba(11, 11, 12, 0.92);
  border-bottom-color: var(--line);
  backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.brand-mark {
  display: inline-block;
  padding: 3px 7px 1px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: .02em;
}
.brand-name {
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .01em;
}

.nav { display: flex; gap: clamp(18px, 2.4vw, 36px); margin-left: auto; }
.nav a {
  position: relative;
  font-size: .92rem;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--sodium);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.nav a:hover::after,
.nav a:focus-visible::after { transform: scaleX(1); }

.mode {
  display: flex;
  flex-shrink: 0;
  border: 1px solid rgba(236,235,230,.4);
}
.mode[hidden] { display: none; }
.mode button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  background: none;
  border: 0;
  border-radius: 0;
  color: rgba(236,235,230,.72);
  font: 500 .78rem var(--mono);
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease;
}
.mode button + button { border-left: 1px solid rgba(236,235,230,.4); }
.mode button:hover { color: var(--paper); }
.mode button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.mode button[data-set-mode="night"][aria-pressed="true"] { background: var(--sodium); }
.mode svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--paper);
  border-radius: 0;
  color: var(--paper);
  font: 500 .85rem var(--body);
  padding: 7px 14px;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hero-slides,
.hero-shade { position: absolute; inset: 0; }
.hero-slides { z-index: -2; }
.hero-shade {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11,11,12,.55) 0%, rgba(11,11,12,0) 22%),
    linear-gradient(0deg, rgba(11,11,12,.92) 0%, rgba(11,11,12,.45) 38%, rgba(11,11,12,0) 70%);
}

.slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
}
.slide.is-active { opacity: 1; }
.slide.is-active img { animation: drift calc(var(--slide-time) + 1600ms) linear forwards; }

@keyframes drift {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

.hero-body {
  padding: 0 var(--gutter);
  max-width: 1400px;
}
.hero-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(5.2rem, 17vw, 16rem);
  line-height: .8;
  text-transform: uppercase;
  letter-spacing: -.005em;
}
.hero-meta {
  margin: clamp(20px, 3vw, 32px) 0 0;
  font-family: var(--mono);
  font-size: .8rem;
  color: rgba(236,235,230,.72);
}
.hero-meta span { color: var(--sodium); padding-right: .3em; }
.hero-star {
  color: var(--sodium);
  font-size: .45em;
  vertical-align: top;
  line-height: 1;
}

.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(32px, 6vh, 64px);
  padding: 18px var(--gutter) 26px;
  border-top: 1px solid var(--line);
}
.hero-caption {
  margin: 0;
  font-family: var(--mono);
  font-size: .8rem;
  color: rgba(236,235,230,.8);
  transition: opacity .4s ease;
}
.hero-caption.is-fading { opacity: 0; }

.hero-progress { display: flex; gap: 8px; flex-shrink: 0; }
.hero-progress button {
  width: clamp(28px, 4vw, 52px);
  height: 22px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.hero-progress i {
  position: relative;
  display: block;
  width: 100%;
  height: 2px;
  background: rgba(236,235,230,.28);
  overflow: hidden;
}
.hero-progress i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper);
  transform: scaleX(0);
  transform-origin: left;
}
.hero-progress button.is-done i::after { transform: scaleX(1); }
.hero-progress button.is-active i::after {
  background: var(--sodium);
  animation: fill var(--slide-time) linear forwards;
}
.hero.is-paused .hero-progress button.is-active i::after { animation-play-state: paused; }

@keyframes fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.intro {
  padding: clamp(80px, 14vw, 200px) var(--gutter) clamp(64px, 10vw, 140px);
  max-width: 1500px;
}
.statement {
  margin: 0;
  max-width: 24em;
  font-size: clamp(1.6rem, 3.6vw, 3.4rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -.012em;
}
.specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 32px;
  max-width: 1100px;
  margin: clamp(56px, 8vw, 110px) 0 0;
}
.specs > div {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.specs dt {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--mute);
}
.specs dd {
  margin: 14px 0 0;
  font-size: 1.05rem;
  line-height: 1.45;
}
.spec-logo {
  display: block;
  width: 44px;
  height: 44px;
  fill: currentColor;
}

.chapter { padding-bottom: clamp(96px, 14vw, 200px); }

.chapter-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3rem, 7.2vw, 7rem);
  line-height: .88;
  text-transform: uppercase;
}
.chapter-text p { margin: 0 0 1.1em; max-width: 36em; color: rgba(236,235,230,.86); }
.chapter-text p:last-child { margin-bottom: 0; }

.chapter-media img {
  width: 100%;
  aspect-ratio: 2.22;
  object-fit: cover;
}

.chapter-head {
  padding: clamp(48px, 7vw, 96px) var(--gutter) 0;
}

.figures {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: clamp(64px, 9vw, 120px) var(--gutter) 0;
  padding: 0;
  border-top: 1px solid var(--line);
  max-width: 1500px;
}
.figures li {
  padding: 22px 24px 0 0;
}
.figures li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.figures strong {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3rem, 6.4vw, 6rem);
  line-height: 1;
  white-space: nowrap;
}
.figures span {
  display: block;
  max-width: 18em;
  margin-top: 10px;
  color: var(--mute);
  font-size: .95rem;
}

.chapter-split {
  display: grid;
  grid-template-columns: 7fr 5fr;
  align-items: start;
  gap: clamp(32px, 5vw, 80px);
  padding-right: var(--gutter);
}
.chapter-split.is-reversed {
  grid-template-columns: 5fr 7fr;
  padding-right: 0;
  padding-left: var(--gutter);
}
.chapter-split.is-reversed .split-media { order: 2; }

.split-media img {
  width: 100%;
  aspect-ratio: 1.6;
  object-fit: cover;
}
.split-text { padding-top: clamp(0px, 3vw, 48px); }
.split-text .chapter-title { margin-bottom: clamp(28px, 3.4vw, 44px); }

.keys {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin: 40px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
}
.keys li { display: flex; align-items: center; gap: 6px; font-size: .9rem; }
.keys span { margin-left: 8px; color: rgba(236,235,230,.78); }
kbd {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  border: 1px solid rgba(236,235,230,.45);
  border-bottom-width: 3px;
  border-radius: 0;
  font-family: var(--mono);
  font-size: .78rem;
  line-height: 1;
}

.night {
  position: relative;
  min-height: 84vh;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  margin-bottom: clamp(96px, 14vw, 200px);
}
.night-media { position: absolute; inset: 0; z-index: -1; }
.night-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.night-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, var(--ink) 0%, rgba(11,11,12,0) 18%),
    linear-gradient(0deg, var(--ink) 0%, rgba(11,11,12,.6) 30%, rgba(11,11,12,0) 60%);
}

.night.is-comparing { cursor: ew-resize; }
.night.is-dragging { user-select: none; }
.night.is-comparing .night-body .chapter-text,
.night.is-comparing .night-body .chapter-title { cursor: auto; }
.compare-layer { position: absolute; inset: 0; }
.compare-night { clip-path: inset(0 0 0 var(--split)); }
.compare-label {
  position: absolute;
  top: clamp(88px, 12vh, 140px);
  padding: 6px 10px;
  background: rgba(11,11,12,.55);
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.compare-day .compare-label { left: var(--gutter); }
.compare-night .compare-label { right: var(--gutter); color: var(--sodium); }
.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  z-index: 2;
  width: 44px;
  margin-left: -22px;
  cursor: ew-resize;
  touch-action: none;
}
.compare-handle[hidden] { display: none; }
.compare-handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 21px;
  width: 2px;
  background: var(--paper);
  box-shadow: 0 0 12px rgba(11,11,12,.5);
}
.compare-handle::after {
  content: "‹ ›";
  position: absolute;
  top: 42%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%);
  background: var(--paper);
  color: var(--ink);
  font: 600 1.1rem/1 var(--mono);
  letter-spacing: .1em;
  transition: background-color .25s ease;
}
.compare-handle:hover::after,
.night.is-dragging .compare-handle::after { background: var(--sodium); }
.compare-handle:focus-visible { outline: 0; }
.compare-handle:focus-visible::after { outline: 2px solid var(--sodium); outline-offset: 3px; }

.night-switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding: 12px 18px;
  background: var(--sodium);
  border: 0;
  border-radius: 0;
  color: var(--ink);
  font: 600 .95rem var(--body);
  cursor: pointer;
  transition: background-color .25s ease;
}
.night-switch[hidden] { display: none; }
.night-switch::after { content: "→"; }
.night-switch:hover { background: var(--paper); }

.night-body {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 32px clamp(32px, 6vw, 96px);
  align-items: end;
  width: 100%;
  max-width: 1500px;
  padding: 0 var(--gutter) clamp(32px, 5vw, 64px);
}

.gallery { padding: 0 var(--gutter) clamp(96px, 14vw, 180px); }
.gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(32px, 5vw, 64px);
}
.gallery-note {
  margin: 0;
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--mute);
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 3vw, 40px) clamp(12px, 1.6vw, 20px);
}
.shot {
  display: block;
  text-decoration: none;
}
.shot-wide { grid-column: 1 / -1; }
.shot-frame {
  display: block;
  overflow: hidden;
  background: var(--ink-2);
}
.shot img {
  width: 100%;
  aspect-ratio: 2.22;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .4s ease;
  filter: saturate(.92);
}
.shot:hover img,
.shot:focus-visible img { transform: scale(1.035); filter: saturate(1.05); }
.shot-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  font-size: .92rem;
}
.shot-caption::after {
  content: "Powiększ";
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--mute);
  opacity: 0;
  transition: opacity .3s ease;
}
.shot:hover .shot-caption::after,
.shot:focus-visible .shot-caption::after { opacity: 1; color: var(--sodium); }

.foot {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 40px clamp(32px, 6vw, 96px);
  padding: clamp(48px, 7vw, 88px) var(--gutter) 32px;
  border-top: 1px solid var(--line);
}
.foot-mark {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: .9;
  text-transform: uppercase;
}
.foot-game { margin: 18px 0 0; color: var(--mute); font-size: .95rem; }
.foot-credits p {
  margin: 0 0 12px;
  max-width: 44em;
  font-size: .82rem;
  line-height: 1.55;
  color: var(--mute);
}
.foot-credits a { color: var(--paper); text-underline-offset: 3px; }
.foot-credits a:hover { color: var(--sodium); }
.foot-copy {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--mute);
}
.foot-copy p { margin: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover,
.foot-links a[aria-current="page"] { color: var(--sodium); }

.foot-slim { display: block; padding-top: 0; border-top: 0; }
.foot-slim .foot-copy { margin: 0; }

.nav-back {
  margin-left: auto;
  font-size: .92rem;
  font-weight: 500;
  text-decoration: none;
}
.nav-back::before { content: "← "; }
.nav-back:hover { color: var(--sodium); }

.doc {
  max-width: 820px;
  padding: calc(68px + clamp(48px, 8vw, 110px)) var(--gutter) clamp(80px, 10vw, 140px);
}
.doc-date {
  margin: 20px 0 clamp(40px, 6vw, 72px);
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--mute);
}
.doc h2 {
  margin: 2.4em 0 .7em;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1;
  text-transform: uppercase;
}
.doc p,
.doc li { max-width: 40em; color: rgba(236,235,230,.86); }
.doc p { margin: 0 0 1em; }
.doc ul { margin: 0 0 1em; padding-left: 1.2em; }
.doc li { margin-bottom: .3em; }
.doc li::marker { color: var(--sodium); }
.doc a { color: var(--paper); text-underline-offset: 3px; }
.doc a:hover { color: var(--sodium); }
.doc code { font-family: var(--mono); font-size: .86em; color: var(--sodium); }
.doc table {
  width: 100%;
  margin: 1.4em 0 1.6em;
  border-collapse: collapse;
  font-size: .95rem;
}
.doc th,
.doc td {
  padding: 12px 16px 12px 0;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.doc tr:last-child th,
.doc tr:last-child td { border-bottom: 1px solid var(--line); }
.doc th {
  width: 8.5em;
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 400;
  color: var(--mute);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  background: rgba(6, 6, 7, .97);
  opacity: 0;
  transition: opacity .3s ease;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox button {
  background: none;
  border: 0;
  border-radius: 0;
  color: var(--paper);
  cursor: pointer;
  font-family: var(--body);
}
.lightbox button:hover { color: var(--sodium); }
.lb-prev, .lb-next { height: 100%; font-size: 1.6rem; }
.lb-close {
  position: absolute;
  top: 18px;
  right: var(--gutter);
  padding: 8px 0;
  font-size: .9rem;
  font-weight: 500;
}
.lb-figure { margin: 0; min-width: 0; }
.lb-img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
}
.lb-caption {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: .8rem;
  color: rgba(236,235,230,.8);
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .night-body,
  .foot { grid-template-columns: 1fr; }
  .chapter-split,
  .chapter-split.is-reversed {
    grid-template-columns: 1fr;
    padding: 0;
  }
  .chapter-split.is-reversed .split-media { order: 0; }
  .split-media img { aspect-ratio: 1.6; }
  .split-text { padding: 0 var(--gutter); }
  .figures { grid-template-columns: 1fr; }
  .figures li,
  .figures li + li { padding: 20px 0; border-left: 0; }
  .figures li + li { border-top: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .top { height: 60px; }
  .brand-name { display: none; }
  .menu-toggle { display: block; }
  .mode { margin-left: auto; }
  .nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .top.menu-open { background: var(--ink); }

  .hero-foot { flex-direction: column; align-items: flex-start; }
  .grid { grid-template-columns: 1fr; }
  .gallery-head { flex-direction: column; align-items: flex-start; }
  .keys { grid-template-columns: 1fr; }
  .lightbox { grid-template-columns: 40px 1fr 40px; }
  .night { min-height: 80vh; }
}

@media (max-width: 400px) {
  .mode svg { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide.is-active img { animation: none; transform: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .shot img { transition: none; }
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}
