:root {
  --ink: #1b1612;
  --muted: #655d53;
  --paper: #f4efe7;
  --paper-2: #e8e1d6;
  --black: #12100e;
  --cream: #f7f2ea;
  --line: rgba(27, 22, 18, 0.12);
  --red: #c4321a;
  --shadow: 0 16px 40px rgba(18, 16, 14, 0.08);
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
}
img { max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--cream);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  z-index: 20;
}
.skip:focus { top: 0.5rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.2rem;
  padding: 0.55rem 4vw;
  background: var(--black);
  color: var(--cream);
}
.logo {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  font-size: 1.05rem;
}
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.burger {
  display: none;
  margin-left: auto;
  border: 1px solid rgba(247, 242, 234, 0.35);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.9rem;
  margin-left: auto;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(247, 242, 234, 0.78);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: white; }

.site-footer {
  margin-top: 4rem;
  padding: 2rem 4vw 2.4rem;
  background: var(--black);
  color: rgba(247, 242, 234, 0.78);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: end;
}
.socials { display: flex; flex-wrap: wrap; gap: 0.7rem 0.95rem; align-items: center; }
.socials a,
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 0;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.socials a:hover,
.social-link:hover {
  transform: translateY(-1px);
  filter: brightness(1.12);
}
.social-icon {
  display: inline-flex;
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
}
.social-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.social-link--youtube { color: #ff0000; }
.social-link--spotify { color: #1db954; }
.social-link--instagram { color: #e4405f; } /* gradient lives in SVG */
.social-link--facebook { color: #1877f2; }
.social-link--soundcloud { color: #ff5500; }
.social-link--bandcamp { color: #1da0c3; }
.social-link--link { color: var(--cream); }
.legal { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; font-size: 0.92rem; }
.legal a { color: rgba(247, 242, 234, 0.78); }

.wrap { width: min(1180px, calc(100% - 8vw)); margin: 0 auto; }
.hero {
  background: var(--black);
  color: var(--cream);
  padding: 4.5rem 0 3.5rem;
}
.hero-inner { width: min(1180px, calc(100% - 8vw)); margin: 0 auto; }
.eyebrow, .kicker {
  margin: 0 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.2rem, 8vw, 6.4rem);
  line-height: 0.92;
  margin: 0;
  letter-spacing: -0.03em;
}
.aka {
  margin: 0.8rem 0 0;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: rgba(247, 242, 234, 0.62);
}
.lede {
  max-width: 42rem;
  font-size: 1.18rem;
  color: rgba(247, 242, 234, 0.86);
}
.hero-actions, .socials-inline { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: var(--red);
  color: white;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  font-weight: 700;
  border: 1px solid var(--red);
}
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(247, 242, 234, 0.35);
}
.btn-ink { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.section { padding: 3.2rem 0 0.4rem; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.section-head h2, .page-title {
  font-family: var(--serif);
  font-weight: 550;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1;
  margin: 0;
  letter-spacing: -0.03em;
}
.section-head a { color: var(--red); font-weight: 700; text-decoration: none; }

.grid { display: grid; gap: 1.4rem 1rem; }
.covers { grid-template-columns: repeat(4, 1fr); }
.videos { grid-template-columns: repeat(3, 1fr); }
.events { grid-template-columns: repeat(3, 1fr); }
.photos { grid-template-columns: repeat(3, 1fr); }

.card, .yt-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  width: 100%;
}
.card-media {
  display: block;
  overflow: hidden;
  background: var(--paper-2);
  aspect-ratio: 1;
  border-radius: 6px;
}
.video .card-media, .wide .card-media { aspect-ratio: 16 / 9; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.45s ease; }
.card:hover img, .yt-card:hover img { transform: scale(1.035); }
.card-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: var(--serif);
  font-size: 2rem;
  background: var(--black);
  color: var(--cream);
}
.card-title {
  display: block;
  margin-top: 0.65rem;
  font-weight: 700;
  line-height: 1.25;
}
.card-sub { display: block; color: var(--muted); margin-top: 0.15rem; font-size: 0.95rem; }
.card .kicker { display: block; margin-top: 0.55rem; }

.page { padding: 2.6rem 0 1rem; }
.intro { max-width: 42rem; color: var(--muted); font-size: 1.12rem; }
.filters { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1rem 0 1.2rem; }
.filters button {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
}
.filters button.is-on { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.detail { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: 2rem; align-items: start; }
.detail .cover {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--paper-2);
}
.meta { list-style: none; padding: 0; margin: 0.8rem 0 0; color: var(--muted); }
.meta li + li { margin-top: 0.2rem; }
.player {
  margin: 0 0 1.2rem;
  border-radius: 10px;
  overflow: hidden;
  background: var(--black);
  aspect-ratio: 16 / 9;
}
.player iframe { width: 100%; height: 100%; border: 0; display: block; }

.prose { max-width: 68ch; }
.prose :first-child { margin-top: 0; }
.prose p, .prose li { font-size: 1.08rem; }
.prose a { color: var(--red); }
.prose img { border-radius: 8px; height: auto; }
.prose blockquote {
  margin: 1.2rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--red);
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.25rem;
}
.prose .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.6rem;
  max-width: none;
  margin: 1rem 0;
}
.prose .gallery img { width: 100%; height: 140px; object-fit: cover; }
.prose iframe {
  width: 100%;
  border: 0;
  border-radius: 12px;
  aspect-ratio: 16 / 9;
  height: auto;
  background: #111;
}
.prose iframe[src*="spotify"],
.prose iframe[src*="bandcamp"],
.prose iframe[src*="soundcloud"] {
  aspect-ratio: auto;
  height: 420px;
}
.spotify-frame {
  width: 100%;
  height: min(1400px, 92vh);
  min-height: 1100px;
  border: 0;
  border-radius: 12px;
}
.prose a[href^="/downloads/"] {
  display: inline-flex;
  margin-top: 0.4rem;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font-weight: 700;
}

.photo-card { padding: 0; border: 0; background: transparent; cursor: pointer; text-align: left; color: inherit; }
.photo-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; }
.photo-card span { display: block; margin-top: 0.45rem; color: var(--muted); }

.event-card .card-media { aspect-ratio: 3 / 4; }
.when { color: var(--red); font-weight: 700; font-size: 0.92rem; }

.years { display: grid; gap: 1.6rem; }
.year { font-family: var(--serif); font-size: 1.8rem; margin: 0 0 0.4rem; }
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { border-top: 1px solid var(--line); }
.post-list a,
.post-list .post-link {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  text-decoration: none;
  padding: 0.85rem 0;
  color: inherit;
}
.post-list a:hover .card-title { color: var(--red); }
.post-thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 54px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper-2, #efe6d8);
}
.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post-text { display: grid; gap: 0.15rem; min-width: 0; }
.post-date { color: var(--muted); font-size: 0.92rem; }
.post-cover {
  display: block;
  width: min(100%, 720px);
  height: auto;
  border-radius: 10px;
  margin: 0 0 1.25rem;
  box-shadow: var(--shadow);
}

