/* The seasonal altar's mentions on the homepage and /live-show (altar-mention.js).
   The night colours are the altar page's (.al-night in altar.css), and the tiles
   are its tiles, so the card and the band look like a corner of /altar. */

/* ---- Tiles, as on the board */
.am-tile {
  display: inline-block; font: 500 .92rem/1 var(--font-body); color: var(--ink); background: #fffdf7;
  padding: 8px 10px 7px; border-radius: 2px; box-shadow: 0 2px 0 rgba(0,0,0,.28);
}
.am-tile.gold { background: var(--cream); box-shadow: inset 0 -3px 0 var(--gold), 0 2px 0 rgba(0,0,0,.28); }
.am-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.am-strip { padding: 12px; border: 1px dashed rgba(233, 225, 204, .35); border-radius: 6px; background: rgba(17, 24, 20, .45); }
.am-reads { font: italic 1.4rem/1.2 var(--font-head); color: var(--cream); margin: 20px 0 10px; }

/* The board on the season’s photo, under a night scrim. Before a season's
   words exist (.is-photo) it is the photograph alone. */
.am-float {
  position: relative; min-width: 0; overflow: hidden;
  background: var(--night) center / cover no-repeat;
}
.am-float::before { content: ""; position: absolute; inset: 0; background: rgba(17, 24, 20, .52); }
.am-float > * { position: relative; }
.am-float.is-photo::before { display: none; }
.am-float.is-photo { aspect-ratio: 4 / 3; }

/* ---- Homepage: a small night card with the board in motion */
.home .altar-card { padding: 56px 0 8px; }
.am-night {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: center;
  max-width: 900px; margin: 0 auto; padding: 32px 32px 32px 36px; border-radius: 10px;
  background: var(--night); color: var(--moon-soft);
}
.am-night .eyebrow { display: block; color: var(--gold); }
.home .am-night h2 { color: var(--cream); font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 6px 0 10px; text-align: left; }
.am-night p { margin: 0 0 14px; font-size: 1.02rem; line-height: 1.6; }
.am-night .am-reads { font-size: 1.3rem; line-height: 1.2; color: var(--cream); margin: 18px 0 10px; }
.am-night a { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 600px) {
  .am-night { grid-template-columns: 1fr; text-align: center; padding: 26px 20px; gap: 26px; }
  .home .am-night h2 { text-align: center; }
}

/* ---- /live-show: a night band at the foot, the words floating */
.altar-band { padding-block: 64px; background: var(--night); color: var(--moon-soft); }
.altar-band .am-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; max-width: 980px; margin: 0 auto; }
.altar-band h2 { color: var(--cream); margin: 6px 0 12px; text-align: left; }
.altar-band .eyebrow { display: block; color: var(--gold); }
.altar-band .am-reads { font-size: 1.4rem; line-height: 1.2; color: var(--cream); }
.altar-band a { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }
.am-float { border-radius: 10px; padding: 0 18px 18px; box-shadow: 0 14px 30px rgba(0,0,0,.45); }
.am-field { position: relative; }
.am-ftile { position: absolute; z-index: 1; transition: transform 1.1s cubic-bezier(.3, .7, .2, 1); }
.am-ftile.is-placed { z-index: 2; }
.am-ftile .am-tile { animation: am-drift 7s ease-in-out infinite alternate; }
.am-ftile.is-placed .am-tile, .am-float.is-paused .am-tile { animation-play-state: paused; }
@keyframes am-drift {
  0% { transform: translate(0, 0) rotate(-2deg); }
  50% { transform: translate(5px, -6px) rotate(1.5deg); }
  100% { transform: translate(-4px, 4px) rotate(-.5deg); }
}
.am-float .am-reads { margin: 4px 0 10px; min-height: 1.2em; opacity: 0; transition: opacity .8s ease .9s; }
.am-float.is-read .am-reads, .am-float.is-still .am-reads { opacity: 1; }
.am-slots .am-tile { visibility: hidden; }
.am-float.is-still .am-slots .am-tile { visibility: visible; }
.am-float.is-still .am-ftile .am-tile { animation: none; }
.am-float.is-still .am-ftile[data-line] { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .am-ftile { transition: none; } .am-ftile .am-tile { animation: none; } }
@media (max-width: 600px) {
  .altar-band .am-grid { grid-template-columns: 1fr; text-align: center; }
  .altar-band h2 { text-align: center; }
}
