/* VIDMO — černobílý single-page web */

:root {
  --black: #000;
  --ink: #0a0a0a;
  --white: #fff;
  --grey: #8a8a8a;
  --line: rgba(255, 255, 255, .16);
  --gutter: clamp(16px, 4vw, 56px);
  --display: "Archivo", "Arial Black", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, 0, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--display);
  font-variation-settings: "wdth" 100;
  font-size: clamp(16px, 1.1vw + 10px, 20px);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--white); color: var(--black); }
a { color: inherit; }
p, ul, ol, h1, h2 { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
.mono { font-family: var(--mono); letter-spacing: .02em; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--white); color: var(--black); padding: .5em 1em;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  color: var(--white);
  background: transparent;
  transition: background-color .3s, color .3s;
  pointer-events: none;
}
.nav.is-scrolled { background: var(--black); pointer-events: auto; }
.nav.is-light { background: var(--white); color: var(--black); }
.nav > * { pointer-events: auto; }
.nav__mark { display: block; height: 34px; color: inherit; opacity: 0; transform: translateY(-6px); transition: opacity .4s, transform .4s var(--ease); }
.nav__mark svg { height: 100%; width: auto; display: block; }
.nav.is-scrolled .nav__mark { opacity: 1; transform: none; }
.nav__links { display: flex; gap: clamp(12px, 2.4vw, 32px); }
.nav__links a {
  font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .08em;
  text-decoration: none; color: inherit; position: relative; padding: 4px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }

@media (max-width: 560px) {
  .nav { padding: 12px 16px; }
  .nav__mark { height: 28px; }
  .nav__links { gap: 12px; }
  .nav__links a { font-size: 11px; letter-spacing: .04em; }
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100svh;
  display: grid; place-items: center; align-content: center;
  padding: 96px var(--gutter) 120px;
  position: relative;
}
/* Logo jede při scrollu jen posunem a průhledností – vrstva se vykreslí jednou
   a grafický čip ji jen posouvá (změna velikosti by Safari nutila překreslovat). */
.hero__inner { width: min(1100px, 100%); display: grid; justify-items: center; will-change: transform, opacity; }
.hero__logo { width: 100%; line-height: 0; }
.hero__logo svg { width: 100%; height: auto; display: block; opacity: 0; animation: in 1.1s var(--ease) forwards; }
@keyframes in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero__meta {
  margin-top: clamp(24px, 4vw, 48px);
  display: flex; gap: 2.5em;
  font-size: 13px; text-transform: uppercase; letter-spacing: .2em; color: var(--grey);
  opacity: 0; animation: in .9s .5s var(--ease) forwards;
}
.hero__down {
  position: absolute; bottom: 28px; left: 50%; translate: -50% 0;
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  transition: background .25s, color .25s;
  animation: bob 2.4s ease-in-out infinite;
}
.hero__down svg { width: 18px; height: 18px; }
.hero__down:hover { background: var(--white); color: var(--black); }
@keyframes bob { 50% { transform: translateY(6px); } }

@media (prefers-reduced-motion: reduce) {
  .hero__logo svg, .hero__meta { animation: none; opacity: 1; }
  .hero__down { animation: none; }
}

