/* MNK Baby Katalog — print lookbook (A4 spreads) */

:root {
  /* Coherent print system: warm charcoal plates + blush paper cells */
  --lb-ink: #1a1617;
  --lb-plate: #241f21;
  --lb-plate-soft: #2e282a;
  --lb-gutter: #1c1819;
  --lb-paper: #f5eee9;
  --lb-paper-deep: #ebe2dc;
  --lb-blush: #f0d6dd;
  --lb-sage-mist: rgba(69, 104, 88, 0.08);
  --lb-rose-mist: rgba(178, 79, 100, 0.1);
  --lb-rose: #f0d6dd;
  --lb-cream: #faf3f0;
  --lb-white: #fff;
  --lb-gutter-w: 8px;
  --lb-display: "Bebas Neue", "Oswald", Impact, sans-serif;
  --lb-body: "Manrope", system-ui, sans-serif;
  /* Soft paper grain (print-safe) */
  --lb-grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* Hide site chrome — pure editorial */
.page-lookbook .site-header,
.page-lookbook .site-footer,
.page-lookbook .skip-link {
  display: none !important;
}

.page-lookbook {
  background: var(--lb-ink);
  min-height: 100vh;
}

.page-lookbook .wrap {
  max-width: none;
  margin: 0;
  padding: 0;
}

/* —— Toolbar (screen only) —— */
.lb-toolbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1.1rem;
  background: rgba(26, 22, 23, 0.94);
  border-bottom: 1px solid rgba(240, 214, 221, 0.1);
  font-family: var(--lb-body);
}

.lb-toolbar-back {
  color: rgba(250, 243, 240, 0.72);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.lb-toolbar-back:hover { color: var(--lb-cream); }

.lb-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lb-toolbar-hint {
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(250, 243, 240, 0.38);
}

.lb-print-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: var(--lb-body);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 1.05rem;
  color: #1a0a0c;
  background: var(--lb-rose);
}

.lb-print-btn:hover { filter: brightness(1.07); }

.lb-missing {
  padding: 0.55rem 1.1rem;
  font-size: 0.75rem;
  font-weight: 650;
  background: var(--lb-blush);
  color: #1a0a0c;
  font-family: var(--lb-body);
}

/* —— Magazine desk —— */
.lookbook {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.25rem;
  padding: 1.75rem 0.75rem 4rem;
  background:
    radial-gradient(ellipse 55% 35% at 50% 0%, var(--lb-rose-mist), transparent 58%),
    radial-gradient(ellipse 40% 28% at 85% 70%, var(--lb-sage-mist), transparent 55%),
    linear-gradient(180deg, #201b1d 0%, var(--lb-ink) 45%, #171314 100%);
  font-family: var(--lb-body);
  color: var(--lb-white);
}

/* Open book = two A4 leaves side by side */
.lb-sheet--open {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(98vw, 1360px);
  aspect-ratio: 420 / 297;
  background: var(--lb-plate);
  box-shadow:
    0 0 0 1px rgba(250, 243, 240, 0.06),
    0 28px 70px rgba(0, 0, 0, 0.55);
}

/* Physical book spine / gutter crease */
.lb-sheet--open::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 28px;
  transform: translateX(-50%);
  z-index: 8;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(26, 22, 23, 0.28) 35%,
    rgba(26, 22, 23, 0.48) 50%,
    rgba(26, 22, 23, 0.28) 65%,
    rgba(0, 0, 0, 0) 100%
  );
}

/* Solo cover / back */
.lb-sheet--solo {
  width: min(49vw, 680px);
  aspect-ratio: 210 / 297;
  background: var(--lb-plate);
  box-shadow:
    0 0 0 1px rgba(250, 243, 240, 0.06),
    0 28px 70px rgba(0, 0, 0, 0.55);
}

@media (max-width: 820px) {
  .lb-sheet--open {
    grid-template-columns: 1fr;
    width: min(92vw, 420px);
    aspect-ratio: auto;
  }

  .lb-sheet--open .lb-leaf {
    aspect-ratio: 210 / 297;
  }

  .lb-sheet--solo {
    width: min(92vw, 420px);
  }
}

