/* ============================================================================
   Kindred Spirit — tribute site
   Design system: bespoke vintage tribute (warm cream / oxblood / gold, serif
   display, subtle analog grain). Static, hand-maintained; each page inlines the
   shared header/footer that pulls these tokens.
   ========================================================================== */

/* ---- Fonts ---------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,700;0,900;1,500&family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

/* ---- Tokens --------------------------------------------------------------- */
:root {
  --cream:      #f4ecd8;   /* page ground */
  --cream-deep: #ece0c4;   /* panels */
  --paper:      #fbf6e9;   /* cards */
  --ink:        #2b2016;   /* body text */
  --ink-soft:   #5a4a38;   /* muted text */
  --oxblood:    #7c2828;   /* primary accent */
  --oxblood-dk: #591a1a;
  --gold:       #c9a24b;   /* secondary accent / rules */
  --gold-dk:    #a17d2e;
  --line:       #d8c9a5;   /* hairlines */
  --shadow:     rgba(43, 32, 22, 0.18);

  --serif-display: 'Playfair Display', 'Iowan Old Style', Georgia, serif;
  --serif-body:    'EB Garamond', 'Palatino Linotype', Palatino, Georgia, serif;

  --wrap: 1080px;
  --radius: 3px;
}

/* ---- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--serif-body);
  font-size: 1.18rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--cream);
  position: relative;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--oxblood); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--oxblood-dk); }

/* subtle analog grain over everything */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
}

/* ---- Typography ----------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--serif-display); font-weight: 700; line-height: 1.12; color: var(--ink); margin: 0 0 0.5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: 0.5px; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1.1em; }
.lead { font-size: 1.35rem; color: var(--ink-soft); font-style: italic; }
.eyebrow {
  font-family: var(--serif-display); font-style: italic; font-weight: 500;
  color: var(--oxblood); letter-spacing: 1px; font-size: 1.05rem; margin-bottom: 0.4em;
}
.ornament { text-align: center; color: var(--gold-dk); letter-spacing: 0.6em; margin: 2.2rem 0; font-size: 1.1rem; }
.ornament::before { content: "\2767"; }

/* ---- Layout --------------------------------------------------------------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.4rem; }
.section { padding: 4rem 0; }
.section--tight { padding: 2.5rem 0; }
.section--panel { background: var(--cream-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---- Header / nav --------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 236, 216, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: flex; flex-direction: column; line-height: 1; text-decoration: none; }
.brand__name { font-family: var(--serif-display); font-weight: 900; font-size: 1.5rem; color: var(--oxblood); letter-spacing: 1px; }
.brand__sub { font-family: var(--serif-body); font-style: italic; font-size: 0.85rem; color: var(--ink-soft); margin-top: 2px; }
.nav { display: flex; flex-wrap: wrap; gap: 0.2rem; }
.nav a {
  font-family: var(--serif-display); font-size: 1rem; color: var(--ink);
  text-decoration: none; padding: 0.35rem 0.7rem; border-radius: var(--radius);
}
.nav a:hover { background: var(--cream-deep); color: var(--oxblood); }
.nav a.is-active { color: var(--oxblood); border-bottom: 2px solid var(--gold); border-radius: 0; }
.nav-toggle { display: none; }

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--serif-display); font-size: 1.05rem; font-weight: 500;
  padding: 0.6rem 1.4rem; border-radius: var(--radius); text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: transform 0.08s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--oxblood); color: var(--cream); }
.btn--primary:hover { background: var(--oxblood-dk); color: var(--cream); }
.btn--ghost { background: transparent; color: var(--oxblood); border-color: var(--gold-dk); }
.btn--ghost:hover { background: var(--cream-deep); }

/* ---- Hero ----------------------------------------------------------------- */
.hero { position: relative; border-bottom: 3px double var(--gold-dk); background: var(--ink); }
.hero__img { width: 100%; height: clamp(340px, 60vh, 620px); object-fit: cover; opacity: 0.82; filter: sepia(0.15) contrast(1.02); }
.hero__overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 1.5rem;
  background: radial-gradient(ellipse at center, rgba(20,14,8,0.15) 0%, rgba(20,14,8,0.62) 100%);
}
.hero__overlay .eyebrow { color: var(--gold); }
.hero h1 { color: var(--cream); text-shadow: 0 2px 18px rgba(0,0,0,0.55); margin-bottom: 0.2em; }
.hero__meta { color: var(--cream); font-style: italic; font-size: 1.2rem; opacity: 0.92; margin-bottom: 1.4rem; text-shadow: 0 1px 10px rgba(0,0,0,0.6); }
.hero__cta { display: flex; gap: 0.8rem; flex-wrap: wrap; justify-content: center; }

