/* The John Dank Show - site styles. Colors and type follow the old Wix site: charcoal bars,
   light gray page, white and charcoal cards, Open Sans with condensed, wide-spaced labels. */

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("/assets/fonts/opensans-latin-var.woff2") format("woff2");
}

:root {
  --ink: #1f1f1f;
  --charcoal: #2b2b2b;
  --charcoal-2: #353535;
  --paper: #ebebeb;
  --card: #ffffff;
  --text: #3d3d3d;
  --muted: #6b6b6b;
  --on-dark: #f2f2f2;
  --on-dark-muted: #bdbdbd;
  --accent: #f0a830; /* gold from the single's cover art */
  --line: #d6d6d6;
  --wrap: 1120px;
  --gutter: 16px;
  --radius: 4px;
  --condensed: 75%;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
}
img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: #000; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 760px) { :root { --gutter: 32px; } }

.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: 14px; color: var(--muted); }

/* Labels: the old site's spaced-out section titles ("N E W S") */
.label {
  font-weight: 400;
  font-size: 15px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.label-sm { font-size: 14px; margin: 40px 0 16px; }
.label-light { color: var(--on-dark-muted); }
.eyebrow { font-size: 14px; letter-spacing: .3em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 10px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 10px 22px;
  border: 1px solid currentColor; border-radius: var(--radius);
  font-size: 15px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  transition: background-color .15s, color .15s;
}
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-dark { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }
.btn-dark:hover { background: #000; color: #fff; }
.btn-block { width: 100%; }
.link-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.link-row.center { justify-content: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(31,31,31,.96); color: #fff; }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand img { height: 46px; width: auto; }
.menu-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px;
  background: none; color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: var(--radius);
  font: inherit; font-size: 14px; letter-spacing: .15em; text-transform: uppercase; cursor: pointer;
}
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 2px; background: #fff; position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.site-nav { display: none; }
.site-nav.open {
  display: block; position: absolute; left: 0; right: 0; top: 64px;
  background: var(--ink); padding: 8px var(--gutter) 20px; border-top: 1px solid #333;
}
.site-nav a { display: flex; align-items: center; min-height: 48px; text-decoration: none; color: var(--on-dark); font-size: 16px; letter-spacing: .12em; text-transform: uppercase; }
.site-nav a:hover { color: var(--accent); }
.socials { display: flex; gap: 6px; margin-top: 8px; }
.socials a { justify-content: center; width: 44px; height: 44px; min-height: 44px; }
.socials svg { width: 20px; height: 20px; fill: currentColor; }

@media (min-width: 1000px) {
  .menu-btn { display: none; }
  .site-nav, .site-nav.open { display: flex; position: static; align-items: center; gap: 20px; background: none; padding: 0; border: 0; }
  .site-nav > ul:first-child { display: flex; gap: 18px; }
  .site-nav a { font-size: 13px; min-height: 44px; }
  .socials { margin: 0; gap: 0; }
}

/* Hero */
.hero { position: relative; min-height: 78vh; min-height: 78svh; display: grid; align-items: center; color: #fff; overflow: hidden; background: #111 url("/assets/img/hero-poster.webp") center / cover no-repeat; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.75) 100%); }
.hero-inner { position: relative; text-align: center; padding-top: 48px; padding-bottom: 48px; }
.hero-title img { width: min(420px, 78vw); height: auto; margin: 0 auto; filter: drop-shadow(0 4px 18px rgba(0,0,0,.45)); }
.hero-tag { text-wrap: balance; margin-top: 18px; font-stretch: var(--condensed); font-weight: 300; font-size: clamp(22px, 4.4vw, 36px); letter-spacing: .08em; line-height: 1.25; }
.hero-meta { margin-top: 8px; font-size: 14px; letter-spacing: .3em; text-transform: uppercase; color: var(--on-dark-muted); }
.hero-cta { display: flex; justify-content: center; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

/* Sections */
section[id], #mailing-list { scroll-margin-top: 64px; }
.section { padding: 64px 0; }
@media (min-width: 760px) { .section { padding: 88px 0; } }
.section-dark { background: var(--charcoal); color: var(--on-dark); }
.section-dark a:not(.btn):hover { color: var(--accent); }
.section-paper { background: var(--paper); }
#videos, #about, #contact { background: #f6f6f6; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.more { font-size: 15px; color: var(--muted); }

/* Single */
.single { display: grid; gap: 28px; align-items: center; }
.single-cover { width: min(360px, 80vw); height: auto; margin: 0 auto; border: 2px solid #fff; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.single-title { font-stretch: var(--condensed); font-weight: 300; font-size: clamp(32px, 6vw, 52px); line-height: 1.1; letter-spacing: .03em; color: #fff; }
.single-title span { display: block; font-size: .6em; color: var(--on-dark-muted); letter-spacing: .1em; margin-top: 6px; }
.single-note { margin-top: 12px; color: var(--on-dark-muted); font-size: 15px; letter-spacing: .05em; }
.single-copy { margin-top: 14px; }
.player { margin: 22px 0 0; }
.player audio { width: 100%; max-width: 520px; accent-color: var(--accent); }
@media (min-width: 860px) { .single { grid-template-columns: 360px 1fr; gap: 56px; } }
.spotify { margin-top: 56px; }
.spotify-embed { border: 0; border-radius: 12px; background: var(--charcoal-2); }

/* Quote */
.quote-band { background: #fff; }
.quote { margin: 0 auto; max-width: 900px; text-align: center; }
.quote p { font-stretch: var(--condensed); font-weight: 300; font-size: clamp(24px, 4vw, 36px); line-height: 1.35; color: #4a4a4a; }
.quote footer { margin-top: 18px; font-size: 14px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }
.quote footer::before { content: "- "; }

/* Videos */
.player-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.now-playing { margin-top: 10px; font-size: 15px; color: var(--muted); }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
@media (min-width: 1000px) { .video-grid { grid-template-columns: repeat(5, 1fr); gap: 22px 16px; } }
.video-card { display: block; text-decoration: none; color: var(--text); }
.video-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: #ccc; transition: opacity .15s; }
.video-card span { display: block; margin-top: 8px; font-size: 15px; line-height: 1.35; }
.video-card:hover img { opacity: .85; }
.video-card[aria-current="true"] img { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Photos */
/* 13 photos: the first one spans 2x2, so the grid fills evenly at 2 and 4 columns (16 cells). */
.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.photo-grid li:first-child { grid-column: span 2; grid-row: span 2; }
@media (min-width: 760px) { .photo-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
.photo-grid li { min-width: 0; }
.photo { display: block; height: 100%; overflow: hidden; border-radius: var(--radius); background: #ccc; }
.photo img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s; }
.photo-grid li:first-child .photo img { aspect-ratio: auto; min-height: 100%; }
.photo:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .photo img { transition: none; } .photo:hover img { transform: none; } }

/* About */
.about { display: grid; gap: 40px; }
@media (min-width: 900px) { .about { grid-template-columns: 1fr 340px; gap: 56px; align-items: start; } }
.about-main p + p { margin-top: 14px; }
.lead { font-size: 19px; color: var(--charcoal); }
.full-bio { margin-top: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px 0; }
.full-bio summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; justify-content: space-between; font-size: 15px; letter-spacing: .15em; text-transform: uppercase; color: var(--charcoal); list-style: none; }
.full-bio summary::-webkit-details-marker { display: none; }
.full-bio summary::after { content: "+"; font-size: 24px; line-height: 1; letter-spacing: 0; }
.full-bio[open] summary::after { content: "\2212"; }
.full-bio p { margin: 0 0 14px; }
.highlights li { position: relative; padding: 8px 0 8px 22px; border-bottom: 1px solid var(--line); }
.highlights li::before { content: ""; position: absolute; left: 0; top: 18px; width: 8px; height: 8px; background: var(--accent); }
.about-side { display: grid; gap: 18px; }

/* Cards */
.card { background: var(--card); padding: 26px 24px; border-radius: var(--radius); }
.card-dark { background: var(--charcoal); color: var(--on-dark); }
.card-title { font-weight: 400; font-size: 15px; letter-spacing: .25em; text-transform: uppercase; margin-bottom: 16px; color: inherit; }
.card-dark .card-title { color: var(--on-dark-muted); }
.members li { padding: 8px 0; border-bottom: 1px solid #444; }
.members li:last-child { border-bottom: 0; }
.members strong { display: block; font-weight: 400; font-stretch: var(--condensed); font-size: 21px; color: #fff; letter-spacing: .02em; }
.members span { font-size: 15px; color: var(--on-dark-muted); }
.facts li { font-stretch: var(--condensed); font-size: 21px; font-weight: 300; color: var(--charcoal); }

/* Shows */
.shows { text-align: center; max-width: 760px; }
.shows-none { font-stretch: var(--condensed); font-weight: 300; font-size: clamp(26px, 4.5vw, 38px); color: #fff; margin-bottom: 10px; }

/* Downloads */
.downloads { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.download { display: flex; flex-direction: column; justify-content: center; min-height: 96px; padding: 18px 20px; background: #fff; border: 1px solid var(--charcoal); border-radius: var(--radius); text-decoration: none; transition: background-color .15s, color .15s; }
.download strong { font-weight: 400; letter-spacing: .14em; text-transform: uppercase; font-size: 15px; color: var(--charcoal); }
.download span { margin-top: 4px; font-size: 14px; color: var(--muted); }
.download:hover { background: var(--charcoal); }
.download:hover strong, .download:hover span { color: #fff; }

/* Contact */
.contact { display: grid; gap: 18px; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 340px; align-items: start; } }
.contact-side { display: grid; gap: 18px; }
.reps { display: grid; gap: 22px; margin: 0; }
@media (min-width: 600px) { .reps { grid-template-columns: 1fr 1fr; } }
.reps dt { font-size: 16px; color: var(--charcoal); font-weight: 600; }
.reps dd { margin: 4px 0 0; color: var(--muted); line-height: 1.7; overflow-wrap: anywhere; }
.reps a { color: var(--text); display: inline-block; min-height: 28px; }
.contact-card .label { margin-bottom: 24px; }
#mailing-list p { margin-bottom: 18px; }
.links li a { display: flex; align-items: center; min-height: 40px; text-decoration: none; font-stretch: var(--condensed); font-size: 20px; letter-spacing: .05em; color: var(--on-dark); }
.links li a:hover { color: var(--accent); }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); }
.footer-row { display: grid; gap: 20px; justify-items: center; text-align: center; }
.footer-logo { width: 150px; height: auto; }
.footer-text p { font-size: 15px; }
.footer-text .small { color: var(--on-dark-muted); }
.footer-text a { color: #fff; }
@media (min-width: 760px) { .footer-row { grid-template-columns: auto 1fr auto; justify-items: start; text-align: left; align-items: center; gap: 32px; } }

/* Lightbox */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(0,0,0,.92); }
.lightbox figure { margin: 0; height: 100%; display: grid; place-items: center; padding: 56px 12px 64px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; object-fit: contain; }
.lightbox figcaption { color: #ddd; margin-top: 10px; font-size: 15px; text-align: center; min-height: 1em; }
.lb-btn { position: fixed; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-count { position: fixed; bottom: 14px; left: 0; right: 0; text-align: center; color: #aaa; font-size: 14px; }
