/* blog.css - shared styles for the generated blog (index + post pages).
   On-brand: warm bone canvas, British Racing Green accent, Playfair display
   titles, Newsreader reading serif, Schibsted Grotesk UI. Self-hosted via
   /fonts.css. Reading-optimized: a narrow measure, generous line-height. */

:root {
  --bone:      #F4F1EA;
  --paper:     #FBFAF6;
  --ink:       #1A1A17;
  --ink-soft:  #36342F;
  --ink-faint: #5D5B53;
  --hair:      #DCD7CC;
  --green:     #1F3D2B;
  --green-deep:#16301F;
  --display: "Schibsted Grotesk", ui-sans-serif, -apple-system, sans-serif;
  --serif:   "Newsreader", Georgia, serif;
  --playfair:"Playfair Display", Georgia, serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  font-family: var(--serif);
  color: var(--ink);
  background: var(--bone);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }

/* top bar */
.top {
  width: 100%; max-width: 1024px; margin: 0 auto;
  padding: 24px clamp(20px, 5vw, 48px);
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--display);
}
.logo { font-size: 1.05rem; font-weight: 500; letter-spacing: -0.02em; }
.logo b { font-weight: 700; }
.toplink { font-size: 0.95rem; font-weight: 500; color: var(--green); }
.toplink:hover { font-weight: 700; }

main { flex: 1; width: 100%; }

/* ---- blog index ---- */
.blog-index {
  max-width: 720px; margin: 0 auto;
  padding: 32px clamp(20px, 5vw, 48px) 64px;
}
.eyebrow {
  font-family: var(--display);
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--green); margin-bottom: 18px;
}
.blog-index h1 {
  font-family: var(--playfair); font-weight: 900;
  font-size: clamp(2.2rem, 5.5vw, 3.4rem); line-height: 1.08;
  letter-spacing: -0.02em; color: var(--ink); max-width: 18ch;
}
.blog-index .lede {
  margin-top: 18px; max-width: 52ch; font-size: 1.15rem; color: var(--ink-soft);
}
.post-list { margin-top: 42px; display: flex; flex-direction: column; gap: 8px; }
.post-card {
  display: block; padding: 22px 24px; border-radius: 14px;
  background: var(--paper); border: 1px solid var(--hair);
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.post-card:hover { border-color: var(--green); transform: translateY(-1px); }
.post-card-date {
  display: block; font-family: var(--display);
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-faint);
}
.post-card-title {
  display: block; margin-top: 6px;
  font-family: var(--playfair); font-weight: 700;
  font-size: 1.5rem; line-height: 1.2; color: var(--ink);
}
.post-card-desc { display: block; margin-top: 8px; color: var(--ink-soft); }
.empty { color: var(--ink-faint); font-style: italic; }

/* ---- a post ---- */
.article {
  max-width: 680px; margin: 0 auto;
  padding: 24px clamp(20px, 5vw, 48px) 64px;
}
.crumbs {
  font-family: var(--display); font-size: 13px; color: var(--ink-faint);
  margin-bottom: 28px;
}
.crumbs a:hover { color: var(--green); font-weight: 600; }
.post-date {
  font-family: var(--display); font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint);
}
.post-title {
  margin-top: 12px;
  font-family: var(--playfair); font-weight: 900;
  font-size: clamp(2rem, 5vw, 3rem); line-height: 1.08;
  letter-spacing: -0.02em; color: var(--ink);
}
.post-lede {
  margin-top: 18px; font-size: 1.28rem; line-height: 1.5;
  color: var(--ink-soft); font-style: italic;
}
.post-body { margin-top: 34px; font-size: 1.18rem; color: var(--ink-soft); }
.post-body > * + * { margin-top: 1.15em; }
.post-body h2 {
  font-family: var(--display); font-weight: 700;
  font-size: 1.6rem; line-height: 1.25; letter-spacing: -0.015em;
  color: var(--ink); margin-top: 1.8em;
}
.post-body h3 {
  font-family: var(--display); font-weight: 600;
  font-size: 1.28rem; color: var(--ink); margin-top: 1.5em;
}
.post-body a { color: var(--green); font-weight: 600; }
.post-body a:hover { text-decoration: underline; }
.post-body ul, .post-body ol { padding-left: 1.4em; }
.post-body li + li { margin-top: 0.4em; }
.post-body blockquote {
  border-left: 3px solid var(--green);
  padding: 4px 0 4px 20px; color: var(--ink); font-style: italic;
}
.post-body code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.92em; background: #ECE8DE; padding: 1px 6px; border-radius: 5px;
}
.post-body pre {
  background: var(--green-deep); color: #EDEDE6; padding: 18px 20px;
  border-radius: 12px; overflow-x: auto; font-size: 0.95rem;
}
.post-body pre code { background: none; padding: 0; color: inherit; }
.post-body hr { border: none; border-top: 1px solid var(--hair); }

.back {
  margin-top: 40px; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 600; font-size: 15px;
  background: var(--green); color: #fff; border-radius: 999px; padding: 12px 24px;
}
.back:hover { background: var(--green-deep); }

/* footer */
.sitefoot { border-top: 1px solid var(--hair); font-family: var(--display); }
.sitefoot-in {
  max-width: 1024px; margin: 0 auto; padding: 26px clamp(20px, 5vw, 48px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.copy { font-size: 13.5px; color: var(--ink-faint); }
.flinks { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.flink { font-size: 13.5px; color: var(--ink-soft); }
.flink:hover { color: var(--green); font-weight: 700; }