/* ---- Cards / grids -------------------------------------------------------- */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 2px 10px var(--shadow); overflow: hidden;
}
.card__body { padding: 1.2rem 1.3rem 1.4rem; }
.card h3 { margin-bottom: 0.15em; }
.card .role { font-style: italic; color: var(--oxblood); margin-bottom: 0.6em; }
.tag {
  display: inline-block; font-family: var(--serif-display); font-size: 0.8rem;
  letter-spacing: 0.5px; padding: 0.15rem 0.6rem; border-radius: 999px;
  background: var(--cream-deep); color: var(--ink-soft); border: 1px solid var(--line); margin: 0 0.3rem 0.3rem 0;
}
.tag--gow { background: #efe3c7; color: var(--gold-dk); }
.tag--ks  { background: #efd9d9; color: var(--oxblood); }

.note {
  font-size: 0.95rem; color: var(--ink-soft); font-style: italic;
  border-left: 3px solid var(--gold); padding: 0.2rem 0 0.2rem 0.9rem; margin: 0.8rem 0;
}

/* ---- In memoriam ---------------------------------------------------------- */
.card--memoriam { background: #efe7d6; border-color: var(--gold-dk); }
.card--memoriam .role { color: var(--ink-soft); }
.memoriam-mark { font-family: var(--serif-display); font-style: italic; color: var(--gold-dk); font-size: 0.9rem; letter-spacing: 1px; }

/* ---- Timeline ------------------------------------------------------------- */
.timeline { position: relative; margin: 2rem 0; padding-left: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--gold), var(--gold-dk)); }
.timeline li { position: relative; padding: 0 0 2rem 2.6rem; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--oxblood); border: 3px solid var(--cream); box-shadow: 0 0 0 1px var(--gold-dk); }
.timeline .year { font-family: var(--serif-display); font-weight: 700; color: var(--oxblood); font-size: 1.2rem; }
.timeline h3 { margin: 0.1em 0 0.25em; }

/* ---- Music: singles + tapes ---------------------------------------------- */
.single { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--ink); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.credits { font-size: 0.98rem; color: var(--ink-soft); }
.credits dt { font-family: var(--serif-display); color: var(--ink); float: left; clear: left; width: 8.5rem; }
.credits dd { margin: 0 0 0.3rem 8.5rem; }

.tape-set { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 2px 10px var(--shadow); padding: 1.3rem 1.4rem; margin-bottom: 1.6rem; }
.tape-set header { display: flex; gap: 1.2rem; align-items: flex-start; }
.tape-set img { width: 110px; border: 1px solid var(--line); border-radius: 2px; box-shadow: 0 1px 6px var(--shadow); }
.tape-set .provenance { font-size: 0.92rem; color: var(--ink-soft); font-style: italic; }
.tracklist { list-style: none; margin: 1rem 0 0; padding: 0; }
.tracklist li { display: flex; align-items: center; gap: 0.8rem; padding: 0.4rem 0; border-top: 1px solid var(--line); }
.tracklist li:first-child { border-top: 0; }
.tracklist .num { font-family: var(--serif-display); color: var(--gold-dk); width: 1.6rem; text-align: right; }
.tracklist .title { flex: 1; }
.tracklist audio { height: 34px; }

/* ---- Callout / latest addition ------------------------------------------- */
.callout {
  display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap;
  background: var(--paper); border: 1px solid var(--gold-dk); border-left: 5px solid var(--oxblood);
  border-radius: var(--radius); padding: 1.2rem 1.4rem; box-shadow: 0 2px 10px var(--shadow);
}
.callout .eyebrow { margin: 0; }

/* ---- Gallery + lightbox --------------------------------------------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.gallery-grid figure { margin: 0; }
.gallery-grid button.thumb { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; background: var(--paper); box-shadow: 0 2px 10px var(--shadow); }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform 0.2s ease; }
.gallery-grid button.thumb:hover img { transform: scale(1.03); }
.gallery-grid figcaption { font-size: 0.9rem; color: var(--ink-soft); font-style: italic; padding: 0.4rem 0.2rem 0; }

.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; background: rgba(20,14,8,0.9); padding: 2rem; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border: 3px solid var(--gold-dk); box-shadow: 0 8px 40px rgba(0,0,0,0.6); }
.lightbox__close { position: absolute; top: 1rem; right: 1.4rem; background: transparent; border: 0; color: var(--cream); font-size: 2.4rem; line-height: 1; cursor: pointer; font-family: var(--serif-display); }
.lightbox__cap { position: absolute; bottom: 1.2rem; left: 0; right: 0; text-align: center; color: var(--cream); font-style: italic; }

/* ---- Stub / coming-soon --------------------------------------------------- */
.stub { text-align: center; padding: 5rem 1rem; }
.stub .ornament { margin-bottom: 1rem; }

/* ---- Footer --------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--cream); padding: 2.6rem 0; margin-top: 2rem; }
.site-footer a { color: var(--gold); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.site-footer .brand__name { color: var(--cream); }
.site-footer small { opacity: 0.7; font-size: 0.9rem; }
.private-badge { display: inline-block; font-family: var(--serif-display); font-size: 0.8rem; letter-spacing: 1px; color: var(--ink); background: var(--gold); padding: 0.2rem 0.7rem; border-radius: 999px; }

/* ---- Responsive ----------------------------------------------------------- */
@media (max-width: 760px) {
  body { font-size: 1.08rem; }
  .nav-toggle { display: inline-flex; background: transparent; border: 1px solid var(--gold-dk); color: var(--oxblood); font-family: var(--serif-display); padding: 0.35rem 0.8rem; border-radius: var(--radius); cursor: pointer; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--cream); border-bottom: 1px solid var(--line); padding: 0.6rem 1.4rem 1rem; gap: 0; }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.6rem 0.2rem; border-bottom: 1px solid var(--line); }
  .credits dt { float: none; width: auto; }
  .credits dd { margin-left: 0; }
  .tape-set header { flex-direction: column; }
}
