/* Shared styles for /blog/. Same palette and type as the homepage (public/index.html). */
:root {
  --bg: #f4f1ea;
  --ink: #1d2a22;
  --muted: #5d6b61;
  --leaf: #2f6b4a;
  --line: #d9d3c6;
  --code-bg: #e9e4d8;
  --tk: #f3d98b;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111713; --ink: #e8ede9; --muted: #9aa89f; --leaf: #7cc49b; --line: #26302a;
    --code-bg: #1b231e; --tk: #5c4b14;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 18px/1.7 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  padding: 0 20px;
}
a { color: var(--leaf); text-underline-offset: 0.15em; }
.site, main, footer { max-width: 680px; margin: 0 auto; }

.site {
  display: flex; align-items: center; gap: 10px;
  padding: 28px 0 0;
  font-size: 15px;
}
.site a { color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.site svg { width: 28px; height: 28px; color: var(--leaf); }
.site .sep { color: var(--muted); }
.site .here { color: var(--muted); }

main { padding: 48px 0 64px; }
h1, h2 { font-family: ui-serif, Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 7vw, 3.2rem); line-height: 1.08; margin: 0 0 12px; }
h2 { font-size: 1.6rem; line-height: 1.2; margin: 2.2em 0 0.6em; }
.dek { color: var(--muted); font-size: 1.15rem; line-height: 1.5; margin: 0 0 12px; }
.meta { color: var(--muted); font-size: 15px; margin: 0 0 40px; }
p { margin: 0 0 1.1em; }
code, pre { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.85em; }
code { background: var(--code-bg); padding: 0.1em 0.3em; border-radius: 4px; }
.formula {
  font-family: ui-serif, Georgia, serif; font-size: 1.15rem;
  text-align: center; margin: 1.2em 0; overflow-x: auto;
}
figure { margin: 2em 0; }
figure img { width: 100%; height: auto; display: block; border-radius: 6px; }
figcaption { color: var(--muted); font-size: 15px; margin-top: 8px; }
mark.tk { background: var(--tk); color: inherit; padding: 0 0.2em; border-radius: 3px; }
.note { color: var(--muted); font-style: italic; border-top: 1px solid var(--line); padding-top: 1.2em; margin-top: 2.4em; }

.posts { list-style: none; padding: 0; margin: 0; }
.posts li { border-top: 1px solid var(--line); padding: 24px 0; }
.posts li:last-child { border-bottom: 1px solid var(--line); }
.posts h2 { margin: 0 0 6px; font-size: 1.5rem; }
.posts h2 a { color: var(--ink); text-decoration: none; }
.posts h2 a:hover { text-decoration: underline; }
.posts p { color: var(--muted); margin: 0; }
.posts .meta { margin: 6px 0 0; }

footer {
  border-top: 1px solid var(--line);
  padding: 20px 0 28px;
  font-size: 14px;
  color: var(--muted);
}
