/**
 * LoLo & Fuzzle — lookbook / artbook
 * Character design plates float on the wash. No cards, frames, or boxes.
 * The seven pliegos read as an open manuscript, not a magazine chrome.
 */

.nar-lolo {
  overflow-x: hidden;
  overflow-y: visible;
  background:
    radial-gradient(ellipse 72% 52% at 10% 14%, rgb(242 60 158 / 0.11) 0%, transparent 58%),
    radial-gradient(ellipse 58% 46% at 92% 22%, rgb(196 230 0 / 0.15) 0%, transparent 56%),
    radial-gradient(ellipse 48% 42% at 78% 86%, rgb(242 60 158 / 0.07) 0%, transparent 62%),
    radial-gradient(ellipse 42% 36% at 18% 78%, rgb(255 232 0 / 0.14) 0%, transparent 55%),
    var(--citrus-cream);
}

.nar-lolo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, var(--citrus-cream) 0%, transparent 8%),
    linear-gradient(0deg, var(--citrus-cream) 0%, transparent 8%);
}

.nar-lolo > .nar-container,
.nar-lolo > .lolo-folio,
.nar-lolo > .lolo-book-wrap {
  position: relative;
  z-index: 1;
}

/* ---------------------------------------------------------------- masthead */

.nar-lolo__header {
  text-align: center;
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
}

.nar-lolo .nar-project-tag--lolo {
  background: transparent;
  color: var(--citrus-fuchsia);
  padding: 0;
  letter-spacing: 0.28em;
  font-size: 0.6875rem;
}

.nar-lolo .nar-universe-title {
  font-family: var(--ab-display, 'Playfair Display', Georgia, serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2.7rem, 7.5vw, 5.15rem);
  letter-spacing: -0.035em;
  line-height: 0.94;
  color: var(--citrus-fuchsia);
  margin: 0.2rem 0 0.45rem;
}

.nar-lolo__header .nar-slogan {
  color: #1a1a1a;
  margin-bottom: 0.85rem;
}

.nar-lolo__header .nar-body {
  margin: 0 auto;
  color: #3f3f3f;
}

.lolo-index {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.35rem;
  margin: 1.65rem auto 0;
  padding: 0;
  list-style: none;
}

.lolo-index a {
  font-family: var(--ab-sans, 'Inter', sans-serif);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: #525252;
}

.lolo-index a:hover,
.lolo-index a:focus-visible {
  color: var(--citrus-fuchsia);
}

/* ---------------------------------------------------------------- chapters */

.lolo-chapter {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto clamp(2rem, 5vw, 3.25rem);
}

.lolo-chapter__kicker {
  margin: 0 0 0.45rem;
  font-family: var(--ab-sans, 'Inter', sans-serif);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--citrus-fuchsia);
}

.lolo-chapter__title {
  margin: 0;
  font-family: var(--ab-display, 'Playfair Display', Georgia, serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #111;
}

.lolo-chapter .nar-slogan {
  margin: 0.4rem 0 0.7rem;
  color: #111;
}

.lolo-chapter .nar-body {
  margin: 0 auto;
  color: #404040;
}

/* ---------------------------------------------------------------- character plates */

.lolo-folio {
  width: min(92rem, 100%);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 7vw, 5.75rem);
}

.lolo-plate {
  margin: 0;
  width: 100%;
}

.lolo-plate--overlay {
  width: calc(100% + clamp(2.5rem, 14vw, 10rem));
  margin-left: calc(clamp(1.25rem, 7vw, 5rem) * -1);
  margin-right: calc(clamp(1.25rem, 7vw, 5rem) * -1);
}

.lolo-stage {
  position: relative;
}

.lolo-plate__trigger {
  all: unset;
  display: block;
  width: 100%;
  cursor: zoom-in;
  background: transparent;
  line-height: 0;
}

.lolo-plate__trigger:focus-visible {
  outline: 2px solid var(--citrus-fuchsia);
  outline-offset: 8px;
}

.lolo-plate img {
  display: block;
  width: 100%;
  height: auto;
  background: transparent;
  filter: drop-shadow(0 18px 28px rgb(38 32 24 / 0.16));
  transition: filter 0.35s ease, transform 0.35s ease;
}

