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

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--fg); font: 15px/1.55 Geist, ui-sans-serif, system-ui, sans-serif; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { color: var(--l0); }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--l2); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: absolute; z-index: 99; top: -100px; left: 8px; padding: 10px 14px; border-radius: 8px; background: var(--fg); color: var(--bg); }
.skip-link:focus { top: 8px; }
.site-header { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding: 14px 36px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.brand:hover { color: inherit; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.brand__muted { color: var(--muted); }
.header-tools { display: flex; gap: 8px; align-items: center; }
.primary-nav { display: flex; gap: 4px; margin-left: auto; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.primary-nav a { padding: 6px 14px; border-radius: 7px; font-size: 14px; text-decoration: none; }
.primary-nav a:hover { color: inherit; background: var(--line); }
.primary-nav a[aria-current="page"] { background: var(--fg); color: var(--bg); }
.theme-toggle, .mode-toggle { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; transition: background-color .18s ease, border-color .18s ease, box-shadow .2s ease, transform .2s ease; background-image: linear-gradient(180deg, rgb(0 0 0 / .16), transparent 60%); border-color: color-mix(in oklab, var(--fg) 12%, var(--line)); border-bottom-color: color-mix(in oklab, var(--fg) 30%, var(--line)); box-shadow: inset 0 2px 4px rgb(0 0 0 / .45), inset 0 -1px 0 rgb(255 255 255 / .05), 0 1px 0 rgb(255 255 255 / .06); }
.theme-toggle:hover, .theme-toggle:focus-visible, .mode-toggle:hover, .mode-toggle:focus-visible { border-color: var(--fg); color: var(--fg); background: var(--panel); }
.theme-toggle img { display: block; width: auto; height: 30px; transition: transform .2s ease; }
.theme-toggle:hover, .mode-toggle:hover { box-shadow: inset 0 3px 6px rgb(0 0 0 / .55), 0 1px 0 rgb(255 255 255 / .08); }
.theme-toggle:hover img { transform: scale(1.05); }
.theme-toggle:active, .mode-toggle:active { box-shadow: inset 0 3px 7px rgb(0 0 0 / .6); }
.theme-toggle:active img { transform: scale(.97); }
[data-theme="light"] body:not(.is-after-work) .theme-toggle, [data-theme="light"] body:not(.is-after-work) .mode-toggle { background-image: none; border-color: var(--line); border-bottom-color: var(--line); box-shadow: inset 0 1px 1px rgb(70 55 30 / .04), 0 1px 0 rgb(255 255 255 / .7); }
[data-theme="light"] body:not(.is-after-work) .theme-toggle:hover, [data-theme="light"] body:not(.is-after-work) .theme-toggle:focus-visible, [data-theme="light"] body:not(.is-after-work) .mode-toggle:hover, [data-theme="light"] body:not(.is-after-work) .mode-toggle:focus-visible { background: var(--panel); border-color: var(--fg); box-shadow: inset 0 1px 1px rgb(70 55 30 / .06), 0 1px 0 rgb(255 255 255 / .7); }
[data-theme="light"] body:not(.is-after-work) .theme-toggle:active, [data-theme="light"] body:not(.is-after-work) .mode-toggle:active { box-shadow: inset 0 1px 2px rgb(70 55 30 / .10); }
/* Lamp: unlit in light mode, lit in dark mode. */
.theme-toggle .theme-toggle__on, [data-theme="dark"] .theme-toggle .theme-toggle__off { display: none; }
[data-theme="dark"] .theme-toggle__on { display: block; }
.site-footer { display: flex; flex-direction: column; gap: 12px; margin-top: auto; padding: 16px 36px; border-top: 1px solid var(--line); color: var(--muted); font: 11px 'Geist Mono', monospace; }
.site-footer a { text-decoration: none; }
.site-footer__main, .site-footer__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px 16px; flex-wrap: wrap; }
.brand--footer { min-width: 44px; min-height: 44px; gap: 10px; color: var(--fg); }
.brand--footer .brand__mark { width: 28px; height: 28px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.footer-links a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--fg); font: 500 13px Geist, ui-sans-serif, system-ui, sans-serif; }
.footer-links svg { display: block; width: 20px; height: 20px; flex: none; }
.footer-links a:hover { background: var(--line); color: var(--fg); }
.lane-legend { display: flex; gap: 14px; flex-wrap: wrap; }
.eyebrow { margin: 0; color: var(--muted); font: 11px/1.5 'Geist Mono', monospace; letter-spacing: .025em; }
.eyebrow span { padding: 0 5px; color: var(--l2); }
.panel { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: var(--shadow); }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; color: var(--fg); font: 10px 'Geist Mono', monospace; }
.tag-chip::before { width: 7px; height: 7px; border-radius: 50%; background: var(--lane, var(--fg)); content: ''; }
@media (max-width: 680px) {
  .site-header { gap: 12px; padding: 12px 16px; }
  .brand { flex: 1; min-width: 0; }
  .primary-nav { order: 3; width: 100%; margin-left: 0; }
  .header-tools { order: 2; }
  .primary-nav a { flex: 1; padding: 6px 4px; font-size: 13px; text-align: center; white-space: nowrap; }
  .site-footer { padding: 14px 16px; }
  .site-footer__main { flex-wrap: nowrap; gap: 12px; }
  .brand--footer { flex: 0 0 44px; }
  .footer-links { flex: 1; min-width: 0; flex-wrap: nowrap; }
  .footer-links a { flex: 1; justify-content: center; min-height: 44px; }
}

