/* Písmo: Ubuntu Mono Italic (Ubuntu Font Licence), uložené přímo na webu.
   size-adjust srovná šířku znaků s Lucida Console z návrhu. */
@font-face {
  font-family: "Ubuntu Mono Web";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  size-adjust: 120%;
  src: url("fonts/ubuntu-mono-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Ubuntu Mono Web";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  size-adjust: 120%;
  src: url("fonts/ubuntu-mono-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #250010;            /* barva z PSD: rgb(37, 0, 16) */
  color-scheme: dark;
  --fg: #ffffff;
  --muted: rgba(255, 255, 255, .5);
  --line: rgba(255, 255, 255, .25);
  --font: "Ubuntu Mono Web", "Lucida Console", Monaco, monospace;
  /* 1 "pixel" návrhu: na 1920px šířce = 1px, menší obrazovky se proporčně zmenší */
  /* --scale zmenší/zvětší celý web najednou (1 = velikost z PSD, .75 = o čtvrtinu menší) */
  --scale: .75;
  --px: calc(min(100vw / 1920, 1px) * var(--scale));
  /* --content-scale zmenší jen obsah stránek merch, music a other (logo a menu zůstávají) */
  --content-scale: .5;
}
.merch, .releases, .listen, .other, .contact { --px: calc(min(100vw / 1920, 1px) * var(--content-scale)); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-style: italic;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.nav a[aria-current="page"],
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 1px; }
img { display: block; max-width: 100%; height: auto; }

.artboard {
  position: relative;
  max-width: 1920px;
  margin: 0 auto;
  min-height: calc(1080 * var(--px));
}
.artboard + .artboard { margin-top: calc(100 * var(--px)); }

/* ---------- HOME ---------- */
.header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  padding: calc(24 * var(--px)) calc(137 * var(--px)) 0;
}
.nav {
  display: flex;
  gap: calc(97 * var(--px));
  font-size: max(13px, calc(22 * var(--px)));
  line-height: 1;
  padding-bottom: calc(36 * var(--px));
}
.nav--right { justify-content: flex-end; gap: calc(65 * var(--px)); padding-right: calc(1 * var(--px)); }
.logo img { width: calc(562 * var(--px)); }
.hero {
  width: calc(1002 * var(--px));
  margin: calc(216 * var(--px)) auto 0;
}
/* úvod vyplní celou obrazovku, fotka je uprostřed volného místa pod menu */
#home { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
#home .hero { margin: auto; }

/* ---------- CONTACT ---------- */
.text {
  font-size: max(13px, calc(27 * var(--px)));
  line-height: max(18px, calc(35 * var(--px)));
}
/* kontakt: vycentrovaný uprostřed sekce */
/* kontakt jako samostatná „stránka“ pod úvodem */
#contact {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  margin-top: 0;
}
.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: calc(56 * var(--px));
  padding: 0 calc(63 * var(--px));
}
.contact__title {
  font: inherit;
  font-size: max(15px, calc(34 * var(--px)));
  line-height: 1;
  margin: 0;
}
.contact__group { display: flex; flex-direction: column; align-items: center; gap: calc(12 * var(--px)); }
.contact__label { color: var(--muted); margin: 0; }
.contact__value { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: .5ch 2ch; margin: 0; }
.contact__value a { overflow-wrap: anywhere; }
.socials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5ch 3ch; }
.copy {
  font: inherit; color: inherit; background: none; cursor: pointer;
  font-size: .8em;
  border: 1px solid var(--fg);
  padding: 0 .5em;
}
.copy:hover, .copy:focus-visible { background: var(--fg); color: var(--bg); }