.lolo-plate__trigger:hover img,
.lolo-plate__trigger:focus-visible img {
  transform: translateY(-4px);
  filter: drop-shadow(0 26px 36px rgb(38 32 24 / 0.2));
}

.lolo-plate--overlay .lolo-plate__trigger:hover img,
.lolo-plate--overlay .lolo-plate__trigger:focus-visible img {
  transform: none;
}

/* Transparent live type sitting on the painted field */
.lolo-float {
  position: absolute;
  z-index: 3;
  background: transparent;
  pointer-events: none;
}

.lolo-float h4,
.lolo-float p {
  margin: 0;
  pointer-events: none;
}

.lolo-float p {
  font-family: var(--ab-script, 'Caveat', cursive);
  font-weight: 600;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  color: #241c18;
}

.lolo-plate.lolo-plate--overlay.lolo-plate--highlights,
.lolo-plate.lolo-plate--overlay.lolo-plate--sheet {
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: 100vw;
  margin-left: -50vw;
  margin-right: 0;
}

.lolo-plate--highlights .lolo-stage {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  container-type: inline-size;
}

.lolo-plate--highlights .lolo-plate__trigger {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
}

.lolo-plate--highlights img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

.lolo-plate--highlights .lolo-float {
  inset: 0;
  display: block;
  padding: 0;
}

.lolo-plate--highlights .lolo-float__pair {
  display: block;
}

.lolo-plate--highlights .lolo-float__copy {
  position: absolute;
  z-index: 2;
  font-size: 1.55cqw;
  line-height: 1.38;
}

.lolo-plate--highlights .lolo-float__copy:first-child {
  left: 17.25%;
  bottom: 8.2%;
  width: 31%;
  font-size: 1.72cqw;
}

.lolo-plate--highlights .lolo-float__copy:last-child {
  right: 16.4%;
  bottom: 9.6%;
  width: 28%;
  font-size: 1.72cqw;
  text-align: right;
  text-align-last: right;
  text-justify: auto;
  hyphens: none;
}

.lolo-float__pair {
  display: grid;
  grid-template-columns: minmax(11rem, 22.5rem) minmax(11rem, 20rem);
  justify-content: space-between;
  gap: 1.5rem 2rem;
  align-items: end;
}

.lolo-plate--sheet .lolo-stage {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  container-type: inline-size;
}

.lolo-plate--sheet .lolo-stage__lock {
  position: absolute;
  inset: 0;
}

.lolo-plate--sheet .lolo-plate__trigger {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
}

.lolo-plate--sheet img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 88% center;
}

.lolo-plate--sheet .lolo-float {
  left: 4%;
  top: 50%;
  transform: translateY(-50%);
  width: 42%;
}

.lolo-plate--sheet .lolo-float p {
  font-size: 1.45cqw;
  line-height: 1.36;
}

.lolo-plate--sheet .lolo-float p + p {
  margin-top: 0.85em;
}

.lolo-glints {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.lolo-glint {
  position: absolute;
  left: var(--gx);
  top: var(--gy);
  width: 0.7rem;
  height: 0.7rem;
  transform: translate(-50%, -50%);
  animation: lolo-twinkle 2.8s ease-in-out infinite;
  animation-delay: var(--gd, 0s);
}

.lolo-glint::before,
.lolo-glint::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  clip-path: polygon(50% 0%, 57% 43%, 100% 50%, 57% 57%, 50% 100%, 43% 57%, 0% 50%, 43% 43%);
  filter:
    drop-shadow(0 0 4px #fff)
    drop-shadow(0 0 10px rgb(255 255 255 / 0.9));
}

.lolo-glint::after {
  transform: rotate(20deg) scale(0.5);
  opacity: 0.7;
}

.lolo-glint--lg {
  width: 1rem;
  height: 1rem;
}

.lolo-glint--sm {
  width: 0.42rem;
  height: 0.42rem;
}

@keyframes lolo-twinkle {
  0%, 100% { opacity: 0.22; transform: translate(-50%, -50%) scale(0.7) rotate(0deg); }
  40% { opacity: 1; transform: translate(-50%, -50%) scale(1.18) rotate(12deg); }
  70% { opacity: 0.38; transform: translate(-50%, -50%) scale(0.85) rotate(-8deg); }
}

.lolo-plate__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem 0.85rem;
  margin: 1rem 0 0;
  text-align: center;
}

