/* Ozzy & Sabbath Fest 2027 */

:root {
  --bg: #080307;
  --ink: #FFFFFF;
  --red: #E2051C;
  --red-hover: #FF4A5C;
  --muted: #B9B0C0;
  --paper: #F4F1EC;
  --line: rgba(255, 255, 255, 0.25);
  --bar: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Barlow Condensed", "Helvetica Neue", Arial, sans-serif;
  font-size: 20px;
  line-height: 1.45;
  overflow-x: clip;
}

a { color: var(--ink); }
a:hover { color: var(--red-hover); }
img { display: block; max-width: 100%; height: auto; }

/* nadpisy: House of Cards (Adobe Fonts), do načtení náhradní Big Shoulders */
.d {
  font-family: "house-of-cards", "Big Shoulders Display", "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  line-height: .92;
  letter-spacing: .005em;
}

.w { max-width: 1320px; margin: 0 auto; padding: 0 48px; }
.narrow { max-width: 1000px; }
.pad { padding: 120px 0; }
.label { margin: 0 0 28px; font-size: 28px; color: var(--red); }

/* odkazy z menu nesmí zajet pod lištu */
section[id] { scroll-margin-top: calc(var(--bar) + env(safe-area-inset-top, 0px)); }

/* ---------- lišta ---------- */

/* na iPhonu se stránka kreslí i pod stavový řádek s hodinami: lišta ho zakryje
   (viewport-fit=cover + odsazení o safe area) a pruh nad ní schová vše, co by tam prosvítalo */
.bar { position: sticky; top: 0; z-index: 10; background: var(--bg); padding-top: env(safe-area-inset-top, 0px); }
.bar::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 100vh; background: var(--bg); pointer-events: none; }
.bar .w { display: flex; justify-content: space-between; align-items: center; height: var(--bar); gap: 24px; }

.brand { position: relative; display: block; width: 240px; height: var(--bar); text-decoration: none; }
.brand .wm { position: absolute; left: 0; top: 50%; transform: translateY(-50%); font-size: 24px; white-space: nowrap; transition: opacity .25s ease; }
.brand .lg { position: absolute; left: 0; top: 50%; height: 60px; width: auto; max-width: none; opacity: 0; transform: translateY(calc(-50% - 8px)); transition: opacity .3s ease, transform .3s ease; pointer-events: none; }
.brand.is-logo .wm { opacity: 0; }
.brand.is-logo .lg { opacity: 1; transform: translateY(-50%); }
@media (prefers-reduced-motion: reduce) { .brand .wm, .brand .lg { transition: none; } }

.navlinks { display: flex; gap: 32px; font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.navlinks a, .navcta { text-decoration: none; }
.navcta { font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--red); min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- tlačítka ---------- */

.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 15px 26px; background: var(--red); color: var(--ink); text-decoration: none; font-size: 19px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.btn:hover { color: var(--ink); background: #C20418; }
.btn[aria-disabled="true"] { cursor: default; }

/* ---------- úvod ---------- */

.hero-sec { padding: 32px 0 96px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.hero-logo { width: 100%; }
.hero-text { display: flex; flex-direction: column; gap: 28px; }
.h-date { margin: 0; font-size: 148px; line-height: .84; }
.h-venue { margin: 14px 0 0; font-size: 44px; line-height: 1; }
.lead { margin: 0; font-size: 24px; line-height: 1.35; max-width: 520px; }
.buy { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; border-top: 2px solid var(--line); padding-top: 28px; }
.buy p { margin: 0; font-size: 20px; line-height: 1.3; }

/* ---------- úvodní slovo ---------- */

.intro { margin: 0; font-size: 32px; line-height: 1.3; }
.sign { margin: 28px 0 0; font-size: 22px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- setlist ---------- */

.setlist-sec { padding: 40px 0 120px; }
.sheet { background: var(--paper); color: var(--bg); padding: 64px 72px; transform: rotate(-.6deg); box-shadow: 0 30px 60px rgba(0, 0, 0, .6); }
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; border-bottom: 4px solid var(--bg); padding-bottom: 20px; margin-bottom: 8px; }
.sheet-head h2 { margin: 0; font-size: 72px; }
.sheet-head p { margin: 0; font-size: 32px; color: var(--red); }
.sheet ol { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; padding: 24px 0; border-bottom: 2px solid rgba(8, 3, 7, .18); }
.h-row { font-size: 56px; }
.note { font-size: 19px; line-height: 1.4; }
.sheet-foot { margin: 28px 0 0; font-size: 19px; font-weight: 600; }

/* ---------- line-up ---------- */

.lineup-sec { padding: 80px 0 120px; }
.h-band { margin: 0; font-size: clamp(84px, 15vw, 220px); line-height: .82; }
.band-text { margin-top: 40px; }
.band-tag { margin: 0 0 16px; font-size: 22px; font-weight: 700; text-transform: uppercase; }
.band-desc { margin: 0; font-size: 24px; line-height: 1.4; }
.more { margin: 32px 0 0; font-size: 40px; color: var(--red); }

/* ---------- kde a kdy ---------- */

.info-sec { border-top: 2px solid var(--ink); }
.info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.info .label { margin-bottom: 16px; }
.info .big { margin: 0; font-size: 52px; }
.info .small { margin: 16px 0 0; font-size: 20px; }
.partners { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 56px; margin-top: 72px; }
.partners .p1 { height: 30px; width: auto; }
.partners .p2 { height: 64px; width: auto; }

/* ---------- FAQ ---------- */

.faq-sec { padding: 40px 0 120px; }
.faq details { border-top: 2px solid var(--line); padding: 20px 0; }
.faq summary { list-style: none; cursor: pointer; font-size: 36px; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 12px 0 0; font-size: 20px; }
.faq-mail { margin: 32px 0 0; font-size: 20px; }

/* ---------- patička ---------- */

.foot { padding: 48px 0 40px; border-top: 2px solid var(--ink); }
.foot .w { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 24px; }
.foot nav { display: flex; gap: 28px; font-size: 18px; font-weight: 700; text-transform: uppercase; }
.foot nav a { text-decoration: none; }
.foot p { margin: 0; font-size: 16px; color: var(--muted); }

/* ---------- zrno ----------
 * Jemné filmové zrno přes celou stránku, aby černá působila jako potištěný papír. */

body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 100;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) 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%); }
  100% { transform: translate(0, 0); }
}

