/* Shared styling for the static blog pages under /blog — deliberately NOT
   part of the React app/Vite build: these need to be plain, crawlable HTML
   with the full article text already in the response body, since neither
   Google's non-JS-executing crawlers nor most AI crawlers (GPTBot,
   ClaudeBot, PerplexityBot) render the SPA's client-side React at all (see
   internal/httpapi/seo.go's own doc comment on that same fact). Palette/
   fonts mirror web/src/index.css's own tokens by hand, since a static page
   can't import the app's CSS variables directly. */

:root {
  --bg: #f7f5f0;
  --ink: #211f1a;
  --text-muted: #7d7869;
  --text-faint: #9a9585;
  --accent: #9c7a1f;
  --accent-strong: #7d6119;
  --border: #dbd6ca;
  --surface-card: #ffffff;
  --font-serif: "Source Serif 4", Georgia, serif;
  --font-sans: "Inter", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1815;
    --ink: #f0ede4;
    --text-muted: #a49d8c;
    --text-faint: #7d7869;
    --accent: #d8a24a;
    --accent-strong: #e8b866;
    --border: #3a362c;
    --surface-card: #242019;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
}
.wrap { max-width: 680px; margin: 0 auto; padding: 32px 20px 80px; }

.blog-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 40px;
}
.blog-nav img { width: 28px; height: 28px; }
.blog-nav a { color: var(--ink); text-decoration: none; }
.blog-nav .sep { color: var(--text-faint); font-weight: 400; }
.blog-nav .crumb { font-family: var(--font-sans); font-weight: 400; font-size: 15px; color: var(--text-muted); }

h1 {
  font-family: var(--font-serif);
  font-size: 34px;
  line-height: 1.2;
  margin: 0 0 8px;
}
h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  margin: 40px 0 12px;
}
.dek { color: var(--text-muted); font-size: 17px; margin: 0 0 32px; }
.meta { color: var(--text-faint); font-size: 13px; margin: 0 0 32px; }
p { margin: 0 0 16px; font-size: 16px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 6px; }
strong { color: var(--ink); }
a { color: var(--accent-strong); }
a:hover { color: var(--accent); }

.callout {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 15px;
}
.callout strong { display: block; margin-bottom: 4px; font-family: var(--font-serif); font-size: 16px; }

.cta {
  margin-top: 48px;
  padding: 24px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
}
.cta p { margin: 0 0 14px; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: #211f1a;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
}
.btn:hover { background: var(--accent-strong); color: #fff; }

table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 15px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }
th { font-family: var(--font-serif); font-weight: 600; }
.num { font-variant-numeric: tabular-nums; }

.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { border-bottom: 1px solid var(--border); padding: 20px 0; }
.post-list li:first-child { padding-top: 0; }
.post-list a { font-family: var(--font-serif); font-size: 20px; font-weight: 600; text-decoration: none; color: var(--ink); }
.post-list a:hover { color: var(--accent-strong); }
.post-list .dek { margin: 6px 0 0; font-size: 15px; }
