/* 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 {
  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: inherit;
}
.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;
  gap: clamp(9px, 1.1vw, 20px);
}
.home-brand .brand-emblem {
  color: var(--studio-ink);
  width: clamp(32px, 3.1vw, 55px);
  height: auto;
}
.home-brand .brand-copy {
  color: var(--studio-ink);
  justify-items: start;
  row-gap: 5px;
}
.home-brand .brand-wordmark {
  font-size: clamp(23px, 1.65vw, 34px);
  letter-spacing: 0.25em;
  padding: 0;
}
.home-brand .brand-english {
  font: 600 clamp(8px, 0.61vw, 11px)/1 var(--studio-latin);
  letter-spacing: 0.28em;
  padding: 0;
}
html[lang='en'] .home-brand .brand-wordmark {
  font: 500 clamp(13px, 1.25vw, 20px)/1.3 var(--studio-latin);
  letter-spacing: 0.15em;
}
#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;
}
/* 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;
}
.studio-table::before {
  content: '';
  position: absolute;
  top: clamp(160px, 26vh, 390px);
  left: -9%;
  width: clamp(245px, 34vw, 650px);
  aspect-ratio: 760/831;
  pointer-events: none;
  background: url('/assets/home-scenes/blossom-sprig.webp') center/contain no-repeat;
  transform: rotate(158deg);
  filter: brightness(0) blur(4px);
  opacity: 0.065;
}
.studio-table section {
  position: relative;
}
.studio-table > section[id] {
  scroll-margin-top: clamp(72px, 6vw, 100px);
}
.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);
}
.intro-copy .short-rule {
  margin: clamp(22px, 3.5svh, 42px) 0 clamp(24px, 3.4svh, 48px);
}
.studio-table h1,
.studio-table h2 {
  color: var(--ui-heading);
  font-family: var(--studio-serif);
  line-height: 1.26;
  letter-spacing: 0.075em;
}
.intro-wordmark {
  width: max-content;
  max-width: 100%;
}
.intro-title-line {
  container-type: inline-size;
}
.studio-table h1 {
  font-size: clamp(25px, 2.4vw, 38px);
}
.intro-title-line h1:lang(zh) {
  font-size: 15.5cqi;
  white-space: nowrap;
}
.intro-copy .studio-button {
  margin-top: clamp(28px, 5.5svh, 62px);
}
@media (min-width: 701px) {
  .intro-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .intro-copy .studio-button {
    translate: 0 calc(2 * var(--book-offset));
  }
}
.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;
}
.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 {
  width: clamp(220px, 25vw, 500px);
  right: -7.3%;
  top: clamp(72px, 13svh, 170px);
  z-index: 1;
  filter: drop-shadow(2px 5px 3px #60482e29);
}
.collection-scene {
  padding: clamp(48px, 6.5vw, 115px) 0 clamp(30px, 4vw, 76px);
}
.collection-heading {
  margin: 0 var(--table-inset) clamp(18px, 2.4vw, 42px);
}
.reading-copy h2 {
  font-size: clamp(32px, 3.35vw, 62px);
}
.brand-home .table-link {
  color: var(--studio-ink);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--ui-control-line);
  padding: 7px 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 500 clamp(14px, 1.05vw, 18px)/1.55 var(--studio-ui);
  cursor: pointer;
}
.table-link span {
  font-family: var(--studio-ui);
}
.brand-home .table-link:hover {
  border-color: var(--studio-ink);
}
.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,
.table-link: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;
}
#spread-zoom {
  margin-top: 20px;
}
#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;
}

.home-dialog {
  padding: 0;
  border: 0;
  border-radius: 6px;
  overflow: auto;
  background: var(--studio-paper);
  color: var(--studio-ink);
  width: min(840px, calc(100% - 36px));
  max-height: 85vh;
  max-height: 85dvh;
  box-shadow: 0 18px 80px #254d3b38;
}
.home-dialog::backdrop {
  background: #18252a66;
  backdrop-filter: blur(4px);
}
html:has(.home-dialog[open]) {
  overflow: hidden;
}
.dialog-heading,
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px clamp(20px, 3vw, 36px);
  background: var(--studio-paper);
}
.dialog-heading {
  position: sticky;
  top: 0;
  z-index: 2;
}
.dialog-heading h2 {
  font-size: clamp(23px, 2vw, 34px);
  letter-spacing: 0.08em;
}
.close-dialog {
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  font: 300 27px/1 var(--studio-ui);
}
.dialog-body {
  padding: 4px clamp(20px, 3vw, 36px) 24px;
}
.dialog-actions {
  position: sticky;
  bottom: 0;
  z-index: 1;
  border-top: 1px solid var(--ui-line);
}
.dialog-actions .studio-button {
  font-size: 14px;
  letter-spacing: 0.07em;
}
.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 auto 44px;
    grid-template-areas: 'brand language start toggle';
    gap: 4px;
    padding-inline: 3%;
  }
  .home-brand .brand-emblem {
    width: 27px;
  }
  .home-brand .brand-wordmark {
    font-size: 20px;
  }
  .home-brand .brand-english {
    font-size: 7px;
  }
  .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 {
    min-height: 38px;
    font-size: 13px;
    letter-spacing: 0.06em;
    gap: 5px;
    padding-inline: 10px !important;
  }
  #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: inherit;
    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 {
    max-width: 80px;
    white-space: normal;
    font: 500 12px/1.15 var(--studio-latin);
    letter-spacing: 0.15em;
    text-align: left;
  }
}

@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 .short-rule {
    margin: 13px 0 17px;
  }
  .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 30px;
  }
  .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;
  }
  #spread-zoom {
    width: max-content;
    margin: 0;
    font-size: 13px;
  }
  #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 {
    gap: 5px;
  }
  .home-brand .brand-emblem {
    width: 20px;
  }
  .home-brand .brand-wordmark {
    font-size: 17px;
  }
  .home-brand .brand-english {
    font-size: 6px;
  }
  .brand-home .header-start span {
    display: none;
  }
  html[lang='en'] .home-brand .brand-wordmark {
    max-width: 64px;
    letter-spacing: 0.07em;
    font-size: 11px;
  }
  .brand-home .header-start {
    font-size: 12px;
    letter-spacing: 0;
  }
}

@media (pointer: coarse) {
  .brand-home .header-start {
    min-height: 44px;
  }
}

@media (min-width: 701px) and (max-width: 1150px) {
  .intro-copy {
    height: calc(var(--hero-book-width) * 4 / 3 - 48px);
    top: var(--book-offset);
    justify-content: space-between;
  }
  .intro-copy .studio-button {
    translate: none;
    margin-top: 0;
  }
  .intro-copy .short-rule {
    margin-block: 16px;
  }
}

.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 (max-width: 700px) {
  .sample-scene {
    min-height: 66svh;
    padding-block: 55px;
  }
  .sample-lineup {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 17px;
  }
  .sample-book:last-child {
    grid-column: 1 / -1;
    width: calc((100% - 17px) / 2);
    justify-self: center;
  }
  .sample-book {
    gap: 8px;
  }
}

.home-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  margin: 0 auto;
  max-width: 1250px;
  padding: 32px 6vw 16px;
}
.footer-signature {
  justify-self: start;
  display: grid;
  justify-items: center;
  gap: 8px;
}
.footer-signature svg {
  width: 34px;
  height: 34px;
}
.footer-signature .brand-copy {
  display: grid;
  justify-items: center;
  gap: 7px;
}
.footer-signature .brand-wordmark {
  font: 400 29px/1.1 var(--studio-serif);
  letter-spacing: 0.24em;
  text-indent: 0.24em;
}
.footer-signature .brand-english,
html[lang='en'] .footer-signature .brand-wordmark {
  font: 500 11px/1.2 var(--studio-latin);
  letter-spacing: 0.28em;
  text-indent: 0.28em;
}
html[lang='en'] .footer-signature .brand-wordmark {
  font-size: 18px;
}
.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;
  border-top: 1px solid var(--ui-line);
  padding-top: 8px;
  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: 24px 6vw 8px;
  }
  .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 {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font: 500 16px var(--studio-latin);
  letter-spacing: 0.16em;
}
.info-brand svg {
  width: 38px;
  height: 38px;
}
.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);
}
.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);
}

.catalogue-dialog {
  width: min(920px, calc(100% - 24px));
}
.cover-detail-pair {
  display: flex;
  justify-content: center;
  align-items: end;
  gap: clamp(18px, 5vw, 64px);
  padding: clamp(18px, 3vw, 40px) 14px;
}
.cover-detail-pair figure {
  flex: 0 1 250px;
  min-width: 0;
  margin: 0;
  text-align: center;
}
.cover-face {
  margin: auto;
  max-width: 100%;
  width: min(100%, calc(clamp(145px, 31vh, 310px) * var(--face-ratio)));
  aspect-ratio: var(--face-ratio);
}
.cover-face canvas {
  display: block;
  height: 100%;
  width: 100%;
  box-shadow: 1px 3px 8px #26372d21;
}
.cover-detail-pair figcaption {
  margin-top: 12px;
  font: 400 13px/1.4 var(--studio-serif);
}
#layout-examples {
  margin: 24px 0 28px;
}
#detail-interiors {
  margin: 0 0 12px;
  font: 400 18px/1.4 var(--studio-serif);
}
@media (max-width: 600px) {
  .cover-face {
    height: auto;
    width: 100%;
  }
  .catalogue-dialog .layout-choices {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }
  .catalogue-dialog .layout-choices img {
    flex: 0 0 76%;
    scroll-snap-align: start;
  }
}

.catalogue-dialog {
  background: var(--brand-page-background);
  color: var(--studio-ink);
  font-family: var(--studio-serif);
}
.catalogue-dialog :is(.dialog-heading, .dialog-actions) {
  position: static;
  background: transparent;
}
.catalogue-dialog .layout-choices img {
  min-width: 0;
  object-fit: contain;
  height: auto;
  aspect-ratio: auto;
  margin: 0;
}
.detail-formats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 clamp(12px, 3vw, 28px);
  margin: 8px 0 24px;
  padding: 0;
  border: 0;
}
.detail-formats legend {
  margin: auto;
  padding-bottom: 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: 8px;
  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;
}
