@import url('cormorant.css');

@font-face {
  font-family: 'Crimson Pro';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('CrimsonPro-Italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Crimson Pro';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('CrimsonPro-Italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
    U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.home .hero {
  height: 76svh;
  min-height: 570px;
  max-height: 940px;
}

.home .studio-note {
  position: relative;
  margin-block-start: clamp(-32px, -3vw, -16px);
  padding-block: clamp(0px, calc(2.5vw - 14px), 20px) clamp(36px, 4.5vw, 65px);
}

.home .studio-note p:not(.eyebrow) {
  max-width: 980px;
  margin: 4px auto 0;
  text-wrap: balance;
}

.home .studio-note .studio-note-heading {
  margin: 0 0 12px;
  color: #eadccf;
  font: 600 clamp(24px, 2.1vw, 30px)/1.1 'Cormorant Garamond', Georgia, serif;
}

.home .studio-note p.studio-introduction {
  max-width: none;
  margin-bottom: 14px;
  text-wrap: pretty;
}

@media (min-width: 1000px) {
  .home .studio-note p.studio-introduction {
    --studio-intro-width: min(96vw, 1260px);
    width: var(--studio-intro-width);
    margin-inline: calc((100% - var(--studio-intro-width)) / 2);
    font-size: clamp(14px, 1.2vw, 15px);
  }
}

.home .studio-note p:last-child {
  margin-top: 10px;
  text-wrap: pretty;
}

.home .hero h1 {
  color: #fbf0df;
  font: 600 clamp(45px, 5.3vw, 82px)/.95 'Cormorant Garamond', 'Source Serif 4', Georgia, serif;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.home .feature-book > div { max-width: 740px; }

.feature-dedication {
  margin: clamp(22px, 2.4vw, 36px) 0 clamp(28px, 2.6vw, 37px);
  color: #eadccf;
  font: italic 400 clamp(22px, 1.9vw, 29px)/1.26 'Crimson Pro', Georgia, serif;
  text-wrap: pretty;
}

.feature-dedication p {
  margin: 0;
  color: inherit;
  font: inherit;
}

.feature-dedication p + p { margin-top: 3px; }

.home .feature-book .button {
  --button-bevel: inset 0 1px 0 #f6a09859, inset 0 -2px 0 #29000799;
  border-color: #96313a;
  border-radius: 17px;
  background:
    linear-gradient(180deg, #f8a39b21, transparent 56%),
    linear-gradient(145deg, #7d111c, #630911 56%, #47060c);
  box-shadow: var(--button-bevel), 0 3px 0 #300408, 0 9px 18px #0009;
  text-shadow: 0 1px 2px #260006ad;
  transition: filter .18s ease, box-shadow .18s ease, transform .18s ease;
}

@media (hover: hover) {
  .home .feature-book .button:hover {
    filter: brightness(1.09);
    box-shadow: var(--button-bevel), 0 4px 0 #300408, 0 11px 22px #0009;
  }
}

.home .feature-book .button:active {
  transform: translateY(2px);
  box-shadow: var(--button-bevel), 0 1px 0 #300408, 0 4px 9px #0009;
}

@media (prefers-reduced-motion: reduce) {
  .home .feature-book .button { transition: none; }
  .home .feature-book .button:active { transform: none; }
}

@media (min-width: 901px) {
  .home .hero-image { height: calc(100% + min(12svh, 120px)); }
}

@media (max-width: 900px) {
  .home .hero {
    min-height: 510px;
    max-height: 680px;
  }
}

@media (max-width: 560px) {
  .home .hero {
    height: clamp(440px, 65svh, 550px);
    min-height: 0;
  }
  .home .hero-copy { top: 110px; }
}

@media (min-width: 1001px) {
  .home .feature-book {
    grid-template-columns: minmax(0, 35.6%) minmax(0, 1fr);
    column-gap: 5%;
  }
}

.home .feature-spines {
  --spine-height: clamp(278px, 42vw, 450px);
  --spine-depth: calc(var(--spine-height) * .6667);
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  padding: 10px 19px 12px 0;
  perspective: 1300px;
}

.feature-spines::before,
.feature-spines::after {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.feature-spines::before {
  inset: -4% -4% -2%;
  background:
    radial-gradient(ellipse at 38% 53%, #7a392634, transparent 53%),
    radial-gradient(ellipse at 61% 58%, #3b50632f, transparent 55%);
}

.feature-spines::after {
  width: min(74%, 310px);
  height: 24px;
  bottom: 1px;
  margin-left: 20px;
  border-radius: 50%;
  background: #000c;
  filter: blur(12px);
}

.feature-spine-row {
  display: flex;
  gap: clamp(3px, .34vw, 6px);
  transform: rotateX(-4deg) rotateY(-9deg);
  transform-style: preserve-3d;
}

.feature-spine {
  position: relative;
  flex: none;
  transform-style: preserve-3d;
}

.home .feature-cover.feature-spines .feature-spine img {
  display: block;
  max-width: none;
  height: var(--spine-height);
  border: 0;
  box-shadow: none;
}

.home .feature-spine .feature-spine-art {
  width: calc(var(--spine-height) * var(--spine-art-width) * 1.5 / 1296);
  border-radius: 1px;
}

.home .feature-cover.feature-spines .feature-spine .feature-spine-side {
  position: absolute;
  top: 0;
  left: 100%;
  width: var(--spine-depth);
  transform: rotateY(90deg);
  transform-origin: left center;
  filter: brightness(.56);
}

.feature-spine::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: var(--spine-depth);
  transform: rotateX(90deg);
  transform-origin: center bottom;
  background: linear-gradient(90deg, #261e1a 3%, #87745c 5%, #b29d7c 42%, #8b7963 94%, #27221e 97%);
}

.feature-spine::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1px;
  background: linear-gradient(90deg, #0007, #fff2 12%, transparent 46%, #0006 96%, #fff1);
}

.product-detail .product-copy :is(h1, h2) {
  font-size: clamp(34px, 3.4vw, 55px);
}

@media (max-width: 560px) {
  .product-detail .product-copy :is(h1, h2) { font-size: 36px; }
}

.wrap.trilogy-overview {
  border-top: 0;
  text-align: center;
}

.trilogy-overview #trilogy-heading {
  color: #f7ecdb;
  font: 600 clamp(43px, 5.5vw, 84px)/.98 'Cormorant Garamond', Georgia, serif;
  letter-spacing: -.022em;
  margin-bottom: clamp(16px, 3vw, 42px);
}

.trilogy-display {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  isolation: isolate;
  position: relative;
  width: min(1120px, 100%);
  list-style: none;
  margin: 0 auto;
  padding: clamp(6px, 1.4vw, 20px) 0 0;
}

.trilogy-display::before {
  content: '';
  position: absolute;
  inset: -8% -2% 5%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 42% 49% at 20% 62%, #74352d64, transparent 100%),
    radial-gradient(ellipse 46% 52% at 50% 49%, #3c537075, transparent 100%),
    radial-gradient(ellipse 40% 49% at 79% 61%, #695d3266, transparent 100%);
  mask-image: radial-gradient(ellipse 68% 63% at 50% 49%, #000 28%, transparent 100%);
}

.trilogy-display-entry {
  --label-color: #dfab97;
  min-width: 0;
}

.trilogy-display-entry:nth-child(2) {
  --label-color: #b6c8e2;
}

.trilogy-display-entry:nth-child(3) {
  --label-color: #d7ce9b;
}

.trilogy-stage.product-cover {
  container-type: inline-size;
  position: relative;
  top: auto;
}

.trilogy-stage.book-turntable .book-stage {
  aspect-ratio: 1.04;
  cursor: default;
}

.trilogy-stage .book-stage::before {
  display: none;
}

.trilogy-stage .book-stage::after {
  inset: auto 16% 9%;
  background: #000a;
  filter: blur(clamp(7px, 1.2vw, 16px));
  transform: none;
}

.trilogy-stage.book-turntable .book-object {
  --book-width: min(58cqw, 208px);
  --paper-inset: 1.5px;
  --cover-stock: .75px;
  top: 5%;
  cursor: default;
  transform: translateX(-50%) rotateX(3deg) rotateY(18deg);
  transition: none;
}

.trilogy-entry-name {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 7px;
  min-height: 44px;
  padding: 8px 5px 12px;
}

.trilogy-entry-name strong {
  color: #f3eadc;
  font: 600 clamp(17px, 2.25vw, 34px)/1.07 'Cormorant Garamond', Georgia, serif;
  text-wrap: balance;
}

.trilogy-entry-name span {
  color: var(--label-color);
  font-size: clamp(9px, .75vw, 11px);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.trilogy-entry-name:hover strong {
  text-decoration: underline;
  text-underline-offset: .22em;
}

@media (max-width: 600px) {
  .home .hero h1 { font-size: clamp(37px, 9.75vw, 58px); }
  .home .feature-book { grid-template-columns: minmax(0, 1fr); gap: 33px; }
  .home .feature-spines { --spine-height: clamp(280px, 93vw, 385px); }
  .trilogy-overview #trilogy-heading { font-size: clamp(39px, 10.5vw, 60px); }
  .trilogy-stage.book-turntable .book-stage { aspect-ratio: .77; }
  .trilogy-stage.book-turntable .book-object { --book-width: 76cqw; }
}