/* ---------- MERCH ---------- */
.page { padding-bottom: calc(130 * var(--px)); }
.merch {
  display: flex;
  flex-direction: column;
  gap: calc(130 * var(--px));
  padding: calc(130 * var(--px)) calc(95 * var(--px)) 0;
}
.item { display: flex; align-items: flex-start; gap: calc(64 * var(--px)); }
.item__img {
  width: calc(560 * var(--px));
  aspect-ratio: 1;
  flex: none;
  background: #000;
  object-fit: cover;
}
.item__info { display: flex; flex-direction: column; align-items: flex-start; gap: calc(35 * var(--px)); min-width: 0; max-width: calc(900 * var(--px)); }
.item__name { font: inherit; font-size: max(15px, calc(34 * var(--px))); line-height: 1; margin: 0; }
.item__prices { margin: 0; display: grid; grid-template-columns: max-content max-content; column-gap: 3ch; }
.item__prices div { display: contents; }
.item__prices dt { color: var(--muted); }
.item__prices dd { margin: 0; font-variant-numeric: tabular-nums; }
.item__desc { font-size: max(12px, calc(21 * var(--px))); line-height: 1.5; color: rgba(255, 255, 255, .78); max-width: 64ch; }
.item__desc p { margin: 0 0 1em; }
.item__desc p:last-child { margin-bottom: 0; }
img.item__img { background: none; aspect-ratio: auto; height: auto; }
.buy {
  display: inline-block;
  padding: calc(2 * var(--px)) calc(13 * var(--px));
  border: 1px solid var(--fg);
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.buy:hover, .buy:focus-visible { background: var(--fg); color: var(--bg); text-decoration: none; }

/* ---------- MUSIC / OTHER ---------- */
.simple { padding: calc(216 * var(--px)) calc(459 * var(--px)) 0; }
.simple h1 { font: inherit; margin: 0 0 calc(35 * var(--px)); }
.simple p { margin: 0 0 calc(35 * var(--px)); }
.simple ul { list-style: none; margin: 0; padding: 0; }

/* ---------- BĚŽÍCÍ PRUH ---------- */
.ticker {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 1920px;
  margin: 0 auto;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid var(--fg);
  font-size: max(11px, calc(15 * var(--px)));
  line-height: 1;
  padding: max(5px, calc(7 * var(--px))) 0;
}
.ticker:hover, .ticker:focus-visible { text-decoration: none; }
.ticker__track { display: flex; width: max-content; animation: ticker var(--dur, 40s) linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__half { display: flex; }
.ticker__half span { padding-right: 1.5em; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- MUSIC / PŘEHRÁVAČ ---------- */
.releases { display: flex; flex-direction: column; gap: calc(130 * var(--px)); padding: calc(130 * var(--px)) calc(95 * var(--px)) 0; }
.release { display: flex; align-items: flex-start; gap: calc(64 * var(--px)); }
.release__listen { margin: 0 0 calc(35 * var(--px)); }
.release__info { min-width: 0; flex: 1; max-width: calc(1000 * var(--px)); }
.track__no { min-width: 2ch; }
.track__len { color: var(--muted); font-variant-numeric: tabular-nums; }
.tracks li.side-start:not(:first-child) { margin-top: calc(18 * var(--px)); }
.release__title { line-height: 1; }
.release__cover {
  width: calc(560 * var(--px));
  aspect-ratio: 1;
  flex: none;
  background: #000;
}
.release__cover img { width: 100%; height: 100%; object-fit: cover; }
.release__title { font: inherit; font-size: max(15px, calc(34 * var(--px))); margin: 0 0 calc(35 * var(--px)); }
.tracks { list-style: none; margin: 0 0 calc(35 * var(--px)); padding: 0; }
.track, .ctl, .gallery__item, .lightbox button {
  font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer;
}
.track { display: flex; gap: 1ch; width: 100%; text-align: left; }
.track::before { content: " "; white-space: pre; width: 1ch; }
.track.is-active::before { content: ">"; }
.track__title { flex: 1; }
.track:hover .track__title, .track:focus-visible .track__title { text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 1px; }
.player { display: flex; flex-wrap: wrap; align-items: center; gap: 1ch 2ch; margin-bottom: calc(35 * var(--px)); }
.ctl { border: 1px solid var(--fg); padding: calc(2 * var(--px)) calc(13 * var(--px)); }
.ctl:hover, .ctl:focus-visible { background: var(--fg); color: var(--bg); }
.ctl[data-play] { min-width: 7ch; }
.bar { cursor: pointer; user-select: none; letter-spacing: 0; }
.listen { margin: calc(100 * var(--px)) calc(95 * var(--px)) 0; display: flex; flex-wrap: wrap; gap: 0 1ch; }
.listen span { white-space: nowrap; }

/* ---------- OTHER: KONCERTY + GALERIE ---------- */
.other { padding: calc(130 * var(--px)) calc(95 * var(--px)) 0; }
.other h2 { font: inherit; margin: 0 0 calc(35 * var(--px)); }
.other section + section { margin-top: calc(100 * var(--px)); }
.shows-list { list-style: none; margin: 0; padding: 0; max-width: calc(1100 * var(--px)); }
.show {
  display: grid;
  grid-template-columns: 12ch 1fr auto;
  gap: 2ch;
  align-items: center;
  padding: calc(14 * var(--px)) 0;
  border-bottom: 1px solid var(--line);
}
.show .buy { margin-left: 0; }
.show__soon { opacity: .6; }
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(40 * var(--px)); }
.gallery__item { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }

.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 16px; border: 0;
  background: rgba(37, 0, 16, .96); color: var(--fg);
  font-size: max(16px, calc(27 * var(--px)));
}
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto 1fr auto; align-items: center; justify-items: center; gap: 12px; }
.lightbox::backdrop { background: transparent; }
.lightbox img { grid-column: 2; grid-row: 2; max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; }
.lightbox [data-lb-close] { grid-column: 3; grid-row: 1; justify-self: end; }
.lightbox [data-lb-prev] { grid-column: 1; grid-row: 2; padding: 12px; }
.lightbox [data-lb-next] { grid-column: 3; grid-row: 2; padding: 12px; }
.lightbox [data-lb-count] { grid-column: 2; grid-row: 3; }
.lightbox button:hover, .lightbox button:focus-visible { text-decoration: underline; text-underline-offset: .15em; }