/* Single leaf — soft charcoal plate + grain */
.lb-leaf {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 70% at 50% 40%, transparent 40%, rgba(26, 22, 23, 0.22) 100%),
    linear-gradient(165deg, var(--lb-plate-soft) 0%, var(--lb-plate) 55%, #1e191b 100%);
  min-height: 0;
  height: 100%;
}

.lb-leaf::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.045;
  background-image: var(--lb-grain);
  background-size: 180px 180px;
  mix-blend-mode: soft-light;
}

.lb-leaf-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.lb-leaf-inner--bleed {
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, var(--lb-paper) 0%, var(--lb-paper-deep) 100%);
}

/* Product hero: inset so full outfit clears theme band */
.lb-leaf-inner--bleed > .lb-fill {
  inset: 3% 4% 3% 4%;
}

.lb-leaf-inner--bleed:has(.lb-theme) > .lb-fill,
.lb-leaf-inner--bleed:has(.lb-mnk) > .lb-fill {
  inset: 3% 4% 16% 4%;
}

.lb-leaf-inner--bleed:has(.lb-theme) .lb-theme {
  bottom: 3.5%;
  left: 6%;
  right: 6%;
  text-shadow: none;
}

.lb-leaf-inner--grid {
  background: var(--lb-gutter);
  display: flex;
  flex-direction: column;
}

/* Full-bleed media — warm paper letterbox behind contain */
.lb-fill {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  background:
    radial-gradient(ellipse 75% 65% at 50% 42%, #faf4f0 0%, var(--lb-paper) 55%, var(--lb-paper-deep) 100%);
  text-decoration: none;
  color: inherit;
}

/* Full garment visible — letterbox on refined paper, never crop outfits */
.lb-fill img,
.lb-cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  filter: contrast(1.04) saturate(1.05);
}

/* Collage cells: keep a margin so dresses aren't edge-clipped */
.lb-cell img {
  position: absolute;
  inset: 5%;
  width: 90%;
  height: 90%;
}

.lb-cell::after {
  content: none;
}

/* Cover stays letterboxed on paper ground */
.lb-fill--cover {
  background:
    radial-gradient(ellipse 80% 70% at 50% 40%, #faf4f0 0%, var(--lb-paper) 60%, #e8ddd6 100%);
}

.lb-fill--cover img {
  object-fit: contain;
  object-position: center center;
}

/* Chapter: deep charcoal with soft rose/sage wash */
.lb-fill--dark {
  background:
    radial-gradient(ellipse 70% 55% at 30% 40%, rgba(178, 79, 100, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(69, 104, 88, 0.1), transparent 55%),
    linear-gradient(160deg, #2a2326 0%, var(--lb-ink) 100%);
}

.lb-dim {
  filter: brightness(0.34) saturate(0.7) contrast(1.05) !important;
  object-fit: contain !important;
  transform: none;
  opacity: 0.85;
}

.lb-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.lb-veil--cover {
  background: linear-gradient(
    180deg,
    rgba(26, 22, 23, 0.42) 0%,
    transparent 28%,
    transparent 55%,
    rgba(26, 22, 23, 0.68) 100%
  );
}

.lb-veil--chapter {
  background:
    radial-gradient(ellipse 90% 80% at 50% 50%, rgba(26, 22, 23, 0.35), rgba(26, 22, 23, 0.72));
}

.lb-veil--back {
  background: linear-gradient(
    180deg,
    rgba(26, 22, 23, 0.45) 0%,
    transparent 38%,
    rgba(26, 22, 23, 0.55) 100%
  );
}

.lb-ph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: rgba(26, 22, 23, 0.35);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--lb-paper-deep);
}

/* —— Cover typography —— */
.lb-cover-top,
.lb-cover-bot {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 3;
  text-align: center;
  padding: 0 8%;
  pointer-events: none;
}

.lb-cover-top { top: 6.5%; }
.lb-cover-bot { bottom: 7%; }

.lb-cover-kicker {
  margin: 0;
  font-family: var(--lb-display);
  font-size: clamp(1.6rem, 4.2vw, 2.6rem);
  font-weight: 400;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  line-height: 1;
  color: #fff;
}

.lb-cover-season {
  margin: 0.4rem 0 0;
  font-size: clamp(0.65rem, 1.4vw, 0.85rem);
  font-weight: 650;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.lb-cover-brand {
  margin: 0;
  font-family: var(--lb-display);
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 0.95;
  color: #fff;
}

.lb-cover-sub {
  margin: 0.45rem 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
}

/* —— Chapter —— */
.lb-chapter {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10% 9%;
  pointer-events: none;
}

.lb-chapter-no {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  color: var(--lb-rose);
}

.lb-chapter-title {
  margin: 0;
  font-family: var(--lb-display);
  font-size: clamp(3rem, 7.2vw, 5.2rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.9;
  color: var(--lb-cream);
  text-transform: uppercase;
  max-width: 9ch;
}

.lb-chapter-blurb {
  margin: 0.9rem 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.7);
  max-width: 18rem;
}

.lb-chapter-brand {
  margin: 1.6rem 0 0;
  font-family: var(--lb-display);
  font-size: 0.95rem;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.4);
}

/* —— Soft cream / rose theme titles —— */
.lb-theme {
  position: absolute;
  z-index: 6;
  left: 5%;
  right: 5%;
  bottom: 4%;
  margin: 0;
  font-family: var(--lb-display);
  font-size: clamp(1.85rem, 4.2vw, 3.1rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--lb-cream);
  pointer-events: none;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.55);
}

