/* Johnnyguitar — recreates the Bandzoogle "Nocturne" theme the site used (colours and fonts
   taken from the archived pages): black page, grey Asap text, pale-gold links, Montserrat headings,
   Poiret One site title, nav above the title, big header photo, guitar photo in the footer. */
:root {
  --bg: #000;
  --panel: #171717;
  --text: hsl(0, 0%, 77%);
  --muted: hsl(0, 0%, 47%);
  --accent: hsl(55, 36%, 68%);
  --nav-hover: hsl(160, 13%, 82%);
  --rule: #2a2a2a;
  --display: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Merriweather', Georgia, serif;
  --title: 'Poiret One', 'Montserrat', sans-serif;
  --body: 'Asap', 'Helvetica Neue', Arial, sans-serif;
  --wrap: 900px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--body); }
strong, b { color: #ddd; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--bg); padding: 8px 12px; }

/* Splash (/) */
.is-splash { display: grid; place-items: center; min-height: 100vh; background: #000; }
.splash img { max-width: min(1000px, 100vw); max-height: 100vh; object-fit: contain; }

/* Header */
.top { text-align: center; padding-top: 12px; }
.nav ul { list-style: none; margin: 0; padding: 0 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; }
.nav a { font: 400 15px/2.2 var(--display); color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--nav-hover); }
.nav a[aria-current] { color: var(--text); }
.top .nav { background: rgba(0, 0, 0, .6); padding: 6px 0; }
.site-title { margin: 22px 0 18px; font: 400 clamp(44px, 8vw, 76px)/1 var(--title); letter-spacing: .02em; }
.site-title a { color: var(--text); text-decoration: none; }
.page-header img { width: 100%; max-height: 520px; object-fit: cover; }
.nav-toggle { display: none; }

/* Content */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 32px 20px 48px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .05em; line-height: 1.3; color: var(--text); }
h1 { font-size: 26px; margin: 0 0 24px; }
h2 { font-size: 19px; margin: 36px 0 12px; }
h3 { font-size: 19px; margin: 32px 0 8px; }
h4 { font: 400 15px/1.4 var(--serif); margin: 0 0 12px; color: var(--muted); }
.intro, .meta { color: var(--muted); }
.meta { font-size: 14px; }

.posts { display: grid; gap: 40px; }
.post-card h2 { margin: 12px 0 6px; }
.post-card h2 a { color: var(--text); text-decoration: none; }
.post-card .thumb { width: 300px; max-width: 100%; }
.post img { margin: 20px auto; max-height: 80vh; width: auto; }
.gear.split { display: grid; grid-template-columns: 2fr 3fr; gap: 28px; align-items: start; padding: 28px 0; }
.gear.split figure img { margin: 0; width: 100%; max-height: 520px; object-fit: cover; }
.gear.split h3 { margin-top: 0; }
figure { margin: 0; }
.note { color: var(--muted); font-style: italic; }
.post .video, .gear .video { margin: 20px 0; }
.lyrics { grid-column: 2 / -1; }
.lyrics summary { cursor: pointer; color: var(--accent); font-size: 14px; }
.lyrics p { margin: 8px 0 0; color: var(--muted); }
.gear.gallery a { display: inline-block; width: calc(33.33% - 8px); margin: 0 4px 8px 0; vertical-align: top; }
.gear.gallery a img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 95vw; max-height: 95vh; }
.lightbox::backdrop { background: rgba(0, 0, 0, .9); }
.lightbox img { max-width: 95vw; max-height: 88vh; }
.lightbox-close { display: block; margin: 8px auto 0; font: inherit; color: var(--text); background: none; border: 1px solid var(--accent); border-radius: 99px; padding: 4px 18px; cursor: pointer; }
.back { margin-top: 32px; }

.tracks { list-style: none; counter-reset: t; padding: 0; margin: 0 0 12px; border-top: 1px solid var(--rule); }
.track { counter-increment: t; display: grid; grid-template-columns: 2.2em 1fr auto; align-items: center; gap: 4px 12px; padding: 10px 4px; border-bottom: 1px solid var(--rule); }
.track::before { content: counter(t); color: var(--muted); }
.t-len { color: var(--muted); font-variant-numeric: tabular-nums; }
.track audio { grid-column: 2 / -1; width: 100%; height: 36px; }

.video-list { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.stills img { margin: 0 auto; }

.gear { padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.gear img { margin: 16px 0; }

.contact { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; align-items: center; }
.contact > div { text-align: center; }
.contact-addr { font-size: 20px; }
.si { display: inline-block; width: 34px; height: 34px; margin: 0 6px; color: var(--text); }
.si svg { width: 100%; height: 100%; fill: currentColor; }
.si:hover { color: var(--accent); }
.btn { font: inherit; background: none; color: var(--accent); border: 1px solid var(--accent); border-radius: 99px; padding: 8px 20px; cursor: pointer; }

/* Footer */
.foot { text-align: center; padding: 24px 16px 40px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 14px; }
.foot .nav { margin-bottom: 20px; }
.foot-social { margin: 12px 0; }

@media (max-width: 700px) {
  .top { position: relative; }
  .nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer; }
  .nav-toggle span:not(.sr-only) { width: 26px; height: 2px; background: var(--text); }
  #nav-top { display: none; }
  #nav-top.is-open { display: block; }
  #nav-top ul { flex-direction: column; }
  .contact, .gear.split { grid-template-columns: 1fr; }
  .video-list { grid-template-columns: 1fr; }
}
