/* ============ Colors and fonts: change these to restyle the whole site ============ */
:root {
  --accent: #3a8a86;
  --muted: #8f8f8f;
  --line: #e2e2e2;
  --text: #1a1a1a;
  --bg: #ffffff;
  --head: "Open Sans", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }

/* ============ Header and nav ============ */
.site-header { text-align: center; padding: 24px 16px 0; }
.site-header > a { text-decoration: none; display: inline-block; }
.logo { width: 240px; margin: 0 auto; mix-blend-mode: multiply; }
.tagline {
  margin: 6px 0 0; font-family: var(--head); font-weight: 600; font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.logo-text {
  font-family: var(--head); font-weight: 700; font-size: 2rem;
  color: var(--text); text-decoration: none; letter-spacing: 0.04em;
}

.site-nav ul {
  list-style: none; padding: 0; margin: 28px auto 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px;
}
.site-nav a {
  display: inline-block;
  font-family: var(--head); font-weight: 700;
  font-size: 1.05rem; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; color: var(--muted);
  border-top: 3px solid var(--muted); padding-top: 6px;
  transition: color .15s, border-color .15s;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--accent); border-color: var(--accent); }

/* ============ Layout ============ */
main { max-width: 1100px; margin: 0 auto; padding: 48px 16px 24px; }
.narrow { max-width: 720px; margin-left: auto; margin-right: auto; }
h1, h2, h3 { font-family: var(--head); line-height: 1.25; }
h1 {
  font-size: 1.3rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent); margin: 0 0 24px;
}
h2 { font-size: 1.15rem; margin-top: 48px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 56px 0; }
.lede { font-size: 1.15rem; }
.muted { color: var(--muted); }

/* ============ Home hero: photo / Buy Music Club / photo ============ */
.hero {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px; align-items: center;
  max-width: 940px; margin: 0 auto;
}
.circle {
  aspect-ratio: 1; width: 100%; border-radius: 50%;
  object-fit: cover; background: #dfe6e2;
}
.embed iframe { width: 100%; border: 0; height: 380px; display: block; }