/* ---------- MOBIL ---------- */
@media (max-width: 900px) {
  :root { --px: 1px; }
  .merch, .releases, .listen, .other, .contact { --px: .7px; }
  .merch.text, .release__info.text, .listen.text, .other.text, .contact.text { font-size: 13px; line-height: 18px; }
  #home { min-height: 0; }
  #home .hero { margin: 48px 16px 0; }
  .artboard { min-height: 0; padding-bottom: 72px; }
  .artboard + .artboard { margin-top: 0; }
  .header {
    grid-template-columns: 1fr 1fr;
    padding: 24px 16px 0;
    row-gap: 20px;
  }
  .logo { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
  .logo img { width: min(320px, 70vw); }
  .nav { font-size: 13px; gap: 18px; padding: 0; }
  .ticker { font-size: 12px; padding: 5px 0; }
  .nav--right { gap: 24px; }
  .hero { width: calc(100% - 32px); margin: 48px 16px 0; }
  #contact { min-height: 0; padding-block: 72px 96px; }
  .contact { gap: 36px; padding: 0 16px; }
  .contact__title { font-size: 15px; }
  .contact__group { gap: 8px; }
  .socials { display: grid; grid-template-columns: repeat(2, auto); gap: 4px 28px; }
  .text { font-size: 15px; line-height: 21px; }
  .page { padding-bottom: 72px; }
  .merch { gap: 56px; padding: 48px 16px 0; }
  .item { flex-direction: column; gap: 20px; }
  .item__info { gap: 16px; max-width: none; }
  .item__name { font-size: 15px; }
  .item__desc { font-size: 12px; }
  .simple { padding: 48px 16px 0; }
  .simple h1, .simple p { margin-bottom: 24px; }
  .item__img { width: 100%; max-width: 220px; }
  .item__info p { margin-bottom: 16px; white-space: normal; }
  .buy { margin-left: 0; padding: 2px 10px; }
  .releases { gap: 56px; padding: 48px 16px 0; }
  .release { flex-direction: column; gap: 24px; }
  .release__title { font-size: 15px; }
  .listen { margin: 48px 16px 0; }
  .release__cover { width: 100%; max-width: 220px; }
  .release__title, .tracks, .player { margin-bottom: 24px; }
  .release__info { width: 100%; }
  .ctl { padding: 2px 10px; }
  .other { padding: 48px 16px 0; }
  .other h2 { margin-bottom: 16px; }
  .other section + section { margin-top: 56px; }
  .show { grid-template-columns: 1fr auto; gap: 4px 16px; padding: 12px 0; }
  .show__date { grid-column: 1 / -1; }
  .gallery__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .gallery__item:nth-child(3n + 1) { grid-column: 1 / -1; }
}
@media (max-width: 380px) {
  .nav { font-size: 12px; gap: 12px; }
  .nav--right { gap: 16px; }
}

/* odkaz bez URL (nedoplněný v links.js) */
a:not([href]) { cursor: default; }
a:not([href]):hover { text-decoration: none; }

/* =========================================================
   EFEKTY (fx) – celé jde smazat bez dopadu na zbytek webu
   ========================================================= */

::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 1px dashed var(--fg); outline-offset: 4px; }

/* 1) Filmové zrno přes celou stránku */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 100;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .07;
  animation: grain .5s steps(1) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, -4%); }
  60%  { transform: translate(-4%, -1%); }
  80%  { transform: translate(3%, 3%); }
}

/* 2) Logo se jemně „vaří“ jako ručně kreslená animace */
.logo img { animation: boil .36s steps(1) infinite; }
@keyframes boil {
  0%      { filter: url(#boil1); }
  33.333% { filter: url(#boil2); }
  66.666% { filter: url(#boil3); }
}
.fx-defs { position: absolute; width: 0; height: 0; }

/* Kdo má v systému vypnuté animace, nic se nehýbe */
@media (prefers-reduced-motion: reduce) {
  .ticker__track, body::after, .logo img { animation: none !important; }
}