/* ---------- SECTIONS ---------- */
.sec {
  padding: clamp(96px, 14vw, 200px) var(--gutter);
  border-top: 1px solid var(--line);
  scroll-margin-top: 0;
}
.sec__head {
  display: flex; align-items: flex-start; gap: clamp(10px, 2vw, 24px);
  margin-bottom: clamp(40px, 6vw, 88px);
}
.sec__num { font-size: 14px; padding-top: .6em; color: var(--grey); }
.sec__title {
  font-weight: 900;
  font-variation-settings: "wdth" 125;
  font-size: clamp(38px, 11.5vw, 200px);
  line-height: .82;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.lead {
  font-size: clamp(22px, 3vw, 44px);
  font-weight: 500; line-height: 1.2; letter-spacing: -.01em;
  max-width: 22ch;
  margin-bottom: clamp(32px, 5vw, 64px);
}
.lead strong { font-weight: 900; }

/* members — zvýraznění podle polohy na obrazovce (--hl 0…1 nastavuje JS) */
.members li {
  --hl: 1;
  --dir: 1;
  font-weight: 800;
  font-variation-settings: "wdth" 112;
  font-size: clamp(30px, 6.4vw, 104px);
  line-height: 1;
  letter-spacing: -.025em;
  text-transform: uppercase;
  padding: .16em 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.members li:nth-child(2n) { --dir: -1; }
.members li > span {
  display: inline-block;
  color: rgb(255 255 255 / calc(.14 + .86 * var(--hl)));
  transform: translateX(calc((1 - var(--hl)) * var(--dir) * var(--shift, 5vw)));
}
.members li:first-child { border-top: 1px solid var(--line); }

/* story */
.story {
  display: grid; gap: clamp(32px, 5vw, 72px);
  grid-template-columns: 1fr;
  max-width: 1400px;
}
.story__text {
  font-size: clamp(24px, 3.4vw, 52px);
  font-weight: 500; line-height: 1.15; letter-spacing: -.015em;
  max-width: 26ch;
}
.story__text strong { font-weight: 900; }
.story__text .w { color: rgb(255 255 255 / calc(.16 + .84 * var(--o, 1))); }
.story__gap {
  display: flex; flex-direction: column; align-items: flex-start;
  font-weight: 900; font-variation-settings: "wdth" 125; text-transform: uppercase;
  line-height: .8; letter-spacing: -.06em;
}
.story__num {
  font-size: clamp(120px, 26vw, 380px);
  -webkit-text-stroke: 2px var(--white); color: transparent;
}
.story__unit { font-size: clamp(56px, 10vw, 150px); margin-top: .06em; }
@media (min-width: 960px) {
  .story { grid-template-columns: 1.4fr 1fr; align-items: end; }
  .story__gap { align-items: flex-end; }
}

@media (max-width: 959px) { .members { --shift: 2.5vw; } }

/* ---------- INVERT (Koncerty) ---------- */
.sec--invert {
  background: var(--white); color: var(--black);
  --line: rgba(0, 0, 0, .18);
  --grey: #6b6b6b;
  border-top: 0;
}
.sec--invert ::selection { background: var(--black); color: var(--white); }

.gig {
  display: grid;
  grid-template-columns: 1fr;
  gap: .9em;
  padding: clamp(20px, 3vw, 36px) 0;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}
.gig + .gig { border-top: 0; }
.gig__date {
  font-weight: 900; font-variation-settings: "wdth" 125;
  font-size: clamp(44px, 10vw, 150px); line-height: .85; letter-spacing: -.045em;
  white-space: nowrap;
}
.gig__date span { -webkit-text-stroke: 2px var(--black); color: transparent; margin-left: .08em; }
.gig__info { display: grid; gap: .35em; }
.gig__city {
  font-weight: 900; font-variation-settings: "wdth" 112;
  font-size: clamp(26px, 4vw, 60px); line-height: 1; text-transform: uppercase; letter-spacing: -.02em;
}
.gig__meta { display: flex; flex-wrap: wrap; gap: .4em 1.4em; font-size: clamp(14px, 1.4vw, 18px); text-transform: uppercase; letter-spacing: .12em; }
.gig.is-past { opacity: .35; }
.gig.is-past .gig__meta::after { content: " · proběhlo"; }

@media (min-width: 1000px) {
  .gig { grid-template-columns: auto 1fr; align-items: end; column-gap: 48px; }
  .gig__date { font-size: clamp(64px, 8vw, 150px); }
  .gig__info { justify-items: end; text-align: right; padding-bottom: .3em; }
}

/* ---------- PLAYER ---------- */
.player {
  border: 2px solid var(--white);
  max-width: 1100px;
}
.player__now {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: clamp(14px, 2.4vw, 28px);
  padding: clamp(16px, 2.4vw, 28px);
}
.player__play {
  width: clamp(64px, 8vw, 96px); aspect-ratio: 1;
  border: 0; border-radius: 50%;
  background: var(--white); color: var(--black);
  display: grid; place-items: center; cursor: pointer;
  transition: transform .25s var(--ease);
}
.player__play:not(:disabled):hover { transform: scale(1.06); }
.player__play:disabled { background: #1c1c1c; color: #555; cursor: default; }
.player__play svg { width: 40%; height: 40%; grid-area: 1 / 1; }
.player__play .i-pause, .player.is-playing .player__play .i-play { display: none; }
.player.is-playing .player__play .i-pause { display: block; }

.player__info { min-width: 0; }
.player__label { font-size: 12px; text-transform: uppercase; letter-spacing: .18em; color: var(--grey); }
.player__title {
  font-weight: 900; font-variation-settings: "wdth" 112;
  font-size: clamp(22px, 3.4vw, 46px); line-height: 1.25; text-transform: uppercase; letter-spacing: -.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding-top: .06em;
}
.player__skip { display: flex; gap: 4px; }
.player__skip button {
  width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center; border-radius: 50%;
}
.player__skip button:not(:disabled):hover { background: var(--white); color: var(--black); }
.player__skip button:disabled { opacity: .25; cursor: default; }
.player__skip svg { width: 20px; height: 20px; }

.player__bar {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 0 clamp(16px, 2.4vw, 28px) clamp(16px, 2.4vw, 24px);
  font-size: 12px; color: var(--grey);
  font-variant-numeric: tabular-nums;
}
#pSeek {
  -webkit-appearance: none; appearance: none; width: 100%; height: 24px; margin: 0;
  background: transparent; cursor: pointer; --p: 0%;
}
#pSeek:disabled { cursor: default; }
#pSeek::-webkit-slider-runnable-track {
  height: 4px; background: linear-gradient(to right, var(--white) var(--p), #333 var(--p));
}
#pSeek::-moz-range-track { height: 4px; background: #333; }
#pSeek::-moz-range-progress { height: 4px; background: var(--white); }
#pSeek::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: var(--white); border: 0;
}
#pSeek::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 0; }
#pSeek:disabled::-webkit-slider-thumb { background: #333; }
#pSeek:disabled::-moz-range-thumb { background: #333; }

.tracks { border-top: 1px solid var(--line); counter-reset: t; }
.tracks li { border-bottom: 1px solid var(--line); }
.tracks li:last-child { border-bottom: 0; }
.tracks button {
  width: 100%; display: grid; grid-template-columns: 3em 1fr auto auto; gap: 1em; align-items: center;
  padding: 14px clamp(16px, 2.4vw, 28px);
  background: none; border: 0; text-align: left; cursor: pointer;
  transition: background .2s, color .2s;
}
.tracks button::before {
  counter-increment: t; content: counter(t, decimal-leading-zero);
  font-family: var(--mono); font-size: 13px; color: var(--grey);
}
.tracks .t-name { line-height: 1.35; font-weight: 700; font-size: clamp(16px, 1.6vw, 22px); text-transform: uppercase; letter-spacing: .01em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tracks .t-tag {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em;
  border: 1px solid currentColor; padding: 2px 8px; border-radius: 99px;
}
.tracks .t-dur { font-family: var(--mono); font-size: 13px; color: var(--grey); font-variant-numeric: tabular-nums; min-width: 3.2em; text-align: right; }
.tracks .t-tag:empty { visibility: hidden; }
.tracks button:hover { background: #111; }
.tracks li.is-current button { background: var(--white); color: var(--black); }
.tracks li.is-current button::before, .tracks li.is-current .t-dur { color: var(--black); }
@media (max-width: 560px) {
  .tracks button { grid-template-columns: 2.2em 1fr auto; }
  .tracks .t-tag { display: none; }
  .player__now { grid-template-columns: auto 1fr; gap: 4px 14px; }
  .player__play { grid-row: span 2; }
  .player__skip { margin-left: -8px; }
  .player__skip button { width: 36px; height: 36px; }
  .player__title {
    font-size: 20px; line-height: 1.25; white-space: normal;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  }
}

.player__empty {
  display: none; padding: 18px clamp(16px, 2.4vw, 28px);
  border-top: 1px solid var(--line);
  font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--grey);
}
.player[data-empty] .player__empty { display: block; }
.player[data-empty] .tracks { display: none; }

/* ---------- LINKS ---------- */
.links li { border-bottom: 2px solid var(--white); }
.links li:first-child { border-top: 2px solid var(--white); }
.links a {
  display: flex; justify-content: space-between; align-items: center;
  padding: .12em 0;
  font-weight: 900; font-variation-settings: "wdth" 125;
  font-size: clamp(40px, 10vw, 160px); line-height: 1; letter-spacing: -.04em; text-transform: uppercase;
  text-decoration: none;
  position: relative; isolation: isolate;
  transition: color .35s var(--ease), padding .45s var(--ease);
}
.links a::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--white);
  transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease);
}
.links a span { font-weight: 400; font-size: .6em; transition: transform .45s var(--ease); }
@media (hover: hover) {
  .links a:hover { color: var(--black); padding-inline: .15em; }
  .links a:hover::before { transform: scaleY(1); }
  .links a:hover span { transform: translate(.08em, -.08em); }
}

/* ---------- FOOTER ---------- */
.foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 40px var(--gutter);
  border-top: 1px solid var(--line);
  font-size: 12px; color: var(--grey); text-transform: uppercase; letter-spacing: .14em;
}
.foot__mark { height: 44px; color: var(--white); }
.foot__mark svg { height: 100%; width: auto; display: block; }

/* ---------- REVEAL ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
