/* Fixed navigation, the continuous studio table, and the selection dialogs. */
:root {
  --studio-ink: var(--ui-ink);
  --studio-muted: var(--ui-muted);
  --studio-paper: var(--ui-surface);
  --studio-serif:
    'Songti SC', 'STSong', 'Noto Serif CJK SC', 'Noto Serif SC', SimSun, Georgia, serif;
  --studio-latin: Baskerville, Georgia, 'Times New Roman', serif;
  --studio-ui: Inter, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
body.brand-home {
  --cover-menu-paper: #edf2ed;
  position: relative;
  color: var(--studio-ink);
  font: 400 16px/1.5 var(--studio-serif);
}
.brand-home :is(h1, h2, h3, p, figure) {
  margin: 0;
}
.brand-home :is(h1, h2, h3) {
  font-weight: 400;
}
.brand-home a {
  color: inherit;
  text-decoration: none;
}
.brand-home button,
.brand-home summary {
  color: inherit;
}
.brand-home :is(button, a, summary):focus-visible {
  outline: 2px solid var(--ui-green);
  outline-offset: 4px;
}
.brand-home [hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 50;
  transform: translateY(-180%);
  padding: 10px 18px;
  background: var(--studio-paper);
}
.skip-link:focus {
  transform: none;
}
.home-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 15;
  background: transparent;
}
.header-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  grid-template-areas: 'brand nav language start';
  align-items: center;
  column-gap: clamp(10px, 1.7vw, 32px);
  min-height: clamp(74px, 6.3vw, 108px);
  padding: 8px 3% 8px 5.3%;
}
.home-brand {
  grid-area: brand;
  justify-self: start;
  display: inline-flex;
  align-items: center;
}
.home-brand .brand-copy {
  color: var(--studio-ink);
}
.home-brand .brand-wordmark {
  font-size: clamp(23px, 1.65vw, 34px);
}
html[lang='en'] .home-brand .brand-wordmark {
  font-size: clamp(14px, 1.25vw, 20px);
}
#home-navigation {
  grid-area: nav;
  display: flex;
  align-items: center;
  gap: clamp(15px, 3vw, 58px);
}
#home-navigation :is(a, button) {
  display: inline-flex;
  position: relative;
  align-items: center;
  min-height: 44px;
  padding: 3px 2px;
  border: 0;
  background: transparent;
  font: 600 clamp(13px, 1.05vw, 18px)/1.4 var(--studio-serif);
  letter-spacing: 0.13em;
  white-space: nowrap;
}
#home-navigation [aria-current='location']::after {
  content: '';
  position: absolute;
  left: -3px;
  right: -3px;
  bottom: -1px;
  height: 1px;
  background: currentColor;
}
#home-navigation :is(a, button):hover {
  color: var(--ui-green);
}
.header-row .language-picker {
  grid-area: language;
  justify-self: end;
}
.header-row .select-control--language .select-trigger {
  min-height: 44px;
  border: 0;
  box-shadow: none;
  background: transparent;
  color: var(--studio-ink);
  font: 600 clamp(12px, 0.96vw, 17px)/1.3 var(--studio-serif);
  gap: 7px;
  letter-spacing: 0.1em;
}
.header-row .select-globe {
  display: none;
}
.header-row .select-chevron {
  color: currentColor;
}
.brand-home .studio-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  gap: clamp(12px, 1.3vw, 22px);
  padding: 0.64em 1.95em;
  min-height: 44px;
  border: 1px solid var(--ui-line);
  border-radius: 100px;
  font: 500 clamp(15px, 1.1vw, 20px)/1.4 var(--studio-serif);
  letter-spacing: 0.16em;
  background: var(--ui-card-surface);
  color: var(--ui-ink);
  box-shadow: none;
}
.studio-button span {
  font: 500 0.95em/1 var(--studio-ui);
  letter-spacing: 0;
}
.brand-home .studio-button:hover {
  border-color: var(--ui-control-line);
  background: var(--ui-hover-surface);
}
.brand-home .studio-button.outline {
  background: var(--ui-card-surface);
  color: var(--studio-ink);
  border-color: var(--ui-control-line);
}
.brand-home .studio-button.outline:hover {
  background: var(--ui-hover-surface);
}
.header-start {
  grid-area: start;
}
#nav-toggle {
  display: none;
}

