:root {
  color-scheme: light;
  color: #312331;
  background: #faf7f4;
  --booklet-blue: #a34c65;
  --booklet-line: #e5dce0;
  --booklet-muted: #71636d;
  --border: #e5dce0;
  --booklet-gold: #d9b24c;
}

body { background: #faf7f4; color: #312331; }
a { color: #a34c65; }
::selection { background: #c9b7c0; color: #312331; }

button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
#booklet-explorer-root :focus-visible,
.booklet-reader-dialog :focus-visible,
.booklet-appendix-popover :focus-visible {
  outline-color: #86631b;
}

.public-header { border-color: #e5dce0; border-bottom: 2px solid var(--booklet-gold); background: #faf7f4; }
.brand { color: #a34c65; }
.brand small,
footer,
.booklet-muted,
.booklet-filter > summary > span,
.booklet-note-source,
.booklet-detail-facts dt,
.booklet-source-cells small { color: #71636d; }
.brand img { border-radius: 14px; filter: drop-shadow(0 6px 14px rgb(31 70 67 / 10%)); }

.public-header button,
.local-status button,
.btn,
.booklet-groups button,
.booklet-filter,
.booklet-more-filters,
.booklet-chip,
.booklet-appendix-button,
#booklet-explorer-root input[type=search],
#booklet-explorer-root select,
input,
select {
  color: #312331;
  background: #fffdfa;
  border-color: #c9b7c0;
}

.local-status,
.booklet-residence,
.booklet-source-cells {
  color: #893c54;
  background: #f1e3e7;
  border-color: #e5dce0;
}

progress,
.booklet-choice input { accent-color: #a34c65; }
.btn-primary,
.booklet-search .btn-primary,
.booklet-groups button[aria-pressed=true] {
  color: #fffdfa;
  background: #a34c65;
  border-color: #a34c65;
}
.btn-primary:hover,
.booklet-search .btn-primary:hover { background: #893c54; border-color: #893c54; }

.booklet-search,
.booklet-university,
.booklet-empty,
.booklet-appendix-popover,
.booklet-reader-dialog,
.booklet-detail-facts > div { background: #fffdfa; border-color: #e5dce0; }
.booklet-filter.has-selection,
.booklet-choice:has(input:checked),
.booklet-chip.is-selected {
  color: #a34c65;
  background: #f1e3e7;
  border-color: #c9b7c0;
}
.booklet-university-heading,
.booklet-reader-dialog > header,
.booklet-table th {
  color: #893c54;
  background: #f1e3e7;
  border-color: #e5dce0;
}
.booklet-table th,
.booklet-table td { border-color: #e5dce0; }
.booklet-table .booklet-start,
.booklet-row-notes summary,
.booklet-text-button,
.booklet-appendix-button,
.public-header nav a { color: #a34c65; }
.booklet-table tbody tr:hover { background: #faf7f4; }
.booklet-road-distance { color: #893c54; }
.booklet-reader-dialog { color: #312331; box-shadow: 0 18px 64px rgb(49 35 49 / 20%); }
.booklet-reader-dialog::backdrop { background: rgb(49 35 49 / 55%); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
