/*
 * Flagship review treatment.  This file deliberately follows immersive.css and
 * only speaks to the two opt-in body classes created by the review builder.
 */

body.exhibition.flagship-home,
body.book-page.flagship-book,
body.flagship-catalog,
body.flagship-stories,
body.flagship-about,
body.flagship-contact {
  --flagship-paper: #f4f0e5;
  --flagship-warm: #faf8f2;
  --flagship-ink: #262b28;
  --flagship-green: #183b39;
  --flagship-brass: #dcbf78;
  --flagship-night: #171921;
}

/* The original coffeehouse drawing is the opening spread, at its natural ratio. */
body.exhibition.flagship-home .author-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(18rem, .85fr);
  grid-template-areas:
    "art copy"
    "name copy";
  column-gap: clamp(2rem, 6vw, 7rem);
  row-gap: clamp(1.15rem, 2.4vw, 2.5rem);
  align-items: center;
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(2.25rem, 5vw, 5.75rem) clamp(1.25rem, 6vw, 6.5rem) clamp(3.5rem, 7vw, 7rem);
  background: var(--flagship-paper);
}

body.exhibition.flagship-home .author-artwork {
  grid-area: art;
  width: 100%;
  max-width: none;
}

body.exhibition.flagship-home .author-artwork-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

body.exhibition.flagship-home .author-artwork img,
body.book-page.flagship-book .drawing img {
  width: 100%;
  max-width: none;
  height: auto;
  object-fit: contain;
  filter: none;
}

body.exhibition.flagship-home .author-name {
  grid-area: name;
  max-width: none;
  margin: 0;
  font-size: clamp(6.9rem, 9vw, 9.35rem);
  font-weight: 500;
  line-height: .88;
  letter-spacing: -.065em;
  overflow-wrap: anywhere;
}

body.exhibition.flagship-home .author-copy {
  grid-area: copy;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 35ch;
  padding: clamp(.5rem, 2vw, 2rem) 0;
  border-top: 2px solid var(--flagship-green);
  border-bottom: 1px solid color-mix(in srgb, var(--flagship-ink) 38%, transparent);
}

body.exhibition.flagship-home .author-heading h2 {
  margin: 0;
  font-size: clamp(1.9rem, 2.65vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
}

body.exhibition.flagship-home .author-description {
  margin-top: 1.5rem;
  font-size: clamp(1.08rem, 1.45vw, 1.3rem);
  line-height: 1.62;
}

body.exhibition.flagship-home .author-actions {
  gap: .55rem 1.3rem;
  margin-top: 1.85rem;
}

body.exhibition.flagship-home .author-actions a {
  min-height: 44px;
  padding: .65rem .95rem;
}

/* A shelf is a navigational index, not a row of product cards. */
body.exhibition.flagship-home .book-explorer {
  max-width: 1600px;
  margin: 0 auto;
  background: var(--flagship-warm);
}

body.exhibition.flagship-home .explorer-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(3.5rem, 7vw, 7rem) clamp(1.25rem, 6vw, 7rem) 1.4rem;
  border-bottom: 2px solid var(--flagship-green);
}

body.exhibition.flagship-home .explorer-heading h2 {
  margin: 0;
  font-size: clamp(3.25rem, 6vw, 6rem);
  line-height: .9;
}

body.exhibition.flagship-home .explorer-heading a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 600 .9rem/1.35 var(--ui);
}

body.exhibition.flagship-home .book-index {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(.9rem, 2.5vw, 2.5rem);
  padding: clamp(1.75rem, 4vw, 3.75rem) clamp(1.25rem, 6vw, 7rem);
  background: var(--flagship-green);
  color: var(--flagship-warm);
}

body.exhibition.flagship-home .book-index a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .8rem;
  min-width: 0;
  padding: 0 0 .65rem;
  text-align: left;
}

body.exhibition.flagship-home .book-index .index-cover {
  width: min(100%, 9.65rem);
  transition-duration: 180ms;
}

body.exhibition.flagship-home .book-index .index-title {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: .86rem;
  line-height: 1.32;
}

body.exhibition.flagship-home .book-index a[aria-current] {
  color: var(--flagship-warm);
}

body.exhibition.flagship-home .book-index a[aria-current]::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: var(--flagship-brass);
  content: "";
}

body.exhibition.flagship-home .book-switcher {
  display: flex;
  justify-content: flex-start;
  gap: .4rem 1.5rem;
  padding: .65rem clamp(1.25rem, 6vw, 7rem);
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--flagship-ink) 28%, transparent);
  background: var(--flagship-paper);
}

body.exhibition.flagship-home .book-switcher a {
  min-height: 44px;
  font-size: .78rem;
}

body.exhibition.flagship-home .book-explorer.is-enhanced .book-switcher {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  justify-content: space-between;
  padding-block: .45rem;
  scroll-padding-inline: 1.25rem;
  scrollbar-width: thin;
  box-shadow: 0 3px 12px #262b280a;
}

