:root {
  --wine: #4a0a25;
  --crimson: #b5154d;
  --pink: #eecdd0;
  --paper: #fbf4ef;
  --paper-alt: #f5e6e0;
  --yellow: #f2b705;
  --orange: #ef6c1a;
  --magenta: #d6336c;
  --purple: #7048a8;
  --teal: #1aa6a6;
  --green: #5fae3c;
  --ink: #3a1a26;
  --muted: #6b4a56;
  --display: 'Rye', 'Rockwell', 'Georgia', serif;
  --text: 'Alegreya', 'Georgia', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.2rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--crimson); }

/* ---------- Záhlaví: logo vlevo, kopce protažené přes celou šířku ---------- */
.site-header {
  --h: clamp(140px, 21vw, 260px);       /* výška loga */
  --logo-w: calc(var(--h) * 4 / 3);
  position: relative;
  height: var(--h);
  background: var(--pink);
  overflow: hidden;
}
.logo {
  position: absolute; left: 0; top: 0;
  display: block; height: var(--h); width: var(--logo-w);
  z-index: 2;
}
.logo img { display: block; width: 100%; height: 100%; }

.hills {
  position: absolute; bottom: 0;
  left: var(--logo-w); right: 0;
  height: calc(var(--h) * 230 / 600);   /* stejné měřítko jako kopce v logu */
  z-index: 1;
}
.hills svg { display: block; width: 100%; height: 100%; }

.nav-wrap {
  position: absolute;
  left: calc(var(--logo-w) + clamp(0.75rem, 3vw, 3rem));
  right: clamp(0.75rem, 2vw, 2rem);
  top: 0;
  height: calc(var(--h) * 0.60);        /* prostor nad kopci */
  display: flex; flex-direction: column; justify-content: center;
  gap: 0.35rem;
  z-index: 3;
}
.tagline {
  margin: 0;
  font-style: italic;
  color: var(--muted);
  font-size: clamp(0.9rem, 1.6vw, 1.25rem);
}
.main-nav {
  display: flex; flex-wrap: wrap;
  gap: 0.25rem clamp(1rem, 2.6vw, 2.5rem);
}
.main-nav a {
  font-family: var(--display);
  font-size: clamp(0.95rem, 2.1vw, 1.7rem);
  color: var(--crimson);
  text-decoration: none;
  text-shadow: 1px 1px 0 var(--wine);
  padding: 0.1rem 0;
  border-bottom: 3px solid transparent;
  transition: border-color .15s, color .15s;
}
.main-nav a:hover, .main-nav a:focus-visible { border-bottom-color: var(--orange); color: var(--wine); text-shadow: none; }

@media (max-width: 640px) {
  .site-header { --h: 180px; }
  .nav-wrap { left: calc(var(--logo-w) + 0.6rem); right: 0.5rem; height: calc(var(--h) * 0.62); gap: 0; }
  .tagline { display: none; }
  .main-nav { flex-direction: column; flex-wrap: nowrap; gap: 0; }
  .main-nav a { font-size: 0.85rem; line-height: 1.3; border-bottom-width: 2px; white-space: nowrap; align-self: flex-start; }
}

/* ---------- Obsah ---------- */
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4rem 0; scroll-margin-top: 0; }
.section.alt { background: var(--paper-alt); }

h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--crimson);
  text-shadow: 3px 3px 0 var(--wine);
  margin: 0 0 1.2rem;
  line-height: 1.15;
}
h2::after {
  content: "";
  display: block; height: 8px; width: 200px; margin-top: 0.9rem;
  background: linear-gradient(90deg,
    var(--yellow) 0 16.66%, var(--orange) 0 33.33%, var(--magenta) 0 50%,
    var(--purple) 0 66.66%, var(--teal) 0 83.33%, var(--green) 0);
  border-radius: 4px;
}
h3 { font-family: var(--text); font-weight: 700; font-size: 1.35rem; color: var(--wine); margin: 2rem 0 0.5rem; }
.lead { font-size: 1.45rem; font-style: italic; color: var(--wine); }
.muted { color: var(--muted); }

.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: start; }
.cd { margin: 0; }
.cd img { display: block; width: 100%; border: 6px solid #fff; box-shadow: 8px 8px 0 var(--wine); }
.cd figcaption { margin-top: 1.1rem; font-size: 1rem; color: var(--muted); }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

.gigs, .plain { list-style: none; margin: 0; padding: 0; }
.gigs li { padding: 0.8rem 1rem; margin-bottom: 0.6rem; background: #fff; border-left: 8px solid var(--orange); display: grid; grid-template-columns: 8.5rem 1fr; gap: 0 1rem; }
.gigs time { font-weight: 700; color: var(--crimson); }
.gigs .gig-note { grid-column: 2; color: var(--muted); font-size: 1rem; }
.gigs .gig-empty { display: block; border-left-color: var(--teal); font-style: italic; }
.plain li { padding-left: 1.4rem; position: relative; margin-bottom: 0.5rem; }
.plain li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--yellow); }