/* All three compositions are objects on one continuous, top-lit surface. */
.studio-table {
  --table-inset: clamp(22px, 6.2vw, 124px);
  --table-contact: 1px 2px 2px #4c382a29, 4px 7px 10px -5px #4c382a34;
  position: relative;
  isolation: isolate;
  overflow: clip;
}
.studio-table.under-home-navigation {
  /* Fade the foreground under the fixed navigation, revealing the same page background. */
  mask-image: linear-gradient(
    to bottom,
    transparent var(--table-fade-start),
    #0003 calc(var(--table-fade-start) + 12px),
    #000b calc(var(--table-fade-start) + 31px),
    #000 calc(var(--table-fade-start) + 48px)
  );
}
/* Let the shared mint and coral page background show through the tabletop grain. */
.studio-table::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url('/assets/home-scenes/paper-texture.webp') 0 0 / 186px 186px;
  opacity: 0.09;
  mix-blend-mode: multiply;
}
.window-light {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  /* This light pass crosses the tabletop, covers and open paper together. */
  background: linear-gradient(
    118deg,
    transparent 13%,
    #64847814 14.4%,
    #64847814 15%,
    transparent 16.3%,
    transparent 31.7%,
    #6484780f 33%,
    #6484780f 33.6%,
    transparent 35.1%,
    transparent 71%,
    #6484780a 75%,
    transparent 91%
  );
  mix-blend-mode: multiply;
}
.table-sprig-shadow {
  position: absolute;
  top: clamp(160px, 26vh, 390px);
  left: -9%;
  width: clamp(245px, 34vw, 650px);
  overflow: visible;
  pointer-events: none;
  transform: translateY(var(--hero-shadow-offset, 0px)) rotate(158deg);
  filter: brightness(0) blur(4px);
  opacity: 0.065;
}
.studio-table section {
  position: relative;
}
.studio-table > section[id] {
  scroll-margin-top: calc(var(--home-navigation-height, 76px) + 38px);
}
.brand-home .first-scene {
  --hero-book-width: clamp(210px, 23vw, 345px);
  --book-offset: clamp(34px, calc(4svh + 14px), 56px);
  display: grid;
  grid-template-columns: 50% 50%;
  align-items: center;
  min-height: clamp(500px, 76svh, 780px);
  padding: clamp(92px, 11svh, 140px) var(--table-inset) clamp(70px, 8.8svh, 118px);
}
.intro-copy {
  padding-left: min(3.4vw, 70px);
  position: relative;
  z-index: 1;
}
.studio-signature {
  display: block;
  color: var(--studio-ink);
  font: 600 clamp(12px, 0.92vw, 17px)/1.5 var(--studio-latin);
  letter-spacing: 0.42em;
}
.short-rule {
  display: block;
  width: clamp(32px, 2.9vw, 53px);
  height: 1px;
  background: var(--ui-control-line);
}
.studio-table h1,
.studio-table h2 {
  color: var(--ui-heading);
  font-family: var(--studio-serif);
  line-height: 1.26;
  letter-spacing: 0.075em;
}
.studio-table h1 {
  font-size: clamp(25px, 2.4vw, 38px);
}
.intro-copy .studio-button {
  margin-top: clamp(24px, 3.8svh, 42px);
}
.intro-copy .intro-description {
  max-width: 33ch;
  margin-top: 14px;
  color: var(--studio-ink);
  font: 400 clamp(14px, 1.25vw, 17px)/1.55 var(--studio-serif);
}
.intro-copy .intro-description:lang(zh) {
  max-width: 24em;
}
.featured-volume {
  position: relative;
  justify-self: center;
  top: var(--book-offset);
  width: var(--hero-book-width);
  max-width: 84%;
}
.featured-cover {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 2px 4px 3px 1px;
  background: #e5d8bf;
  box-shadow:
    1px 1px 0 #c1b29b,
    2px 2px 0 #f6e7c9,
    3px 3px 0 #cdbda2,
    4px 4px 0 #e7d7bc,
    5px 5px 1px #a59881,
    var(--table-contact),
    10px 14px 20px -9px #634d304c;
}
.featured-cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}
[data-home-cover-pending] :is(.featured-cover, #cover-display-title) {
  visibility: hidden;
}
.cover-lettering {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.featured-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    #93794f38,
    #fff9e929 1.1%,
    transparent 2.4%,
    #634a2b15 3.7%,
    transparent 4.9%
  );
}
.table-sprig,
.table-petals {
  position: absolute;
  max-width: none;
  height: auto;
  pointer-events: none;
  user-select: none;
}
.first-sprig {
  transform: translateY(var(--hero-sprig-offset, 0px));
  width: clamp(220px, 25vw, 500px);
  right: -7.3%;
  top: clamp(72px, 13svh, 170px);
  z-index: 1;
}
.sprig-raised {
  filter: drop-shadow(2px 5px 3px #60482e29);
}
.collection-scene {
  padding: clamp(48px, 6.5vw, 115px) 0 clamp(18px, 2.4vw, 42px);
}
.collection-heading {
  margin: 0 var(--table-inset) clamp(18px, 2.4vw, 42px);
}
.reading-copy h2 {
  font-size: clamp(32px, 3.35vw, 62px);
}
.reading-scene {
  min-height: min(70svh, 720px);
  display: grid;
  grid-template-columns: minmax(0, min(48vw, 73svh, 690px)) minmax(0, 285px);
  justify-content: center;
  align-items: center;
  column-gap: clamp(36px, 5vw, 90px);
  padding: clamp(52px, 5vw, 85px) var(--table-inset) clamp(66px, 7vw, 110px);
}
#category-preview,
.home-book-mount {
  position: relative;
  min-width: 0;
  width: 100%;
}
.preview-placeholder {
  width: 100%;
  aspect-ratio: 296/210;
  display: grid;
  place-content: center;
  font: 15px/1.6 var(--studio-ui);
  color: var(--studio-muted);
}
.reading-copy {
  min-width: 0;
  container-type: inline-size;
}
.reading-copy h2 {
  margin: 18px 0 24px;
}
.reading-navigation {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.5vw, 25px);
  margin-top: clamp(22px, 2.3vw, 42px);
}
.reading-navigation button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ui-control-line);
  border-radius: 50%;
  background: transparent;
  color: var(--studio-ink);
  font: 22px/1 var(--studio-latin);
}
.reading-navigation button:enabled:hover {
  background: var(--ui-hover-surface);
}
.reading-navigation button:disabled {
  opacity: 0.48;
  cursor: default;
}
.reading-navigation output {
  white-space: nowrap;
  font: 500 clamp(16px, 1.2vw, 21px)/1.4 var(--studio-latin);
  letter-spacing: 0.07em;
  font-variant-numeric: tabular-nums;
}
#home-status:not(:empty) {
  margin-top: 12px;
  font: 14px/1.7 var(--studio-ui);
}
.table-petals {
  top: calc(100% - 5px);
  right: 3%;
  width: clamp(34px, 3.5vw, 62px);
  filter: drop-shadow(1px 2px 1px #60482e29);
}
@media (min-width: 701px) {
  .reading-copy h2:lang(zh) {
    font-size: clamp(23px, 14cqi, 62px);
    white-space: nowrap;
  }
}

html[lang='en'] .studio-table :is(h1, h2) {
  font-family: var(--studio-latin);
  letter-spacing: 0.01em;
}

.brand-home .select-menu {
  border-color: var(--ui-control-line);
  background: var(--cover-menu-paper);
  color: var(--studio-ink);
}
.brand-home .select-option.is-highlighted {
  background: color-mix(in srgb, var(--cover-menu-paper) 86%, var(--ui-green));
}
.brand-home .select-option[aria-selected='true'] {
  color: var(--ui-green);
}
.category-picker {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.category-picker button,
:is(.layout-options, .reading-options) button {
  border: 1px solid var(--ui-control-line);
  border-radius: 24px;
  background: transparent;
  padding: 8px 20px;
  min-height: 44px;
}
.category-picker button[aria-selected='true'] {
  background: var(--ui-mint);
  border-color: var(--ui-green);
}
.catalogue-settings {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin: 20px 0;
}
.design-heading h3 {
  font-size: 21px;
}
.design-heading p,
.catalogue-settings label {
  font: 13px/1.7 var(--studio-ui);
  color: var(--studio-muted);
}
.catalogue-settings .select-control {
  display: block;
  margin-top: 4px;
}
.cover-picker {
  border: 0;
  margin: 0;
  padding: 0;
}
.cover-picker legend,
:is(.layout-options, .reading-options) summary {
  font: 500 15px/1.5 var(--studio-ui);
}
.cover-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 13px;
  padding-block: 10px;
}
.cover-options button,
.layout-choices button {
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  font: 12px/1.5 var(--studio-ui);
}
.cover-options button[aria-pressed='true'],
.layout-choices button[aria-pressed='true'] {
  border-color: var(--ui-green);
  background: var(--ui-mint);
}
.cover-options img,
.layout-choices img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 5px;
}
.cover-options img {
  aspect-ratio: 148/210;
  object-fit: contain;
}
:is(.layout-options, .reading-options) {
  margin-top: 12px;
}
:is(.layout-options, .reading-options) summary,
.text-dialog summary {
  cursor: pointer;
  padding-block: 10px;
}
:is(.layout-options, .reading-options) button {
  margin: 5px 8px 0 0;
  font: 13px/1.5 var(--studio-ui);
}
.layout-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.layout-choices img {
  aspect-ratio: 296/210;
  object-fit: contain;
}
.text-dialog {
  width: min(570px, calc(100% - 36px));
}
.text-dialog .dialog-body {
  font: 15px/1.8 var(--studio-ui);
}
.text-dialog .dialog-body p {
  color: var(--studio-muted);
}
.guide-steps {
  margin: 0 0 20px;
  padding-left: 1.6em;
}
.guide-steps li {
  padding-left: 5px;
  margin: 10px 0;
}
.guide-steps h3 {
  font-weight: 600;
  font-size: 16px;
}
.text-action {
  text-decoration: underline !important;
  text-underline-offset: 4px;
}

