/* ============================================================
   Total Rewind — stylesheet
   Black, white and grey to match the logo.
   Change the colours here and they update across every page.
   ============================================================ */
:root {
  --black: #000;        /* page background */
  --panel: #1a1a1a;     /* top bar, footer, raised boxes */
  --text: #f2f2f2;      /* main text */
  --muted: #a6a6a6;     /* secondary text */
  --white: #fff;        /* buttons, current page in menu, stripe 1 */
  --grey-light: #cfcfcf;/* stripe 2, form fields, small headings */
  --grey-mid: #777;     /* stripe 3 */
  --display: "Righteous", "Trebuchet MS", sans-serif;
  --body: "Karla", "Segoe UI", Arial, sans-serif;
  --wrap: 1100px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  display: flex; flex-direction: column;   /* keeps the footer at the bottom on short pages */
  background: var(--black);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* The crowd photo sits behind every page (darkened so text stays readable)
   and stays put while you scroll */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background:
    linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .85)),
    url("images/Background.jpg") center top / cover no-repeat,
    var(--black);
}

/* See-through dark box that content sits in */
.panel {
  background: rgba(18, 18, 18, .72);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  border-radius: 12px;
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

img { max-width: 100%; display: block; }
a { color: var(--white); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 2px;
}

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 8vw, 5.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; max-width: 65ch; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

/* ---------- The tape stripe (the site's signature) ---------- */
.stripes {
  height: 18px;
  background: linear-gradient(to bottom,
    var(--white) 0 33.33%,
    var(--grey-light) 33.33% 66.66%,
    var(--grey-mid) 66.66% 100%);
}

/* ---------- Top contact bar ---------- */
.topbar { background: var(--panel); font-size: .95rem; }
.topbar .wrap {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  align-items: center; justify-content: space-between;
  padding-block: .5rem;
}
.topbar a { color: var(--text); text-decoration: none; }
.topbar a:hover { color: var(--white); text-decoration: underline; }
.contact-links { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.socials { display: flex; gap: .75rem; }
.socials svg { width: 22px; height: 22px; fill: currentColor; }

/* ---------- Header + navigation ---------- */
.site-header { background: var(--black); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 1rem;
}
.brand { display: flex; align-items: center; text-decoration: none; color: var(--text); }
.brand img { height: 60px; width: auto; }
.brand-text { font-family: var(--display); font-size: 1.9rem; }
.brand img + .brand-text { display: none; }          /* text shows only if logo is missing */
.brand img.missing { display: none; }
.brand img.missing + .brand-text { display: inline; }

.nav-toggle {
  display: none; background: none; border: 2px solid var(--text);
  color: var(--text); font: inherit; padding: .4rem .8rem; border-radius: 6px; cursor: pointer;
}
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.main-nav a {
  display: block; padding: .5rem .8rem; color: var(--text);
  text-decoration: none; border-radius: 6px; font-weight: 600;
}
.main-nav a:hover { background: var(--panel); }
.main-nav a[aria-current="page"] { background: var(--white); color: var(--black); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--panel); z-index: 10; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: .5rem 1.25rem 1rem; }
  .site-header { position: relative; }
}

/* ---------- Hero (home page) ---------- */
.hero { padding-block: 2.5rem 0; text-align: center; }
.hero-logo { margin: 0 0 1rem; }
.hero-logo img { width: min(380px, 80%); height: auto; margin-inline: auto; mix-blend-mode: screen; } /* black box blends into the photo */
.hero p.lead { font-size: 1.3rem; color: var(--white); margin-inline: auto; text-shadow: 0 1px 8px rgba(0, 0, 0, .8); }
.home-intro { padding-top: 1.5rem; }
.home-intro .panel { max-width: 880px; text-align: center; }
.home-intro p { margin-inline: auto; }
.home-intro .buttons { justify-content: center; }
.buttons { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.btn {
  display: inline-block; padding: .8rem 1.4rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 2px solid var(--white);
  background: var(--white); color: var(--black); font-family: var(--body); font-size: 1rem; cursor: pointer;
}
.btn:hover { background: var(--grey-light); border-color: var(--grey-light); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--text); }
.btn.ghost:hover { background: var(--white); color: var(--black); }

/* ---------- General page sections ---------- */
.page-head { padding-block: 3rem 1rem; }
.page-head h1, .page-head p { text-shadow: 0 1px 10px rgba(0, 0, 0, .7); }
.page-head p { color: var(--text); }
.section { padding-block: 2.5rem 4rem; }

/* ---------- About: members ---------- */
.member {
  display: grid; grid-template-columns: 300px 1fr; gap: 2rem;
  align-items: center; padding-block: 2rem;
  border-top: 2px solid rgba(255, 255, 255, .12);
}
.member:first-child { border-top: 0; padding-top: 0; }
.member:last-child { padding-bottom: 0; }
.member:nth-of-type(even) { grid-template-columns: 1fr 300px; }
.member:nth-of-type(even) img { order: 2; }
.member img { border-radius: 12px; background: var(--panel); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: auto; }
.member .role { color: var(--grey-light); font-weight: 700; margin-bottom: .25rem; }
@media (max-width: 700px) {
  .member, .member:nth-of-type(even) { grid-template-columns: 1fr; }
  .member:nth-of-type(even) img { order: 0; }
}

