/* ==========================================================================
   LOTUS POND, interface pass. Preview 13 Nov 2026 (Fable 5.2).
   Loaded last on the Lotus Pond page.
   The 3D scene, its shaders and all copy are untouched; this only restyles the
   interface drawn over it. Review: outputs/pond-review-13nov/POND-REVIEW.md
   ========================================================================== */

/* ---- 1. Phone dock: every control visible, nothing overlapping.
        Was: seven 78 px buttons (493 px) in a 370 px row, 11 px text overflowing
        its own button; "Dive below" and the sound button sat off screen. ---- */
@media (max-width: 760px) {
  #dock { gap: 4px; padding: 5px; overflow: visible; justify-content: space-between; flex-wrap: nowrap; }
  #dock button {
    flex: 1 1 0; width: auto; min-width: 0; min-height: 54px;
    flex-direction: column; justify-content: center; align-items: center; gap: 4px;
    padding: 7px 2px 6px; font-size: 10.5px; line-height: 1.12; letter-spacing: 0;
    white-space: normal; text-align: center; text-wrap: balance; border-radius: 10px;
  }
  #dock button[aria-label="Pond sound"], #dock #bSound { flex: 0 0 44px; }
  #dock svg { width: 18px; height: 18px; }
}

/* ---- 2. Phone walk: the walk controls sat exactly on the caption (both 700-758 px).
        pond-luxe.js sets .pl-walking while the rail is showing. ---- */
@media (max-width: 760px) {
  body.pl-walking #narr { bottom: calc(var(--dock-clearance, 124px) + 72px); transition: bottom .45s cubic-bezier(.2, .7, .2, 1); }
  #narr { transition: bottom .45s cubic-bezier(.2, .7, .2, 1); }
}

/* ---- 3. Tap targets and legibility of the small print ---- */
.frieze-credit summary { font-size: 10.5px; white-space: nowrap; padding: 8px 2px; margin: -8px -2px; cursor: pointer; }
.frieze-credit a, .panel a[href*="metmuseum"] { display: inline-block; padding: 8px 0; }
@media (max-width: 760px) {
  /* the credit rides up with the caption during the walk, so the two never meet */
  .frieze-credit { transition: translate .45s cubic-bezier(.2, .7, .2, 1); }
  body.pl-walking .frieze-credit { translate: 0 -72px; }
  /* the walk rail ran past the right edge ("Leave" was cut): five dots and two buttons now fit 360 px */
  /* (the rail centres itself with left: 50% and a transform; only its contents shrink) */
  .walk-rail { gap: 0; max-width: calc(100vw - 16px); }
  .walk-rail .dot { width: 38px; }
  .walk-rail .wbtn { padding: 0 11px; margin-left: 4px; }
}

/* ---- 4. Panels in the site's new language: squarer, deeper, a gold hairline on top ---- */
.panel.glass {
  border-radius: 6px;
  border-color: rgba(233, 199, 102, .2);
  background: rgba(13, 10, 34, .97);
  box-shadow: 0 2px 0 rgba(233, 199, 102, .85) inset, 0 40px 90px -30px rgba(0, 0, 0, .75);
}
.panel.glass h2 { letter-spacing: .01em; }
.panel.glass .shop-photo img { width: 100%; height: auto; border-radius: 3px; display: block; }
.panel.glass .shop-photo { margin-inline: 0; }

/* ---- 5. Flower labels: quieter glass, a hairline in gold, easier to hit ---- */
.elx-tag {
  background: rgba(13, 10, 34, .66); border: 1px solid rgba(233, 199, 102, .28);
  min-height: 44px; transition: border-color .25s ease, background .25s ease, translate .2s ease-out;
}
.elx-tag:hover, .elx-tag:focus-visible { border-color: rgba(233, 199, 102, .85); background: rgba(13, 10, 34, .86); }

/* ---- 6. Caption: no box, the line sits on the water with a soft shade under it ---- */
#narr { background: none; box-shadow: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
#narr::before {
  content: ""; position: absolute; inset: -28px -40px -24px -40px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(6, 8, 20, .5), rgba(6, 8, 20, 0));
}
#narr p { text-shadow: 0 1px 14px rgba(0, 0, 0, .7); }

