/* Creatures: the porthole. One list, one fixed window, one animal at a time. */

/* ---- Opening ------------------------------------------------------------- */
.opening-h1 { font-size: clamp(2.75rem, 1rem + 6vw, 7rem); }

/* ---- The list ------------------------------------------------------------ */
.roll-tank { padding-top: clamp(1.25rem, 3vh, 2rem); }
.roll { margin-top: clamp(1.5rem, 4vh, 3rem); }
.roll-list { list-style: none; margin: 0; padding: 0; grid-row: 2; border-bottom: var(--hair) solid var(--line); }
.roll-list li { border-top: var(--hair) solid var(--line); }
.row-link {
  display: block; min-height: 2.75rem; padding: clamp(1rem, 2.4vh, 1.5rem) 0;
  color: var(--ink-dim); transition: color .4s var(--ease);
}
.row-name {
  display: block; font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.75rem, 1rem + 3.4vw, 4rem); line-height: 1.02; letter-spacing: -.02em;
  font-variation-settings: "SOFT" 100, "WONK" 1; text-wrap: balance; overflow-wrap: break-word;
}
.row-kind { display: block; margin-top: .55rem; }
.row-link:hover, .row-link:focus-visible, .row-link.is-on { color: var(--ink); }
.row-link.is-on .row-kind:not(.label--yellow) { color: var(--teal-lit); }

/* ---- The window: every picture is stacked, one is visible ----------------- */
.window {
  grid-row: 1; position: sticky; top: 0; z-index: 5;
  display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; align-items: center;
  padding: .75rem 0; background: var(--ground); border-bottom: var(--hair) solid var(--line);
}
.window-pane { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--shade); }
.window-pane::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse 78% 78% at 50% 45%, transparent 52%, var(--edge) 100%);
}
.window-pic { position: absolute; inset: 0; margin: 0; visibility: hidden; opacity: 0; }
.window-pic.is-on { visibility: visible; opacity: 1; transition: opacity var(--fade) var(--ease); }
.window-pic img { width: 100%; height: 100%; object-fit: cover; }

/* Captions share one slot; the others are visibility:hidden, never merely moved. */
.window-caps { display: grid; min-width: 0; }
.win-cap {
  grid-area: 1 / 1; align-self: start; justify-self: start; margin: 0;
  flex-wrap: wrap; visibility: hidden; opacity: 0; transform: rotate(-.8deg);
}
.win-cap.is-on { visibility: visible; opacity: 1; transition: opacity .5s var(--ease); }

@media (min-width: 56rem) {
  .roll-list { grid-row: 1; grid-column: 1 / span 5; }
  .window {
    grid-row: 1; grid-column: 8 / -1; align-self: start; top: 1.5rem; z-index: auto;
    display: block; padding: 0; background: none; border-bottom: 0;
  }
  .window-pane { width: min(100%, calc(100vh - 11rem)); width: min(100%, calc(100svh - 11rem)); }
  .window-caps { margin-top: 1.1rem; }
}

/* ---- Closing: deep shade ------------------------------------------------- */
.closing-copy { max-width: 100%; }
.closing .title { max-width: 30rem; }
.phone {
  display: inline-block; max-width: 100%; padding: .1em 0;
  font-family: var(--serif); font-size: clamp(1.75rem, .8rem + 4.2vw, 4.5rem); line-height: 1.05; letter-spacing: -.03em;
  font-variation-settings: "SOFT" 100, "WONK" 1; overflow-wrap: anywhere;
  text-decoration: underline; text-decoration-color: var(--teal-lit); text-decoration-thickness: var(--hair); text-underline-offset: .18em;
  transition: text-decoration-color .3s;
}
.phone:hover, .phone:focus-visible { text-decoration-color: var(--ink); }
.closing-note { display: block; max-width: 26rem; }
.closing a.closing-note { display: inline-flex; align-items: center; min-height: 2.75rem; }