body.exhibition.flagship-home .book-explorer.is-enhanced .book-switcher a {
  flex: 0 0 auto;
  white-space: nowrap;
  padding-inline: .3rem;
  font-size: 14px;
  border-bottom: 3px solid transparent;
}

body.exhibition.flagship-home .book-explorer.is-enhanced .book-switcher a[aria-current] {
  border-bottom-color: var(--flagship-green);
  font-weight: 600;
}

body.exhibition.flagship-home .book-panels {
  background: var(--flagship-paper);
  scroll-margin-top: 52px;
}

/* Covers, reading entry and buying choices form a spacious spread on desktop. */
body.exhibition.flagship-home .book-panel.scene {
  display: grid;
  grid-template-columns: minmax(220px, 270px) minmax(0, 1fr) minmax(190px, 220px);
  grid-template-areas:
    "book title title"
    "book blurb decision"
    "book edition decision"
    "foot foot foot";
  column-gap: clamp(1.8rem, 5vw, 5.75rem);
  row-gap: 1.55rem;
  min-height: 0;
  padding: clamp(3.5rem, 7vw, 7.75rem) clamp(1.25rem, 7vw, 8rem) 2rem;
  background: var(--flagship-paper);
}

body.exhibition.flagship-home .book-panel.scene.night {
  background: var(--flagship-night);
  color: var(--flagship-warm);
}

body.exhibition.flagship-home .book-panel.scene.lily {
  background: var(--flagship-green);
  color: var(--flagship-warm);
}

body.exhibition.flagship-home .book-panel.scene.wind,
body.exhibition.flagship-home .book-panel.scene.castle,
body.exhibition.flagship-home .book-panel.scene.brooklyn {
  color: var(--flagship-ink);
}

body.exhibition.flagship-home .book-panel .scene-title {
  grid-area: title;
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3.4rem, 5.4vw, 4.5rem);
  line-height: .94;
}

body.exhibition.flagship-home .book-panel .book {
  grid-area: book;
  width: 100%;
  max-width: 270px;
  justify-self: start;
  margin: 0;
}

body.exhibition.flagship-home .book-panel .book > img {
  width: 100%;
  box-shadow: 13px 18px 27px color-mix(in srgb, var(--flagship-ink) 27%, transparent);
}

body.exhibition.flagship-home .book-panel .blurb {
  grid-area: blurb;
  max-width: 39ch;
  margin: 0;
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  line-height: 1.64;
}

body.exhibition.flagship-home .book-panel .book-decision {
  grid-area: decision;
  align-self: start;
  width: 100%;
  padding-top: .2rem;
}

body.exhibition.flagship-home .book-panel .story-entry {
  margin-top: 0;
  font-size: .83rem;
}

body.exhibition.flagship-home .book-panel .scene-proof {
  margin-top: 1.4rem;
  padding-top: 1.25rem;
  font-size: 1rem;
  line-height: 1.48;
}

body.exhibition.flagship-home .book-panel .edition-choice {
  grid-area: edition;
  align-self: end;
  width: min(100%, 18rem);
}

body.exhibition.flagship-home .book-panel .edition-choice .buy {
  margin-top: 0;
}

body.exhibition.flagship-home .book-panel .buy a {
  min-height: 44px;
}

body.exhibition.flagship-home .book-panel .scene-foot {
  grid-area: foot;
  margin-top: 1rem;
}

body.exhibition.flagship-home .book-panel .castle-menu {
  grid-area: menu;
  align-self: end;
  width: 100%;
  padding: 0;
}

body.exhibition.flagship-home .book-panel .castle-menu a {
  font-size: 1.18rem;
}

body.exhibition.flagship-home .book-panel .castle-menu h3 {
  margin: 1.2rem 0 .8rem;
  font: 500 15px/1.4 var(--ui);
}

body.exhibition.flagship-home .book-panel.castle {
  grid-template-areas:
    "book title title"
    "book blurb decision"
    "book edition menu"
    "foot foot foot";
}

body.exhibition.flagship-home .book-explorer.is-enhanced .book-panel.panel-enter {
  animation: flagship-panel-enter 180ms cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes flagship-panel-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* The rest of the homepage becomes quieter after the opening and book shelf. */
body.exhibition.flagship-home .author-profile,
body.exhibition.flagship-home .original-reviews,
body.exhibition.flagship-home .story-section,
body.exhibition.flagship-home .launch {
  padding-right: clamp(1.25rem, 8vw, 11rem);
  padding-left: clamp(1.25rem, 8vw, 11rem);
}

body.exhibition.flagship-home .author-profile {
  grid-template-columns: minmax(11rem, 18rem) minmax(0, 43rem);
  justify-content: center;
  min-height: 0;
  padding-top: clamp(3.5rem, 7vw, 7rem);
  padding-bottom: clamp(3.5rem, 7vw, 7rem);
}

body.exhibition.flagship-home .portrait-image {
  width: 100%;
  aspect-ratio: 887 / 997;
}

body.exhibition.flagship-home .original-reviews > div:nth-child(2) {
  gap: clamp(2rem, 6vw, 6rem);
}

body.exhibition.flagship-home .story-section,
body.exhibition.flagship-home .launch {
  padding-top: clamp(3.5rem, 7vw, 7rem);
  padding-bottom: clamp(3.5rem, 7vw, 7rem);
}

body.exhibition.flagship-home .story-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1300px;
}