.lolo-plate__index {
  font-family: var(--ab-script, 'Caveat', cursive);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--citrus-fuchsia);
  line-height: 1;
}

.lolo-plate__title {
  font-family: var(--ab-display, 'Playfair Display', Georgia, serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: #111;
}

.lolo-plate__meta {
  flex-basis: 100%;
  font-family: var(--ab-sans, 'Inter', sans-serif);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #6b6b6b;
}

/* ---------------------------------------------------------------- manuscript book */

.lolo-book-wrap {
  width: min(46rem, 92vw);
  margin: clamp(3.25rem, 7vw, 5.25rem) auto 0;
  padding: 0 1.75rem;
}

.lolo-book {
  margin: 0;
}

.lolo-book__stage {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(0.35rem, 1.5vw, 1rem);
}

.lolo-book__nav {
  appearance: none;
  background: none;
  border: none;
  padding: 0.5rem 0.15rem;
  font-family: var(--ab-sans, 'Inter', sans-serif);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--citrus-fuchsia);
  cursor: pointer;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.lolo-book__nav:hover,
.lolo-book__nav:focus-visible {
  color: #111;
}

.lolo-book__nav:focus-visible {
  outline: 2px solid var(--citrus-fuchsia);
  outline-offset: 4px;
}

.lolo-book__nav:disabled {
  opacity: 0.22;
  cursor: default;
}

.lolo-book__spread {
  margin: 0;
  position: relative;
  z-index: 1;
}

/* Stacked leaves of an open book, left and right */
.lolo-book__spread::before,
.lolo-book__spread::after {
  content: '';
  position: absolute;
  top: 1.4%;
  bottom: 1.4%;
  width: 0.72rem;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      90deg,
      #f7f0e4 0 2px,
      #fffdf8 2px 4px,
      #efe4d2 4px 5px
    );
}

.lolo-book__spread::before {
  left: -0.62rem;
  border-radius: 3px 0 0 3px;
  box-shadow:
    inset -1px 0 0 rgb(38 32 24 / 0.08),
    -2px 0 0 #f4ead8,
    -4px 0 0 #efe3cf,
    -6px 0 0 #e8d8be,
    -8px 0 0 #dfccb0,
    -10px 0 0 #d6c09e,
    -6px 8px 16px rgb(38 32 24 / 0.14);
}

.lolo-book__spread::after {
  right: -0.62rem;
  border-radius: 0 3px 3px 0;
  box-shadow:
    inset 1px 0 0 rgb(38 32 24 / 0.08),
    2px 0 0 #f4ead8,
    4px 0 0 #efe3cf,
    6px 0 0 #e8d8be,
    8px 0 0 #dfccb0,
    10px 0 0 #d6c09e,
    6px 8px 16px rgb(38 32 24 / 0.14);
}

.lolo-book__page {
  all: unset;
  display: block;
  position: relative;
  width: 100%;
  overflow: hidden;
  cursor: zoom-in;
  filter:
    drop-shadow(0 16px 28px rgb(38 32 24 / 0.16))
    drop-shadow(0 1px 0 rgb(38 32 24 / 0.04));
}

.lolo-book__page:focus-visible {
  outline: 2px solid var(--citrus-fuchsia);
  outline-offset: 6px;
}

.lolo-book__img {
  display: block;
  width: 100%;
  height: auto;
  background: transparent;
}

/* Gutter of an open book — sits on the painting, not a chrome frame */
.lolo-book__gutter {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      transparent 46%,
      rgb(38 32 24 / 0.05) 49.2%,
      rgb(38 32 24 / 0.16) 50%,
      rgb(38 32 24 / 0.05) 50.8%,
      transparent 54%
    );
}

.lolo-book__rail {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.4rem 1.1rem;
  margin: 0.95rem 0 1.1rem;
  text-align: center;
}

