/* Type, rules and photographic framing are shared by the atelier's editorial pages. */
.edition-cover .ed-heading,
.collection-edition h1,
.jr-cover h1 {
  font-family: 'Renouve Geist', Manrope, Arial, sans-serif;
  font-weight: 430;
  font-kerning: normal;
}
.edition-cover .ed-heading em, .collection-edition h1 em, .jr-cover h1 em {
  font-family: 'Atelier Serif', Georgia, serif;
  font-synthesis: none;
}
.edition-cover .ed-kicker::before,
.collection-edition .collection-edition-kicker::before,
.jr-cover-type .journal-eyebrow::before {
  content: '';
  display: inline-block;
  flex: none;
  width: clamp(24px, 3.1vw, 55px);
  height: 1px;
  background: currentColor;
  vertical-align: middle;
}
.collection-edition .collection-edition-kicker::before,
.jr-cover-type .journal-eyebrow::before {
  margin-right: .9em;
}
.edition-cover .ed-action,
.collection-edition .collection-edition-primary,
.journal-invitation .journal-primary {
  border-radius: 2px;
  font-family: 'Renouve Geist', Arial, sans-serif;
  font-weight: 520;
  letter-spacing: .005em;
}
.edition-cover .edition-tab[aria-selected="true"]::after {height: 2px;}

:is(.rg-intro, .comb-atlas-head, .jr-intro, .optic-intro, .cc-intro) {
  position: relative;
  padding-top: clamp(20px, 2.4vw, 36px);
}
:is(.rg-intro, .comb-atlas-head, .jr-intro, .optic-intro, .cc-intro)::before {
  content: '';
  display: block;
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: #adada8;
  transform-origin: left center;
}
.rg-frame .rg-steps {gap: clamp(3px, .58vw, 10px);}
.atelier-lookbook .atelier-spread {border: 1px solid #d5d4ce;}
.atelier-lookbook .atelier-spread-copy {background: #f9f9f6;}
.journal-invitation {
  color: #242323;
  background: #f4f4f1;
  border-block: 1px solid #d9d8d2;
}
.jr-cover .jr-cover-art {border-inline-start: 1px solid #dad8d3;}
.journal-page .jr-device-note {
  padding-block: clamp(24px, 3.2vw, 48px);
  border-left: none;
  border-block: 1px solid #c6c2bf;
  background: #f5f4f2;
}

@media (min-width: 900px) {
  .edition-cover .ed-heading {letter-spacing: -.08em;}
  .edition-cover .ed-heading em {letter-spacing: -.055em;}
  .rg-ritual .rg-intro {margin-bottom: clamp(32px, 3.75vw, 68px);}
  .atelier-lookbook .atelier-section-head {margin-bottom: clamp(32px, 3.2vw, 57px);}
  .journal-invitation .ji-cover {aspect-ratio: 1.36;}
  .journal-invitation .ji-text h2 {max-width: 8ch; margin-block: 17px 24px;}
  .journal-invitation .ji-text h2 em {display:block;}
  .jr-cover .jr-cover-art img {object-position: 64% 51%;}
}
@media (max-width: 700px) {
  .jr-cover .jr-cover-art {border-inline-start: none;}
}

/* Only the photographed planes move. Text, controls and each camera's frame stay put. */
@media screen and (prefers-reduced-motion: no-preference) {
  .edition-stage[data-ct-near] .ed-portrait {
    translate: 0 calc(var(--ct-shift, 0px) * .68);
  }
  .edition-stage[data-ct-near] .ed-tool {
    translate: 0 calc(var(--ct-shift, 0px) * -.5);
  }
  .edition-stage[data-ct-near] :is(.ed-scenery, .ed-photo) {
    translate: 0 calc(var(--ct-shift, 0px) * .42);
    scale: var(--ct-scale, 1);
    transform-origin: center;
  }
  .collection-edition-photo[data-ct-near] .collection-edition-stage {
    translate: 0 calc(var(--ct-shift, 0px) * -.30);
    scale: var(--ct-scale, 1);
    transform-origin: 50% 62%;
  }
  :is(.jr-cover-art, .ji-cover)[data-ct-near] picture {
    translate: 0 calc(var(--ct-shift, 0px) * .58);
    scale: 1.085;
  }

  /* Pins and labels live inside the photographic plane and travel with it. */
  .atelier-photo[data-ct-near] .atelier-image-plane {
    transform: translateY(calc(var(--ct-shift, 0px) * .42)) scale(1.055);
  }
  @supports (width: 1cqw) {
    .atelier-photo[data-ct-near] .atelier-image-plane {
      transform: translate(-50%, -50%) translateY(calc(var(--ct-shift, 0px) * .42)) scale(1.055);
    }
  }

  [data-ct-open]::before {
    animation: ct-rule-open 920ms cubic-bezier(.15,.64,.22,1) both;
  }
  [data-ct-open] h2 {
    animation: ct-title-ink 680ms 70ms cubic-bezier(.16,.71,.24,1) backwards;
  }
  .rg-steps[data-ct-print] .rg-swatch {
    animation: ct-print-open 720ms cubic-bezier(.14,.66,.23,1) backwards;
  }
  .rg-steps[data-ct-print] .rg-step:nth-child(2) .rg-swatch {animation-delay: 80ms;}
  .rg-steps[data-ct-print] .rg-step:nth-child(3) .rg-swatch {animation-delay: 160ms;}

  @keyframes ct-rule-open {
    from {transform: scaleX(.065);}
    to {transform: scaleX(1);}
  }
  @keyframes ct-title-ink {
    from {opacity: .68; transform: translateY(.15em); clip-path: inset(-15% -3% 12%);}
    to {opacity: 1; transform: translateY(0); clip-path: inset(-15% -3% -15%);}
  }
  @keyframes ct-print-open {
    from {clip-path: inset(14% 0 0 0);}
    to {clip-path: inset(0);}
  }
}
