/* ============================================================
   Notes — layers on styles.css (variables, .eyebrow,
   .social, .footer). Matches the editorial B&W aesthetic.
   ============================================================ */

.blog-page { background: var(--cream); color: var(--ink); }

/* ---- Header ---- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.4rem, 3vw, 2.4rem) var(--hero-pad);
}
.topbar .logo img { height: var(--logo-h); width: auto; display: block; }
/* .topnav is defined once in styles.css and shared across all pages */

/* ---- Layout ---- */
.blog-main { min-height: 60vh; }
.blog-wrap, .post {
  max-width: 720px;
  margin-inline: auto;
  padding: clamp(3rem, 8vw, 6rem) var(--pad) clamp(4rem, 10vw, 8rem);
}

/* ---- Index ---- */
.blog-title {
  margin: 1.2rem 0 clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.2;
  letter-spacing: 0.004em;
  max-width: 18ch;
}
/* space where the old headline used to sit */
.blog-wrap > .eyebrow { margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list__item { border-top: 1px solid var(--cream-line); }
.post-list__item:first-child { border-top: 0; }   /* no stray line under "Notes" */
/* no closing border — the newsletter's top border is the single divider
   (two stacked rules looked like a mistake) */
.post-list__link {
  display: block;
  padding: clamp(1.6rem, 4vw, 2.4rem) 0;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.25s ease;
}
.post-list__link:hover { opacity: 0.6; }
.post-list__date {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.post-list__heading {
  margin: 0.6rem 0 0.5rem;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.22;
  color: var(--ink);
}
.post-list__excerpt {
  margin: 0;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.55;
  color: #5f5b52;
  max-width: 52ch;
}

/* ---- Post ---- */
.post__header { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.post__back {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-dark);
  text-decoration: none;
}
.post__back:hover { color: var(--ink); }
.post__date {
  display: block;
  margin-top: 1.6rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.post__title {
  margin: 0.7rem 0 0;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.16;
  letter-spacing: 0.004em;
}

/* ---- Prose (Markdown body) ---- */
.prose { font-size: clamp(1.15rem, 1.7vw, 1.35rem); line-height: 1.72; color: #2a2723; }
.prose > * + * { margin-top: 1.4em; }
.prose h2 {
  margin-top: 2.2em;
  font-weight: 500;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.25;
  letter-spacing: 0.004em;
  color: var(--ink);
}
.prose h3 { margin-top: 1.8em; font-weight: 600; font-size: 1.25em; color: var(--ink); }
.prose a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: #000; }
.prose strong { font-weight: 600; }
.prose em { font-style: italic; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-top: 0.5em; }
.prose blockquote {
  margin: 1.6em 0;
  padding-left: 1.2em;
  border-left: 2px solid var(--cream-line);
  font-style: italic;
  color: #4a463f;
}
.prose img { max-width: 100%; height: auto; display: block; filter: grayscale(100%) contrast(1.02); }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: #e7e4dc;
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

/* ---- Footer ---- */
.site-footer {
  margin-top: 0;
  border-top: 1px solid var(--cream-line);
  padding-block: clamp(1.6rem, 3vw, 2.2rem);
}

/* Responsive header behaviour (wrap + centred nav) is handled in styles.css */
