/* Shared stylesheet for the blog hub and posts added on 2026-09-13 (the landing page and the photo
   guide still inline their own copy). Same palette and type as public/index.html, which come from
   Gingham's theme: Bricolage Grotesque headings, Atkinson Hyperlegible body. Served from 'self',
   which _headers allows. */
:root {
  --ground: #FFFFFF; --surface: #F4F4F8; --card: #FFFFFF; --line: #E3E3EB; --line-strong: #C9C9D5;
  --text: #131318; --muted: #5A5A69; --ink: #2F2B8C; --on-ink: #FFFFFF; --ink-text: #2F2B8C;
  --ink-soft: #ECEBFA; --on-ink-soft: #27237A;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0E0E13; --surface: #18181F; --card: #18181F; --line: #2B2B35; --line-strong: #40404D;
    --text: #F1F1F6; --muted: #A9A9B9; --ink: #A9A5FF; --on-ink: #15142E; --ink-text: #B9B6FF;
    --ink-soft: #27254B; --on-ink-soft: #D8D6FF;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--text); font-family: 'Atkinson Hyperlegible', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 18px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--ink-text); text-underline-offset: 3px; }
a:hover { color: var(--text); }
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: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif; font-optical-sizing: auto; font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(34px, 5.4vw, 52px); margin-bottom: 18px; }
h2 { font-weight: 750; font-size: clamp(26px, 3.4vw, 34px); margin: 52px 0 16px; }
h3 { font-weight: 700; font-size: 22px; margin: 30px 0 8px; letter-spacing: -0.01em; }
p { margin: 0 0 18px; text-wrap: pretty; }
ul, ol { padding-left: 24px; margin: 0 0 18px; }
li { margin-bottom: 8px; }
.muted { color: var(--muted); }
.note { padding-left: 14px; border-left: 3px solid var(--line-strong); color: var(--muted); font-size: 17px; }
.math { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin: 0 0 18px; }
.math b { font-family: 'Bricolage Grotesque', sans-serif; font-size: 20px; }

.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { max-width: 1080px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand-name { font-size: 24px; }
.head-nav { display: flex; align-items: center; gap: 20px; }
.navlink { font-size: 16px; color: var(--muted); text-decoration: none; }
.navlink:hover { color: var(--text); }
.head-cta { display: inline-flex; align-items: center; font-weight: 700; text-decoration: none; color: var(--on-ink); background: var(--ink); border-radius: 16px; padding: 9px 16px; font-size: 16px; white-space: nowrap; }
.head-cta:hover { color: var(--on-ink); filter: brightness(1.1); }

main { padding-block: 40px 72px; }
.crumbs { font-size: 15px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.standfirst { font-size: clamp(19px, 2.2vw, 21px); color: var(--muted); }
.byline { font-size: 15px; color: var(--muted); margin-bottom: 30px; }
.answer { background: var(--ink-soft); color: var(--on-ink-soft); border-radius: 20px; padding: 22px 24px; }
.answer h2 { font-family: 'Atkinson Hyperlegible', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; 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 8px; font-size: 16px; color: var(--muted); }
.inline-cta a { display: inline-flex; font-weight: 700; text-decoration: none; color: var(--on-ink); background: var(--ink); border-radius: 16px; padding: 10px 18px; }
.inline-cta a:hover { color: var(--on-ink); filter: brightness(1.1); }

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

.cta { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; 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: 14px; }
.cta h2 { margin: 0; font-size: clamp(24px, 3vw, 30px); }
.cta p { color: var(--muted); }
.cta .badge img { width: 196px; }

.related { margin-top: 48px; }
.related h2 { font-size: 24px; 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 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); text-decoration: none; color: var(--text); font-weight: 700; }
.related a:hover { border-color: var(--ink); }

.post-group { margin-top: 44px; }
.post-group h2 { font-family: 'Atkinson Hyperlegible', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--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(--line); border-radius: 18px; background: var(--card); text-decoration: none; color: var(--text); }
.posts a:hover { border-color: var(--ink); }
.posts strong { display: block; font-family: 'Bricolage Grotesque', sans-serif; font-size: 22px; font-weight: 750; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 4px; }
.posts span { color: var(--muted); font-size: 16px; line-height: 1.5; display: block; }

.site-foot { border-top: 1px solid var(--line); padding-block: 30px 48px; font-size: 15px; color: var(--muted); }
.site-foot .wrap { max-width: 1080px; display: flex; flex-wrap: wrap; gap: 12px 28px; 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: 17px; } .head-cta { padding: 7px 12px; font-size: 15px; } }