/* ---------- Song list: cassette J-card ---------- */
.jcard {
  background: var(--text); color: var(--black);
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 0 0 6px var(--panel);
}
.jcard .stripes { height: 14px; background: linear-gradient(to bottom, var(--black) 0 33.33%, #555 33.33% 66.66%, #999 66.66% 100%); }
.side { padding: 1.5rem 2rem 2rem; }
.side h2 { font-size: 1.6rem; color: var(--black); }
.side ol { margin: 0; padding-left: 2.2em; columns: 2; column-gap: 4rem; }
.side li { padding: .15rem 0; border-bottom: 1px solid rgba(0, 0, 0, .12); break-inside: avoid; }
.side li::marker { color: #555; font-weight: 700; }
@media (max-width: 700px) { .side ol { columns: 1; } }

/* ---------- Gigs + media ---------- */
.gig-list { list-style: none; padding: 0; margin: 0; }
.gig {
  display: grid; grid-template-columns: 7rem 1fr; gap: 1rem;
  padding: 1rem 0; border-top: 2px solid var(--panel);
}
.gig time { font-family: var(--display); color: var(--white); font-size: 1.2rem; }
.empty {
  background: rgba(18, 18, 18, .72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  border: 2px dashed #444; border-radius: 12px; padding: 2rem;
}
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.videos iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; }

/* Demo player (Media page) */
.player, #player-empty { max-width: 640px; margin-inline: auto; }
.player { padding: 1.5rem 1.25rem .75rem; background: #2a2a2c; border-radius: 8px; }
.player-top { display: grid; grid-template-columns: 110px auto 1fr; gap: 1.25rem; align-items: center; }
.player .art { width: 110px; height: 110px; border-radius: 6px; }
.player .play {
  display: grid; place-items: center; width: 64px; height: 64px; padding: 0;
  border: 2px solid var(--white); border-radius: 50%; background: none; color: var(--white); cursor: pointer;
}
.player .play:hover { background: rgba(255, 255, 255, .1); }
.player .play svg { width: 30px; height: 30px; fill: currentColor; }
.player-info p { margin: 0; color: #bbb; font-size: .9rem; }
.player .now { margin: .15rem 0; font-size: 1.5rem; }
.controls { display: flex; align-items: center; gap: .6rem; margin: 1.25rem 0 .75rem; }
.controls button {
  display: grid; place-items: center; padding: .3rem; background: none; border: 0;
  color: var(--white); cursor: pointer; border-radius: 4px;
}
.controls button:hover { background: rgba(255, 255, 255, .1); }
.controls svg { width: 22px; height: 22px; fill: currentColor; }
.seek { flex: 1; min-width: 0; accent-color: var(--white); }
.clock { font-size: .85rem; color: #bbb; font-variant-numeric: tabular-nums; white-space: nowrap; }
.icon-pause, .icon-muted { display: none; }
.playing .icon-play, .muted .icon-vol { display: none; }
.playing .icon-pause, .muted .icon-muted { display: block; }
/* Cassette reels turn while a song plays */
.reel { transform-box: fill-box; transform-origin: center; }
.playing .reel { animation: spin 2.5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .playing .reel { animation: none; } }
.tracks { list-style: none; margin: 0; padding: 0; }
.tracks li + li { border-top: 1px solid rgba(255, 255, 255, .25); }
.tracks button {
  display: grid; grid-template-columns: 2rem 1fr auto; width: 100%;
  padding: .75rem .5rem; background: none; border: 0; border-radius: 6px;
  color: var(--text); font: inherit; text-align: left; cursor: pointer;
}
.tracks button:hover { background: #38383b; }
.tracks button[aria-current="true"] { background: var(--white); color: var(--black); }
.tracks .num, .tracks .time { opacity: .65; }
@media (max-width: 520px) {
  .player-top { grid-template-columns: 76px auto 1fr; gap: .9rem; }
  .player .art { width: 76px; height: 76px; }
  .player .play { width: 52px; height: 52px; }
  .player .now { font-size: 1.2rem; }
}

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 500px) { form .row { grid-template-columns: 1fr; } }
label { display: block; font-weight: 700; margin-bottom: 1rem; }
input, textarea {
  display: block; width: 100%; margin-top: .35rem; padding: .7rem .8rem;
  font: inherit; color: var(--black); background: var(--grey-light);
  border: 2px solid transparent; border-radius: 8px;
}
input:focus, textarea:focus { background: var(--white); }
textarea { min-height: 160px; resize: vertical; }
.hp { position: absolute; left: -9999px; } /* spam trap: hidden from people, bots fill it in */

/* ---------- Footer ---------- */
main { flex: 1; }
.site-footer { background: var(--panel); }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  padding-block: 1.5rem; color: var(--muted); font-size: .95rem;
}
.site-footer a { color: var(--text); white-space: nowrap; }
