/* PX7 Markdown Viewer — reading theme. System light/dark, native font stack, calm. */
:root {
  --bg: #ffffff; --fg: #1f2328; --muted: #6e7781; --link: #0969da;
  --border: #d1d9e0; --code-bg: #f6f8fa; --quote: #59636e; --accent: #9c4a26;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1b19; --fg: #e6e1d8; --muted: #9a938a; --link: #6cb6ff;
    --border: #33302c; --code-bg: #26241f; --quote: #a49a8d; --accent: #d78a5c;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body {
  font: 16px/1.65 -apple-system, "SF Pro Text", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.markdown-body { max-width: 46rem; margin: 0 auto; padding: 40px 44px 96px; }
.markdown-body > :first-child { margin-top: 0; }

h1, h2, h3, h4, h5, h6 { line-height: 1.25; margin: 1.6em 0 .6em; font-weight: 600; }
h1 { font-size: 1.9em; } h2 { font-size: 1.5em; padding-bottom: .3em; border-bottom: 1px solid var(--border); }
h3 { font-size: 1.25em; } h4 { font-size: 1em; } h5, h6 { font-size: .9em; color: var(--muted); }
p, ul, ol, blockquote, table, pre { margin: 0 0 1em; }
a { color: var(--link); text-decoration: none; } a:hover { text-decoration: underline; }
strong { font-weight: 600; }
img { max-width: 100%; border-radius: 6px; }

ul, ol { padding-left: 1.6em; } li { margin: .2em 0; }
li.task-list-item { list-style: none; margin-left: -1.4em; }
li.task-list-item input { margin-right: .5em; }
.px-due {
  display: inline-block; font-size: .82em; line-height: 1.5;
  padding: 0 .5em; margin-left: .4em; border-radius: 999px;
  background: color-mix(in srgb, currentColor 10%, transparent);
  color: color-mix(in srgb, currentColor 55%, transparent);
  white-space: nowrap; vertical-align: baseline;
}

blockquote { padding: 0 1em; color: var(--quote); border-left: .25em solid var(--border); }

code { font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: .88em;
  background: var(--code-bg); padding: .18em .38em; border-radius: 5px; }
pre { background: var(--code-bg); padding: 14px 16px; border-radius: 8px; overflow: auto; }
pre code { background: none; padding: 0; font-size: .85em; }

hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }

table { border-collapse: collapse; display: block; overflow: auto; }
th, td { border: 1px solid var(--border); padding: 6px 13px; }
th { background: var(--code-bg); font-weight: 600; }

::selection { background: var(--accent); color: #fff; }

/* front-matter, shown as a tasteful title/date header (not a stray rule + raw text) */
.frontmatter { margin: 0 0 1.6em; padding-bottom: 1em; border-bottom: 1px solid var(--border); }
.frontmatter .fm-title { margin: 0 0 .15em; }
.frontmatter .fm-date { margin: 0; color: var(--muted); font-size: .95em; }

/* syntax highlighting (highlight.js tokens) — warm palette, light + dark */
.hljs-comment, .hljs-quote { color: var(--muted); font-style: italic; }
.hljs-keyword, .hljs-selector-tag, .hljs-literal, .hljs-name, .hljs-tag, .hljs-built_in { color: #b5502b; }
.hljs-string, .hljs-attr, .hljs-addition { color: #5f7a34; }
.hljs-number, .hljs-type, .hljs-title.class_ { color: #2f6f8f; }
.hljs-title, .hljs-title.function_, .hljs-section { color: #8a5cc0; }
.hljs-attribute, .hljs-variable, .hljs-template-variable, .hljs-symbol, .hljs-bullet { color: var(--fg); }
.hljs-deletion { color: #c0492a; }
@media (prefers-color-scheme: dark) {
  .hljs-keyword, .hljs-selector-tag, .hljs-literal, .hljs-name, .hljs-tag, .hljs-built_in { color: #e0894f; }
  .hljs-string, .hljs-attr, .hljs-addition { color: #a3c76d; }
  .hljs-number, .hljs-type, .hljs-title.class_ { color: #6fb3d1; }
  .hljs-title, .hljs-title.function_, .hljs-section { color: #c39be6; }
}
