/* Keep the original layouts and door animation; change the color palette only. */
:root {
  color-scheme: dark;
  --red: #c9b79e;
  --red-dark: #ddd0bb;
  --ink: #f4eee3;
  --muted: #c6c6b9;
  --paper: #171a17;
  --surface: #20251f;
  --cover: #252b24;
  --header: #171a17;
  --footer: #171a17;
  --line: #43483e;
  --accent-ink: #242921;
  --copy: #ded8cb;
  --cover-hover: #30372e;
  --grain: #f4eee306;
}
:root[data-theme="light"] {
  color-scheme: light;
  --red: #9d2634;
  --red-dark: #7e1e2a;
  --ink: #242921;
  --muted: #5f655b;
  --paper: #f4eee3;
  --surface: #fffaf0;
  --cover: #e7e1d5;
  --header: #f0e9da;
  --footer: #eee6d6;
  --line: #d0cbbf;
  --accent-ink: #f4eee3;
  --copy: #51594d;
  --cover-hover: #ddd4c5;
  --grain: #24292108;
}
body { background-image: radial-gradient(var(--grain) .6px, transparent .6px); }
.brand { color: var(--ink); }
:root[data-theme="light"] .brand { color: var(--red); }
.book .desc, #detail p, .entry-message { color: var(--copy); }
.catalog-types a[aria-current="page"], .filter.active,
.pagination button:not(:disabled):hover, .bestseller-badge,
.book button:hover, .whatsapp-link:hover,
.purchase-cta .whatsapp-link, .map-link, .entry-button { color: var(--accent-ink); }
.book button.cover-wrap:hover { color: inherit; }
.book:hover .cover-wrap { background: var(--cover-hover); }
dialog::backdrop { background: #171a17b8; }
.bookshop-entry, .entry-sticky { background: #171a17; color: #f4eee3; }
.entry-interior { filter: saturate(.8) brightness(.78); }
.bookshop-door { background: #171a17; }
.bookshop-door img { filter: saturate(.55) brightness(1.06); mix-blend-mode: normal; }
.entry-light { background: linear-gradient(180deg, #171a1770, transparent 30%, #171a1728 70%, #171a17a0); }
.entry-masthead p { color: #c9b79e; }
.entry-masthead h1 { color: #f4eee3; }
.entry-masthead .entry-sections { color: #ded8cb; }
.entry-skip-link { border-color: #f4eee344; background: #171a17a6; color: #f4eee3; }
.entry-skip-link:hover { background: #242921ee; }
.entry-enter-link { border-color: #f0e9da; background: #f0e9da; color: #242921; }
.entry-enter-link:hover { background: #fffaf0; }
.entry-sticky a:focus-visible { outline-color: #f4eee3; }
.entry-scroll-hint { color: #c6c6b9; }
.catalog-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; }
.theme-switch { display: inline-flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.theme-option { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 12px; border: 1px solid transparent; border-radius: 3px; background: transparent; color: var(--muted); font: 500 13px/1.3 Arial, sans-serif; }
.theme-option svg { width: 16px; height: 16px; flex: 0 0 auto; }
.theme-option[aria-pressed="true"] { background: var(--red); color: var(--accent-ink); }
.theme-option:hover { border-color: var(--red); }
.theme-option:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
