/* The Drowning Cowboys – shared styles for every page. */

:root {
  /* Night rodeo colour scheme: change these to restyle the whole site. */
  --dc-bg: #15171d;
  --dc-surface: #1d2028;
  --dc-line: #2c303b;
  --dc-title-color: #f2e6c9;   /* cream: logo + headings */
  --dc-accent-color: #e0a43a;  /* amber: "The", accents, links */
  --dc-text: #e6dcc3;
  --dc-muted: #a39d8f;

  --font-body: "Alegreya", Georgia, "Times New Roman", serif;
  --font-display: "Holtwood One SC", "Alegreya", Georgia, serif;
  --font-script: "Yellowtail", "Alegreya", cursive;

  --page-width: 960px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--dc-bg);
  color: var(--dc-text);
  font: 400 1.125rem/1.6 var(--font-body);
}

img, svg { display: block; max-width: 100%; }

a { color: var(--dc-accent-color); text-underline-offset: 0.15em; }
a:hover { color: var(--dc-title-color); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--dc-accent-color); outline-offset: 3px; }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--page-width));
  margin-inline: auto;
}

/* ---- Logo ------------------------------------------------------------ */
.dc-banner { width: 100%; height: auto; }

/* ---- Hero ------------------------------------------------------------ */
.hero { padding: clamp(32px, 8vw, 72px) 0 clamp(24px, 5vw, 48px); text-align: center; }
.hero h1 { margin: 0; }
.hero .tagline {
  margin: 0.25em 0 0;
  font-family: var(--font-script);
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--dc-accent-color);
}
.hero-media { margin-top: clamp(24px, 5vw, 40px); }
/* Edges are feathered into --dc-bg in the image itself; re-export if it changes. */
.hero-img { width: 100%; height: auto; }

/* ---- Sections -------------------------------------------------------- */
.section { padding: clamp(32px, 6vw, 56px) 0; border-top: 1px solid var(--dc-line); }
/* Section headings are centred everywhere, matching the centred logo and hero. */
.section-kicker {
  margin: 0;
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: var(--dc-accent-color);
  text-align: center;
}
/* The kicker is a <p>; undo the reading-width cap from `.section p` (which
   starts at the left edge and pulled it off-centre). Needs this specificity. */
.section p.section-kicker { max-width: none; }
.section h2 {
  text-align: center;
  margin: 0 0 0.6em;
  font: 400 clamp(1.5rem, 4vw, 2.1rem)/1.2 var(--font-display);
  color: var(--dc-title-color);
  letter-spacing: 0.02em;
}
.section h3 { margin: 1.4em 0 0.4em; font-size: 1.2rem; color: var(--dc-title-color); }
.section p { max-width: 65ch; }

/* Body text stays left-aligned (easier to read) but sits in a column centred
   under the headings: home About, and the EPK's bios, lineup and booking. */
#about .wrap > p, #about .lineup,
#bios h3, #bios .bio, #lineup .lineup, #booking .wrap > p {
  max-width: 40rem;
  margin-inline: auto;
}

/* Bandcamp player: 307 px tall (also set as width/height on the iframe, so the size is there before this CSS loads); Bandcamp's large player stops growing at 700 px
   wide, so cap it there and let it shrink on narrower screens. */
.bandcamp-player { display: block; border: 0; width: 100%; max-width: 700px; height: 307px; }

/* Centre the player under the centred headings (home Listen, EPK Music). */
#listen .bandcamp-player, #music .bandcamp-player { margin-inline: auto; }

