/* Shared stylesheet for the blog hub and posts added on 2026-09-13 (the landing page, the checklist
   and the comparison page still inline their own copy). Same almanac palette and type as
   public/index.html: Gable's LightPaper / DarkPaper tokens from GableTheme.kt. Served from 'self',
   which _headers allows. */
:root {
  --page: #F7F3EA; --raised: #FFFCF5; --shade: #F0EADB; --rule: #DCD2BC;
  --ink: #231F18; --ink-muted: #6B6154; --accent: #33553F; --on-accent: #F7F3EA;
  --accent-soft: #DCE7DC; --on-accent-soft: #23402C; --cost-high: #9C3B22;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #191712; --raised: #221F19; --shade: #2A261E; --rule: #3D372C;
    --ink: #EDE6D5; --ink-muted: #A79C89; --accent: #8FBF9C; --on-accent: #13291B;
    --accent-soft: #2A3E31; --on-accent-soft: #C5DFCB; --cost-high: #C4543A;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: 'IBM Plex Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 800px; margin: 0 auto; padding-inline: 20px; }
h1, h2, h3, .brand-name { font-family: Fraunces, ui-serif, Georgia, 'Times New Roman', serif; font-optical-sizing: auto; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; margin: 0; text-wrap: balance; font-variation-settings: 'SOFT' 30, 'WONK' 0; }
h1 { font-variation-settings: 'SOFT' 45, 'WONK' 1; font-size: clamp(32px, 5.4vw, 48px); margin-bottom: 18px; }
h2 { font-size: clamp(25px, 3.2vw, 32px); margin: 52px 0 14px; }
h3 { font-size: 21px; margin: 30px 0 6px; }
p { margin: 0 0 16px; text-wrap: pretty; }
ul, ol { padding-left: 22px; margin: 0 0 16px; }
li { margin-bottom: 7px; }
.muted { color: var(--ink-muted); }
.note { border-left: 3px solid var(--rule); padding: 2px 0 2px 16px; color: var(--ink-muted); font-size: 16px; }
.cost { border-left: 3px solid var(--cost-high); padding: 2px 0 2px 16px; font-size: 16px; }

.site-head { border-bottom: 1px solid var(--rule); }
.site-head .wrap { max-width: 960px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 6px; }
.brand-name { font-size: 21px; }
.head-nav { display: flex; align-items: center; gap: 22px; }
.navlink { font-size: 15px; color: var(--ink-muted); text-decoration: none; }
.navlink:hover { color: var(--ink); }
.head-cta { font-size: 15px; font-weight: 600; text-decoration: none; color: var(--on-accent); background: var(--accent); padding: 8px 16px; border-radius: 4px; white-space: nowrap; }
.head-cta:hover { color: var(--on-accent); filter: brightness(1.08); }

main { padding-block: 44px 72px; }
.crumbs { font-size: 14px; color: var(--ink-muted); margin-bottom: 18px; }
.crumbs a { color: var(--ink-muted); }
.standfirst { font-size: clamp(18px, 2vw, 20px); color: var(--ink-muted); }
.byline { font-size: 14px; color: var(--ink-muted); margin-bottom: 30px; }
.answer { border: 1px solid var(--accent); background: var(--accent-soft); color: var(--on-accent-soft); border-radius: 6px; padding: 20px 22px; }
.answer h2 { font-family: 'IBM Plex Sans', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; margin: 0 0 8px; color: inherit; }
.answer p { margin: 0; }
.answer a { color: inherit; }
.inline-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 18px 0 0; font-size: 15px; color: var(--ink-muted); }
.inline-cta a { font-weight: 600; text-decoration: none; color: var(--on-accent); background: var(--accent); padding: 9px 18px; border-radius: 4px; }
.inline-cta a:hover { color: var(--on-accent); filter: brightness(1.08); }

.tablewrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 6px; margin: 8px 0 10px; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; line-height: 1.5; }
th, td { text-align: left; padding: 12px 15px; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { background: var(--shade); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }
.tablenote { font-size: 14px; color: var(--ink-muted); }

.cta { border: 1px solid var(--rule); background: var(--raised); border-radius: 8px; padding: 28px clamp(20px, 3.5vw, 34px); margin-top: 56px; }
.cta-top { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; }
.cta-top img { width: 56px; height: 56px; border-radius: 12px; }
.cta h2 { font-size: clamp(22px, 2.8vw, 28px); margin: 0; }
.cta p { color: var(--ink-muted); }
.cta .badge img { width: 188px; }

.related { margin-top: 48px; }
.related h2 { font-size: 22px; margin: 0 0 12px; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.related li { margin: 0; }
.related a { display: block; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 6px; background: var(--raised); text-decoration: none; color: var(--ink); font-weight: 500; }
.related a:hover { border-color: var(--accent); }

.post-group { margin-top: 44px; }
.post-group h2 { font-family: 'IBM Plex Sans', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 12px; }
.posts { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.posts li { margin: 0; }
.posts a { display: block; padding: 18px 20px; border: 1px solid var(--rule); border-radius: 6px; background: var(--raised); text-decoration: none; color: var(--ink); }
.posts a:hover { border-color: var(--accent); }
.posts strong { display: block; font-family: Fraunces, ui-serif, Georgia, serif; font-size: 21px; font-weight: 600; line-height: 1.25; margin-bottom: 4px; }
.posts span { color: var(--ink-muted); font-size: 15px; line-height: 1.55; display: block; }

.site-foot { border-top: 1px solid var(--rule); padding-block: 34px 52px; font-size: 15px; color: var(--ink-muted); }
.site-foot .wrap { max-width: 960px; display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: baseline; justify-content: space-between; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.site-foot small { flex-basis: 100%; font-size: 13px; }
@media (max-width: 520px) { body { font-size: 16px; } .head-cta { padding: 7px 12px; font-size: 14px; } }
