/* ===== Vox imperfecta — design system ===== */
:root {
  --green: #24542E;
  --green-2: #2f6b3b;
  --gold: #b08d3f;
  --bg: #faf7f1;
  --surface: #ffffff;
  --ink: #22271f;
  --muted: #6b7263;
  --line: #e4dfd3;
  --accent: var(--green);
  --radius: 10px;
  --shadow: 0 1px 3px rgba(30,40,25,.08), 0 8px 24px rgba(30,40,25,.06);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171a15; --surface: #20241d; --ink: #e8e6dd; --muted: #a8ab9c;
    --line: #34392f; --accent: #7fb98b; --gold: #d3b060;
    --shadow: 0 1px 3px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.65 "Source Sans 3", system-ui, sans-serif;
}
h1,h2,h3,.brand { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin: .2em 0; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 1.6em 0 .5em; color: var(--accent); }
h3 { font-size: 1.25rem; margin: 1.2em 0 .4em; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }
img { max-width: 100%; }

/* header */
header.site {
  background: linear-gradient(160deg, var(--green) 0%, #1a3f22 100%);
  color: #f3efe4; padding: 0;
}
header.site .inner { max-width: 1060px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
header.site .brand { font-size: 1.55rem; color: #f3efe4; text-decoration: none; letter-spacing: .5px; }
header.site .brand small { display: block; font-family: "Source Sans 3", sans-serif; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
nav.main { margin-left: auto; display: flex; gap: 2px; flex-wrap: wrap; }
nav.main a {
  color: #e8e4d5; text-decoration: none; padding: 8px 13px; border-radius: 999px; font-size: .95rem;
}
nav.main a:hover { background: rgba(255,255,255,.12); color: #fff; }
nav.main a.active { background: rgba(255,255,255,.18); color: #fff; }
nav.main a.members { border: 1px solid rgba(255,255,255,.35); }

main { max-width: 1060px; margin: 0 auto; padding: 24px 20px 60px; }

/* hero (úvod) */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center; padding: 30px 0 10px; }
.hero .motto { color: var(--muted); font-style: italic; margin-top: -6px; }
.hero img { border-radius: var(--radius); box-shadow: var(--shadow); }
.hero .credit { font-size: .8rem; color: var(--muted); text-align: right; margin-top: 6px; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } }

/* cards & lists */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.notice { border-left: 4px solid var(--gold); }
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* timeline (koncerty) */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 18px 22px; }
.timeline li::before {
  content: ""; position: absolute; left: -6px; top: 7px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--accent); border: 2px solid var(--bg);
}
.timeline .date { font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.year-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 22px; }
.year-nav button {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  padding: 5px 12px; border-radius: 999px; cursor: pointer; font-size: .9rem;
}
.year-nav button.active, .year-nav button:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* tables (katalog not) */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; align-items: center; }
.toolbar input[type=search], .toolbar select, .toolbar input[type=text] {
  padding: 9px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font-size: .95rem;
}
.toolbar input[type=search] { flex: 1 1 220px; }
.count { color: var(--muted); font-size: .9rem; margin-left: auto; }
table.cat { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.cat th, table.cat td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cat th { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; cursor: pointer; user-select: none; white-space: nowrap; }
table.cat tr:last-child td { border-bottom: 0; }
table.cat tr:hover td { background: color-mix(in srgb, var(--accent) 4%, var(--surface)); }
.tag { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: .78rem; border: 1px solid var(--line); color: var(--muted); margin: 0 4px 3px 0; text-decoration: none; white-space: nowrap; }
a.tag:hover { border-color: var(--accent); color: var(--accent); }
.table-wrap { overflow-x: auto; }

/* audio list */
details.recs { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; box-shadow: var(--shadow); }
details.recs summary { padding: 14px 18px; cursor: pointer; font-weight: 600; font-family: "Cormorant Garamond", serif; font-size: 1.15rem; }
details.recs .body { padding: 0 18px 14px; }
.track { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.track .t-name { flex: 1 1 200px; }
.track audio { height: 32px; max-width: 260px; }

/* forms */
.form-row { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.form-row label { font-size: .85rem; color: var(--muted); }
.form-row input, .form-row textarea, .form-row select {
  padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); font-size: .95rem; font-family: inherit;
}
button.btn {
  background: var(--accent); color: #fff; border: 0; padding: 10px 20px; border-radius: 8px;
  font-size: .95rem; cursor: pointer;
}
button.btn:hover { background: var(--green-2); }
button.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
button.btn.danger { background: #8c2f2f; }
.msg { padding: 10px 14px; border-radius: 8px; margin: 10px 0; font-size: .92rem; }
.msg.ok { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.msg.err { background: color-mix(in srgb, #a33 14%, var(--surface)); }

/* footer */
footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
footer.site .inner { max-width: 1060px; margin: 0 auto; padding: 18px 20px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: space-between; }
footer.site a { color: var(--muted); }
[hidden] { display: none !important; }