.header-row .select-control--language {
  width: auto;
}

.catalogue-settings label {
  min-width: 0;
}

.catalogue-settings .select-control {
  max-width: 100%;
}

@media (max-width: 1140px) {
  .header-row {
    padding-inline: 3.5%;
    gap: 12px;
  }
  #home-navigation {
    gap: 14px;
  }
  #home-navigation :is(a, button) {
    letter-spacing: 0.04em;
  }
  .header-start {
    padding-inline: 1.3em !important;
  }
}

@media (max-width: 900px) {
  .header-row {
    min-height: 70px;
    grid-template-columns: minmax(0, 1fr) auto 44px;
    grid-template-areas: 'brand language toggle';
    gap: 4px;
    padding-inline: 3%;
  }
  .home-brand .brand-wordmark {
    font-size: 20px;
  }
  .header-row .language-picker {
    margin: 0;
  }
  .header-row .select-control--language .select-trigger {
    padding-inline: 4px;
    font-size: 12px;
    letter-spacing: 0;
    gap: 2px;
  }
  .brand-home .header-start {
    display: none;
  }
  #nav-toggle {
    grid-area: toggle;
    display: grid;
    place-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
  }
  #nav-toggle span {
    display: block;
    width: 21px;
    height: 1px;
    background: currentColor;
  }
  #home-navigation {
    display: none;
  }
  .menu-open .header-row {
    background: inherit;
  }
  .menu-open #home-navigation {
    position: absolute;
    inset: 100% 0 auto;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 0 7% 12px;
    background: var(--cover-menu-paper, #edf2ed);
    box-shadow: 0 8px 13px #254d3b12;
  }
  #home-navigation [aria-current='location']::after {
    display: none;
  }
  #home-navigation [aria-current='location'] {
    font-weight: 700;
  }
  .header-row .select-chevron {
    width: 10px;
  }
  html[lang='en'] .home-brand .brand-wordmark {
    font-size: 13px;
    letter-spacing: 0.12em;
  }
}

