:root {
  --red: #c8102e;
  --red-dark: #9a0c23;
  --black: #111;
  --ink: #1b1b1b;
  --paper: #f4ead5;
  --paper-2: #ebdcbd;
  --gold: #e8b931;
  --step: 1; /* velikost písma, přepíná se tlačítky */
  --head: "Anton", Impact, "Arial Black", sans-serif;
  --body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: calc(22px * var(--step));
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--red-dark); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:focus-visible, button:focus-visible { outline: 4px solid var(--gold); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--head); font-weight: 400; letter-spacing: .02em; line-height: 1.1; margin: 0 0 .5em; }
h2 { font-size: 2.4em; text-transform: uppercase; }
h3 { font-size: 1.5em; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ===== horní lišta ===== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--black); color: var(--paper);
  border-bottom: 6px solid var(--red);
}
.topbar .wrap { display: flex; align-items: center; gap: 14px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--paper); text-decoration: none; }
.brand img { width: 56px; height: 56px; }
.brand span { font-family: var(--head); font-size: 34px; letter-spacing: .06em; }
.spacer { flex: 1; }

.size-switch { display: flex; gap: 6px; }
.size-switch button, .menu-btn {
  font-family: var(--body); font-weight: 700;
  background: var(--paper); color: var(--black);
  border: 3px solid var(--paper); border-radius: 10px;
  min-width: 52px; min-height: 52px; cursor: pointer; font-size: 20px;
}
.size-switch button[aria-pressed="true"] { background: var(--red); color: #fff; border-color: #fff; }
.menu-btn { display: none; padding: 0 16px; }

.nav { background: var(--black); }
.nav ul { list-style: none; margin: 0 auto; padding: 0 20px 12px; max-width: 1100px; display: flex; flex-wrap: wrap; gap: 8px; }
.nav a {
  display: block; padding: 10px 16px; border-radius: 8px;
  color: var(--paper); text-decoration: none; font-weight: 700; font-size: 20px;
  border: 2px solid #444;
}
.nav a:hover { background: var(--red); border-color: var(--red); }

/* ===== úvod ===== */
.hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(200,16,46,.45), transparent 55%),
    repeating-linear-gradient(-45deg, #161616 0 14px, #111 14px 28px);
  color: var(--paper);
  padding: 50px 0 80px;
  clip-path: polygon(0 0, 100% 0, 100% 94%, 82% 100%, 60% 95%, 38% 100%, 18% 95%, 0 100%);
}
.hero .wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.hero-logo { width: 100%; max-width: 380px; margin: 0 auto; filter: drop-shadow(0 10px 25px rgba(0,0,0,.6)); transform: rotate(-4deg); }
.hero h1 { font-size: 3.2em; color: #fff; text-transform: uppercase; }
.hero h1 em { color: var(--red); font-style: normal; display: block; }
.hero p.lead { font-size: 1.15em; margin: 0 0 1em; }
.btn {
  display: inline-block; background: var(--red); color: #fff; text-decoration: none;
  font-family: var(--head); font-size: 1.15em; letter-spacing: .05em; text-transform: uppercase;
  padding: 14px 28px; border-radius: 10px; border: 3px solid #fff;
  box-shadow: 6px 6px 0 var(--black);
}
.btn:hover { background: var(--red-dark); }
.btn.ghost { background: transparent; }

.next-gig {
  margin-top: 26px; background: var(--paper); color: var(--black);
  border: 4px solid var(--red); border-radius: 12px; padding: 16px 20px;
  transform: rotate(1deg); box-shadow: 8px 8px 0 var(--red);
}
.next-gig strong { font-family: var(--head); font-weight: 400; font-size: 1.3em; display: block; }

/* ===== sekce ===== */
section { padding: 60px 0; }
section.dark { background: var(--black); color: var(--paper); }
section.dark a { color: var(--gold); }
section.alt { background: var(--paper-2); }
.section-title { display: flex; align-items: center; gap: 16px; }
.section-title::after { content: ""; flex: 1; height: 6px; background: var(--red); border-radius: 3px; }
.intro { font-size: 1.05em; max-width: 46em; }

/* plakátky koncertů */
.gigs { display: grid; gap: 22px; }
.gig {
  display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center;
  background: #fff; border: 4px solid var(--black); border-radius: 12px; padding: 18px;
  box-shadow: 8px 8px 0 var(--red);
}
.dark .gig { background: #1d1d1d; border-color: var(--paper); color: var(--paper); box-shadow: 8px 8px 0 var(--red); }
.gig .date {
  background: var(--red); color: #fff; text-align: center; border-radius: 8px; padding: 10px 6px;
  font-family: var(--head); line-height: 1;
}
.gig .date .d { font-size: 3em; display: block; }
.gig .date .m { font-size: 1.1em; text-transform: uppercase; display: block; margin-top: 6px; }
.gig .date .y { font-size: .8em; display: block; margin-top: 6px; opacity: .85; }
.gig h3 { margin: 0 0 .2em; }
.gig p { margin: .2em 0; }
.gig .meta { font-weight: 700; }
.tag { display: inline-block; background: var(--gold); color: var(--black); font-weight: 700; border-radius: 6px; padding: 2px 10px; font-size: .85em; }

.past-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.past-list li {
  background: #fff; border-left: 10px solid var(--red); padding: 14px 18px; border-radius: 6px;
}
.past-list .when { font-weight: 700; display: block; }

/* členové */
.members { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.member {
  background: #1d1d1d; border: 4px solid var(--paper); border-radius: 14px; overflow: hidden; color: var(--paper);
}
.member .pic { background: var(--red); padding: 20px; }
.member .pic svg { width: 100%; height: 190px; }
.member .body { padding: 20px; }
.member h3 { color: #fff; margin-bottom: .1em; }
.member .role { color: var(--gold); font-weight: 700; margin: 0 0 .6em; }
.member details { margin-top: 12px; border-top: 2px solid #444; padding-top: 12px; }
.member summary {
  cursor: pointer; font-weight: 700; font-size: 1em; color: #fff; list-style: none;
  background: var(--red); padding: 10px 14px; border-radius: 8px;
}
.member summary::-webkit-details-marker { display: none; }
.member summary::before { content: "▶ "; }
.member details[open] summary::before { content: "▼ "; }
.member dl { margin: 12px 0 0; }
.member dt { font-weight: 700; color: var(--gold); margin-top: 8px; }
.member dd { margin: 0; }

/* repertoár */
.rep { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.rep ol { margin: 0; padding-left: 1.6em; }
.rep li { padding: 8px 0; border-bottom: 2px dashed #b9a67d; }
.rep li b { display: block; }
.rep li span { color: #555; }
.rep .box { background: #fff; border: 4px solid var(--black); border-radius: 12px; padding: 22px 26px; }

/* galerie */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.gallery figure { margin: 0; background: #fff; padding: 12px 12px 4px; border: 2px solid #ddd; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.gallery figure:nth-child(odd) { transform: rotate(-1.5deg); }
.gallery figure:nth-child(even) { transform: rotate(1.2deg); }
.gallery svg { width: 100%; height: auto; aspect-ratio: 4/3; }
.gallery figcaption { color: var(--black); padding: 10px 4px; font-weight: 600; }
.note { background: var(--gold); color: var(--black); padding: 12px 18px; border-radius: 8px; font-weight: 600; display: inline-block; }

/* historie */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 8px solid var(--red); }
.timeline li { position: relative; padding: 0 0 28px 30px; }
.timeline li::before {
  content: ""; position: absolute; left: -20px; top: 6px; width: 28px; height: 28px;
  background: var(--black); border: 5px solid var(--red); border-radius: 50%;
}
.timeline .yr { font-family: var(--head); font-size: 1.6em; color: var(--red); display: block; line-height: 1.2; }

/* patička */
footer { background: var(--black); color: var(--paper); padding: 40px 0; border-top: 8px solid var(--red); text-align: center; }
footer img { width: 120px; margin: 0 auto 16px; }
footer p { margin: .3em 0; }

/* ===== mobil ===== */
@media (max-width: 820px) {
  html { scroll-padding-top: 80px; }
  body { font-size: calc(20px * var(--step)); }
  .brand span { display: none; }
  .menu-btn { display: block; }
  .nav { display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding-top: 12px; }
  .nav a { font-size: 22px; padding: 16px 18px; }
  .hero { padding: 30px 0 70px; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .hero-logo { max-width: 240px; }
  .hero h1 { font-size: 2.3em; }
  h2 { font-size: 1.9em; }
  .gig { grid-template-columns: 1fr; text-align: left; }
  .gig .date { display: flex; gap: 12px; align-items: baseline; justify-content: center; padding: 10px; }
  .gig .date .d { font-size: 2em; }
  .gig .date .m, .gig .date .y { margin: 0; }
  .rep { grid-template-columns: 1fr; }
  .members, .gallery { grid-template-columns: 1fr; }
  .size-switch button { min-width: 46px; min-height: 46px; font-size: 18px; }
}

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