/* ---- 7. Dock (all sizes): squarer, hairline, pressed state in gold ---- */
#dock button { border-radius: 8px; }
@media (min-width: 761px) { #dock button { border-radius: 6px; } }

/* ==========================================================================
   Round 13 (13 Nov): E typefaces, F elixir card, D first-visit hint
   ========================================================================== */

/* ---- E. The site's typefaces: Cormorant Garamond for titles, Newsreader for reading.
        Both are already served by the site (/assets/fonts/fonts.css). Cormorant
        runs smaller than Marcellus at the same size, so titles step up. ---- */
:root {
  --display: "Cormorant Garamond", "Marcellus", Georgia, serif;
  --serif: "Newsreader", "EB Garamond", Georgia, "Times New Roman", serif;
}
#brand h1 { font-size: 30px; font-weight: 500; letter-spacing: .005em; }
#brand p { font-size: 15px; }
#veil h2 { font-size: 40px; font-weight: 500; letter-spacing: .005em; }
#veil p { font-size: 19px; }
.panel.glass h2 { font-size: 27px; font-weight: 500; line-height: 1.1; }
.panel.glass h3 { font-size: 26px; font-weight: 500; line-height: 1.12; }
.panel.glass h4 { font-size: 21px; font-weight: 500; }
.elx-tag { font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: .01em; }
.elx-tag small, .elx-tag span { font-family: var(--ui); }
#narr p { font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(22px, 2.3vw, 31px); line-height: 1.18; }
@media (max-width: 760px) {
  #brand h1 { font-size: 24px; }
  .panel.glass h2 { font-size: 25px; }
  .panel.glass h3 { font-size: 24px; }
}

/* ---- F. The elixir card as a product moment: the whole bottle, and the way
        home always in reach at the foot of the panel. ---- */
/* (pond-luxe.js moves each button to the end of its elixir's section, so it sticks for the whole section) */
.panel.glass details.elx > .shop-cta { margin: 18px 0 6px; }
.panel.glass .shop-photo { max-height: none; aspect-ratio: 4 / 5; border: 0; border-radius: 3px; margin: 10px 0 16px; }
.panel.glass .shop-cta {
  order: 99; position: sticky; bottom: -1px; z-index: 3;
  margin: 18px -2px 0; padding: 15px 20px; border-radius: 4px;
  background: #CFA23A; color: #1A0F48; font-size: 15px;
  box-shadow: 0 -18px 22px -10px rgba(13, 10, 34, .96), 0 10px 26px -12px rgba(0, 0, 0, .8);
  transition: background .2s ease;
}
.panel.glass .shop-cta:hover { filter: none; background: #E9C766; }
.panel.glass .shop-cta span { opacity: 1; font-weight: 600; font-variant-numeric: lining-nums tabular-nums; }

/* ---- D. First visit only (pond-luxe.js adds .pl-first until the first touch):
        each sign's label breathes a gold ring in turn, and the hint stays. ---- */
body.pl-first #hint.gone { opacity: 1; }
body.pl-first #hint { color: #F4F0E6; border: 1px solid rgba(233, 199, 102, .45); }
body.pl-first .elx-tag { border-color: rgba(233, 199, 102, .7); }
@media (prefers-reduced-motion: no-preference) {
  body.pl-first .elx-tag { animation: pl-ring 3.2s ease-out infinite; }
  body.pl-first .elx-tag:nth-of-type(2) { animation-delay: .5s; }
  body.pl-first .elx-tag:nth-of-type(3) { animation-delay: 1s; }
  body.pl-first .elx-tag:nth-of-type(4) { animation-delay: 1.5s; }
  body.pl-first .elx-tag:nth-of-type(5) { animation-delay: 2s; }
  @keyframes pl-ring {
    0%   { box-shadow: 0 0 0 0 rgba(233, 199, 102, .65); }
    45%  { box-shadow: 0 0 0 14px rgba(233, 199, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(233, 199, 102, 0); }
  }
}