.about-shortcuts{max-width:900px;margin:0 auto 22px;padding:0 24px;color:var(--muted);font-size:14px}.about-shortcuts a{white-space:nowrap}

/* Neon glow on the wave (the M) of the logo, dark mode only */
[data-theme="dark"] .brand__wave { stroke:oklch(0.8 0.15 30); filter:drop-shadow(0 0 1.5px oklch(0.85 0.16 30)) drop-shadow(0 0 5px oklch(0.7 0.19 30)) drop-shadow(0 0 12px oklch(0.65 0.2 30 / .8)); }
[data-theme="dark"] .brand svg, [data-theme="dark"] .brand__mark { overflow:visible; }
/* One-time neon warm-up on load (about 0.8s): two soft dips, then steady. Dark mode only, not for reduced motion. */
@keyframes brand-neon-on {
  0%   { opacity:.45; filter:none; }
  18%  { opacity:.9;  filter:drop-shadow(0 0 1.5px oklch(0.85 0.16 30)) drop-shadow(0 0 5px oklch(0.7 0.19 30)) drop-shadow(0 0 12px oklch(0.65 0.2 30 / .8)); }
  34%  { opacity:.6;  filter:drop-shadow(0 0 1px oklch(0.85 0.16 30 / .6)); }
  60%  { opacity:1;   filter:drop-shadow(0 0 1.5px oklch(0.85 0.16 30)) drop-shadow(0 0 5px oklch(0.7 0.19 30)) drop-shadow(0 0 12px oklch(0.65 0.2 30 / .8)); }
  74%  { opacity:.8;  filter:drop-shadow(0 0 1px oklch(0.85 0.16 30 / .8)) drop-shadow(0 0 6px oklch(0.7 0.19 30 / .6)); }
  100% { opacity:1; }
}
@media (prefers-reduced-motion: no-preference) {
  [data-theme="dark"] .brand__wave { animation:brand-neon-on .8s ease-out .12s 1 backwards; }
}
/* Lit lamp in dark mode: a soft warm glow that comes from the bulb only (no outline glow on the lamp body). */
[data-theme="dark"] .theme-toggle::after { content:""; position:absolute; left:25.5px; top:16.5px; width:30px; height:30px; transform:translate(-50%,-50%); border-radius:50%; background:radial-gradient(circle, oklch(0.97 0.06 85 / .55), oklch(0.88 0.12 78 / .22) 40%, transparent 70%); pointer-events:none; transition:opacity .25s ease; opacity:.9; }
[data-theme="dark"] .theme-toggle:hover::after { opacity:1; }
@media (prefers-reduced-motion: reduce) { [data-theme="dark"] .theme-toggle::after, .theme-toggle, .theme-toggle img { transition:none; } .theme-toggle:hover, .theme-toggle:active, .theme-toggle:hover img, .theme-toggle:active img { transform:none; } }