.lb-mnk {
  position: absolute;
  z-index: 6;
  right: 5%;
  bottom: 4%;
  margin: 0;
  font-family: var(--lb-display);
  font-size: clamp(2.6rem, 5.8vw, 4.2rem);
  letter-spacing: 0.02em;
  color: var(--lb-cream);
  line-height: 1;
  pointer-events: none;
  opacity: 0.95;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.4);
}

/* —— Soft charcoal gutters + paper cells —— */
.lb-g {
  --g: clamp(9px, 1.35vw, 14px);
  flex: 1;
  display: grid;
  gap: var(--g);
  padding: var(--g);
  padding-bottom: calc(var(--g) + 2.8rem);
  background: var(--lb-gutter);
  min-height: 0;
  box-sizing: border-box;
}

.lb-g--empty {
  flex: 1;
  background: var(--lb-gutter);
}

.lb-cell {
  position: relative;
  display: block;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 50% 42%, #faf4f0 0%, var(--lb-paper) 55%, var(--lb-paper-deep) 100%);
  min-height: 0;
  text-decoration: none;
}

.lb-cell:hover img {
  opacity: 0.92;
}

.lb-cell img {
  transition: opacity 0.35s ease;
}

/* 2 vertical */
.lb-g--2 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
}

/* asym 3: wide top + 2 below */
.lb-g--3 {
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: 1fr 1.15fr;
}

.lb-g--3 .lb-c1 { grid-column: 1 / -1; grid-row: 1; }
.lb-g--3 .lb-c2 { grid-column: 1; grid-row: 2; }
.lb-g--3 .lb-c3 { grid-column: 2; grid-row: 2; }

/* asym 4 collage */
.lb-g--4 {
  grid-template-columns: 1.25fr 0.9fr 0.9fr;
  grid-template-rows: 0.95fr 1.2fr;
}

.lb-g--4 .lb-c1 { grid-column: 1 / -1; grid-row: 1; }
.lb-g--4 .lb-c2 { grid-column: 1; grid-row: 2; }
.lb-g--4 .lb-c3 { grid-column: 2; grid-row: 2; }
.lb-g--4 .lb-c4 { grid-column: 3; grid-row: 2; }

