/* Original text-first layout: one column, one text size, no separators. */
@font-face {
  font-family: 'Maple Mono';
  src: url('../fonts/MapleMono-Regular.ttf.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #000;
  --text: #fff;
  --accent: #00ffff;
  --button-bg: #fff;
  --button-text: #000;
  --font: 'Maple Mono NF CN', 'Maple Mono', 'Noto Sans Mono CJK SC', 'Courier New', monospace;
  font-size: 16px;
}
:root[data-theme='light'] {
  color-scheme: light;
  --bg: #fff;
  --text: #000;
  --accent: #0000ff;
  --button-bg: #000;
  --button-text: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.6 var(--font); overflow-wrap: break-word; }
button, input, h1, h2, h3, h4, h5, h6, small, pre, code { font: inherit; }
a { color: inherit; text-decoration: none; cursor: pointer; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.shell { max-width: 1200px; padding: 15px; margin: 0 auto; }
.nav-menu-title { color: var(--accent); margin: 0 0 10px; }
.navigation { display: flex; flex-wrap: wrap; margin-bottom: 10px; }
.navigation a { display: inline-block; padding: 4px 8px; margin-right: 10px; margin-bottom: 10px; white-space: nowrap; }
.navigation a[aria-current='page'] { color: var(--accent); font-weight: bold; }
.theme-toggle { position: fixed; bottom: 20px; right: 20px; padding: 4px 8px; border: 0; background: var(--button-bg); color: var(--button-text); cursor: pointer; z-index: 10; }
.page-header { margin: 0 0 24px; }
.page-header h1 { margin: 0 0 16px; }
p { margin: 0 0 16px; }
h2, h3 { margin: 24px 0 16px; }
.terminal-output, .ascii-label { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 24px; }
.entry-list { list-style: none; margin: 0 0 24px; padding: 0; }
.entry-list > li { margin-bottom: 8px; }
.entry-list time { margin-right: 16px; }
.archive-links, .tags, .post-meta, .post-navigation, .tag-index { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 16px; }
.post-navigation { flex-direction: column; align-items: flex-start; margin-top: 32px; }
.archive-year, .tag-section { margin-top: 24px; }
.prose p, .prose li { line-height: 1.6; }
.prose ul, .prose ol { padding-left: 2em; }
.prose li { margin-bottom: 8px; }
.prose blockquote { margin: 16px 0 16px 2em; }
.prose pre { white-space: pre; overflow-x: auto; margin: 16px 0; padding: 0; }
.prose pre code { overflow-wrap: normal; }
.prose code { overflow-wrap: anywhere; }
.prose img { max-width: 100%; height: auto; }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 16px 0; }
.prose th, .prose td { border: 0; font-weight: normal; padding: 4px 24px 4px 0; text-align: left; }
.prose hr { border: 0; margin: 24px 0; }
.slide-list { list-style: none; padding: 0; margin: 0; }
.slide-list li { margin-bottom: 16px; }
.site-footer { margin: 48px 0 64px; }
.site-footer p { margin: 0; }
.skip-link { position: fixed; top: -100px; left: 15px; background: var(--button-bg); color: var(--button-text); padding: 4px 8px; }
.skip-link:focus { top: 10px; }
mjx-container[display='true'] { max-width: 100%; overflow-x: auto; overflow-y: hidden; padding: 8px 0; }
@media (max-width: 480px) {
  .navigation a { padding: 3px 6px; margin-right: 4px; }
  .theme-toggle { bottom: 15px; right: 15px; }
}
@media print {
  :root { --bg: white; --text: black; --accent: black; }
  .navigation, .theme-toggle, .skip-link, .post-navigation { display: none; }
  .prose pre { white-space: pre-wrap; }
}
