/* Blog pages (static, generated by tools/import-blog.mjs). Same type and colours as the main site. */
@import url("/blog/fonts.css");
:root { --ink: #1b1d3d; --muted: #565a78; --line: #e3e5ee; --band: #f2f5fa; --accent: #036ba1; --red: #c41a13; --red-dark: #96150f; --serif: "Source Serif 4", Georgia, serif; color-scheme: light; }
* { box-sizing: border-box; }
html { scroll-padding-top: 90px; }
body { margin: 0; background: #fff; color: var(--ink); font: 18px/1.65 var(--serif); }
a { color: var(--accent); }
a:hover { color: #07507a; }
img { max-width: 100%; height: auto; }

/* header: Pragmatrix | PragLife, then the site's links */
.top { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); }
.top .in { max-width: 1240px; margin: 0 auto; padding: 14px clamp(20px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; flex: none; }
.brand img { display: block; width: auto; }
.brand .pmx { height: 28px; } .brand .pl { height: 36px; }
.brand .div { width: 1px; height: 28px; background: rgba(27,29,61,.22); }
.top nav { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 22px; font-size: 16px; }
.top nav a { color: var(--ink); text-decoration: none; padding: 4px 0; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--accent); }
.top nav a[aria-current="page"] { border-bottom: 1.5px solid var(--accent); }
.cta { display: inline-block; background: var(--red); color: #fff !important; border-radius: 12px; padding: 9px 18px !important; font-weight: 600; text-decoration: none; white-space: nowrap; }
.cta:hover { background: var(--red-dark); }
@media (max-width: 760px) { .top nav { width: 100%; gap: 4px 16px; font-size: 15px; } .brand .pmx { height: 22px; } .brand .pl { height: 28px; } .brand .div { height: 22px; } }

/* list */
.list, .post { max-width: 1240px; margin: 0 auto; padding: 48px clamp(20px, 5vw, 72px) 72px; }
.kicker { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin: 0 0 14px; }
h1 { font-weight: 600; letter-spacing: -.015em; line-height: 1.12; margin: 0; }
.list h1 { font-size: clamp(34px, 4.4vw, 56px); max-width: 22ch; }
.search { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 32px 0 28px; }
.search input { font: inherit; font-size: 17px; width: min(520px, 100%); padding: 11px 16px; border: 1.5px solid #c9ccda; border-radius: 12px; }
.search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
#count { font-size: 15px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 22px; }
.card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(27,29,61,.06); transition: box-shadow .2s ease, transform .2s ease; padding-bottom: 20px; }
.card:hover, .card:focus-visible { box-shadow: 0 10px 28px rgba(27,29,61,.14); transform: translateY(-2px); color: var(--ink); }
.card img, .card .noimg { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--band); }
.c-meta { font-size: 14px; color: var(--muted); padding: 6px 20px 0; }
.c-title { font-size: 21px; line-height: 1.3; font-weight: 600; padding: 0 20px; }
.c-ex { font-size: 16px; line-height: 1.55; color: var(--muted); padding: 0 20px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
#none { color: var(--muted); }

/* post */
.post { max-width: 820px; }
.crumb { margin: 0 0 14px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.crumb a { color: var(--red); text-decoration: none; }
.post h1 { font-size: clamp(32px, 4vw, 48px); }
.meta { color: var(--muted); font-size: 16px; margin: 16px 0 28px; }
.hero { display: block; width: 100%; border-radius: 14px; margin: 0 0 32px; }
.body h2 { font-size: 28px; line-height: 1.25; margin: 40px 0 12px; }
.body h3 { font-size: 22px; line-height: 1.3; margin: 32px 0 10px; }
.body p, .body li { color: #2a2d4d; }
.body ul, .body ol { padding-left: 1.3em; }
.body li { margin: 6px 0; }
.body blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--accent); color: var(--muted); }
.body img { border-radius: 10px; margin: 12px 0; }
.body table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; font-size: 16px; }
.body th, .body td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.body th { background: var(--band); }
.cta-box { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 48px 0 24px; padding: 24px 26px; border-radius: 14px; background: var(--band); }
.cta-box b { font-size: 21px; } .cta-box span { color: var(--muted); flex: 1 1 220px; }
.back { font-size: 16px; }

.foot { border-top: 1px solid var(--line); background: #14163f; color: #c9cbe0; }
.foot .in { max-width: 1240px; margin: 0 auto; padding: 24px clamp(20px, 5vw, 72px); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 15px; }
.foot a, .foot button { color: inherit; font: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.card[hidden] { display: none; }