.form { display: grid; gap: 0.8rem; max-width: 36rem; }
.form label { display: grid; gap: 0.3rem; font-weight: 700; }
.form input, .form textarea {
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  color: var(--ink);
}
.note {
  background: #efe4cf;
  border-radius: 10px;
  padding: 0.8rem 1rem;
}
.email-link { font-size: 1.35rem; font-weight: 700; color: var(--red); }

dialog.player-dialog {
  border: 0;
  padding: 0;
  width: min(960px, 94vw);
  background: transparent;
  overflow: visible;
}
dialog.player-dialog::backdrop { background: rgba(12, 10, 8, 0.82); }
.dialog-frame iframe, .dialog-frame img {
  width: 100%;
  display: block;
  background: black;
  border-radius: 10px;
}
.dialog-frame iframe { aspect-ratio: 16 / 9; border: 0; }
.dialog-close {
  position: absolute;
  right: 0;
  top: -2.4rem;
  background: transparent;
  color: white;
  border: 0;
  cursor: pointer;
  font-weight: 700;
}
.dialog-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 3.6rem;
  height: 3.6rem;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(12, 10, 8, 0.88);
  color: #fff;
  font-size: 1.85rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}
.dialog-nav:hover:not(:disabled) {
  background: var(--red, #c0392b);
  border-color: #fff;
}
.dialog-nav:disabled {
  opacity: 0.28;
  cursor: default;
}
.dialog-prev { left: 0.35rem; }
.dialog-next { right: 0.35rem; }
@media (min-width: 900px) {
  .dialog-nav {
    width: 4.25rem;
    height: 4.25rem;
    font-size: 2.15rem;
  }
  .dialog-prev { left: -4.1rem; }
  .dialog-next { right: -4.1rem; }
}

.pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem 1rem;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.pager-top {
  margin: 0.35rem 0 1.5rem;
  padding: 0.85rem 0;
  border-top: 0;
  border-bottom: 1px solid var(--line);
}
.pager-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}
.pager-link.is-empty { visibility: hidden; pointer-events: none; }
.pager-prev { justify-self: start; }
.pager-next { justify-self: end; text-align: right; }
.pager-arrow {
  flex-shrink: 0;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--red);
}
.pager-text { display: grid; gap: 0.1rem; min-width: 0; }
.pager-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted, #6b635a);
}
.pager-title {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(42vw, 280px);
}
.pager-all {
  justify-self: center;
  font-size: 0.9rem;
  color: var(--muted, #6b635a);
  text-decoration: none;
}
.pager-all:hover,
.pager-link:hover { color: var(--red); }
@media (max-width: 640px) {
  .pager { grid-template-columns: 1fr 1fr; }
  .pager-all { grid-column: 1 / -1; order: -1; }
  .pager-title { max-width: 36vw; }
}

.search-input {
  width: min(640px, 100%);
  border: 0;
  border-bottom: 2px solid var(--ink);
  background: transparent;
  padding: 0.7rem 0;
  font-size: 1.6rem;
  font-family: var(--serif);
}
.search-list { list-style: none; padding: 0; }
.search-list a { display: flex; justify-content: space-between; gap: 1rem; text-decoration: none; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.kind { color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; }

@media (max-width: 980px) {
  .burger { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0.8rem 4vw 1.1rem;
    background: var(--black);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .covers, .videos, .events, .photos { grid-template-columns: repeat(2, 1fr); }
  .detail { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .videos, .events { grid-template-columns: 1fr; }
}
