/* Shared Atelier reading colours. Keep the existing charcoal and paper surfaces. */
:root {
  --atelier-label-on-dark: #b29a7c;
  --atelier-ink-on-paper: #594b3c;
  --atelier-bronze-on-paper: #695136;
}
.site-header .language-switch a, .mobile-nav .language-switch a {
  display: inline-flex; justify-content: center; align-items: center;
  min-width: 24px; min-height: 24px;
}
.mobile-nav {
  overflow-y: auto; overscroll-behavior: contain;
  max-height: calc(100vh - 83px); max-height: calc(100dvh - 83px);
}
@media(max-width:800px) {
  .mobile-nav {max-height: calc(100vh - 70px); max-height: calc(100dvh - 70px);}
}
.footer-top > a.footer-wordmark {
  font-size: clamp(1.875rem, calc(1.25rem + 3.4vw), 4.5rem);
  letter-spacing: .05em;
  gap: .14em;
  min-height: 44px;
}
.footer-wordmark > .footer-brand-mark {
  width: .21em;
  height: .7em;
  transform: translateY(.025em);
}
.footer-bottom > span { color: #a49581; }
.footer-top > .footer-social-links > a {
  display: inline-flex; align-items:center; min-width:24px; min-height:24px;
}
.toolbar-title #result-count, .archive-section .archive-intro .archive-photo-rights,
.atlas-plate-heading span:last-child, .atlas-plate-footer span {
  color: var(--atelier-label-on-dark);
}
.archive-section .archive-intro .archive-photo-rights { font-size: 11px; }
.atlas-plate-footer, .atlas-plate-heading {font-size: 9px;}
.wood-dialog .dialog-serial, .specimen-standalone .dialog-serial,
.wood-dialog .dialog-details dt, .specimen-standalone .dialog-details dt, .specimen-standalone .specimen-related-works p,
.specimen-standalone .specimen-related-works a {
  color: var(--atelier-bronze-on-paper);
}
.specimen-standalone .specimen-related-works a { font-size: 13px; }
.work-detail .work-record-title .works-kicker,
.work-detail .work-data dt, .work-detail .work-data dd em,
.work-detail .work-data small, .work-detail .work-data .work-object-origin,
.work-detail .work-data .work-final-assembly-note {
  color: var(--atelier-ink-on-paper);
}
.work-detail .work-data dt {font-size: 11px;}
.work-detail #work-details-heading em {color: #80603f;}
.work-detail .work-data dd.work-available {color: #3c5034;}
.work-detail .work-photo-heading .works-kicker,
.ordering-page .ordering-next .works-kicker {color: var(--atelier-label-on-dark);}
.ordering-page .ordering-detail-side span {color: var(--atelier-bronze-on-paper);}
.books-page :is(.book-preview,.book-contents) :is(h2,h3) em {color: #80603f;}
.books-page .book-paper :is(.book-preview-counter,.book-excerpt-note,.book-author-line,.book-contents-note,.book-source-page),
.books-page .book-paper .book-section-heading > .books-kicker,
.books-page .book-paper .book-contents-heading .books-kicker,
.books-page .book-paper .book-preview-copy > p[data-preview-category],
.books-page .book-paper .book-thumb-label b,
.books-page .book-paper .book-chapter summary > span,
.books-page .book-paper .book-contents-heading .book-author-line {color:var(--atelier-bronze-on-paper);}
.books-page .book-paper .book-preview-counter > span:nth-child(2) {color:#80603f;}
.books-page .book-paper .book-section-heading > p:last-child,
.books-page .book-paper .book-contents-heading .book-contents-audience,
.books-page .book-paper .book-preview-copy > p[data-preview-description] {color:var(--atelier-ink-on-paper);}
.studio-refined-v301 .approach-copy > .warm.eyebrow {color:var(--atelier-label-on-dark);}
@media(max-width:360px) {
  .book-announcement {grid-template-columns: minmax(0,.87fr) 70px minmax(0,1.15fr); gap: 8px;}
  .kh-opening-action.work-intro .work-enquiry-button {padding-inline: 32px !important;}
}

/* Match the receipt on the custom knife configurator. */
#mokurei-receipt {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: 36rem;
  max-width: calc(100vw - 2rem);
  max-height: min(88vh, 52rem);
  max-height: min(88dvh, 52rem);
  margin: auto;
  padding: clamp(1.35rem, 4vw, 2.65rem);
  overflow: auto;
  overscroll-behavior: contain;
  background: #201b16;
  border: 1px solid #68553b;
  border-radius: 0;
  box-shadow: 0 1.5rem 6rem #0009;
  color: #f0e6d5;
  color-scheme: dark;
  font: 400 16px/1.58 "DM Sans", Arial, sans-serif;
  overflow-wrap: break-word;
  text-align: left;
}
#mokurei-receipt:not([open]) { display: none; }
#mokurei-receipt::backdrop { background: rgb(11 9 7 / 80%); }
body:has(#mokurei-receipt[open]) { overflow: hidden; }
#mokurei-receipt h2 {
  margin: 0 2rem .7rem 0;
  color: inherit;
  font: normal clamp(1.95rem, 5vw, 3.1rem)/1.04 "Cormorant Garamond", Georgia, serif;
  letter-spacing: -.035em;
  text-transform: none;
}
#mokurei-receipt p {
  margin: .45rem 0 1.2rem;
  color: #c4b7a3;
  font-size: .9rem;
  line-height: 1.55;
}
#mokurei-receipt button { cursor: pointer; }
#mokurei-receipt .receipt-cross {
  position: absolute;
  right: .6rem;
  top: .45rem;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  color: #dbb98b;
  font: normal 1.55rem/1 Georgia, serif;
}
#mokurei-receipt .receipt-done {
  min-height: 44px;
  padding: .64rem 1.05rem;
  border: 1px solid #dbb98b;
  border-radius: 0;
  background: #dbb98b;
  color: #201a15;
  font: inherit;
  font-size: .84rem;
  font-weight: 600;
}
#mokurei-receipt :focus-visible { outline: 2px solid #dbb98b; outline-offset: 3px; }