@media (max-width: 820px) {
  .brand-home .first-scene {
    grid-template-columns: 48% 52%;
  }
  .intro-copy {
    padding-left: 0;
  }
  .reading-scene {
    grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr);
    column-gap: 24px;
  }
  .reading-copy h2 {
    font-size: clamp(25px, 4vw, 38px);
  }
  .reading-navigation {
    gap: 11px;
  }
}
@media (max-width: 700px) {
  .studio-table {
    --table-inset: clamp(20px, 6vw, 38px);
  }
  .brand-home .first-scene {
    grid-template-columns: minmax(0, 1fr);
    align-content: space-evenly;
    justify-items: start;
    gap: 36px;
    min-height: clamp(540px, 78svh, 730px);
    padding: 98px var(--table-inset) 66px;
  }
  .intro-copy {
    padding-left: 3vw;
  }
  .studio-table h1 {
    font-size: 27px;
  }
  .studio-signature {
    font-size: 12px;
    letter-spacing: 0.29em;
  }
  .intro-copy .studio-button {
    margin-top: 20px;
  }
  .featured-volume {
    width: clamp(145px, 46vw, 245px);
    justify-self: end;
    margin-right: 6vw !important;
  }
  .first-sprig {
    top: auto;
    bottom: 24%;
    right: -17%;
    width: clamp(145px, 43vw, 250px);
  }
  .collection-scene {
    padding-block: 40px 20px;
  }
  .collection-heading {
    margin-bottom: 12px;
  }
  .reading-scene {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 40px var(--table-inset) 74px;
    row-gap: 22px;
  }
  .reading-copy {
    grid-row: 1;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px 10px;
  }
  .reading-copy .studio-signature,
  .reading-copy .short-rule {
    display: none;
  }
  .reading-copy h2 {
    margin: 0;
    font-size: clamp(25px, 6vw, 40px);
  }
  .reading-navigation {
    margin: 0;
    gap: 8px;
  }
  .reading-navigation button {
    width: 44px;
    height: 44px;
  }
  .reading-navigation output {
    font-size: 15px;
  }
  #home-status {
    grid-column: 1 / -1;
  }
  #home-status:empty {
    display: none;
  }
  .table-petals {
    width: 32px;
    top: calc(100% - 2px);
  }
  .catalogue-settings {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .dialog-actions .studio-button {
    padding-inline: 1em;
  }
}
@media (max-height: 580px) and (min-width: 701px) {
  .header-row {
    min-height: 55px;
  }
  .brand-home .first-scene {
    min-height: 500px;
    padding-block: 84px 60px;
  }
  .brand-home .first-scene {
    --hero-book-width: min(29vw, 43vh);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (max-width: 365px) {
  .header-row {
    padding-inline: 2%;
    gap: 2px;
  }
  .home-brand .brand-wordmark {
    font-size: 17px;
  }
}

@media (min-width: 701px) and (max-width: 1150px) {
}

.sample-scene {
  min-height: 78svh;
  display: grid;
  align-content: center;
  gap: clamp(28px, 4vw, 66px);
  padding: clamp(80px, 9vw, 160px) var(--table-inset);
}
.collection-heading h2,
.sample-scene h2 {
  text-align: center;
  font: 400 clamp(18px, 1.6vw, 24px)/1.4 var(--studio-serif);
}
.sample-lineup {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(15px, 4vw, 76px);
}
.sample-book {
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
}
.sample-paper {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 390px;
  background: #faf9f3;
  border-radius: 2px;
  box-shadow:
    0 2px #d8d1bf,
    var(--table-contact);
}
.sample-paper img {
  display: block;
  width: 100%;
  height: auto;
}
.sample-paper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 48%,
    #28342817 50%,
    #ffffff30 50.5%,
    transparent 52%
  );
}
.sample-name {
  font: 400 clamp(14px, 1.45vw, 22px)/1.6 var(--studio-serif);
}
.sample-book:is([aria-current], :hover) .sample-name {
  text-decoration: underline;
  text-underline-offset: 0.4em;
}
@media (min-width: 701px) and (max-width: 960px) {
  .sample-scene {
    min-height: auto;
  }
}
@media (max-width: 700px) {
  .sample-scene {
    min-height: auto;
    padding: 56px 0;
    gap: 22px;
  }
  .sample-lineup {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--table-inset);
    padding: 6px var(--table-inset) 18px;
    scrollbar-width: thin;
    scrollbar-color: var(--ui-control-line) transparent;
  }
  .sample-book {
    flex: 0 0 84%;
    gap: 12px;
    scroll-snap-align: start;
  }
}