/* The individual Brooklyn page makes the jacket and its literary proof one spread. */
body.book-page.flagship-book .book-feature.scene.brooklyn {
  display: grid;
  grid-template-columns: minmax(220px, 285px) minmax(0, 1fr) minmax(190px, 235px);
  grid-template-areas:
    "book title title"
    "book blurb decision"
    "book edition decision"
    "foot foot foot";
  column-gap: clamp(2rem, 6vw, 7rem);
  row-gap: 1.6rem;
  min-height: 0;
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 8rem) clamp(1.25rem, 7vw, 8rem) 2rem;
  background: var(--flagship-paper);
}

body.book-page.flagship-book .book-feature .scene-title {
  grid-area: title;
  max-width: 10ch;
  margin: 0;
  font-size: clamp(4rem, 6.4vw, 5rem);
  line-height: .9;
}

body.book-page.flagship-book .book-feature .book {
  grid-area: book;
  width: 100%;
  max-width: 285px;
  justify-self: start;
  margin: 0;
}

body.book-page.flagship-book .book-feature .book > img {
  width: 100%;
  box-shadow: 15px 20px 32px color-mix(in srgb, var(--flagship-ink) 27%, transparent);
}

body.book-page.flagship-book .book-feature .blurb {
  grid-area: blurb;
  max-width: 43ch;
  margin: 0;
  font-size: clamp(1.06rem, 1.5vw, 1.32rem);
  line-height: 1.66;
}

body.book-page.flagship-book .book-feature .book-decision {
  grid-area: decision;
  width: 100%;
  padding-top: .2rem;
}

body.book-page.flagship-book .book-feature .story-entry {
  margin-top: 0;
  font-size: .84rem;
}

body.book-page.flagship-book .book-feature .scene-proof {
  margin-top: 1.4rem;
  padding-top: 1.25rem;
  font-size: 1rem;
  line-height: 1.5;
}

body.book-page.flagship-book .book-feature .edition-choice {
  grid-area: edition;
  align-self: end;
  width: min(100%, 18rem);
}

body.book-page.flagship-book .book-feature .edition-choice .buy {
  margin-top: 0;
}

body.book-page.flagship-book .book-feature .scene-foot {
  grid-area: foot;
  margin-top: 1rem;
}

body.book-page.flagship-book .drawing {
  width: min(1100px, calc(100% - 2.5rem));
  margin: clamp(3rem, 7vw, 8rem) auto clamp(3rem, 6vw, 6rem);
}

body.book-page.flagship-book .drawing figcaption {
  max-width: 65ch;
  margin-top: .9rem;
}

body.book-page.flagship-book .book-details {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 7rem) clamp(1.25rem, 7vw, 6rem);
}

body.book-page.flagship-book .book-return {
  width: min(1100px, calc(100% - 2.5rem));
  margin: 0 auto 4rem;
  padding-top: 1.5rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}

@media (max-width: 1150px) {
  body.exhibition.flagship-home .author-intro {
    grid-template-columns: minmax(0, 1.35fr) minmax(16rem, .85fr);
    column-gap: 2.5rem;
  }

  body.exhibition.flagship-home .author-name { font-size: clamp(5.75rem, 11.5vw, 7.6rem); }

  body.exhibition.flagship-home .book-panel.scene,
  body.book-page.flagship-book .book-feature.scene.brooklyn {
    grid-template-columns: minmax(190px, 235px) minmax(0, 1fr);
    grid-template-areas:
      "book title"
      "book blurb"
      "edition decision"
      "foot foot";
    column-gap: clamp(1.5rem, 5vw, 3rem);
  }

  body.exhibition.flagship-home .book-panel .book,
  body.book-page.flagship-book .book-feature .book { max-width: 235px; }

  body.exhibition.flagship-home .book-panel .edition-choice,
  body.book-page.flagship-book .book-feature .edition-choice { align-self: start; }

  body.exhibition.flagship-home .book-panel .book-decision,
  body.book-page.flagship-book .book-feature .book-decision { align-self: start; }

  body.exhibition.flagship-home .book-panel .castle-menu { grid-area: menu; }

  body.exhibition.flagship-home .book-panel.castle {
    grid-template-areas:
      "book title"
      "book blurb"
      "edition decision"
      "menu menu"
      "foot foot";
  }
}