.lolo-book__folio {
  margin: 0;
  font-family: var(--ab-script, 'Caveat', cursive);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--citrus-fuchsia);
  line-height: 1;
}

.lolo-book__caption {
  margin: 0;
  max-width: 42rem;
  font-family: var(--ab-sans, 'Inter', sans-serif);
  font-size: 0.875rem;
  line-height: 1.55;
  color: #404040;
}

.lolo-book__thumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 0.45rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.lolo-book__thumb {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  width: clamp(2.85rem, 5.4vw, 4.1rem);
  cursor: pointer;
  opacity: 0.48;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.lolo-book__thumb img {
  display: block;
  width: 100%;
  height: auto;
  background: transparent;
  filter: drop-shadow(0 8px 14px rgb(38 32 24 / 0.12));
}

.lolo-book__thumb[aria-current="true"] {
  opacity: 1;
  transform: translateY(-3px);
}

.lolo-book__thumb:hover,
.lolo-book__thumb:focus-visible {
  opacity: 1;
}

.lolo-book__thumb:focus-visible {
  outline: 2px solid var(--citrus-fuchsia);
  outline-offset: 4px;
}

/* ---------------------------------------------------------------- close */

.nar-lolo__cta {
  text-align: center;
  margin-top: clamp(3.25rem, 7vw, 5.5rem);
  padding-top: clamp(1.75rem, 4vw, 2.75rem);
}

.nar-lolo__cta .nar-slogan {
  color: #111;
  margin-bottom: 0.85rem;
}

.nar-lolo__cta .nar-body {
  margin: 0 auto 1.75rem;
  color: #404040;
}

@media (max-width: 900px) {
  .lolo-plate--overlay {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .lolo-plate.lolo-plate--overlay.lolo-plate--highlights,
  .lolo-plate.lolo-plate--overlay.lolo-plate--sheet {
    left: 50%;
    width: 100vw;
    max-width: 100vw;
    margin-left: -50vw;
    margin-right: 0;
  }

  .lolo-plate--highlights .lolo-stage {
    min-height: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
  }

  .lolo-plate--highlights .lolo-plate__trigger {
    position: absolute;
    inset: 0;
  }

  .lolo-plate--highlights img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 58%;
  }

  .lolo-plate--sheet .lolo-stage {
    min-height: 0;
    aspect-ratio: 3 / 2;
    overflow: hidden;
  }

  .lolo-plate--sheet .lolo-plate__trigger {
    position: absolute;
    inset: 0;
  }

  .lolo-plate--sheet img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 88% center;
  }

  .lolo-float__pair {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
}

@media (max-width: 720px) {
  .lolo-book__stage {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "spread spread"
      "prev next";
    gap: 0.85rem 1rem;
  }

  .lolo-book__spread { grid-area: spread; }

  .lolo-book__nav {
    writing-mode: horizontal-tb;
    transform: none;
    letter-spacing: 0.18em;
  }

  .lolo-book__nav--prev { grid-area: prev; justify-self: start; }
  .lolo-book__nav--next { grid-area: next; justify-self: end; }
}

@media (prefers-reduced-motion: reduce) {
  .lolo-plate img,
  .lolo-plate__trigger:hover img,
  .lolo-plate__trigger:focus-visible img,
  .lolo-book__thumb,
  .lolo-book__thumb[aria-current="true"] {
    transform: none;
    transition: none;
  }

  .lolo-glint {
    animation: none;
    opacity: 0.7;
  }
}

.nar-lightbox__stage.lolo-plate--highlights {
  width: min(94vw, calc(85vh * 16 / 9));
  max-width: 94vw;
  max-height: 85vh;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  container-type: inline-size;
  margin: 0 auto;
}

.nar-lightbox__stage.lolo-plate--highlights .nar-lightbox__image {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center 58%;
}

.nar-lightbox__stage.lolo-plate--sheet {
  width: min(94vw, calc(85vh * 3 / 2));
  max-width: 94vw;
  max-height: 85vh;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  container-type: inline-size;
  margin: 0 auto;
}

.nar-lightbox__stage.lolo-plate--sheet .nar-lightbox__image {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: 88% center;
}
