/* mattlazarus.com - shared styles
   Colors live here so the whole site can be re-themed in one place. */
:root {
  --page-bg: #1b1e24;
  --page-bg-2: #262a31;
  --card: #fbf8f2;
  --ink: #14171c;
  --muted: #5c6470;
  --line: #e2dbcd;
  --accent: #e0a03a;       /* amber - buttons, highlights on dark */
  --link: #9a5b12;         /* darker amber - links on the light card */
  --on-dark: #f4efe6;
  --radius: 12px;
  --max: 980px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--page-bg);
}

/* Page background: a blurred stage photo behind a dark wash, fixed while the page scrolls.
   A separate layer instead of background-attachment: fixed, which iPhones ignore. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(20, 22, 27, 0.55), rgba(20, 22, 27, 0.75)),
    url("../images/bg-desktop.jpg") center / cover no-repeat,
    var(--page-bg);
}
@media (max-aspect-ratio: 1/1) {
  body::before {
    background:
      linear-gradient(rgba(20, 22, 27, 0.55), rgba(20, 22, 27, 0.75)),
      url("../images/bg-mobile.jpg") center top / cover no-repeat,
      var(--page-bg);
  }
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--link); }
a:hover { color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1rem 1.25rem;
  color: var(--on-dark);
  text-align: center;
}
.site-title {
  margin: 0;
  font-size: clamp(2rem, 6vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.site-title a { color: inherit; text-decoration: none; }
.site-tagline {
  margin: 0.35rem 0 1.25rem;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0.5rem;
}
.site-nav a {
  display: block;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  color: var(--on-dark);
  text-decoration: none;
  font-weight: 500;
}
.site-nav a:hover { background: rgba(255,255,255,0.08); }
.site-nav a[aria-current="page"] { background: var(--accent); color: var(--ink); }

/* ---------- Main card ---------- */
main {
  max-width: var(--max);
  margin: 0 auto 2rem;
  padding: clamp(1.25rem, 4vw, 2.75rem);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
}
@media (max-width: 1012px) {
  main { margin-left: 16px; margin-right: 16px; }
}

h1, h2, h3 { line-height: 1.2; }
h1 { font-size: 2rem; margin: 0 0 1rem; }
h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; }
h3 { font-size: 1.15rem; margin: 1.75rem 0 0.5rem; }
main > :first-child { margin-top: 0; }

.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.lead { font-size: 1.12rem; }

/* ---------- Layout helpers ---------- */
.split { display: grid; grid-template-columns: 2fr 3fr; gap: 2rem; align-items: start; }
@media (max-width: 720px) { .split { grid-template-columns: 1fr; } }

.photo { border-radius: 10px; overflow: hidden; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin: 1.5rem 0; }
.gallery a { display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s; }
.gallery a:hover img { transform: scale(1.04); }
@media (max-width: 560px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.25rem;
}
.panel-dark {
  background: var(--ink);
  color: var(--on-dark);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 4vw, 2rem);
}
.panel-dark a:not(.btn) { color: var(--accent); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin: 1.5rem 0; }
.stats .panel strong { display: block; font-size: 2rem; line-height: 1.1; }
.stats .panel span { font-size: 0.9rem; color: var(--muted); }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; } }

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }
.cards h3 { margin-top: 0.2rem; }
.cards p { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.buttons { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.25rem 0; }
.btn {
  display: inline-block;
  padding: 0.6rem 1.15rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  background: var(--accent);
  color: var(--ink);
  border: 2px solid var(--accent);
}
.btn:hover { filter: brightness(1.08); color: var(--ink); }
.btn-outline { background: transparent; color: var(--on-dark); border-color: var(--on-dark); }
.btn-outline:hover { background: rgba(255,255,255,0.08); color: var(--on-dark); }
.btn-dark { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.btn-dark:hover { color: var(--on-dark); }

/* ---------- Albums ---------- */
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1.25rem; margin: 1.5rem 0; }
.album { font-size: 0.92rem; line-height: 1.4; }
.album img { border-radius: 6px; aspect-ratio: 1; object-fit: cover; width: 100%; box-shadow: 0 4px 14px rgba(0,0,0,0.18); margin-bottom: 0.5rem; }
.album a { text-decoration: none; color: inherit; }
.album a:hover strong { color: var(--link); }
.album span { color: var(--muted); }

.discography { padding-left: 1.1rem; }
.discography li { margin-bottom: 0.6rem; }

/* ---------- Shows ---------- */
.shows { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.shows th, .shows td { text-align: left; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.shows th { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.shows td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; width: 7.5rem; }
.shows tr.lead-act td:nth-child(2) { font-weight: 700; }
@media (max-width: 600px) {
  .shows thead { display: none; }
  .shows tr { display: block; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
  .shows td { display: block; border: 0; padding: 0.05rem 0; }
  .shows td:first-child { font-weight: 700; width: auto; }
}
.year-group > summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; padding: 0.5rem 0; }
.empty-note { color: var(--muted); font-style: italic; }

blockquote {
  margin: 2rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 4px solid var(--accent);
  font-size: 1.2rem;
  font-style: italic;
}
blockquote cite { display: block; margin-top: 0.4rem; font-size: 0.9rem; font-style: normal; color: var(--muted); }

details.more > summary { cursor: pointer; font-weight: 600; color: var(--link); margin: 0.5rem 0; }

/* Videos (rendered by js/videos.js) */
.video { margin: 0; }
.video video { display: block; width: 100%; height: auto; border-radius: 10px; background: #000; }
.video figcaption { margin-top: 0.4rem; font-size: 0.9rem; color: var(--muted); }
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin: 1.5rem 0; align-items: start; }
@media (max-width: 720px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
#home-video { max-width: 360px; margin: 2rem auto; }

.embed { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem 2.5rem;
  text-align: center;
  color: #a9adb5;
  font-size: 0.9rem;
}
.site-footer a { color: var(--on-dark); }
.site-footer .social { display: flex; justify-content: center; gap: 1.25rem; margin-bottom: 0.5rem; }
