/* Shared styles for blog pages. Matches the homepage (site/index.html). */
:root {
  --green: #1d6f56;
  --green-deep: #0f4a3a;
  --plate: #f7c900;
  --ink: #17212b;
  --ink-soft: #4a5866;
  --paper: #ffffff;
  --mist: #eef2f0;
  --line: #d5ddd9;
  --display: "Archivo", "Arial Narrow", sans-serif;
  --body: "Public Sans", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--green); }
:focus-visible { outline: 3px solid var(--plate); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-family: var(--display); font-stretch: 112%; line-height: 1.1; letter-spacing: -0.01em; margin: 0; }

.btn { display: inline-block; font: 700 1.05rem/1 var(--body); text-decoration: none; padding: 16px 24px; border-radius: 6px; background: var(--green); color: #fff; border: 2px solid var(--green); }
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); }

header.top { border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font: 800 1.15rem/1 var(--display); font-stretch: 112%; color: var(--ink); text-decoration: none; }
.brand-mark { width: 30px; height: 30px; }
.top nav { display: flex; align-items: center; gap: 22px; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.98rem; }
.top nav a:hover { color: var(--green); }
.top nav .btn { padding: 11px 16px; font-size: 0.95rem; color: #fff; white-space: nowrap; }
@media (max-width: 760px) {
  .top nav a:not(.btn) { display: none; }
  .top nav .btn { padding: 10px 12px; font-size: 0.9rem; }
  .brand { font-size: 1rem; }
}

/* Blog list */
.blog-index { padding-top: 56px; padding-bottom: 80px; }
.blog-index h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 850; margin-bottom: 12px; }
.blog-index .lede { font-size: 1.2rem; color: var(--ink-soft); margin: 0 0 36px; max-width: 60ch; }
.post-list { list-style: none; margin: 0; padding: 0; max-width: 780px; }
.post-list li { border-top: 1px solid var(--line); }
.post-list li:last-child { border-bottom: 1px solid var(--line); }
.post-list a { display: block; padding: 26px 0; color: inherit; text-decoration: none; }
.post-list h2 { font-size: 1.45rem; font-weight: 780; margin-bottom: 8px; }
.post-list a:hover h2 { color: var(--green); }
.post-list p { margin: 0 0 8px; color: var(--ink-soft); }
.post-list time { font-size: 0.92rem; color: var(--ink-soft); }
.post-list .empty { padding: 26px 0; color: var(--ink-soft); }

/* A single post */
.post { max-width: 760px; padding-top: 40px; padding-bottom: 80px; }
.post .back { margin: 0 0 22px; font-weight: 600; }
.post .back a { text-decoration: none; }
.post h1 { font-size: clamp(2rem, 4.6vw, 2.9rem); font-weight: 850; margin-bottom: 12px; }
.post .meta { color: var(--ink-soft); margin: 0 0 32px; }
.prose { font-size: 1.12rem; line-height: 1.7; }
.prose p, .prose ul, .prose ol, .prose blockquote { margin: 0 0 1.15em; max-width: 68ch; }
.prose h2 { font-size: 1.55rem; font-weight: 780; margin: 1.8em 0 0.6em; }
.prose h3 { font-size: 1.2rem; font-weight: 750; font-stretch: 100%; margin: 1.5em 0 0.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.45em; }
.prose blockquote { margin-left: 0; padding: 14px 18px; background: var(--mist); border-left: 4px solid var(--green); border-radius: 0 8px 8px 0; }
.prose blockquote p { margin: 0; }

.cta { margin-top: 48px; padding: 30px; background: var(--green-deep); color: #fff; border-radius: 14px; }
.cta h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 10px; }
.cta p { color: #d6ebe4; margin: 0 0 20px; }
.cta .btn { background: var(--plate); border-color: var(--plate); color: var(--ink); }
.cta .btn:hover { background: #fff; border-color: #fff; }

footer { padding: 34px 0; font-size: 0.92rem; color: var(--ink-soft); border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer a { color: var(--ink-soft); }

/* Number-plate picture for each post */
.plate-art { display: block; height: auto; }
.plate-art--large { width: min(100%, 420px); margin: 0 0 28px; }
.plate-art--small { width: 150px; flex: none; margin-top: 4px; }

/* Blog list cards: picture beside the text */
.post-list a { display: flex; gap: 24px; align-items: flex-start; }
.post-list .card-meta { font-size: 0.92rem; color: var(--ink-soft); }
@media (max-width: 600px) {
  .post-list a { flex-direction: column; gap: 14px; }
  .plate-art--small { width: 130px; }
}

/* "In short" summary at the top of a post */
.in-short { background: var(--mist); border-radius: 12px; padding: 22px 24px; margin: 0 0 36px; }
.in-short h2 { font-size: 1.15rem; font-weight: 780; font-stretch: 100%; margin-bottom: 10px; }
.in-short ul { margin: 0; padding-left: 1.2em; }
.in-short li { margin-bottom: 0.4em; }
.in-short li:last-child { margin-bottom: 0; }

/* Tables in posts (e.g. example spreadsheet) */
.prose table { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin: 0 0 1.4em; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.prose th { background: var(--mist); font-weight: 700; }

/* Share links */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.share span { font-weight: 700; margin-right: 6px; }
.share a, .share button { font: 600 0.95rem var(--body); color: var(--ink); text-decoration: none; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--green); color: var(--green); }

/* Related posts */
.related { margin-top: 56px; }
.related > h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.related .post-list h2 { font-size: 1.2rem; }