.members { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.25rem; }
.member { background: #fff; border-top: 8px solid var(--c); padding: 1.25rem 1rem 1.1rem; text-align: center; box-shadow: 4px 4px 0 rgba(74,10,37,.15); }
.member h3 { margin: 0.6rem 0 0.2rem; font-size: 1.2rem; }
.member p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.35; }
.avatar { display: inline-grid; place-items: center; width: 4.2rem; height: 4.2rem; border-radius: 50%; background: var(--c); color: #fff; font-family: var(--display); font-size: 1.8rem; text-shadow: 2px 2px 0 rgba(0,0,0,.25); }

.timeline { list-style: none; margin: 2rem 0 0; padding: 0 0 0 1.75rem; border-left: 4px solid var(--wine); }
.timeline li { position: relative; margin-bottom: 2rem; padding-left: 1rem; }
.timeline li::before { content: ""; position: absolute; left: calc(-1.75rem - 10px); top: 0.3rem; width: 16px; height: 16px; border-radius: 50%; background: var(--c); border: 3px solid var(--paper-alt); box-shadow: 0 0 0 2px var(--wine); }
.timeline time { font-family: var(--display); font-size: 1.35rem; color: var(--c); filter: brightness(.82); }
.timeline p { margin: 0.2rem 0 0; }

/* ---------- Patička ---------- */
.site-footer { background: var(--wine); color: var(--pink); text-align: center; padding: 0 0 2.5rem; }
.stripes { display: flex; height: 12px; margin-bottom: 2rem; }
.stripes i { flex: 1; }
.stripes i:nth-child(1) { background: var(--yellow); }
.stripes i:nth-child(2) { background: var(--orange); }
.stripes i:nth-child(3) { background: var(--magenta); }
.stripes i:nth-child(4) { background: var(--purple); }
.stripes i:nth-child(5) { background: var(--teal); }
.stripes i:nth-child(6) { background: var(--green); }
.footer-name { font-family: var(--display); font-size: 2.2rem; margin: 0; color: var(--yellow); }
.site-footer p { margin: 0.3rem 0; }
.site-footer .small { font-size: 0.9rem; opacity: .75; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Časová osa členů ---------- */
.tl-title { margin-top: 3.5rem; }
.tl-scroll { overflow-x: auto; margin-top: 1rem; padding-bottom: 0.5rem; background: #fff; border-top: 8px solid var(--wine); box-shadow: 4px 4px 0 rgba(74,10,37,.15); }
.tl-chart { min-width: 800px; padding: 0.5rem 1rem 1rem 0; }
.tl-axis, .tl-row { display: grid; grid-template-columns: 270px 1fr; align-items: center; }
.tl-lab { position: sticky; left: 0; z-index: 2; background: #fff; padding: 0 0.75rem 0 1rem; display: flex; flex-direction: column; line-height: 1.15; }
.tl-lab b { font-size: 1rem; }
.tl-lab small { font-size: 0.78rem; color: var(--muted); }
.tl-track {
  position: relative; height: 34px;
  background-image: linear-gradient(90deg, rgba(74,10,37,.14) 1px, transparent 1px);
  background-size: calc(100% / 11) 100%;
  border-right: 1px solid rgba(74,10,37,.14);
}
.tl-axis .tl-track { height: 1.8rem; background-image: none; border-right: 0; }
.tl-year { position: absolute; top: 0; padding-left: 4px; font-family: var(--display); font-size: 0.8rem; color: var(--wine); }
.tl-lane { margin: 0.9rem 0 0.1rem; padding-left: 1rem; position: sticky; left: 0; }
.tl-lane span { font-family: var(--display); font-size: 1.05rem; color: var(--c); filter: brightness(.8); border-bottom: 3px solid var(--c); padding-bottom: 1px; }
.tl-bar { position: absolute; top: 9px; height: 16px; border-radius: 8px; background: var(--c); }
.tl-bar.guest { background: repeating-linear-gradient(135deg, var(--c) 0 5px, rgba(255,255,255,.75) 5px 9px); border: 2px solid var(--c); }
.tl-gap { position: absolute; top: 16px; height: 0; border-top: 2px dashed rgba(74,10,37,.4); }