@media (max-width: 680px) {
  body.exhibition.flagship-home .author-intro {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.75rem;
    padding: 1.75rem 1.25rem 3.5rem;
  }

  body.exhibition.flagship-home .author-artwork { order: 1; }

  body.exhibition.flagship-home .author-name {
    order: 2;
    font-size: clamp(4.25rem, 19vw, 6.6rem);
    line-height: .87;
  }

  body.exhibition.flagship-home .author-copy {
    order: 3;
    max-width: none;
    padding-top: 1.25rem;
  }

  body.exhibition.flagship-home .author-heading h2 { font-size: clamp(1.7rem, 8.2vw, 2.35rem); }

  body.exhibition.flagship-home .explorer-heading {
    padding: 3.5rem 1.25rem 1.2rem;
  }

  body.exhibition.flagship-home .explorer-heading h2 { font-size: clamp(3rem, 16vw, 4.5rem); }

  body.exhibition.flagship-home .book-index {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1.5rem 1.25rem 1.35rem;
    scroll-padding-inline: 1.25rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  body.exhibition.flagship-home .book-index a {
    flex: 0 0 8.7rem;
    scroll-snap-align: start;
  }

  body.exhibition.flagship-home .book-index .index-cover { width: 7.35rem; }

  body.exhibition.flagship-home .book-index .index-title {
    min-height: 44px;
    font-size: .79rem;
  }

  body.exhibition.flagship-home .book-switcher { padding-inline: 1.25rem; }

  body.exhibition.flagship-home .book-panel.scene,
  body.book-page.flagship-book .book-feature.scene.brooklyn {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(6.25rem, 1fr);
    grid-template-areas:
      "title title"
      "book edition"
      "blurb blurb"
      "decision decision"
      "menu menu"
      "foot foot";
    column-gap: 1rem;
    row-gap: 1.5rem;
    padding: 3.1rem 1.25rem 1.5rem;
  }

  body.exhibition.flagship-home .book-panel .scene-title,
  body.book-page.flagship-book .book-feature .scene-title {
    max-width: none;
    margin: 0;
    font-size: clamp(2.15rem, 11vw, 3.35rem);
    line-height: .98;
  }

  body.exhibition.flagship-home .book-panel#in-the-wind .scene-title,
  body.exhibition.flagship-home .book-panel#short-stack .scene-title {
    font-size: clamp(1.65rem, 9.6vw, 3rem);
  }

  body.exhibition.flagship-home .book-panel .book,
  body.book-page.flagship-book .book-feature .book {
    width: clamp(8.75rem, 45vw, 10.5rem);
    max-width: 100%;
    align-self: start;
  }

  body.exhibition.flagship-home .book-panel .edition-choice,
  body.book-page.flagship-book .book-feature .edition-choice {
    align-self: center;
    width: 100%;
  }

  body.exhibition.flagship-home .book-panel .buy,
  body.book-page.flagship-book .book-feature .buy { gap: .55rem; }

  body.exhibition.flagship-home .book-panel .buy a,
  body.book-page.flagship-book .book-feature .buy a {
    min-height: 44px;
    padding: .55rem .45rem;
    font-size: .875rem;
    line-height: 1.25;
  }

  body.exhibition.flagship-home .book-panel .blurb,
  body.book-page.flagship-book .book-feature .blurb {
    max-width: none;
    font-size: clamp(1.125rem, 4.7vw, 1.19rem);
  }

  body.exhibition.flagship-home .book-panel .book-decision,
  body.book-page.flagship-book .book-feature .book-decision { padding-top: .25rem; }

  body.exhibition.flagship-home .book-panel .castle-menu { grid-area: menu; }

  body.exhibition.flagship-home .book-panel .scene-foot,
  body.book-page.flagship-book .book-feature .scene-foot {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: .25rem 1.35rem;
  }

  body.exhibition.flagship-home .author-profile {
    grid-template-columns: 1fr;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  body.exhibition.flagship-home .story-list { grid-template-columns: 1fr; }

  body.book-page.flagship-book .drawing {
    width: calc(100% - 2.5rem);
    margin-top: 3.5rem;
    margin-bottom: 3.25rem;
  }

  body.book-page.flagship-book .book-details { padding: 3.25rem 1.25rem 4rem; }
}

@media (max-width: 355px) {
  body.exhibition.flagship-home .book-panel.scene,
  body.book-page.flagship-book .book-feature.scene.brooklyn {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "title"
      "book"
      "edition"
      "blurb"
      "decision"
      "menu"
      "foot";
  }

  body.exhibition.flagship-home .book-panel .edition-choice,
  body.book-page.flagship-book .book-feature .edition-choice { max-width: 17rem; }
}

html.motion-paused body.exhibition.flagship-home .book-explorer.is-enhanced .book-panel.panel-enter {
  animation: none !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  body.exhibition.flagship-home .book-explorer.is-enhanced .book-panel.panel-enter {
    animation: none;
    transform: none;
  }
}

/* Site-wide review layer. It leaves reading pages alone: stories remain a quiet
   reading surface, including their existing purchase reminder. */
body.flagship-catalog,
body.flagship-stories,
body.flagship-about,
body.flagship-contact,
body.book-page.flagship-book {
  --flagship-line: color-mix(in srgb, var(--flagship-ink) 23%, transparent);
}

body.flagship-about,
body.flagship-contact {
  min-height: 0;
  padding: 0;
}

body.flagship-catalog .site-header,
body.flagship-stories .site-header,
body.flagship-about .site-header,
body.flagship-contact .site-header,
body.book-page.flagship-book .site-header {
  background: var(--flagship-warm);
  color: var(--flagship-ink);
}

body.flagship-catalog footer,
body.flagship-stories footer,
body.flagship-about footer,
body.flagship-contact footer,
body.book-page.flagship-book footer {
  background: var(--flagship-warm);
  color: var(--flagship-ink);
}

body.flagship-catalog footer .identity,
body.flagship-stories footer .identity,
body.flagship-about footer .identity,
body.flagship-contact footer .identity,
body.book-page.flagship-book footer .identity { color: inherit; }

/* The catalog is an index of distinct books, with the covers doing the work. */
body.flagship-catalog .catalog-page {
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 7.5rem) clamp(1.25rem, 7vw, 8rem) clamp(4rem, 8vw, 8rem);
  background: var(--flagship-paper);
}

