/* Light is also the print palette. Screen colours follow the site preference. */
:root {
  color-scheme: light;
  --ink: #191919;
  --sub: #505050;
  --accent: #800020;
  --line: #d3d0cb;
  --paper: white;
  --wash: #f7f6f3;
  --tools: #fbfbfa;
  --pressed: #f4eff0;
  --pressed-line: #aa939d;
  --branch: #6e6e6e;
  --terminal: #858585;
}
@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #f0eee8;
    --sub: #c8c2b9;
    --accent: #ff9fb8;
    --line: #565251;
    --paper: #161515;
    --wash: #252323;
    --tools: #201e1e;
    --pressed: #3d2932;
    --pressed-line: #ad8393;
    --branch: #b5aea9;
    --terminal: #948d89;
  }
}
@media screen {
  :root[data-theme="dark"] {
    color-scheme: dark;
    --ink: #f0eee8;
    --sub: #c8c2b9;
    --accent: #ff9fb8;
    --line: #565251;
    --paper: #161515;
    --wash: #252323;
    --tools: #201e1e;
    --pressed: #3d2932;
    --pressed-line: #ad8393;
    --branch: #b5aea9;
    --terminal: #948d89;
  }
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .32rem;
  min-width: 4rem;
  min-height: 2.15rem;
  padding: .25rem .58rem;
  border: 1px solid var(--line);
  border-radius: .3rem;
  color: var(--ink);
  background: var(--paper);
  font: .85rem/1.2 var(--sans);
  cursor: pointer;
}
.theme-toggle:hover { background: var(--wash); border-color: var(--sub); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.theme-toggle-icon { font-size: 1rem; line-height: 1; }
@media print { [data-theme-control] { display: none; } }
