/* The pale surfaces in photographs and on printed labels belong to the artwork. */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #231d20;
    --white: #30282b;
    --ink: #f3e9db;
    --muted: #c5b7ac;
    --wine: #e7c6ba;
    --dark: #321923;
    --gold: #dfbc86;
    --line: #625459;
    --hairline: #54464b;
    --stone: #3b3335;
    --cream: #352c30;
    --plum: #371e2a;
  }

  .header { background: rgb(35 29 32 / 96%); }
  .header .preview-mark img { filter: invert(96%) sepia(12%); }
  .skip:focus { color: var(--paper); background: var(--ink); }
  :focus-visible { outline-color: var(--gold); }
  .text-link:hover, .plain:hover, .nav-links a:hover { color: var(--gold); }
  .button, .filter[aria-current], .gallery-radio:checked + label,
  .dialog form [aria-pressed=true] { color: var(--paper); }
  body:not(.office-body) button:not(.button,.plain,.filter,.langs button,.secondary,.cart-item-actions button) {
    color: var(--paper);
  }
  .button.outline, .detail-visual .label-figure button { color: var(--wine); }
  .button.light { color: #302028; background: #efddc9; border-color: #efddc9; }
  .section-head .eyebrow, .intro .eyebrow { color: var(--gold); }
  .hero .button.outline { color: #f3dfc7; }
  .portrait-controls .plain:hover { color: #fff2de; }

  .story, .journal-band, .label-story, .guide-front, .delivery-feature,
  .family-process, .family-chapter.illustrated { background: var(--white); }
  .family-chapter.chapter-3 { background: #302d2a; }
  .family-chapter.chapter-5 { background: #392630; }
  .family-practice h2, .family-chapter.text-chapter h2, .family-prologue h2,
  .delivery-modes article > .icon { color: var(--gold); }
  .delivery-modes article p, .label-note, .product-facts { color: var(--muted); }
  .brand-points, .brand-points a, .article-card, .policy section,
  .delivery-modes article { border-color: var(--line); }
  .brand-points a:hover, .callout { background: #3c2e33; }
  .callout { border-color: var(--gold); }
  .filter-drawer summary.applied { color: var(--wine); background: #433137; }
  .filter-sheet { box-shadow: 0 12px 28px rgb(0 0 0 / 35%); }
  .catalog-filters select {
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
      linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  }

  .product-card:has(.product-window) {
    background: var(--white);
    border-color: var(--line);
    box-shadow: 0 4px 14px rgb(0 0 0 / 12%);
  }
  .product-card:hover, .product-card:focus-within { border-color: #9f827c; }
  .product-card:focus-within, .catalog-tile:focus-visible { outline-color: var(--gold); }
  .product-card-media { border-color: var(--line); }
  .product-facts strong { color: var(--ink); }
  .tile-status { color: #ede5db; background: #493e42; }
  .tile-status[data-availability="soon"] { color: #f2d5b4; background: #513c32; }
  .tile-status[data-availability="available"] { color: #dbead4; background: #354639; }
  .detail-visual nav [aria-pressed=true] { color: var(--wine); background: #44353a; }
  .missing-photo {
    color: var(--muted);
    background: repeating-linear-gradient(135deg, #383034 0 12px, #342d30 12px 24px);
  }
  /* Custom cover backgrounds follow their catalog hue. Tint only the backing
     of transparent cutouts; unprocessed product photography keeps its paper. */
  .packshot.white-cutout, .product-card .packshot.white-cutout,
  .packshot[data-ready-cover] {
    background: color-mix(in srgb, var(--cover-tint, var(--tint)) 24%, #30262b);
  }
  .label-plate, .detail-visual .label-figure { background: #67584d; }
  .detail-visual .label-figure button { color: #fff6e9; }
  .guide-front img { mix-blend-mode: normal; }
  .contact-spread { background: var(--white); color: var(--ink); border-color: var(--line); }
  .contact-confirmation { background: #354639; color: #dbead4; }
  .order-result { background: var(--white); }
  .certificate-dialog::backdrop, .image-dialog::backdrop { background: rgb(14 10 13 / 80%); }
}