body.flagship-catalog .catalog-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(16rem, .45fr);
  gap: clamp(2rem, 8vw, 9rem);
  align-items: end;
  padding-bottom: clamp(2rem, 5vw, 4.5rem);
  border-bottom: 2px solid var(--flagship-green);
}

body.flagship-catalog .catalog-heading h1 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(3.5rem, 6.2vw, 6rem);
  font-weight: 500;
  line-height: .94;
  letter-spacing: -.05em;
  overflow-wrap: normal;
  word-break: normal;
}

body.flagship-catalog .catalog-heading p {
  max-width: 34ch;
  margin: 0 0 1.5rem;
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
  line-height: 1.65;
}

body.flagship-catalog .catalog-heading > div {
  padding-bottom: 0;
  border-bottom: 0;
}

body.flagship-catalog .catalog-heading a,
body.flagship-catalog .catalog-index a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 600 .88rem/1.35 var(--ui);
}

body.flagship-catalog .catalog-index {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.5rem;
  margin: 0;
  padding: 1rem 0;
  border-top: 0;
  border-bottom: 1px solid var(--flagship-line);
}

body.flagship-catalog .covers { margin-top: clamp(2.5rem, 6vw, 6rem); }

body.flagship-catalog .catalog-entry {
  display: grid;
  grid-template-columns: minmax(9rem, 16rem) minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 8rem);
  align-items: center;
  min-height: 29rem;
  padding: clamp(2.5rem, 6vw, 6rem) clamp(.25rem, 2vw, 1.75rem);
  border-top: 1px solid var(--flagship-line);
}

