/* Legibility layer (measured with film/qa_contrast.mjs: every text box against the real
   pixels behind it, WCAG AA). Brand colours stay; text that sits on a painted plate gets a
   quiet scrim, and accents too dark for their ground use a lighter tint of the same hue. */
:root {
  --dali-teal-text: #6fd2e6;
  --teacasso-brass-text: #cdb98a;
  --michael-gold-text: #e4bf86;
  --scrim: rgb(14 12 10 / 0.7);
}

/* world headings: a soft dark ellipse behind the eyebrow + title */
.world__head {
  position: relative;
  isolation: isolate;
  padding: 1rem 1.5rem 1.25rem;
}
.world__head::before {
  content: '';
  position: absolute;
  inset: -1.5rem -10% -1.5rem;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 50%, var(--scrim), rgb(14 12 10 / 0) 70%);
  pointer-events: none;
}
.dali-world__eyebrow {
  color: var(--dali-teal-text);
}
.teacasso-world__eyebrow {
  color: var(--teacasso-brass-text);
}
.michael-world__eyebrow {
  color: var(--michael-gold-text);
}

/* tagline + catalogue link: the existing scrim, a touch denser */
.world__intro::before {
  background: radial-gradient(ellipse at 50% 55%, rgb(14 12 10 / 0.84), rgb(14 12 10 / 0) 72%);
}
.world__intro .world-catalog-link {
  background: rgb(14 12 10 / 0.72);
}
.world-catalog-link--dali {
  color: var(--dali-teal-text);
  border-color: var(--dali-teal-text);
}
.world-catalog-link--teacasso {
  color: #e2dacb;
}
.world-catalog-link--michaelangelo {
  color: var(--michael-gold-text);
}
.marquee__soon-label,
.marquee__soon-mark {
  color: var(--dali-teal-text);
}

/* hero: subtitle and the three room links */
.opening__subtitle {
  color: var(--museum-plaster);
  display: inline-block;
  padding: 0.2em 1.2em;
  background: radial-gradient(closest-side, rgb(14 12 10 / 0.78), rgb(14 12 10 / 0));
}
.world-frame__cta {
  color: #e2c27a;
  padding: 0 0.6em;
  background: radial-gradient(closest-side, rgb(14 12 10 / 0.75), rgb(14 12 10 / 0));
}

/* gallery brand labels over artwork: a small chip */
.hg__brand {
  display: inline-block;
  padding: 0.25em 0.6em;
  background: rgb(14 12 10 / 0.78);
  color: #e2c27a;
}

/* Teacasso's heading sits right over the glowing eye: a denser scrim and a paler brass */
.teacasso-world .world__head::before {
  background: radial-gradient(ellipse at 50% 50%, rgb(10 9 8 / 0.88), rgb(10 9 8 / 0) 72%);
}
.teacasso-world__eyebrow {
  color: #e0d3b0;
}
@media (max-width: 600px) {
  .world__intro::before {
    inset: -2.5rem -6% -2rem;
    background: radial-gradient(ellipse at 50% 55%, rgb(14 12 10 / 0.9), rgb(14 12 10 / 0) 78%);
  }
}

.anatomy__eyebrow {
  color: var(--michael-gold-text);
}

/* anatomy notes: brighter, and on phones a solid caption card under the object */
.anatomy__note {
  color: rgba(244, 239, 228, 0.9);
}
/* the gallery label sits on the bright hall plate as the section arrives */
html.stage-on .hg__head { background: radial-gradient(60% 120% at 14% 50%, rgb(14 12 10 / .82), rgb(14 12 10 / .55) 55%, transparent 100%); }

/* the Michaelangelo floor is the brightest backdrop (gold glitter on it): a denser scrim there */
.michaelangelo-world .world__intro::before,
#michaelangelo .world__intro::before {
  background: radial-gradient(ellipse at 50% 55%, rgb(14 12 10 / 0.95), rgb(14 12 10 / 0.35) 60%, rgb(14 12 10 / 0) 82%);
}

/* nav dots stay above the hero layer (z 70), which was swallowing their clicks */
.wayfinding { z-index: 75; }
@media (max-width: 640px) {
  .wayfinding { right: .5rem; transform: translateY(24px); }
  .wayfinding[data-visible='true'] { transform: translateY(0); }
  .wayfinding__room { min-width: 32px; }
  .wayfinding__room { min-width: 30px; }
  .wayfinding__mark { display: none; }
}
/* footer newsletter: the Subscribe button was cut off on narrow phones */
.footer__field-row { flex-wrap: wrap; }
.footer__input { min-width: 0; flex: 1 1 11rem; }

/* link to the separate 3D collection page (showcase.html) */
.world-showcase-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-left: 18px;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 19px;
  color: #f1e7d9;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  text-shadow: 0 1px 10px rgb(0 0 0 / 0.7);
}
.world-showcase-link:hover { text-decoration-thickness: 2px; }
@media (max-width: 640px) { .world-showcase-link { margin-left: 0; } }

