/*
 * Scoutvane blog: list and post pages. Generated pages live in /blog/ and /en/blog/.
 * CSP: style-src 'self' only, so no inline styles anywhere.
 */
.blog-head { padding-bottom: 24px; }
.blog-head h1 { margin-top: 14px; font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.4rem); }
.nav a[aria-current="page"] { color: var(--brass-hi); }

/* ---------- List ---------- */
.post-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card a {
  display: flex; flex-direction: column; height: 100%; overflow: hidden; color: inherit; text-decoration: none;
  border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, var(--ink-2), var(--ink-1));
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.post-card a:hover, .post-card a:focus-visible { border-color: var(--brass-lo); transform: translateY(-2px); }
.post-card img, .post-card-ph { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--navy); }
.post-card-ph { background: radial-gradient(circle at 70% 30%, var(--brass-wash), transparent 60%), var(--navy); }
.post-meta { display: block; padding: 18px 22px 0; color: var(--text-3); font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.78rem; letter-spacing: 0.04em; }
.post-title { display: block; padding: 8px 22px 0; font-family: "Newsreader", Georgia, serif; font-size: 1.45rem; line-height: 1.25; color: var(--text); }
.post-summary { display: block; padding: 10px 22px 0; color: var(--text-2); font-size: 0.97rem; line-height: 1.55; }
.post-more { display: block; margin-top: auto; padding: 18px 22px 22px; color: var(--brass-hi); font-size: 0.92rem; }

/* ---------- Post ---------- */
.post { padding: 56px 0 72px; }
.post-head { max-width: 820px; }
.post-head .eyebrow a { color: inherit; text-decoration: none; }
.post-head .eyebrow a:hover { color: var(--brass-hi); }
.post-head h1 { margin-top: 18px; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); line-height: 1.12; }
.post-head .post-meta { padding: 18px 0 0; }
.post-cover { max-width: 1040px; margin-top: 32px; }
.post-cover img { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); }
.post-body { max-width: 760px; margin-top: 36px; color: var(--text-2); font-size: 1.0625rem; line-height: 1.75; }
.post-body > * + * { margin-top: 1.1em; }
.post-body h2, .post-body h3, .post-body h4 { margin-top: 1.8em; color: var(--text); line-height: 1.25; }
.post-body h2 { font-size: 1.75rem; } .post-body h3 { font-size: 1.35rem; } .post-body h4 { font-size: 1.1rem; }
.post-body a { color: var(--brass-hi); text-underline-offset: 3px; }
.post-body strong { color: var(--text); }
.post-body img { display: block; max-width: 100%; height: auto; margin: 1.6em auto; border-radius: 14px; border: 1px solid var(--line); }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li + li { margin-top: 0.35em; }
.post-body blockquote { margin-left: 0; padding: 4px 0 4px 18px; border-left: 2px solid var(--brass); color: var(--text); font-style: italic; }
.post-body code { padding: 1px 6px; border-radius: 6px; background: var(--navy); font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.88em; color: var(--text); }
.post-body pre { overflow-x: auto; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--ink-0); }
.post-body pre code { padding: 0; background: none; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 0.95rem; display: block; overflow-x: auto; }
.post-body th, .post-body td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.post-body th { color: var(--text); }
.post-body hr { border: 0; border-top: 1px solid var(--line); }
.post-cta {
  max-width: 760px; margin-top: 48px; padding: 22px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  border: 1px solid var(--line-strong); border-radius: 16px; background: var(--brass-wash);
}
.post-cta p { margin: 0; color: var(--text); }