.petal-flight-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.footer-petal-bed {
  position: absolute;
  inset-block-start: 4px;
  inset-inline-end: 6vw;
  width: 56px;
  height: 44px;
  z-index: 6;
}
.footer-petal-bed .footer-petal-button {
  width: 100%;
  height: 100%;
  justify-content: center;
  border-radius: 5px;
}
.footer-petal-button svg {
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.footer-petal-button:hover svg {
  filter: saturate(1.2) brightness(1.04);
}
.footer-petal-button:active svg {
  filter: brightness(0.96);
}
.footer-petal-button [data-landed-petal][data-pressed-petal] {
  opacity: 0.73;
  filter: saturate(0.7) brightness(0.83);
}
.landed-petal-shadow[data-pressed-petal] {
  opacity: 0;
}
.footer-petal-bed .footer-petal-reveal {
  position: absolute;
  inset-inline-end: 100%;
  inset-block-start: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 4px;
  color: var(--ui-green);
  text-decoration: underline;
  text-underline-offset: 0.3em;
  font-size: 14px;
  white-space: nowrap;
}
@media (prefers-reduced-motion: no-preference) {
  .footer-petal-button [data-landed-petal],
  .landed-petal-shadow {
    transition:
      opacity 360ms ease,
      filter 360ms ease,
      transform 320ms ease-out;
  }
  .footer-petal-reveal:not([hidden]) {
    animation: petal-ink-appear 400ms 140ms ease-out both;
  }
  @keyframes petal-ink-appear {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
}
.home-footer {
  color: var(--studio-ink);
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  margin: 0 auto;
  max-width: 1250px;
  padding: clamp(52px, 9svh, 105px) 6vw 24px;
}
.footer-signature {
  justify-self: start;
}
.footer-signature .brand-wordmark {
  font-size: 23px;
}
html[lang='en'] .footer-signature .brand-wordmark {
  font-size: 14px;
  letter-spacing: 0.2em;
}
.footer-links,
.footer-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.footer-links {
  justify-content: flex-end;
  gap: 0 clamp(16px, 3vw, 48px);
}
.footer-legal {
  grid-column: 1 / -1;
  justify-content: space-between;
  padding-top: 13px;
  color: var(--studio-muted);
}
.footer-legal small {
  font: 12px/1.5 var(--studio-latin);
  letter-spacing: 0.12em;
}
.home-footer :is(button, .footer-links a) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 14px;
}
.home-footer button,
.footer-links a[href] {
  cursor: pointer;
}
.footer-links [aria-disabled='true'] {
  color: var(--studio-muted);
}
.home-footer button:hover,
.footer-links a[href]:hover {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}
@media (max-width: 600px) {
  .home-footer {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 48px 6vw 12px;
  }
  .footer-links {
    justify-content: flex-start;
  }
}
.privacy-copy h3 {
  font-size: 17px;
}
.privacy-copy p + h3 {
  margin-top: 1.2em;
}

.footer-legal a {
  font-size: 14px;
  padding-block: 10px;
}
.brand-info {
  display: flow-root;
  min-height: 100vh;
  min-height: 100dvh;
}
.info-masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 6vw;
  padding: 24px 0;
  border-bottom: 1px solid var(--ui-line);
}
.info-brand .brand-wordmark {
  font-size: 22px;
}
html[lang='en'] .info-brand .brand-wordmark {
  font-size: clamp(13px, 2vw, 16px);
}
.info-article {
  max-width: 42rem;
  margin: clamp(44px, 9vh, 100px) auto;
  padding-inline: 24px;
  line-height: 1.9;
}
.info-article h1 {
  margin-bottom: 1em;
  font-size: clamp(30px, 4vw, 48px);
}
.author-opening > p + p {
  margin-top: 1.1em;
}
.author-opening > .author-signature {
  margin-top: 2em;
  text-align: end;
  color: var(--studio-muted);
}
.info-article h3 {
  margin: 1.6em 0 0.4em;
  font-size: 19px;
}
.info-article details {
  margin-block: 1em;
}
.info-article summary {
  cursor: pointer;
}
.info-article .guide-steps {
  display: block;
}
.info-start,
.contact-address {
  display: inline-block;
  border-bottom: 1px solid var(--ui-control-line);
}
.contact-address {
  font: clamp(19px, 3vw, 32px)/1.7 var(--studio-latin);
}

.travel-case {
  max-width: 74rem;
  margin-inline: auto;
  padding: clamp(40px, 7vw, 105px) clamp(20px, 5vw, 72px) clamp(65px, 10vw, 145px);
}
.travel-opening,
.travel-format-grid {
  display: grid;
  align-items: start;
  gap: clamp(30px, 5vw, 75px);
}
.travel-opening {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
}
.travel-format-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.travel-case h1,
.travel-case h2,
.travel-case h3 {
  color: var(--ui-heading);
  font-family: var(--studio-latin);
  font-weight: 400;
  line-height: 1.18;
}
.travel-case h1 {
  max-width: 13ch;
  font-size: clamp(38px, 5.1vw, 76px);
}
.travel-case h2 {
  font-size: clamp(24px, 3vw, 42px);
}
.travel-case .travel-spread :is(h2, h3) {
  font-size: clamp(20px, 2.25vw, 30px);
}
.travel-spread :is(h2, h3) span {
  display: inline-block;
  margin-inline-start: 0.35em;
  font: 400 0.65em/1.5 var(--studio-ui);
  color: var(--studio-ink);
}
.travel-case p {
  max-width: 60ch;
  margin: 0.75rem 0 1rem;
  line-height: 1.7;
}
.travel-case .info-start {
  margin-top: 0.45rem;
  padding-block-end: 0.15rem;
}
.travel-spread {
  margin: 0;
  min-width: 0;
}
.travel-spread img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 4px 17px #20342d17;
}
.travel-spread figcaption {
  padding-top: 1rem;
}
.travel-comparison,
.travel-notes {
  margin-top: clamp(54px, 9vw, 132px);
  border-top: 1px solid var(--ui-line);
  padding-top: clamp(25px, 4vw, 58px);
}
.travel-comparison > h2 {
  margin-bottom: clamp(24px, 4vw, 46px);
}
@media (max-width: 700px) {
  .travel-masthead {
    gap: 12px;
  }
  html[lang='en'] .travel-masthead .info-brand .brand-wordmark {
    font-size: 12px;
    letter-spacing: 0.12em;
  }
  .travel-masthead a {
    white-space: nowrap;
  }
  .travel-masthead .info-start {
    font-size: 14px;
  }
  .travel-opening,
  .travel-format-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .intro-copy .intro-description {
    margin-top: 10px;
  }
}