/* ---------- oheň za logem ---------- */

.hero-art { position: relative; justify-self: center; width: 100%; max-width: 600px; }
.hero-art::before {
  content: "";
  position: absolute;
  inset: 8% 4% 18%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(99, 43, 134, .75), rgba(99, 43, 134, .25) 55%, rgba(99, 43, 134, 0));
  filter: blur(30px);
  animation: flicker 3.2s ease-in-out infinite;
}
.hero-art .hero-logo { max-width: none; }

@keyframes flicker {
  0%, 100% { opacity: .75; transform: scale(1); }
  18% { opacity: .95; transform: scale(1.05); }
  32% { opacity: .65; transform: scale(.98); }
  51% { opacity: 1; transform: scale(1.08); }
  67% { opacity: .7; transform: scale(1.01); }
  84% { opacity: .9; transform: scale(1.04); }
}

/* ---------- vstup úvodu ---------- */

.js .hero-logo { animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; }

/* číslice data dopadnou jako razítko (rozdělí je js/site.js) */
.h-date .word { display: inline-block; white-space: nowrap; }
.h-date .ch { display: inline-block; }
.js .h-date .ch { animation: stamp .3s cubic-bezier(.2, 1.6, .4, 1) both; animation-delay: calc(.05s + var(--i) * 30ms); }

.js .hero-text > :not(:first-child),
.js .h-venue { animation: rise .4s ease both; }
.js .hero-text .h-venue { animation-delay: .3s; }
.js .hero-text > .lead { animation-delay: .38s; }
.js .hero-text > .buy { animation-delay: .46s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

@keyframes stamp {
  0% { opacity: 0; transform: translateY(-40px) scale(1.5) rotate(-6deg); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}

/* ---------- odhalení při scrollu ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .45s ease, transform .45s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* setlist přiletí a usadí se v mírném náklonu */
.js .sheet[data-reveal] { transform: translateY(60px) rotate(-3deg); transition-duration: .5s; }
.js .sheet[data-reveal].is-in { transform: rotate(-.6deg); }
/* řádky se rozjedou spolu s papírem, ne každý zvlášť – rychlý scroll je nepředběhne */
.js .sheet .row { opacity: 0; transform: translateX(-16px); transition: opacity .25s ease, transform .25s ease; transition-delay: calc(.05s + var(--i, 0) * 30ms); }
.js .sheet.is-in .row { opacity: 1; transform: none; }


/* ---------- najetí myší ---------- */

.btn { transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(226, 5, 28, .7); }
.navlinks a, .foot nav a { background: linear-gradient(var(--red), var(--red)) no-repeat 0 100% / 0 2px; transition: background-size .25s ease, color .2s; }
.navlinks a:hover, .foot nav a:hover { background-size: 100% 2px; color: var(--ink); }
.row .h-row { transition: color .2s ease, transform .2s ease; }
.row:hover .h-row { color: var(--red); transform: translateX(8px); }
.faq summary { transition: color .2s ease; }
.faq summary:hover { color: var(--red-hover); }

@media (prefers-reduced-motion: reduce) {
  body::after, .hero-art::before { animation: none; }
  .js .hero-logo, .js .h-date .ch, .js .hero-text > *, .js .h-venue { animation: none; }
  .js [data-reveal], .js .sheet[data-reveal], .js .sheet .row { opacity: 1; transform: none; transition: none; }
  .js .sheet[data-reveal] { transform: rotate(-.6deg); }
}

/* ---------- mobil ---------- */

@media (max-width: 900px) {
  .w { padding: 0 20px; }
  .hero, .info { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .navlinks { display: none; }
  .brand { width: 180px; }
  .brand .wm { font-size: 19px; }
  .brand .lg { height: 54px; }
  .navcta { font-size: 16px; }
  .h-venue { font-size: 30px; }
  .h-date { font-size: 84px; }
  .h-row { font-size: 40px; }
  .label { font-size: 22px; }
  .sheet, .js .sheet[data-reveal].is-in { padding: 32px 20px; transform: none; }
  .intro { font-size: 24px; }
  .pad, .lineup-sec { padding-top: 80px; padding-bottom: 80px; }
}
