/* ============================================================
   THE BAND — Vintage Americana design system
   Independent fan archive | the-band.co.uk
   Single shared stylesheet for the whole static site.
   ============================================================ */

/* ---- Fonts ----
   Sentinel (Adobe)   -> display headings        [typekit: sentinel]
   Arno Pro (Adobe)   -> body copy               [typekit: arno-pro]
   Juniper Std (Adobe)-> wordmark / logo only     [typekit: juniper-std]
   Special Elite (Google) -> typewriter kickers / labels
------------------------------------------------------------- */

:root {
  /* Palette — aged paper + barn-wood + rust */
  --paper:      #f4ead4;
  --paper-2:    #ecdfc2;
  --paper-3:    #e3d3b0;
  --ink:        #2a2017;
  --ink-soft:   #5d4d3a;
  --ink-faint:  #8a765b;
  --rust:       #a8431f;
  --rust-dark:  #8a3414;
  --gold:       #bd8a2c;
  --olive:      #5f6034;
  --cream-card: #fbf4e3;
  --line:       rgba(42, 32, 23, 0.16);
  --line-strong:rgba(42, 32, 23, 0.32);
  --shadow:     0 2px 0 rgba(42,32,23,.08), 0 14px 32px -18px rgba(42,32,23,.55);

  --maxw:       1120px;
  --readw:      720px;
  --radius:     3px;

  --font-display: "sentinel", Georgia, serif;
  --font-type:    "Special Elite", "Courier New", monospace;
  --font-body:    "arno-pro", Georgia, serif;
  --font-wordmark: "juniper-std", "sentinel", serif;
}

/* ---- Reset-ish ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--paper);
  /* subtle paper grain */
  background-image:
    radial-gradient(rgba(120,90,50,0.05) 1px, transparent 1px),
    radial-gradient(rgba(120,90,50,0.04) 1px, transparent 1px);
  background-size: 7px 7px, 13px 13px;
  background-position: 0 0, 4px 6px;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rust); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--rust-dark); }

/* ---- Layout helpers ---- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.read { max-width: var(--readw); margin-left: auto; margin-right: auto; }
.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.center { text-align: center; }

/* ---- Kicker / labels ---- */
.kicker {
  font-family: var(--font-type);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: var(--rust);
  margin: 0 0 14px;
}
.kicker--ink { color: var(--ink-faint); }

/* ---- Headings ---- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.12; color: var(--ink); margin: 0 0 0.5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }
h4 { font-size: 1.1rem; }

/* ============================================================
   TOP BAR / NAV
   ============================================================ */
.topbar {
  border-bottom: 1px solid var(--line-strong);
  background: linear-gradient(180deg, var(--paper-2), var(--paper));
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset;
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 24px; }
.brand { display: flex; flex-direction: column; line-height: 1; text-decoration: none; }
.brand__name {
  font-family: var(--font-wordmark);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-transform: uppercase;
}
.brand__sub { font-family: var(--font-type); font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-faint); margin-top: 5px; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a {
  font-family: var(--font-type);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--ink-soft);
  text-decoration: none;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--rust); }
.nav__toggle { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: 84px 0 72px; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero::before {
  /* decorative double rule, vintage poster feel */
  content: ""; position: absolute; inset: 18px; border: 2px double var(--line-strong);
  pointer-events: none; border-radius: var(--radius);
}
.hero .wrap { position: relative; }
.hero h1 { max-width: 14ch; }
.hero__lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 56ch; margin: 0 0 28px; }
.hero__rule { width: 70px; height: 3px; background: var(--rust); margin: 0 0 24px; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-type);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  padding: 13px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1.5px solid var(--ink);
  transition: transform .08s ease, background .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--rust); border-color: var(--rust-dark); color: var(--paper); }
