/* Shared stylesheet for the static /blog pages. Deliberately NOT the
   app's real src/styles/theme.css — these are plain static HTML files
   served straight from public/ (no Vite build step touches them), so
   they need a self-contained stylesheet. Design tokens below are copied
   from theme.css's :root — keep them in sync by eye if the app's
   palette changes; there are only a handful of blog pages, so a shared
   build pipeline with the app isn't worth the complexity yet. */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  --bg: #f2f3ee;
  --bg-raised: #ffffff;
  --ink: #1e2a32;
  --ink-soft: #4c5a61;
  --brass: #8b6b3d;
  --brass-soft: #c9ad82;
  --sage: #4b7062;
  --sage-soft: #cfe0d6;
  --border: #dad5c8;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171b1d;
    --bg-raised: #1f2427;
    --ink: #ece9e1;
    --ink-soft: #a9afae;
    --brass: #d3b27c;
    --brass-soft: #6e5a38;
    --sage: #8fbba6;
    --sage-soft: #2c3d35;
    --border: #34393b;
  }
}

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

nav.blog-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 20px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .runway-mark { width: 22px; height: 22px; }
.brand .runway-mark .rm-glow { fill: var(--brass-soft); opacity: 0.35; }
.brand .runway-mark .rm-sun { fill: var(--brass); }
.brand .runway-mark .rm-ray { stroke: var(--brass-soft); stroke-width: 3.4; stroke-linecap: round; }
.brand .runway-mark .rm-hill { fill: var(--sage); }
.brand .runway-mark .rm-path { fill: none; stroke: var(--bg-raised); stroke-width: 3; stroke-linecap: round; opacity: 0.9; }
.brand-text { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--ink); }
.blog-nav-actions a { color: var(--ink-soft); text-decoration: none; font-size: 14px; margin-left: 18px; }
.blog-nav-actions a:hover { color: var(--ink); }

main { padding: 8px 0 60px; }

.blog-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--sage); margin-bottom: 10px;
}
h1 {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 5vw, 38px);
  line-height: 1.18; margin: 0 0 16px;
}
h2 {
  font-family: var(--font-display); font-weight: 500; font-size: 24px;
  margin: 40px 0 12px;
}
h3 {
  font-family: var(--font-display); font-weight: 500; font-size: 19px;
  margin: 28px 0 10px;
}
p { margin: 0 0 16px; font-size: 16.5px; }
ul, ol { padding-left: 22px; margin: 0 0 16px; }
li { margin-bottom: 8px; font-size: 16.5px; }
a { color: var(--brass); }

.post-meta { color: var(--ink-soft); font-size: 14px; margin-bottom: 28px; }

.example-card {
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: 12px;
  padding: 22px 26px; margin: 24px 0;
}
.example-card h3 { margin-top: 0; }
.example-card table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 10px 0; }
.example-card td { padding: 7px 0; border-bottom: 1px solid var(--border); }
.example-card tr:last-child td { border-bottom: none; }
.example-card .num { text-align: right; font-variant-numeric: tabular-nums; }
.example-card .highlight { color: var(--sage); font-weight: 700; }

.callout {
  background: var(--sage-soft); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px 20px; margin: 20px 0; font-size: 15px;
}

.cta-box {
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: 12px;
  padding: 28px; margin: 40px 0 20px; text-align: center;
}
.cta-box p { margin-bottom: 18px; }
.btn-primary {
  display: inline-block; font-family: var(--font-body); font-weight: 600; font-size: 16px;
  padding: 13px 28px; background: var(--brass); color: #fff; border: none; border-radius: 4px;
  text-decoration: none;
}

.post-list { list-style: none; padding: 0; margin: 28px 0; display: flex; flex-direction: column; gap: 14px; }
.post-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.post-card:hover {
  border-color: var(--brass-soft);
  transform: translateY(-1px);
}
.post-num {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--sage);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
}
.post-card-body { flex: 1; min-width: 0; }
.post-card-title {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 6px;
}
.post-card:hover .post-card-title { color: var(--brass); }
.post-card-sub { display: block; color: var(--ink-soft); font-size: 14.5px; line-height: 1.5; }
.post-card-arrow {
  flex: none;
  font-size: 20px;
  color: var(--brass-soft);
}
.post-card:hover .post-card-arrow { color: var(--brass); }
.post-list-soon { color: var(--ink-soft); font-style: italic; }

footer.blog-footer {
  max-width: 720px; margin: 0 auto; padding: 24px 20px 60px;
  color: var(--ink-soft); font-size: 13px; border-top: 1px solid var(--border);
}
footer.blog-footer a { color: var(--ink-soft); }
