/* Eturnal Rest -- styles for the static tribute (memorial) pages. Small and
   additive on top of tokens.css + base.css + info.css. Only the few patterns
   the tribute template needs live here: the banner, portrait, life dates, the
   read-only memory wall, and the audio player. Page-agnostic helpers stay in
   info.css. */

/* ---- banner ---- */
.tribute-banner {
  width: 100%;
  max-height: 320px;
  overflow: hidden;
  background: var(--cream);
}
.tribute-banner img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: cover;
}

/* ---- hero: portrait + name + dates ---- */
.tribute-hero {
  max-width: 640px;
}
.tribute-portrait {
  width: 180px;
  height: 180px;
  border-radius: 999px;
  overflow: hidden;
  margin: var(--space-4) 0 var(--space-5);
  box-shadow: var(--shadow-md);
  background: var(--blue-50);
}
.tribute-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tribute-dates {
  color: var(--ink-2);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin: 0.15em 0;
}

/* ---- audio (song + memory-wall music) ---- */
.tribute-audio {
  width: 100%;
  margin-top: var(--space-3);
}

/* ---- memory wall (read-only) ---- */
.tribute-wall__intro {
  color: var(--ink-2);
  margin-bottom: var(--space-5);
}
.tribute-wall {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-4);
}
.tribute-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  padding: var(--space-5);
}
.tribute-item__author {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--green-900);
  margin: 0 0 0.35em;
}
.tribute-item__body {
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0;
}
.tribute-item__photo {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: var(--space-3);
  background: var(--blue-50);
}
.tribute-item__photo img {
  display: block;
  width: 100%;
  height: auto;
}
.tribute-item__video {
  margin: var(--space-3) 0 0;
}
.tribute-candle {
  font-size: 1.15rem;
}
.tribute-item--candle {
  background: var(--cream);
}

/* ---- /tributes/ index list ---- */
.tribute-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-3);
}
.tribute-list a {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 600;
}
.tribute-list__dates {
  color: var(--ink-3);
  font-size: 0.95rem;
}

/* ---- responsive ---- */
@media (max-width: 720px) {
  .tribute-portrait {
    width: 140px;
    height: 140px;
  }
  .tribute-banner,
  .tribute-banner img {
    max-height: 220px;
  }
}