body.flagship-catalog .catalog-entry:first-child { border-top: 0; }
body.flagship-catalog .catalog-entry .catalog-art { width: 100%; max-width: 15rem; }
body.flagship-catalog .catalog-entry .catalog-art img { width: 100%; box-shadow: 14px 20px 32px #262b2840; }
body.flagship-catalog .catalog-info { max-width: 50rem; }
body.flagship-catalog .catalog-info h2 { margin: 0 0 1.35rem; }
body.flagship-catalog .catalog-info h2 a {
  font-size: clamp(2.5rem, 5vw, 5.5rem);
  line-height: .94;
  letter-spacing: -.05em;
  overflow-wrap: normal;
  word-break: normal;
}
body.flagship-catalog .catalog-info p { max-width: 47ch; font-size: clamp(1.06rem, 1.5vw, 1.28rem); line-height: 1.65; }
body.flagship-catalog .catalog-info .buy { width: min(100%, 19rem); }
body.flagship-catalog .catalog-info .buy a { min-height: 44px; }
body.flagship-catalog .catalog-entry.night { margin-inline: clamp(-.25rem, -2vw, -1.75rem); padding-inline: clamp(.25rem, 2vw, 1.75rem); background: var(--flagship-night); color: var(--flagship-warm); }
body.flagship-catalog .catalog-entry.night .buy a:first-child,
body.flagship-catalog .catalog-entry.lily .buy a:first-child { background: var(--flagship-brass); color: var(--flagship-ink); }
body.flagship-catalog .catalog-entry.lily { background: var(--flagship-green); color: var(--flagship-warm); }
body.flagship-catalog .catalog-entry.wind { background: linear-gradient(100deg, #dbe4df 0%, var(--flagship-paper) 60%); }
body.flagship-catalog .catalog-entry.castle { background: #ece5d5; }
body.flagship-catalog .catalog-forthcoming {
  margin-top: clamp(3.5rem, 8vw, 8rem);
  padding: clamp(2.5rem, 5vw, 5rem) 0 0;
  border-top: 2px solid var(--flagship-green);
}
body.flagship-catalog .catalog-forthcoming h2 { margin: 0 0 1rem; }
body.flagship-catalog .catalog-forthcoming h2 a { font-size: clamp(2.5rem, 5vw, 5rem); line-height: .95; }
body.flagship-catalog .catalog-forthcoming p { max-width: 38ch; font-size: 1.15rem; }
body.flagship-catalog .launch { max-width: 1500px; margin: 0 auto; }

/* Each book keeps the common reading path, but gets a cover-led atmosphere. */
body.book-page.flagship-book .book-feature.scene {
  display: grid;
  grid-template-columns: minmax(12rem, 18rem) minmax(0, 1fr) minmax(12rem, 17rem);
  grid-template-areas:
    "book title title"
    "book blurb decision"
    "book edition decision"
    "foot foot foot";
  column-gap: clamp(2rem, 7vw, 8rem);
  row-gap: 1.6rem;
  min-height: 0;
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 8.5rem) clamp(1.25rem, 7vw, 8rem) clamp(2.5rem, 6vw, 5rem);
}

body.book-page.flagship-book .book-feature .scene-title {
  grid-area: title;
  max-width: none;
  margin: 0;
  font-size: clamp(3.6rem, 7vw, 7.25rem);
  font-weight: 500;
  line-height: .9;
  letter-spacing: -.06em;
  overflow-wrap: normal;
  word-break: normal;
}
body.book-page.flagship-book .book-feature .book { grid-area: book; width: 100%; max-width: 18rem; justify-self: start; margin: 0; }
body.book-page.flagship-book .book-feature .book > img { width: 100%; box-shadow: 15px 21px 35px #262b2852; }
body.book-page.flagship-book .book-feature .blurb { grid-area: blurb; max-width: 44ch; margin: 0; font-size: clamp(1.07rem, 1.5vw, 1.3rem); line-height: 1.66; }
body.book-page.flagship-book .book-feature .book-decision { grid-area: decision; width: 100%; padding-top: .2rem; }
body.book-page.flagship-book .book-feature .story-entry { margin-top: 0; font-size: .88rem; }
body.book-page.flagship-book .book-feature .scene-proof { margin-top: 1.4rem; padding-top: 1.25rem; font-size: 1rem; line-height: 1.5; }
body.book-page.flagship-book .book-feature .edition-choice { grid-area: edition; width: min(100%, 18rem); }
body.book-page.flagship-book .book-feature .edition-choice .buy { margin-top: 0; }
body.book-page.flagship-book .book-feature .buy a { min-height: 44px; }
body.book-page.flagship-book .book-feature .scene-foot { grid-area: foot; margin-top: 1rem; }
body.book-page.flagship-book .book-details { max-width: 1100px; margin: 0 auto; padding: clamp(3.5rem, 8vw, 8rem) clamp(1.25rem, 7vw, 6rem); }
body.book-page.flagship-book .book-details h2,
body.book-page.flagship-book .book-details h3 { font-size: clamp(1.7rem, 3vw, 2.65rem); }
body.book-page.flagship-book .book-details a { min-height: 44px; }

body.book-page.flagship-night { background: var(--flagship-night); color: var(--flagship-warm); }
body.book-page.flagship-night .book-feature.scene { background: radial-gradient(ellipse 60% 95% at 85% 5%, #50452f 0%, var(--flagship-night) 58%); }
body.book-page.flagship-night .book-feature .book > img { box-shadow: 20px 28px 52px #000b; outline: 1px solid #ffffff20; }
body.book-page.flagship-night .book-feature .buy a:first-child { background: var(--flagship-brass); color: var(--flagship-ink); }
body.book-page.flagship-night .book-feature .story-entry { color: var(--flagship-brass); }
body.book-page.flagship-night .book-feature .scene-foot,
body.book-page.flagship-night .book-details { border-color: #faf8f24a; }
body.book-page.flagship-night .book-details { background: #20232b; max-width: none; padding-inline: max(calc((100% - 1100px) / 2), 1.25rem); }

body.book-page.flagship-lily { background: var(--flagship-green); color: var(--flagship-warm); }
body.book-page.flagship-lily .book-feature.scene { background: linear-gradient(115deg, var(--flagship-green) 0%, #0d302f 58%, #183b39 100%); }
body.book-page.flagship-lily .book-feature .scene-title { max-width: 15ch; }
body.book-page.flagship-lily .book-feature .buy a:first-child { background: var(--flagship-brass); color: var(--flagship-ink); }
body.book-page.flagship-lily .book-feature .story-entry { color: var(--flagship-brass); }
body.book-page.flagship-lily .book-details { max-width: none; padding-inline: max(calc((100% - 1100px) / 2), 1.25rem); background: #123432; }

body.book-page.flagship-wind { background: #e3ebe7; color: #153c39; }
body.book-page.flagship-wind .book-feature.scene { background: linear-gradient(120deg, #d1ddd8 0%, #edf1ed 47%, #ccd8d5 100%); }
body.book-page.flagship-wind .book-feature .scene-title { color: #153c39; }
body.book-page.flagship-wind .book-feature .buy a:first-child { background: #153c39; color: var(--flagship-warm); }
body.book-page.flagship-wind .book-details { background: #f1f3ed; }

body.book-page.flagship-castle { background: #eee6d7; color: #2e312a; }
body.book-page.flagship-castle .book-feature.scene { background: repeating-linear-gradient(90deg, transparent 0, transparent 2.25rem, #2e312a0d 2.3rem, transparent 2.38rem), #eee6d7; }
body.book-page.flagship-castle .book-feature .scene-title { max-width: 13ch; }
body.book-page.flagship-castle .book-feature .book-decision { border-left: 1px solid #2e312a42; padding-left: 1.25rem; }
body.book-page.flagship-castle .book-feature .castle-menu { grid-area: menu; }
body.book-page.flagship-castle .book-feature.scene {
  grid-template-columns: minmax(12rem, 18rem) minmax(0, 1fr);
  grid-template-areas:
    "book title"
    "book blurb"
    "book edition"
    "book decision"
    "book menu"
    "foot foot";
}
body.book-page.flagship-castle .book-feature .book-decision { border-top: 1px solid #2e312a42; border-left: 0; padding: 1.25rem 0 0; }
body.book-page.flagship-castle .book-feature .castle-menu { padding-top: 0; }
body.book-page.flagship-castle .book-details { background: #f8f3e9; }

body.book-page.flagship-time { background: #e9ebe1; color: #30362f; }
body.book-page.flagship-time .forthcoming-page { min-height: 61vh; max-width: 1180px; padding-top: clamp(5rem, 12vw, 11rem); padding-bottom: clamp(5rem, 12vw, 11rem); }
body.book-page.flagship-time .forthcoming-page h1 { max-width: 14ch; font-size: clamp(4rem, 9vw, 8.5rem); line-height: .88; letter-spacing: -.06em; overflow-wrap: normal; word-break: normal; }
body.book-page.flagship-time .forthcoming-page p { max-width: 47ch; font-size: clamp(1.08rem, 1.5vw, 1.3rem); line-height: 1.7; }
body.book-page.flagship-time .forthcoming-page a[style*="background"] { background: #30362f !important; color: var(--flagship-warm) !important; }

/* Stories, about and contact share the editorial frame without interrupting the reader. */
body.flagship-stories .story-section,
body.flagship-about .about-page,
body.flagship-contact .contact-page {
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 7.5rem) clamp(1.25rem, 7vw, 8rem);
  background: var(--flagship-paper);
}
body.flagship-stories .story-section > h1 {
  max-width: 14ch;
  font-size: clamp(3.6rem, 7vw, 7.3rem);
  line-height: .92;
  letter-spacing: -.06em;
  overflow-wrap: normal;
  word-break: normal;
}
body.flagship-stories .story-section > p { max-width: 48ch; margin-top: 1.6rem; font-size: clamp(1.06rem, 1.5vw, 1.28rem); }
body.flagship-stories .filter { display: flex; align-items: center; gap: .75rem; width: fit-content; min-height: 44px; margin: 2.5rem 0 1rem; font: 600 .88rem/1.4 var(--ui); }
body.flagship-stories .filter select { min-height: 44px; padding: .45rem .7rem; border: 1px solid var(--flagship-ink); background: var(--flagship-warm); }
body.flagship-stories .story-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 6vw, 7rem); max-width: 1300px; border-top: 2px solid var(--flagship-green); }
body.flagship-stories .story-list > a { min-height: 15rem; padding: 1.75rem 0; border-color: var(--flagship-line); }
body.flagship-stories .story-list h3 { font-size: clamp(1.65rem, 3vw, 2.5rem); }
body.flagship-stories .story-list > a:nth-child(6n + 1) h3 { color: var(--flagship-green); }
body.flagship-stories .story-list > a:nth-child(6n + 2) h3 { color: #4c4233; }
body.flagship-stories .story-list > a:nth-child(6n + 3) h3 { color: #153c39; }

body.flagship-about .about-page,
body.flagship-contact .contact-page { display: grid; gap: clamp(3rem, 8vw, 8rem); }
body.flagship-about .about-page section,
body.flagship-contact .contact-page section { max-width: 900px; margin: 0; }
body.flagship-about .about-page section:first-child,
body.flagship-contact .contact-page section:first-child { padding-bottom: clamp(2rem, 5vw, 4.5rem); border-bottom: 2px solid var(--flagship-green); }
body.flagship-about .about-page h1,
body.flagship-contact .contact-page h1 { max-width: 16ch; font-size: clamp(3.5rem, 6.2vw, 6.25rem); line-height: .94; letter-spacing: -.05em; overflow-wrap: normal; word-break: normal; }
body.flagship-about .about-page h2,
body.flagship-contact .contact-page h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
body.flagship-about .about-page p,
body.flagship-contact .contact-page p { max-width: 58ch; font-size: clamp(1.06rem, 1.5vw, 1.26rem); line-height: 1.7; }
body.flagship-about .about-page img { max-width: 20rem; box-shadow: 14px 20px 32px #262b283d; }
body.flagship-contact .contact-page form { display: grid; gap: 1rem; max-width: 42rem; }
body.flagship-contact .contact-page input,
body.flagship-contact .contact-page textarea { min-height: 44px; border: 1px solid var(--flagship-ink); background: var(--flagship-warm); }
body.flagship-contact .contact-page button { min-height: 44px; width: fit-content; padding-inline: 1.25rem; border: 1px solid var(--flagship-green); background: var(--flagship-green); color: var(--flagship-warm); }

@media (max-width: 900px) {
  body.book-page.flagship-book .book-feature.scene { grid-template-columns: minmax(10rem, 14rem) minmax(0, 1fr); }
  body.flagship-catalog .catalog-heading { display: block; }
  body.flagship-catalog .catalog-heading > div { margin-top: 2rem; }
  body.book-page.flagship-book .book-feature.scene { grid-template-areas: "book title" "book blurb" "edition decision" "foot foot"; }
  body.book-page.flagship-castle .book-feature.scene { grid-template-areas: "book title" "book blurb" "edition decision" "menu menu" "foot foot"; }
  body.flagship-catalog .catalog-entry { grid-template-columns: minmax(8rem, 13rem) minmax(0, 1fr); gap: 2.5rem; }
}

@media (max-width: 640px) {
  body.flagship-catalog .catalog-page,
  body.flagship-stories .story-section,
  body.flagship-about .about-page,
  body.flagship-contact .contact-page { padding: 3.25rem 1.25rem 4.5rem; }
  body.flagship-catalog .catalog-heading { display: block; }
  body.flagship-catalog .catalog-heading h1 { max-width: none; font-size: clamp(2.6rem, 13vw, 4.8rem); }
  body.flagship-catalog .catalog-heading > div { margin-top: 2rem; }
  body.flagship-catalog .catalog-index { flex-wrap: wrap; overflow-x: visible; padding-inline: .2rem; }
  body.flagship-catalog .catalog-index a { flex: 0 1 auto; }
  body.flagship-catalog .catalog-entry { grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1rem; min-height: 0; padding-block: 2.5rem; }
  body.flagship-catalog .catalog-entry.night { margin-inline: 0; padding-inline: 0; }
  body.flagship-catalog .catalog-info h2 a { font-size: clamp(2rem, 10vw, 3.1rem); }
  body.flagship-catalog .catalog-info p { font-size: 1.04rem; }
  body.flagship-catalog .catalog-info .buy { width: 100%; }
  body.book-page.flagship-book .book-feature.scene,
  body.book-page.flagship-castle .book-feature { grid-template-columns: minmax(0, 1fr) minmax(6.6rem, 1fr); grid-template-areas: "title title" "book edition" "blurb blurb" "decision decision" "menu menu" "foot foot"; gap: 1.5rem 1rem; padding: 3.25rem 1.25rem 2rem; }
  body.book-page.flagship-book .book-feature .scene-title { font-size: clamp(2.55rem, 13vw, 4.25rem); }
  body.book-page.flagship-lily .book-feature .scene-title { font-size: clamp(2.25rem, 11.2vw, 3.65rem); }
  body.book-page.flagship-book .book-feature .book { width: clamp(8.5rem, 44vw, 11rem); }
  body.book-page.flagship-book .book-feature .edition-choice { width: 100%; align-self: center; }
  body.book-page.flagship-book .book-feature .buy { gap: .55rem; }
  body.book-page.flagship-book .book-feature .buy a { padding: .55rem .45rem; font-size: .85rem; line-height: 1.25; }
  body.book-page.flagship-book .book-feature .blurb { font-size: 1.08rem; }
  body.book-page.flagship-castle .book-feature .book-decision { border-left: 0; padding-left: 0; }
  body.book-page.flagship-book .book-details { padding: 3.5rem 1.25rem 4.5rem; }
  body.book-page.flagship-night .book-details,
  body.book-page.flagship-lily .book-details { padding-inline: 1.25rem; }
  body.book-page.flagship-time .forthcoming-page { min-height: 54vh; padding-top: 5rem; }
  body.book-page.flagship-time .forthcoming-page h1 { font-size: clamp(3.6rem, 17vw, 5.8rem); }
  body.flagship-stories .story-list { grid-template-columns: 1fr; }
  body.flagship-stories .story-list > a { min-height: 0; }
  body.flagship-about .about-page,
  body.flagship-contact .contact-page { gap: 3.5rem; }
  body.flagship-about .about-page h1,
  body.flagship-contact .contact-page h1 { font-size: clamp(3rem, 13vw, 4.75rem); }
}

/* These two jacket titles are short enough to read as one composed line. */
body.book-page.flagship-wind .book-feature .scene-title,
body.book-page.flagship-castle .book-feature .scene-title {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(2.5rem, 5.4vw, 4.65rem);
}

body.flagship-stories .filter select {
  height: 44px;
  min-block-size: 44px;
}
