/* The Intellectual Library — Dark Academia theme */
:root {
  color-scheme: dark !important;
  --library-bg: #171613;
  --library-surface: #211f1a;
  --library-surface-raised: #29261f;
  --library-border: #49402f;
  --library-text: #e9dfcc;
  --library-muted: #b7aa91;
  --library-gold: #c6a66b;
  --library-gold-bright: #dfc28a;
  --library-parchment: #d9c9aa;
  --library-shadow: 0 14px 38px rgba(0,0,0,.28);
}
html, body {
  background: var(--library-bg) !important;
  color: var(--library-text) !important;
}
body {
  background-image:
    radial-gradient(ellipse at 50% -18%, rgba(151,116,58,.13), transparent 58%),
    linear-gradient(180deg, #1b1915 0%, #171613 58%, #141310 100%) !important;
  min-height: 100%;
}
body, button, input, textarea, select {
  color: var(--library-text);
}
h1, h2, h3, h4, .serif, [class*="title"], [class*="heading"] {
  color: var(--library-parchment) !important;
  text-wrap: balance;
}
p, li, label, small, [class*="description"], [class*="subtitle"] {
  color: var(--library-muted);
}
a {
  color: var(--library-gold-bright) !important;
}
button, [role="button"], input, textarea, select {
  accent-color: var(--library-gold);
}
button, [role="button"] {
  border-color: var(--library-border) !important;
}
input, textarea, select {
  background: #1d1b17 !important;
  border: 1px solid var(--library-border) !important;
  border-radius: 10px;
}
input::placeholder, textarea::placeholder {
  color: #897e6a !important;
}
header, nav, footer, [class*="header"], [class*="nav"], [class*="toolbar"] {
  background-color: rgba(25,23,19,.94) !important;
  border-color: var(--library-border) !important;
}
main, [class*="panel"], [class*="card"], [class*="tile"], [class*="modal"], [class*="dialog"] {
  border-color: var(--library-border) !important;
}
[class*="card"], [class*="tile"], [class*="modal"], [class*="dialog"] {
  background-color: var(--library-surface) !important;
  box-shadow: var(--library-shadow);
}
hr, [class*="divider"], [class*="separator"] {
  border-color: var(--library-border) !important;
}
::selection {
  color: #171613;
  background: var(--library-gold);
}
@media (prefers-reduced-motion: no-preference) {
  button, a, [role="button"] {
    transition: color .18s ease, background-color .18s ease, border-color .18s ease;
  }
}