/* —— Detail orbs —— */
.lb-orb {
  position: absolute;
  z-index: 7;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--lb-plate);
  box-shadow: 0 8px 24px rgba(26, 22, 23, 0.45);
  background: var(--lb-paper);
  pointer-events: none;
}

.lb-orb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: contrast(1.06) saturate(1.08);
}

.lb-orb--1 {
  width: 26%;
  aspect-ratio: 1;
  left: 5%;
  bottom: 11%;
}

.lb-orb--2 {
  width: 18%;
  aspect-ratio: 1;
  left: 26%;
  bottom: 5%;
}

/* —— Back cover —— */
.lb-back-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  padding: 4% 5%;
  background: rgba(26, 22, 23, 0.82);
  text-align: center;
}

.lb-back-bar p {
  margin: 0;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.lb-back-web {
  margin-top: 0.3rem !important;
  font-family: var(--lb-display) !important;
  font-size: clamp(1rem, 2.8vw, 1.35rem) !important;
  font-weight: 400 !important;
  letter-spacing: 0.14em !important;
  color: #fff !important;
}

.lb-back-badge {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 5%;
  transform: translateX(-50%);
  width: min(84%, 240px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 35%, #2e282a 0%, rgba(26, 22, 23, 0.94) 70%);
  border: 2px solid rgba(240, 214, 221, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12%;
  box-sizing: border-box;
  overflow: hidden;
}

.lb-back-kicker {
  margin: 0;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--lb-rose);
}

.lb-back-badge h2 {
  margin: 0.3rem 0 0;
  font-family: var(--lb-display);
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1;
  color: #fff;
}

.lb-back-season {
  margin: 0.3rem 0 0;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.lb-back-contact {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  width: 100%;
  display: grid;
  gap: 0.22rem;
}

.lb-back-contact li {
  font-size: 0.55rem;
  font-weight: 600;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.88);
  word-break: break-word;
}

.lb-back-addr {
  font-size: 0.48rem !important;
  color: rgba(255, 255, 255, 0.65) !important;
}

/* —— Print / PDF —— */
@page {
  size: A4 portrait;
  margin: 0;
}

@media print {
  html,
  body.page-lookbook {
    background: var(--lb-ink) !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .page-lookbook .site-header,
  .page-lookbook .site-footer,
  .page-lookbook .skip-link,
  .lb-toolbar,
  .lb-missing {
    display: none !important;
  }

  .page-lookbook .wrap {
    margin: 0 !important;
    padding: 0 !important;
  }

  .lookbook {
    display: block;
    padding: 0 !important;
    gap: 0 !important;
    background: var(--lb-ink) !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .lb-sheet--open,
  .lb-sheet--solo {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    aspect-ratio: auto !important;
    box-shadow: none !important;
    background: var(--lb-plate) !important;
  }

  /* Screen-only book spine: left:50% overlay paints a black stripe through
     each A4 leaf once the open spread stacks for print/PDF. */
  .lb-sheet--open::after {
    content: none !important;
    display: none !important;
  }

  .lb-leaf {
    width: 210mm !important;
    height: 297mm !important;
    page-break-after: always;
    break-after: page;
    page-break-inside: avoid;
    break-inside: avoid;
    box-shadow: none !important;
    border: 0 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .lb-leaf:last-child {
    page-break-after: auto;
  }

  .lb-sheet--open .lb-leaf {
    aspect-ratio: auto !important;
  }

  .lb-g {
    --g: 6mm;
    gap: 6mm;
    padding: 6mm;
    padding-bottom: 16mm;
  }

  .lb-theme {
    font-size: 28pt;
  }

  .lb-chapter-title {
    font-size: 48pt;
  }

  .lb-cover-kicker {
    font-size: 28pt;
  }

  .lb-cover-brand {
    font-size: 36pt;
  }

  .lb-cell:hover img {
    opacity: 1 !important;
  }

  a {
    text-decoration: none !important;
    color: inherit !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lb-cell img { transition: none !important; }
}