.cover-display {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(200px, 1fr);
  grid-template-areas: 'faces settings' 'examples settings';
  align-content: start;
  align-items: center;
  gap: clamp(25px, 4vw, 60px);
  min-height: 76svh;
  max-width: 1360px;
  margin-inline: auto;
  padding: clamp(18px, 3vw, 46px) var(--table-inset) clamp(52px, 7vw, 105px);
}
.cover-display-settings {
  grid-area: settings;
  padding-block: 14px;
}
.cover-display-settings h2 {
  font-size: clamp(22px, 3vw, 39px);
}
.cover-detail-pair {
  grid-area: faces;
  --face-ratio: 0.705;
  display: flex;
  justify-content: center;
  align-items: end;
  gap: clamp(15px, 4vw, 53px);
}
.cover-detail-pair figure {
  flex: 0 1 calc(clamp(130px, 36svh, 330px) * var(--face-ratio));
  min-width: 0;
  margin: 0;
  text-align: center;
}
.cover-face {
  margin: auto;
  max-width: 100%;
  aspect-ratio: var(--face-ratio);
}
.cover-face canvas {
  display: block;
  height: 100%;
  width: 100%;
  box-shadow: 1px 3px 8px #26372d21;
}
.cover-detail-pair .cover-detail-wrap {
  flex-basis: calc(clamp(140px, 43svh, 410px) * var(--wrap-ratio));
}
.cover-detail-wrap canvas {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 1px 3px 8px #26372d21;
}
.cover-detail-pair figcaption {
  margin-top: 12px;
  font: 400 13px/1.4 var(--studio-serif);
}
#layout-examples {
  grid-area: examples;
  width: min(100%, 560px);
  justify-self: center;
}
#detail-interiors {
  margin: 0 0 12px;
  font: 400 14px/1.4 var(--studio-serif);
  text-align: center;
}
.cover-display .layout-choices img {
  min-width: 0;
  object-fit: contain;
  aspect-ratio: 3 / 1.71;
  margin: 0;
}
.detail-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 0 14px;
  margin: 20px 0 24px;
  padding: 0;
  border: 0;
}
.detail-formats legend {
  padding: 0 0 4px;
  color: var(--studio-muted);
  font-size: 13px;
}
.detail-formats label {
  position: relative;
  cursor: pointer;
}
.detail-formats input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  margin: 0;
  cursor: pointer;
}
.detail-formats span {
  display: inline-block;
  padding-block: 10px;
  border-bottom: 1px solid transparent;
}
.detail-formats input:checked + span {
  border-color: currentColor;
}
.detail-formats input:focus-visible + span {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
@media (max-width: 700px) {
  .cover-display {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'settings' 'faces' 'examples';
    gap: 25px;
  }
  .cover-display-settings {
    padding-block: 0;
  }
  .detail-formats {
    margin-block: 12px 18px;
  }
}

.first-sprig {
  overflow: visible;
}
@media (prefers-reduced-motion: no-preference) {
  .first-sprig {
    touch-action: none;
  }
  .sprig-grip [data-sprig-stem] {
    pointer-events: painted;
    cursor: grab;
  }
  .first-sprig[data-dragging] [data-sprig-stem] {
    cursor: grabbing;
  }
}

.hero-fireflies {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-fireflies i {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff9cc;
  box-shadow:
    0 0 4px 1px #edcf69,
    0 0 10px 3px #e5d55b55;
}

.home-palette-stack {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.home-palette-sheet {
  position: absolute;
  inset: 0;
  mask-repeat: no-repeat;
}
.home-snow-cover-stencil {
  position: absolute;
  pointer-events: none;
}
.home-palette-sheet,
.brand-info[data-home-palette] {
  background-image: var(--home-palette-background, var(--brand-page-background));
}
:is([data-palette-sheet='dusk'], .brand-info[data-home-palette='dusk']) {
  --home-palette-background:
    radial-gradient(ellipse at 19% 30%, #f3ecdbbd, transparent 54%),
    radial-gradient(ellipse at 87% 79%, #668f7b29, transparent 71%),
    linear-gradient(148deg, #e7ece1, #cbdcce 61%, #b8d0c4);
}
:is([data-palette-sheet='mountain'], .brand-info[data-home-palette='mountain']) {
  --home-palette-background:
    radial-gradient(ellipse at 10% 55%, #c4d9cd83, transparent 67%),
    linear-gradient(165deg, #d2e1e8ac, #e8eee9bc 46%, #cfdfd2a8), var(--brand-page-background);
}
:is([data-palette-sheet='water'], .brand-info[data-home-palette='water']) {
  --home-palette-background:
    radial-gradient(ellipse at 18% 21%, #f4f9f6c7, transparent 61%),
    radial-gradient(ellipse at 80% 77%, #b4d6d05c, transparent 72%),
    linear-gradient(158deg, #e9f3f4, #d6e8e7 68%, #dcf0ea);
}
:is([data-palette-sheet='rain'], .brand-info[data-home-palette='rain']) {
  --home-palette-background:
    radial-gradient(ellipse at 9% 10%, #f5f5f0, transparent 72%),
    radial-gradient(ellipse at 82% 58%, #c8d8de80, transparent 66%),
    linear-gradient(148deg, #edf0ef, #d9e4e8 76%, #e6ebec);
}
.cover-rain-plate,
.cover-rain-layer,
.cover-rain-glass,
.rain-transition-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
:is(.cover-rain-plate, .cover-rain-layer, .cover-rain-glass) {
  border-radius: inherit;
}
.rain-transition-drop,
.rain-beside-cover::before {
  position: absolute;
  width: 3px;
  height: 11px;
  border-radius: 66% 55% 54% 67%;
  background: linear-gradient(173deg, #f4f8f500, #f4f8f5 57%, #66868e 91%);
  box-shadow: 0 0 1px #728e9b88;
  opacity: 0;
}
.rain-transition-imprint,
.rain-beside-cover::after {
  position: absolute;
  width: 110px;
  height: 59px;
  border-radius: 49% 56% 47% 42% / 55% 39% 62% 44%;
  background: radial-gradient(
    ellipse at 46% 55%,
    #6c98a32d,
    #7b9da32a 38%,
    #92aebd11 62%,
    transparent 73%
  );
  opacity: 0;
}
.rain-beside-cover {
  position: absolute;
  left: -13%;
  top: 79%;
  pointer-events: none;
}
.rain-beside-cover::before,
.rain-beside-cover::after {
  content: '';
  top: 0;
  left: 0;
}
.rain-beside-cover::before {
  animation: rain-beside-fall 12s 6.5s linear infinite;
}
.rain-beside-cover::after {
  animation: rain-beside-dry 12s 6.5s linear infinite;
}
@keyframes rain-beside-fall {
  0% {
    transform: translate(13px, -105px) rotate(8deg);
    opacity: 0;
  }
  3% {
    transform: translate(9px, -73px) rotate(8deg);
    opacity: 0.65;
  }
  7.4% {
    transform: translate(1px, -5px) rotate(8deg) scaleY(1.45);
    opacity: 0.88;
  }
  7.9%,
  100% {
    transform: scale(1.3, 0.38);
    opacity: 0;
  }
}
@keyframes rain-beside-dry {
  0%,
  7.5% {
    transform: translate(-50%, -50%) scale(0.1);
    opacity: 0;
  }
  12% {
    transform: translate(-50%, -50%) scale(0.29);
    opacity: 0.7;
  }
  36%,
  100% {
    transform: translate(-50%, -50%) scale(0.76);
    opacity: 0;
  }
}
.home-snowmelt-waves,
.home-water-dusk-surface,
.home-snowmelt-flakes {
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.home-snowmelt-waves,
.home-water-dusk-surface {
  position: absolute;
}
.home-snowmelt-flakes {
  position: fixed;
  z-index: 5;
}
.home-palette-edge {
  position: absolute;
  background-size: 100% 100%;
}
.brand-home[data-home-palette='dusk'] {
  --cover-menu-paper: #e4ede2;
}
.brand-home[data-home-palette='mountain'] {
  --cover-menu-paper: #e5efeb;
}
.brand-home[data-home-palette='water'] {
  --cover-menu-paper: #e0eeeb;
}
.brand-home[data-home-palette='rain'] {
  --cover-menu-paper: #e8eeef;
  --studio-ink: #374a51;
  --studio-muted: #52666d;
  --ui-ink: #374a51;
  --ui-heading: #344951;
  --ui-muted: #52666d;
  --ui-green: #426b78;
  --ui-line: #bdcbd0;
  --ui-control-line: #95acb4;
  --ui-card-surface: #edf1f1;
  --ui-hover-surface: #dde9eb;
}
.brand-home[data-home-palette='rain'] :is(.header-start, .intro-copy .studio-button, .shelf-arrow) {
  border-color: #9aafb7;
  background: #e9eff1;
}
.brand-home[data-home-palette='rain']
  :is(.header-start, .intro-copy .studio-button, .shelf-arrow):hover {
  border-color: #68848e;
  background: #dce8eb;
}
.brand-home[data-home-palette='rain'] .shelf-choice[aria-pressed='true'] .shelf-title {
  text-decoration-color: #ad7d86;
}
.brand-home[data-home-palette='water']
  :is(.header-start, .intro-copy .studio-button, .shelf-arrow) {
  border-color: #88a8a3;
  background: #e4efed;
}
.brand-home[data-home-palette='water']
  :is(.header-start, .intro-copy .studio-button, .shelf-arrow):hover {
  border-color: #628f8b;
  background: #d9ebe7;
}
.brand-home[data-home-palette='dusk'] :is(.header-start, .intro-copy .studio-button) {
  border-color: #91aa9a;
  background: #ecf1e7;
}
.brand-home[data-home-palette='dusk'] :is(.header-start, .intro-copy .studio-button):hover {
  border-color: #688c79;
  background: #e4eee0;
}
.brand-home[data-home-palette='dusk'] .shelf-arrow {
  border-color: #99ad9f;
  background: #e8efe5;
}
@media (prefers-reduced-motion: no-preference) {
  .brand-home.home-palette-changing :is(.header-start, .intro-copy .studio-button, .shelf-arrow) {
    transition:
      background-color 610ms ease var(--palette-delay, 0ms),
      border-color 610ms ease var(--palette-delay, 0ms),
      opacity 160ms ease;
  }
}
.home-firefly-layer {
  position: fixed;
  inset: 0;
  z-index: 6;
  overflow: hidden;
  pointer-events: none;
}
.page-firefly {
  position: absolute;
  top: -12px;
  left: -12px;
  width: 24px;
  height: 24px;
  opacity: 0;
  background: radial-gradient(
    circle,
    #fff7c5 0 1.6px,
    #f3d479 2.3px,
    #e6b9548a 3.2px,
    #e9c45355 5px,
    #ebd78724 8px,
    transparent 12px
  );
}
.page-firefly-outgoing,
.page-firefly-returning {
  background: radial-gradient(
    circle,
    #fff9d5 0 2px,
    #f6d47c 2.9px,
    #edb44f9c 3.6px,
    #f6d77b63 5.6px,
    #ebd28a26 8.6px,
    transparent 12px
  );
}
.firefly-cover-patch {
  position: absolute;
  pointer-events: none;
}
.cover-firefly-spill {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  mix-blend-mode: screen;
}
.cover-firefly-spill i {
  position: absolute;
  inset: -23px auto auto -31px;
  width: 62px;
  height: 46px;
  opacity: 0;
  background: radial-gradient(ellipse, #ffd68b43, #f9d07e20 32%, transparent 68%);
}
.sprig-firefly-roost {
  visibility: hidden;
  pointer-events: none;
}
[data-home-palette='dusk'] .sprig-firefly-roost:not([data-vacated]) {
  visibility: visible;
  opacity: 0.72;
}
@media (prefers-reduced-motion: no-preference) {
  [data-home-palette='dusk'] .sprig-firefly-roost {
    animation: sprig-firefly-glimmer 3.8s ease-in-out infinite alternate;
  }
  .sprig-firefly-roost:nth-child(2) {
    animation-delay: -0.9s;
  }
  .sprig-firefly-roost:nth-child(3) {
    animation-delay: -2.4s;
  }
}
@keyframes sprig-firefly-glimmer {
  from {
    opacity: 0.16;
  }
  to {
    opacity: 0.94;
  }
}
.firefly-paper-reflection {
  position: absolute;
  inset: auto 0 0 auto;
  width: 38px;
  height: 20px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse at 63% 92%, #e9b44fc2, #eed18c52 35%, transparent 68%);
}
.cover-fox-walk,
.cover-snow-motion,
.cover-water-motion {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.cover-fox-walk,
.cover-snow-motion {
  border-radius: inherit;
}
.cover-fox-walk {
  z-index: 1;
}
.cover-snow-motion {
  z-index: 2;
}
.home-cover-weather {
  position: fixed;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.home-mountain-mist {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.home-mountain-mist :is(.mountain-mist-far, .mountain-mist-near) {
  position: absolute;
  inset-inline: -18%;
  height: 52%;
}
.mountain-mist-far {
  top: 24%;
}
.mountain-mist-near {
  top: 55%;
}
.home-mountain-mist :is(.mountain-mist-far, .mountain-mist-near)::before {
  content: '';
  position: absolute;
  inset: 0;
}
.mountain-mist-far::before {
  background:
    radial-gradient(ellipse 46% 18% at 24% 41%, #a7c0c766, transparent),
    radial-gradient(ellipse 36% 16% at 68% 62%, #aec7c971, transparent),
    radial-gradient(ellipse 43% 17% at 76% 57%, #f7f9f5d4, transparent),
    radial-gradient(ellipse 40% 20% at 30% 49%, #f4f8f2d9, transparent);
}
.mountain-mist-near::before {
  background:
    radial-gradient(ellipse 39% 24% at 68% 60%, #b2c8b987, transparent),
    radial-gradient(ellipse 40% 21% at 55% 50%, #f7faf3ec, transparent),
    radial-gradient(ellipse 38% 27% at 28% 36%, #f5f9f3ec, transparent),
    radial-gradient(ellipse 38% 29% at 22% 49%, #a9c1b376, transparent);
}
.mountain-mist-source {
  display: none;
  position: absolute;
  inset: 0 auto auto 0;
  width: min(66vw, 1350px);
  height: clamp(82px, 18vh, 205px);
  transform: translate(
    calc(var(--mist-source-x, 0px) - 100%),
    calc(var(--mist-source-y, 0px) - 50%)
  );
  background:
    radial-gradient(ellipse 35% 28% at 71% 45%, #f4f8f1e5, transparent),
    radial-gradient(ellipse 40% 24% at 45% 54%, #f7faf3d9, transparent),
    radial-gradient(ellipse 33% 26% at 21% 59%, #edf5edac, transparent),
    radial-gradient(ellipse 54% 38% at 48% 59%, #bfd2c772, transparent);
}
.featured-cover[data-featured-cover='green-mountains']::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(ellipse 33% 10% at 1% 72%, #f5f9f3c0, transparent);
}
.brand-home[data-home-palette='mountain'] :is(.header-start, .intro-copy .studio-button) {
  border-color: #86a098;
  background: #e2ece6;
}
.brand-home[data-home-palette='mountain'] :is(.header-start, .intro-copy .studio-button):hover {
  border-color: #65857a;
  background: #d6e6dd;
}
@media (prefers-reduced-motion: no-preference) {
  .home-mountain-mist {
    animation: mountain-mist-arrive 1.65s ease-out both;
  }
  .home-mountain-mist :is(.mountain-mist-far, .mountain-mist-near) {
    transform: translateY(var(--mist-scroll, 0px));
  }
  .mountain-mist-far::before {
    animation: mountain-mist-drift 38s ease-in-out infinite alternate;
  }
  .mountain-mist-near::before {
    animation: mountain-mist-drift 23s ease-in-out infinite alternate-reverse;
  }
  .mountain-mist-source {
    display: block;
  }
}
@keyframes mountain-mist-arrive {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes mountain-mist-drift {
  from {
    transform: translateX(-3%);
  }
  to {
    transform: translateX(3%);
  }
}

.printed-motifs,
.printed-motifs canvas {
  position: absolute;
  pointer-events: none;
}
.printed-motifs {
  inset: 0;
}

.brand-home .intro-copy .studio-button {
  background: #e3eeea;
  border-color: #91aaa2;
}
.brand-home .intro-copy .studio-button:hover {
  background: #d4e5de;
  border-color: #718e83;
}
.reader-category {
  font: 500 clamp(17px, 1.4vw, 22px)/1.4 var(--studio-serif);
  letter-spacing: 0.08em;
}