/* Click-to-play YouTube videos (see video.js). */
/* Layout: the first (.featured) video spans the full width, the rest sit two
   per row underneath; on phones everything stacks. */
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.video-grid .featured { grid-column: 1 / -1; }
@media (max-width: 600px) {
  .video-grid { grid-template-columns: 1fr; }
}
.video-item { margin: 0; }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; }
.video a, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video img { width: 100%; height: 100%; object-fit: cover; transition: filter .2s; }
.video a:hover img, .video a:focus-visible img { filter: brightness(0.85); }
.video-play {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--dc-accent-color); box-shadow: 0 4px 18px rgba(0, 0, 0, .45);
  transition: transform .2s, background .2s;
}
.video-play::after {  /* play triangle */
  content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 15px 0 15px 25px; border-color: transparent transparent transparent var(--dc-bg);
}
.video a:hover .video-play, .video a:focus-visible .video-play { transform: translate(-50%, -50%) scale(1.08); background: var(--dc-title-color); }
.video-item figcaption { margin-top: 10px; color: var(--dc-muted); font-size: 1rem; text-align: center; }
.video-item figcaption strong { color: var(--dc-title-color); }
/* Smaller play buttons on the half-width grid videos and on phones. */
.video-grid .video-item:not(.featured) .video-play { width: 60px; height: 60px; }
.video-grid .video-item:not(.featured) .video-play::after { border-width: 12px 0 12px 20px; }
@media (max-width: 600px) {
  .video-play { width: 60px; height: 60px; }
  .video-play::after { border-width: 12px 0 12px 20px; }
}

/* ---- Shows (see shows.js) -------------------------------------------- */
/* One row per show: a ticket-stub date, venue and town, then a button.
   On phones the button drops under the venue. */
.shows-list { list-style: none; padding: 0; margin: 0 auto; max-width: 44rem; }
.show {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px 18px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--dc-line);
}
.show:first-child { border-top: 1px dashed var(--dc-line); }
.show-date {
  display: grid;
  width: 4.2rem;
  padding: 6px 0;
  border: 2px solid var(--dc-accent-color);
  border-radius: 8px;
  text-align: center;
  line-height: 1.1;
  text-transform: uppercase;
}
.show-weekday, .show-month { font-size: 0.75rem; letter-spacing: 0.08em; color: var(--dc-accent-color); }
.show-day { font: 400 1.6rem/1.15 var(--font-display); color: var(--dc-title-color); }
.show-info { display: grid; min-width: 0; }
.show-venue { color: var(--dc-title-color); font-size: 1.15rem; }
.show-place, .show-title { color: var(--dc-muted); font-size: 1rem; }
.show-title { font-style: italic; }
.show-tag {
  justify-self: start;
  margin-top: 4px;
  padding: 1px 8px;
  border-radius: 4px;
  background: var(--dc-surface);
  color: var(--dc-accent-color);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.show-btn {
  display: inline-block;
  padding: 7px 18px;
  border: 2px solid var(--dc-accent-color);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.show-btn:hover, .show-btn:focus-visible { background: var(--dc-accent-color); color: var(--dc-bg); }
@media (max-width: 600px) {
  .show { grid-template-columns: auto 1fr; }
  .show-actions { grid-column: 2; }
}
.section p.shows-follow { margin: 1.4em auto 0; text-align: center; color: var(--dc-muted); }
/* "Sample dates" note: only when shows.js is showing made-up dates. */
.shows-sample-note { display: none; }
.section p.shows-sample-note {
  margin: 0 auto 1em;
  text-align: center;
  color: var(--dc-muted);
  font-size: 0.95rem;
  font-style: italic;
}
.shows-sample .shows-sample-note { display: block; }

.lineup { list-style: none; padding: 0; margin: 1em 0 0; }
.lineup li { padding: 0.35em 0; border-bottom: 1px dashed var(--dc-line); }
.lineup strong { color: var(--dc-title-color); }

/* ---- Placeholders and unfinished bits: hidden unless ?placeholders ---- */
/* An inline script in each page adds .show-placeholders when the address
   has ?placeholders (any host). Otherwise these stay hidden. */
.unfinished { display: none; }
.show-placeholders .unfinished { display: block; }
.placeholder { display: none; }
.show-placeholders .placeholder {
  display: grid;
  place-items: center;
  min-height: 160px;
  padding: 24px;
  border: 2px dashed var(--dc-line);
  border-radius: 12px;
  background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,0.02) 14px 28px);
  color: var(--dc-muted);
  font-size: 1rem;
  text-align: center;
}
/* Video-shaped placeholders: 16:9 at any width (no min-height, which would
   force them wider than a phone screen). */
