/* charcoal and chalk, nothing else: the light theme is chalk paper with charcoal lines, the dark one the other way round */
:root {
  --charcoal: #1c1b19; --chalk: #f3f0e8;
  --bg: var(--chalk); --ink: var(--charcoal); --paper: var(--bg);
  --soft: color-mix(in srgb, var(--ink) 58%, var(--bg));
  --line: color-mix(in srgb, var(--ink) 14%, transparent);
  --wash: color-mix(in srgb, var(--ink) 4%, transparent);
  --wash2: color-mix(in srgb, var(--ink) 8%, transparent);
  --sans: 'Manrope', system-ui, sans-serif; --mono: 'IBM Plex Mono', ui-monospace, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] { --bg: var(--charcoal); --ink: var(--chalk); color-scheme: dark }
html { background: var(--bg) }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; accent-color: var(--ink) }
a { color: inherit }
::selection { background: var(--ink); color: var(--bg) }

.top { display: flex; align-items: center; gap: 18px; padding: 14px 20px; border-bottom: 1px solid var(--line) }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 800; font-size: 17px; letter-spacing: -.02em }
/* the hand-drawn wordmark, as a mask so it takes the ink colour in light and dark */
.brand .logo { display: block; width: 136px; aspect-ratio: 1387.1 / 203.8; background: currentColor; -webkit-mask: url(/site/mushlove.svg) center / contain no-repeat; mask: url(/site/mushlove.svg) center / contain no-repeat }
.brand:hover .logo { opacity: .8 }
.top nav { display: flex; gap: 2px; flex-wrap: wrap }
.top nav a { text-decoration: none; font-weight: 600; font-size: 14px; padding: 6px 10px; border-radius: 999px; color: var(--soft); transition: color .15s, background .15s }
.top nav a:hover { color: var(--ink); background: var(--wash) }
.top nav a[aria-current] { color: var(--ink); background: var(--wash2) }
.mode { margin-left: auto; display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 999px }
.mode button { display: grid; place-items: center; width: 30px; height: 26px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--soft); cursor: pointer; transition: background .15s, color .15s }
.mode button:hover { color: var(--ink) }
.mode svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }
:root[data-mode="light"] .mode [data-mode-pick="light"], :root[data-mode="dark"] .mode [data-mode-pick="dark"], :root[data-mode="system"] .mode [data-mode-pick="system"] { background: var(--ink); color: var(--bg) }
@media (max-width: 640px) { .top { flex-wrap: wrap; padding: 12px 16px; gap: 10px } .top nav { order: 3; width: 100% } }