/* ============ Photos ============ */
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 40px 0; }
.photo-pair img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #eee; }
.me-photo { width: 100%; max-width: 420px; margin: 0 0 28px; background: #eee; }

/* ============ Record grid ============ */
.records {
  display: grid; gap: 28px 24px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.records { align-items: start; }
.record {
  display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch;
  text-decoration: none; color: var(--text);
  font: inherit; text-align: left; background: none; border: 0; padding: 0; width: 100%;
}
.record > span { display: block; }
.cover-wrap { position: relative; }
.playable { cursor: pointer; }
.playable:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.play-badge {
  position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.92); box-shadow: 0 1px 4px rgba(0,0,0,.25);
  opacity: 0; transition: opacity .15s;
}
.play-badge::after {
  content: ""; position: absolute; left: 15px; top: 11px;
  border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent var(--accent);
}
.playable:hover .play-badge, .playable:focus-visible .play-badge { opacity: 1; }
@media (hover: none) { .play-badge { opacity: 1; } }

/* ============ Bandcamp pop-up player ============ */
.player-modal {
  position: fixed; inset: 0; z-index: 50; background: rgba(20,24,24,.6);
  display: flex; align-items: center; justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.player-modal[hidden] { display: none; }
.player-box { position: relative; width: 100%; max-width: 420px; background: #fff; border-radius: 6px; padding: 44px 12px 12px; }
.player-frame iframe { display: block; width: 100%; height: min(560px, 75vh); border: 0; }
.player-close {
  position: absolute; top: 6px; right: 8px; width: 34px; height: 34px;
  border: 0; background: none; font-size: 28px; line-height: 1; color: var(--muted); cursor: pointer;
}
.player-close:hover, .player-close:focus-visible { color: var(--accent); }
body.modal-open { overflow: hidden; }
.record img {
  aspect-ratio: 1; width: 100%; object-fit: cover; background: #eee;
  transition: transform .2s;
}
.record:hover img { transform: scale(1.02); }
.record .artist { margin: 10px 0 0; font-weight: 500; }
.record img { display: block; }
.record .title { margin: 0; font-size: .92rem; }
.record .year { color: var(--muted); }

/* ============ Video embeds ============ */
.videos { display: grid; gap: 32px; }
.videos figure { margin: 0; }
.video { aspect-ratio: 16 / 9; width: 100%; border: 0; background: #000; display: block; }
.video-caption { margin: 8px 0 0; font-size: .92rem; color: var(--muted); }

/* ============ Lists (blog, downloads) ============ */
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.list a { font-weight: 500; text-decoration: none; }
.list a:hover { text-decoration: underline; }
.list .meta { display: block; font-size: .85rem; color: var(--muted); }
.list-title { font-weight: 500; }
.vol-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 6px; }
.vol-links a {
  font-size: .9rem; font-weight: 500; text-decoration: none; color: var(--accent);
  border: 1.5px solid var(--accent); border-radius: 4px; padding: 3px 12px;
}
.vol-links a:hover, .vol-links a:focus-visible { background: var(--accent); color: #fff; text-decoration: none; }

/* ============ Blog post ============ */
.post img { margin: 24px 0; }
.post .meta { color: var(--muted); font-size: .9rem; margin-top: -16px; }

/* ============ Buttons ============ */
.button {
  display: inline-block; padding: 10px 20px; border-radius: 4px;
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 500;
}
.button:hover { opacity: .88; }

/* ============ Footer ============ */
.site-footer {
  text-align: center; color: var(--muted); font-size: .85rem;
  padding: 48px 16px; border-top: 1px solid var(--line); margin-top: 64px;
}
.site-footer a { color: var(--muted); margin: 0 8px; }

/* ============ Phones ============ */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { grid-template-columns: 1fr; gap: 32px; }
  .circle { max-width: 320px; margin: 0 auto; }
  .circle-right { display: none; }
  .embed iframe { height: 400px; }
  .site-nav ul { gap: 10px 18px; }
  .site-nav a { font-size: .85rem; }
  .logo { width: 170px; }
  .records { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
}

/* ============ Role codes ============ */
.credit { color: var(--accent); font-weight: 500; letter-spacing: .03em; font-style: italic; }
.credit-key { margin: 0 0 24px; font-size: clamp(8px, 2.4vw, .9rem); color: var(--muted); white-space: nowrap; font-style: italic; text-align: center; font-weight: 700; }

/* ============ Drums To Go ============ */
.drums { max-width: 960px; margin: 0 auto; }
.drums-intro { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.drums-intro .lede { margin-bottom: 24px; }
.drums-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.drums-player iframe { height: 420px; }
.drums-photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; background: #eee; }
.drums-cols {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px;
  margin: 64px 0; padding-top: 48px; border-top: 1px solid var(--line);
}
.drums-block h2 { margin: 0 0 8px; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.drums-block p { margin: 0; }
.drums-photo-2 { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; background: #eee; }
.book { background: #f4f7f6; border-radius: 6px; padding: 40px 32px; max-width: 720px; margin: 0 auto; }
.book h2 { margin: 0 0 24px; text-align: center; font-size: 1.2rem; }
.book-form { display: grid; gap: 18px; }
.book-form[hidden] { display: none; }
.book-form label { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; }
.book-form .optional { font-weight: 400; color: var(--muted); }
.book-form input, .book-form textarea {
  font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid #cfd8d6; border-radius: 4px; background: #fff; color: var(--text);
}
.book-form input:focus, .book-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.book-form .button { justify-self: start; border: 0; font: inherit; font-weight: 500; cursor: pointer; padding: 12px 28px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.honey { position: absolute; left: -9999px; }
.form-sent { text-align: center; font-size: 1.1rem; color: var(--accent); margin: 0; }
@media (max-width: 760px) {
  .drums-top, .drums-cols, .field-row { grid-template-columns: 1fr; }
  .drums-player iframe { height: 400px; }
  .book { padding: 28px 18px; }
}

/* ============ Tighter top so the record grid shows on load ============ */
.logo { width: 170px; }
.site-header { padding-top: 14px; }
.site-nav ul { margin-top: 16px; }
main { padding-top: 24px; }
.embed iframe { height: 260px; }
.drums-player iframe { height: 420px; }
main hr { margin: 24px 0; }
.credit-key { margin-bottom: 16px; }
@media (min-width: 761px) {
  .hero { max-width: none; grid-template-columns: auto 1fr auto; gap: 24px; }
  .hero .circle { width: 220px; }
  .hero .embed { padding: 0 32px; }
}
@media (max-width: 760px) { .drums-player iframe { height: 400px; } }