.show-placeholders .placeholder.tall { width: 100%; min-height: 0; aspect-ratio: 16 / 9; }
.placeholder strong { display: block; color: var(--dc-accent-color); font-weight: 700; }
/* Sections that are only placeholders hide completely on the live site. */
.section.placeholder-only { display: none; }
.show-placeholders .section.placeholder-only { display: block; }

/* ---- Bios with copy buttons (EPK) ------------------------------------ */
.bio { position: relative; margin: 1em 0; padding: 16px 18px; background: var(--dc-surface); border-radius: 10px; }
.bio p { margin: 0 0 0.8em; }
.bio p:last-of-type { margin-bottom: 0; }
.copy-btn {
  margin-top: 12px;
  padding: 6px 14px;
  font: 700 0.9rem var(--font-body);
  color: var(--dc-bg);
  background: var(--dc-accent-color);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.copy-btn:hover { background: var(--dc-title-color); }

/* ---- Testimonials (EPK) ---------------------------------------------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 16px;
  margin-top: 1.2em;
}
.testimonial {
  margin: 0;
  padding: 18px 20px;
  background: var(--dc-surface);
  border-left: 3px solid var(--dc-accent-color);
  border-radius: 10px;
}
.testimonial blockquote { margin: 0; }
.testimonial blockquote p { margin: 0; font-size: 1.15rem; font-style: italic; color: var(--dc-title-color); }
.testimonial blockquote p::before { content: "\201C"; }
.testimonial blockquote p::after { content: "\201D"; }
.testimonial figcaption { margin-top: 10px; color: var(--dc-muted); font-size: 0.95rem; }
.testimonial figcaption strong { color: var(--dc-accent-color); font-weight: 700; }
/* Crowd quotes are the joke ones: set them apart a little. */
.testimonial.is-crowd { border-left-style: dashed; }
.section p.testimonials-sample-note { margin: 0 auto; text-align: center; color: var(--dc-muted); font-size: 0.95rem; font-style: italic; }

/* ---- Footer ---------------------------------------------------------- */
.site-footer { padding: 40px 0 56px; border-top: 1px solid var(--dc-line); text-align: center; color: var(--dc-muted); font-size: 1rem; }
.site-footer .contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin: 0 0 16px; padding: 0; list-style: none; }
.site-footer .label { color: var(--dc-muted); margin-right: 0.3em; }
.socials { display: flex; justify-content: center; gap: 16px; margin: 0 0 16px; padding: 0; list-style: none; }
.socials a { display: inline-flex; padding: 6px; color: var(--dc-title-color); border-radius: 8px; }
.socials a:hover { color: var(--dc-accent-color); }
.socials svg { width: 28px; height: 28px; }
.site-footer small { display: block; margin-top: 12px; }

/* ---- EPK header ------------------------------------------------------ */
.epk-header { padding: 28px 0 8px; text-align: center; }
.epk-header .logo-link { display: block; max-width: 520px; margin: 0 auto; }
.epk-header .page-title {
  margin: 0.25em 0 0;
  font-family: var(--font-script); font-size: 1.8rem; color: var(--dc-accent-color); font-weight: 400;
}

/* ---- Tip page (/tip, opened from the QR code on the gig sign) -------- */
/* Tip buttons: big, full-width tap targets, one per payment app. Each has
   a stripe in the app's own colour so people spot theirs at a glance. */
