/* buddhas.html: large images, because recognising the figure is the point. */

.jumps { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.jump {
  padding: .5rem .9rem; border-radius: 999px; font-size: .84rem;
  border: 1px solid rgba(42,18,13,.16); background: rgba(255,255,255,.55);
  color: var(--ink); text-decoration: none; transition: background .18s, color .18s, border-color .18s;
}
.jump:hover, .jump:focus-visible { background: var(--red); border-color: var(--red); color: #fff; }

.deities { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); margin-top: 2.8rem; }

.deity {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2.2rem);
  scroll-margin-top: 5rem;
}
@media (min-width: 760px) {
  .deity { grid-template-columns: minmax(300px, 44%) 1fr; align-items: start; }
  /* alternate the side the picture sits on, so a long list does not march */
  .deity:nth-child(even) .deity__fig { order: 2; }
}

.deity__fig {
  margin: 0; border-radius: var(--r); overflow: hidden;
  background: var(--ground-2); border: 1px solid var(--rule-soft);
  aspect-ratio: auto;                 /* paintings are not one shape */
}
.deity__fig img { width: 100%; height: auto; display: block; }

.deity__name { margin: 0 0 .1em; font-size: clamp(1.4rem, 1.1rem + 1.1vw, 2.1rem); }
.deity__translit { margin: 0 0 .9rem; font-size: .85rem; color: var(--tx-faint); font-style: italic; }
.deity__one {
  font-family: var(--f-display); font-size: clamp(1.02rem, .95rem + .4vw, 1.25rem);
  line-height: 1.45; color: var(--maroon); margin: .9rem 0 1rem; max-width: 40ch;
}
.deity__text { font-size: .95rem; line-height: 1.7; max-width: 52ch; }
.deity__links { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-top: 1.2rem; }
.deity__links a {
  font-size: .85rem; color: var(--red); text-decoration: none;
  display: inline-flex; align-items: center; gap: .3rem;
  border-bottom: 1px solid rgba(163,32,15,.3); padding-bottom: 1px;
}
.deity__links a:hover { border-bottom-color: currentColor; }
.deity__credit { margin-top: 1.1rem; font-size: .74rem; line-height: 1.5; color: var(--tx-faint); }
.deity__credit a { color: inherit; }

.dbadge {
  display: inline-block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 600; padding: .3rem .6rem; border-radius: 5px;
}
.dbadge--open { background: rgba(28,111,102,.12); color: var(--turquoise); }
.dbadge--init { background: rgba(163,32,15,.1); color: var(--red); }

.dark .jump { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); color: #fff; }
