/* ============================================================
   humanari.com — The Humanari.
   Shared tokens and voices live in base.css (from _shared/).
   ============================================================ */

/* ---------- the manifesto ----------------------------------- */
/* The Genesis lines are the page. Everything else is placed
   around them, and the figure is masked into the room the way
   the portraits are on the other sites — no frame, no box. */
.opening {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 7vw, 5rem);
}

.creed > * + * { margin-top: 1.5rem; }
.creed__opening {
  font-size: clamp(1.7rem, 1rem + 2.6vw, 2.9rem);
  line-height: 1.22;
  letter-spacing: -.01em;
  max-width: 20ch;
  font-variation-settings: 'opsz' 40;
}
/* Three short lines that want to be read one at a time. */
.creed__lines {
  font-size: clamp(1.1rem, 1rem + .7vw, 1.35rem);
  line-height: 2;
  color: var(--ash);
}
.creed__close {
  font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem);
  color: var(--gold-hi);
  font-variation-settings: 'opsz' 24;
}

.presence {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  mask-image: radial-gradient(circle at 50% 45%, #000 45%, transparent 78%);
}

/* ---------- radio player ------------------------------------ */
/* Same player as kaethiar.com. Do NOT declare `color-scheme` on
   the wrapper or anywhere near it — see that site's note. */
.player {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: .35rem 1.35rem;
  max-width: 40rem;
  margin-top: 2rem;
}
.player__toggle {
  grid-row: span 2;
  width: 3.4rem;
  height: 3.4rem;
  border: 1px solid var(--gold-deep);
  border-radius: 50%;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition: color 200ms ease, border-color 200ms ease, background 200ms ease;
}
.player__toggle:hover {
  color: var(--night);
  background: var(--gold);
  border-color: var(--gold);
}
.player__toggle svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }
.player__toggle .icon-pause { display: none; }
.player[data-playing='true'] .icon-play { display: none; }
.player[data-playing='true'] .icon-pause { display: block; }

.player__title { font-size: 1.15rem; line-height: 1.3; overflow-wrap: anywhere; }
.player__meta {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ash);
}
.player__bar {
  grid-column: 2;
  height: 2px;
  margin-top: .7rem;
  background: rgba(244, 238, 229, .14);
  border-radius: 1px;
  overflow: hidden;
}
.player__fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold);
  transition: width 1s linear;
}
.player__times {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
  margin-top: .5rem;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .08em;
  color: var(--ash);
}
.player__fallback { margin-top: 1.5rem; }

@media (prefers-reduced-motion: reduce) {
  .player__fill { transition: none; }
}

@media (max-width: 56rem) {
  .opening { grid-template-columns: minmax(0, 1fr); }
  .presence { max-width: 22rem; order: -1; }
}
@media (max-width: 34rem) {
  .player { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .player__toggle { grid-row: auto; }
  .player__bar, .player__times { grid-column: 1; }
}