.section p.tip-intro { margin: 0 auto 1.2em; text-align: center; color: var(--dc-muted); }
.tip-buttons { display: grid; gap: 14px; max-width: 26rem; margin: 0 auto; padding: 0; list-style: none; }
.tip-btn {
  display: grid;
  padding: 14px 20px 14px 26px;
  border: 2px solid var(--dc-line);
  border-left: 8px solid var(--tip-brand, var(--dc-accent-color));
  border-radius: 12px;
  background: var(--dc-surface);
  color: var(--dc-title-color);
  text-decoration: none;
  line-height: 1.25;
  transition: border-color .15s, transform .15s;
}
.tip-btn:hover, .tip-btn:focus-visible { color: var(--dc-title-color); border-color: var(--tip-brand); transform: translateY(-1px); }
.tip-name { font: 400 1.5rem/1.2 var(--font-display); letter-spacing: 0.02em; }
.tip-handle { color: var(--dc-muted); font-size: 1rem; overflow-wrap: anywhere; }
.tip-venmo { --tip-brand: #008cff; }
.tip-paypal { --tip-brand: #0070e0; }
.tip-cashapp { --tip-brand: #00d64f; }

/* "Follow along" links: a simple stacked list of rows. */
.link-list { max-width: 26rem; margin: 0 auto; padding: 0; list-style: none; }
.link-list a {
  display: grid;
  padding: 12px 4px;
  border-bottom: 1px dashed var(--dc-line);
  text-decoration: none;
  line-height: 1.3;
}
.link-list li:first-child a { border-top: 1px dashed var(--dc-line); }
.link-list strong { color: var(--dc-title-color); }
.link-list a:hover strong { color: var(--dc-accent-color); }
.link-list span { color: var(--dc-muted); font-size: 1rem; }
#follow .placeholder { max-width: 26rem; margin: 24px auto 0; }

/* ---- Friends of the Cowboys (/friends) ------------------------------- */
.section p.friends-intro { margin: 0 auto 1.2em; text-align: center; color: var(--dc-muted); }
.section p.friends-sample-note { margin: 0 auto 1em; text-align: center; color: var(--dc-muted); font-size: 0.95rem; font-style: italic; }
.friends { display: grid; gap: 16px; max-width: 44rem; margin: 0 auto; padding: 0; list-style: none; }
.friend {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  align-items: start;
  padding: 16px 18px;
  background: var(--dc-surface);
  border: 1px solid var(--dc-line);
  border-radius: 10px;
}
/* Text stand-in for a band's 88x31 button: chunky bevel, tiny caps. */
.friend-badge, .friend img.friend-button {
  display: grid;
  place-items: center;
  width: 88px;
  height: 31px;
  margin-top: 4px;
}
.friend-badge {
  padding: 0 4px;
  background: var(--dc-bg);
  border: 2px outset var(--dc-accent-color);
  color: var(--dc-title-color);
  font: 700 0.6rem/1 var(--font-body);
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}
.friend-info { min-width: 0; }
.section .friend h3 { margin: 0; font-size: 1.25rem; }
.section .friend p { margin: 0.3em 0 0; }
.section p.friend-genre { margin: 0; color: var(--dc-accent-color); font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; }
.friend-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0.6em 0 0; padding: 0; list-style: none; font-size: 1rem; }
@media (max-width: 480px) {
  .friend { grid-template-columns: 1fr; gap: 10px; }
}

.link-us { display: grid; justify-items: center; gap: 12px; max-width: 36rem; margin: 0 auto; }
.link-us img { image-rendering: pixelated; }
.link-us pre {
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  background: var(--dc-surface);
  border: 1px dashed var(--dc-line);
  border-radius: 8px;
  color: var(--dc-muted);
  font-size: 0.8rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.link-us .copy-btn { margin-top: 0; }

/* Webring bar: hidden (class="unfinished") until there's a real ring. */
.webring { padding: 18px 0; border-top: 1px solid var(--dc-line); }
.webring .wrap { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 20px; }
.webring span { font: 400 1rem var(--font-script); color: var(--dc-accent-color); font-size: 1.3rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