.btn--primary:hover { background: var(--rust-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-head { margin-bottom: 36px; }
.section-head .bar { display: inline-block; width: 46px; height: 3px; background: var(--gold); margin-bottom: 16px; }

/* ============================================================
   CARDS / GRID
   ============================================================ */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--cream-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  display: flex; flex-direction: column;
  transition: transform .12s ease, box-shadow .12s ease;
}
a.card:hover { transform: translateY(-3px); box-shadow: 0 4px 0 rgba(42,32,23,.10), 0 22px 40px -20px rgba(42,32,23,.6); }
.card .kicker { margin-bottom: 10px; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.card__more { margin-top: auto; padding-top: 16px; font-family: var(--font-type); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rust); }

/* numbered list cards (e.g. album ranking) */
.numcard { display: flex; gap: 18px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.numcard__n { font-family: var(--font-display); font-weight: 900; font-size: 2rem; color: var(--gold); min-width: 1.6em; }

/* ============================================================
   ARTICLE / PROSE
   ============================================================ */
.article { padding: 56px 0 72px; }
.article__head { margin-bottom: 36px; }
.article__meta { font-family: var(--font-type); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); margin-top: 14px; }
.prose { font-size: 1.12rem; }
.prose > p, .prose > ul, .prose > ol, .prose > h2, .prose > h3, .prose > .embed, .prose > .affiliate, .prose > figure, .prose > blockquote { max-width: var(--readw); margin-left: auto; margin-right: auto; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose p { margin: 0 0 1.2em; }
.prose ul, .prose ol { margin: 0 0 1.4em; padding-left: 1.3em; }
.prose li { margin-bottom: 0.5em; }
blockquote {
  border-left: 3px solid var(--rust);
  background: var(--paper-2);
  margin: 1.6em auto;
  padding: 18px 24px;
  font-style: italic;
  color: var(--ink-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}
blockquote cite { display: block; font-style: normal; font-family: var(--font-type); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin-top: 12px; }
.lyric { font-family: var(--font-body); font-style: italic; color: var(--ink); background: var(--cream-card); border: 1px dashed var(--line-strong); padding: 18px 22px; border-radius: var(--radius); }

/* ============================================================
   EMBEDS (YouTube / Spotify) — responsive, no licensed images
   ============================================================ */
.embed { margin: 1.8em auto; }
.embed__frame { position: relative; width: 100%; padding-top: 56.25%; background: var(--ink); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); }
.embed__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed__cap { font-family: var(--font-type); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-top: 10px; text-align: center; }
.embed--spotify .embed__frame { padding-top: 0; height: 152px; }
.embed--spotify .embed__frame iframe { position: static; height: 152px; }

/* ============================================================
   AFFILIATE MODULE — "own the music"
   ============================================================ */
.affiliate {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--cream-card);
  padding: 24px 26px;
  margin: 2em auto;
  position: relative;
}
.affiliate::before {
  content: "♪"; position: absolute; top: -16px; left: 22px;
  background: var(--rust); color: var(--paper); width: 30px; height: 30px;
  display: grid; place-items: center; border-radius: 50%; font-size: 1rem;
}
.affiliate__title { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; margin: 0 0 4px; }
.affiliate__note { font-family: var(--font-type); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 16px; }
.affiliate__links { display: flex; gap: 12px; flex-wrap: wrap; }
.affiliate__links .btn { font-size: 0.72rem; padding: 11px 18px; }

/* ============================================================
   AD SLOT — reserved, OFF until accounts/traffic exist.
   To enable later: remove the `display:none` rule below.
   ============================================================ */
.ad-slot {
  display: none;                 /* <-- turn ads on by deleting this line */
  max-width: var(--readw);
  margin: 2em auto;
  min-height: 100px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(42,32,23,.03) 8px, rgba(42,32,23,.03) 16px);
  display: none;
}
.ad-slot--on { display: block; }

/* ============================================================
   RELATED / NEXT
   ============================================================ */
.related { border-top: 1px solid var(--line-strong); margin-top: 40px; padding-top: 36px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: var(--paper-3); margin-top: 40px; padding: 54px 0 30px; }
.footer a { color: var(--paper-2); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
.footer h4 { color: var(--paper); font-family: var(--font-type); font-weight: 400; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.72rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer li a { font-size: 0.92rem; text-decoration: none; color: var(--paper-3); }
.footer li a:hover { color: #fff; text-decoration: underline; }
.footer__disclosure { font-size: 0.82rem; color: var(--ink-faint); line-height: 1.6; max-width: 46ch; }
.footer__legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 18px; font-size: 0.78rem; color: var(--ink-faint); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* disclosure inline (top of affiliate-heavy pages) */
.disclosure-inline { font-size: 0.82rem; color: var(--ink-faint); font-style: italic; max-width: var(--readw); margin: 0 auto 1.5em; padding: 10px 14px; border-left: 2px solid var(--gold); background: var(--paper-2); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; gap: 26px; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper-2); border-bottom: 1px solid var(--line-strong); padding: 8px 0; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 24px; font-size: 0.82rem; }
  .nav__toggle { display: inline-block; background: transparent; border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 8px 12px; font-family: var(--font-type); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; color: var(--ink); }
  .topbar { position: static; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 48px; }
  .hero::before { inset: 10px; }
  .section { padding: 48px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* ============================================================
   EMBED FACADE — click-to-play poster (privacy + no error flash)
   Loads YouTube only after the visitor clicks. JS in js/embed.js
   ============================================================ */
.embed__facade { position: relative; width: 100%; padding-top: 56.25%; background: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.embed__facade .embed__play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.embed__play .pbtn { width: 76px; height: 76px; border-radius: 50%; background: var(--rust); display: grid; place-items: center; transition: background .15s ease, transform .12s ease; }
.embed__play .pbtn::after { content: ""; width: 0; height: 0; border-left: 22px solid var(--paper); border-top: 13px solid transparent; border-bottom: 13px solid transparent; margin-left: 6px; }
.embed__play .ptext { font-family: var(--font-type); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; color: var(--paper-2); }
.embed__facade:hover .pbtn, .embed__facade:focus-visible .pbtn { background: var(--rust-dark); transform: scale(1.05); }
.embed__facade:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.embed__facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
