/* ══════════════════════════════════════════════════════
   Figure and Ground — shared styles
   Loaded by all presentation formats (poster, focus, audio, palimpsest)
   ══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500;1,600&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
}

/* ── COLOR UTILITIES ──
   Odysseus = dark text on light ground
   Siren    = light text on dark ground                  */
.color-ody {
  color: #000;
  text-shadow: 0 0 8px rgba(255,255,255,0.6);
}
.color-sir {
  color: #fff;
  text-shadow: 0 0 8px rgba(0,0,0,0.6);
}

/* Stronger glow variants for prominent elements */
.color-ody-strong {
  color: #000;
  text-shadow: 0 0 12px rgba(255,255,255,1), 0 0 24px rgba(255,255,255,0.5);
}
.color-sir-strong {
  color: #fff;
  text-shadow: 0 0 12px rgba(0,0,0,1), 0 0 24px rgba(0,0,0,0.5);
}

/* ── MAIN TITLE (three-part: word-left · word-mid · word-right) ── */
.main-title {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.4em;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.word-left {
  color: #000;
  text-shadow: 0 0 12px rgba(255,255,255,0.8);
}
.word-mid {
  color: #888;
  font-size: 0.7em;
  letter-spacing: 0.2em;
  font-weight: 400;
}
.word-right {
  color: #fff;
  text-shadow: 0 0 12px rgba(0,0,0,0.8);
}

/* ── SONG PASSAGES ── */
.song {
  font-style: italic;
}

/* ── HINT OVERLAY ──
   Used by focus and palimpsest views.
   Content inside (arrows, text) is view-specific.       */
.hint-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  pointer-events: none;
  transition: opacity 1.5s ease;
}

.hint-overlay.faded {
  opacity: 0;
}

/* ── TEXT STAGE ──
   Container for overlaid text layers (focus, palimpsest) */
.text-stage {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 4vw;
}

/* ── TEXT LAYER BASE ──
   Shared typography for reading views (focus, palimpsest) */
.text-layer {
  font-size: clamp(0.85rem, 1.1vw, 1.05rem);
  line-height: 1.95;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.text-layer p {
  margin-bottom: 1.8em;
}

.text-layer p:last-child {
  margin-bottom: 0;
}

/* ── SUBTITLE ROW ──
   Container for subtitle labels (focus, palimpsest)      */
.subtitle-row {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 4vw 1.2em 4vw;
}

/* ── END SPACER ──
   Bottom padding for scroll-driven reading views (focus, palimpsest) */
.end-spacer {
  height: 30vh;
}

/* ── MOBILE SHARED ── */
@media (max-width: 768px) {
  .text-layer { font-size: 1.3rem !important; }
}
