/* Company Map UK blog — shared article + index styling (matches story.html). */
:root {
    --brand: #0b2b38;
    --accent: #0284c7;
    --accent-dark: #036aa0;
    --ink: #24292e;
    --muted: #6a737d;
    --rule: #e1e4e8;
    --bg: #fbfbf9;
    --code-bg: #eef1f3;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.7;
    font-size: 18px;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 40px 22px 80px; }

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

.topnav {
    font-size: 14px; margin: 0 0 30px;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 6px 16px;
}
.topnav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.topnav a:hover { color: var(--accent); }
.topnav span { color: var(--muted); }

.eyebrow {
    font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--muted); font-weight: 600; margin: 0 0 14px;
}
h1 {
    font-size: 34px; line-height: 1.18; color: var(--brand);
    margin: 0 0 16px; letter-spacing: -0.01em;
}
.standfirst { font-size: 20px; color: #3b4248; margin: 0 0 22px; }
.byline {
    font-size: 14px; color: var(--muted);
    border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
    padding: 12px 0; margin: 0 0 36px;
}
.byline a { font-weight: 600; }

h2 {
    font-size: 23px; color: var(--brand); margin: 44px 0 12px;
    line-height: 1.25; letter-spacing: -0.01em;
}
p { margin: 0 0 18px; }

code {
    font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.86em; background: var(--code-bg);
    padding: 0.12em 0.4em; border-radius: 4px; color: #28323b;
    word-break: break-word;
}

ul { margin: 0 0 18px; padding-left: 22px; }
li { margin-bottom: 7px; }

.stat-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 28px; }
.stat {
    flex: 1 1 130px; background: #fff; border: 1px solid var(--rule);
    border-radius: 10px; padding: 14px 16px;
}
.stat b { display: block; font-size: 22px; color: var(--brand); line-height: 1.2; }
.stat span { font-size: 13px; color: var(--muted); }

.cta {
    display: inline-block; margin: 6px 0 2px; padding: 11px 20px;
    background: var(--accent); color: #fff; text-decoration: none;
    border-radius: 26px; font-weight: 600; font-size: 16px;
}
.cta:hover { background: var(--accent-dark); color: #fff; }

figure { margin: 26px 0; }
.shot {
    display: block; width: 100%; height: auto;
    border: 1px solid var(--rule); border-radius: 10px;
    box-shadow: 0 1px 3px rgba(11, 43, 56, 0.08);
}
figcaption { font-size: 13px; color: var(--muted); margin-top: 9px; text-align: center; }

hr.end { border: none; border-top: 1px solid var(--rule); margin: 48px 0 28px; }
footer { font-size: 14px; color: var(--muted); }
footer a { font-weight: 600; }

/* Blog index — post list */
.posts { list-style: none; padding: 0; margin: 8px 0 0; }
.post-card {
    border-top: 1px solid var(--rule); padding: 26px 0;
    display: flex; gap: 20px; align-items: flex-start;
}
.post-card:last-child { border-bottom: 1px solid var(--rule); }
.post-thumb {
    flex: 0 0 210px; width: 210px; aspect-ratio: 16 / 9; object-fit: cover;
    border: 1px solid var(--rule); border-radius: 8px; display: block;
}
.post-body { min-width: 0; }
.post-card .date { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.post-card h2 { margin: 6px 0 8px; font-size: 22px; }
.post-card h2 a { color: var(--brand); text-decoration: none; }
.post-card h2 a:hover { color: var(--accent); }
.post-card p { margin: 0 0 10px; color: #3b4248; font-size: 17px; }
.post-card .more { font-weight: 600; text-decoration: none; }

@media (max-width: 600px) {
    body { font-size: 17px; }
    h1 { font-size: 28px; }
    .standfirst { font-size: 18px; }
    .wrap { padding: 32px 18px 64px; }
    .post-card { flex-direction: column; gap: 12px; }
    .post-thumb { flex-basis: auto; width: 100%; }
    .post-card h2 { font-size: 20px; }
}
