/* The two corporate navigation layouts share the same control. */
.mast .bar { justify-content: flex-start; }
.mast .bar nav { margin-inline-start: auto; }
.mast .brand-theme-control { display: inline-flex; flex: none; align-items: center; }
@media (max-width: 760px) {
  .mast .bar .menu { margin-inline-start: auto; }
  .mast .bar nav { order: 4; margin-inline-start: 0; }
}

/* Keep the founder’s photography and the letter’s original illustration intact. */
.contact-inner::after {
  content: "";
  pointer-events: none;
  position: absolute;
  background: var(--jbdl-flower, url("/sakura-sprig.webp")) center / contain no-repeat;
}
.contact-inner { position: relative; isolation: isolate; }
.contact-inner::after {
  z-index: -1;
  inset: auto 23% .2rem auto;
  width: clamp(6rem, 10vw, 9rem);
  aspect-ratio: 1.6;
  opacity: .32;
}

.hero > .scene-night { display: none; }
html[data-desk-theme="dark"] .hero > .scene-day { display: none; }
html[data-desk-theme="dark"] .hero > .scene-night { display: block; }

html[data-desk-theme="dark"] {
  color-scheme: dark;
  --paper: #19191b;
  --ink: #f3ede6;
  --muted: #c5bcb8;
  --red: #ed9d93;
  --line: #484246;
  --jbdl-flower: url("/higanbana.webp");
}
html[data-desk-theme="dark"] .hero { background: #201e20; }
html[data-desk-theme="dark"] .hero:after { background: linear-gradient(90deg, #1b191cf0, #231e23a8 46%, #231c2344 78%), linear-gradient(0deg, #1b181cdf, transparent 35%); }
html[data-desk-theme="dark"] .hero em { color: #f1b3a9; }
html[data-desk-theme="dark"] .overline.light { color: #f3d7cc; }
html[data-desk-theme="dark"] .overline.light span { background: #db8078; }
html[data-desk-theme="dark"] .hero .cream,
html[data-desk-theme="dark"] .contact .cream { background: #ead3cc; color: #302224; }
html[data-desk-theme="dark"] .cream:hover { background: #f5dfd8; }
html[data-desk-theme="dark"] :is(.art, .profile, .bio-intro, .letter-cover) { background: #242225; }
html[data-desk-theme="dark"] :is(.practice, .tinted, .community-stories) { background: #211f21; }
html[data-desk-theme="dark"] .contact { background: #2a2023; color: var(--ink); border-block: 1px solid var(--line); }
html[data-desk-theme="dark"] .contact-inner::after { opacity: .52; }
html[data-desk-theme="dark"] .bar .nav-contact { border-color: #78686b; }
html[data-desk-theme="dark"] .skip { background: #322b2d; color: var(--ink); }
html[data-desk-theme="dark"] .cover-copy .overline,
html[data-desk-theme="dark"] .cover-copy h1 em,
html[data-desk-theme="dark"] .letter-body .dedication { color: var(--red); }
html[data-desk-theme="dark"] .letter-body .dedication { border-color: var(--line); }
html[data-desk-theme="dark"] :is(.letter-footer, .bio-footer) {
  background: var(--jbdl-flower) right 14% center / auto 90% no-repeat;
}
@media (max-width: 760px) {
  .contact-inner::after { right: 0; bottom: 1.25rem; width: 5rem; }
  html[data-desk-theme="dark"] :is(.letter-footer, .bio-footer) { background: none; }
}
