/* Generated by the CMS — do not edit by hand.
   Re-generated whenever the blog scaffold runs. Local edits will be overwritten.
   Themed from: index.html (inline) */

.cms-blog {
  --cms-heading-font: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
  --cms-body-font: var(--font-sans, 'Inter', system-ui, sans-serif);
  --cms-heading-color: var(--charcoal, #3a3530);
  --cms-body-color: var(--charcoal, #3a3530);
  --cms-muted-color: var(--mid-grey, #524f4c);
  --cms-accent-color: var(--sage-dark, #4e7a58);
  --cms-border-color: var(--border, #e4ddd4);
  --cms-surface: var(--warm-white, #fdfbf8);
  --cms-radius: 8px;
  --cms-measure: 68ch;
  --cms-gap: 1.75rem;

  font-family: var(--cms-body-font);
  color: var(--cms-body-color);
  padding: 7rem 1.5rem 4rem;
}

.cms-blog__inner {
  max-width: var(--cms-measure);
  margin: 0 auto;
}

/* ── Post header ─────────────────────────────────────────────────────────── */

.cms-post__title {
  font-family: var(--cms-heading-font);
  color: var(--cms-heading-color);
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}

.cms-post__meta {
  font-size: 0.9rem;
  color: var(--cms-muted-color);
  margin: 0 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.cms-post__meta > * + *::before {
  content: "·";
  margin-right: 0.5rem;
  opacity: 0.6;
}


.cms-post__hero {
  width: 100%;
  height: auto;
  border-radius: var(--cms-radius);
  margin: 0 0 2.5rem;
  display: block;
}

/* ── Body typography ─────────────────────────────────────────────────────── */

.cms-post__body { font-size: 1.0625rem; line-height: 1.75; }

/* Vertical rhythm.
   The .cms-block reset in the blocks section below is the same specificity as a
   bare child-plus-child selector and comes later in the file, so it was quietly winning:
   every gap between blocks collapsed to nothing, and a heading's negative
   bottom margin then pulled the next block *over* it. The reset now clears only
   the margins it needs to (figure and blockquote carry UA defaults; a div does
   not), and the first-child rule outranks the flow rule rather than racing it. */
.cms-post__body > * + * { margin-top: var(--cms-gap); }
.cms-post__body > :first-child { margin-top: 0; }

.cms-post__body h2,
.cms-post__body h3,
.cms-post__body h4 {
  font-family: var(--cms-heading-font);
  color: var(--cms-heading-color);
  line-height: 1.25;
  margin-top: 2.75rem;
  margin-bottom: 0;
  text-wrap: balance;
}

/* A heading belongs to what follows it, so it sits closer to that than to what
   came before. Said outright — the old version subtracted 0.75rem from the flow
   gap with a negative bottom margin, which only reads correctly for as long as
   the flow gap is exactly what it was when the sum was worked out. */
.cms-post__body :is(h2, h3, h4) + * { margin-top: 1rem; }

.cms-post__body h2 { font-size: 1.7rem; }
.cms-post__body h3 { font-size: 1.35rem; }
.cms-post__body h4 { font-size: 1.1rem; }

.cms-post__body p { margin: 0; }

.cms-post__body a {
  color: var(--cms-accent-color);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
}

.cms-post__body strong { font-weight: 650; color: var(--cms-heading-color); }

.cms-post__body ul,
.cms-post__body ol { margin: 0; padding-left: 1.4rem; }
.cms-post__body li + li { margin-top: 0.5rem; }

.cms-post__body img { max-width: 100%; height: auto; display: block; border-radius: var(--cms-radius); }

.cms-post__body hr {
  border: 0;
  border-top: 1px solid var(--cms-border-color);
  margin: 3rem 0;
}

.cms-post__body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--cms-border-color);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

.cms-post__body pre {
  background: var(--cms-surface);
  border: 1px solid var(--cms-border-color);
  border-radius: var(--cms-radius);
  padding: 1rem 1.25rem;
  overflow-x: auto;
}

.cms-post__body pre code { background: none; padding: 0; }

.cms-post__body table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.cms-post__body th,
.cms-post__body td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--cms-border-color); }
.cms-post__body th { font-family: var(--cms-heading-font); color: var(--cms-heading-color); }

/* ── Blocks ──────────────────────────────────────────────────────────────── */

/* figure and blockquote carry user-agent margins; a div does not. Block-start
   is deliberately left alone — that is the flow rule's property, and taking it
   here is what broke the spacing. */
.cms-block { margin-inline: 0; margin-block-end: 0; }

.cms-block figcaption,
.cms-block__caption {
  font-size: 0.875rem;
  color: var(--cms-muted-color);
  margin-top: 0.6rem;
  line-height: 1.5;
}

/* Image, full column width */
.cms-block--image img { width: 100%; }

/* Image, wider than the text measure — breaks the column on large screens */
.cms-block--wide {
  width: min(100vw - 3rem, calc(var(--cms-measure) + 12rem));
  margin-left: 50%;
  transform: translateX(-50%);
}
.cms-block--wide img { width: 100%; }

/* Float: text genuinely wraps around the image */
.cms-block--float {
  max-width: 42%;
  margin-bottom: 1rem;
}
.cms-block--float.is-left  { float: left;  margin-right: 1.75rem; }
.cms-block--float.is-right { float: right; margin-left: 1.75rem; }
.cms-block--float img { width: 100%; }

/* A float must not overhang the next heading or the footer */
.cms-post__body h2,
.cms-post__body h3,
.cms-post__body .cms-block--clear { clear: both; }
.cms-post__body::after { content: ""; display: block; clear: both; }

/* Split: image and text side by side, no wrapping */
.cms-block--image-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.cms-block--image-text.is-image-right { direction: rtl; }
.cms-block--image-text.is-image-right > * { direction: ltr; }
.cms-block--image-text img { width: 100%; }
.cms-block--image-text .cms-block__text > * + * { margin-top: 1rem; }

/* Gallery */
.cms-block--gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.cms-block--gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Pull quote */
.cms-block--quote {
  border-left: 3px solid var(--cms-accent-color);
  padding: 0.25rem 0 0.25rem 1.5rem;
  font-family: var(--cms-heading-font);
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--cms-heading-color);
}
.cms-block--quote cite {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--cms-body-font);
  font-size: 0.9rem;
  font-style: normal;
  color: var(--cms-muted-color);
}

/* Call to action */
.cms-block--cta {
  background: var(--cms-surface);
  border: 1px solid var(--cms-border-color);
  border-radius: var(--cms-radius);
  padding: 1.75rem;
  text-align: center;
}
.cms-block--cta h3 { margin: 0 0 0.5rem; font-family: var(--cms-heading-font); color: var(--cms-heading-color); }
.cms-block--cta p { margin: 0 0 1.25rem; color: var(--cms-muted-color); }
/* Scoped to the body on purpose. The post-body link rule sets the link colour to
   the accent at 0-1-1, which outranked an unscoped button rule at 0-1-0 — so the
   button's label was rendered in the accent colour on an accent-coloured
   background, and disappeared. Anything styling a link inside the post body has
   to outrank that rule, not merely follow it. */
.cms-post__body .cms-block__button {
  display: inline-block;
  background: var(--cms-accent-color);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--cms-radius);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 150ms ease;
}
.cms-post__body .cms-block__button:hover { opacity: 0.88; }

/* Embeds */
.cms-block--embed iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--cms-radius);
  display: block;
}

/* ── Post footer ─────────────────────────────────────────────────────────── */

.cms-post__footer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--cms-border-color);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}
.cms-post__footer a { color: var(--cms-accent-color); text-decoration: none; }
.cms-post__footer a:hover { text-decoration: underline; }

/* ── Index ───────────────────────────────────────────────────────────────── */

/* Cards carry a thumbnail *and* a text column, so the index gets a little more
   room than the 68ch reading measure a post page wants. */
.cms-blog-index .cms-blog__inner { max-width: 78ch; }

.cms-blog-index__header {
  margin: 0 0 2.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--cms-border-color);
}

.cms-blog-index__title {
  font-family: var(--cms-heading-font);
  color: var(--cms-heading-color);
  font-size: clamp(2.25rem, 1.5rem + 2.4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

/* A short accent rule under the masthead. One deliberate mark reads as designed;
   the same heading with nothing under it reads as a browser default. */
.cms-blog-index__title::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  margin-top: 1.1rem;
  background: var(--cms-accent-color);
  opacity: 0.8;
}

.cms-blog-index__intro {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--cms-muted-color);
  margin: 1.25rem 0 0;
  max-width: 58ch;
  text-wrap: pretty;
}

.cms-blog-index__list { display: grid; gap: 0; }

.cms-post-card {
  position: relative;
  display: grid;
  grid-template-columns: clamp(132px, 17vw, 188px) 1fr;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  /* Centred rather than top-aligned: with a square thumbnail and a two- or
     three-line excerpt the two columns are close in height, and top-alignment
     left the image looking dropped in beside the text rather than paired with
     it. */
  align-items: center;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--cms-border-color);
}
.cms-post-card--no-image { grid-template-columns: 1fr; }
.cms-post-card:first-child { padding-top: 0.5rem; }
.cms-post-card:last-child { border-bottom: 0; }

/* The frame, not the image, owns the shape — so the image can move inside it on
   hover without the corners or the card height changing. */
.cms-post-card__media {
  display: block;
  overflow: hidden;
  border-radius: var(--cms-radius);
  background: var(--cms-surface);
  border: 1px solid var(--cms-border-color);
}

.cms-post-card__thumb {
  width: 100%;
  /* Square. A 4/3 frame cropped the top and bottom off anything squarer than a
     photograph — logos, illustrations and diagrams arrived beheaded. A square
     holds those whole and takes a centred slice out of a landscape photo, which
     is the crop that loses least. */
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 400ms cubic-bezier(0.2, 0, 0.2, 1);
}

.cms-post-card__body { min-width: 0; }

/* Author and date, set as a small tracked line rather than body copy: it reads
   as a label at a glance and stops competing with the excerpt. */
.cms-post-card__meta {
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--cms-muted-color);
  margin: 0 0 0.55rem;
}

.cms-post-card__title {
  font-family: var(--cms-heading-font);
  color: var(--cms-heading-color);
  font-size: clamp(1.35rem, 1.1rem + 0.7vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.012em;
  margin: 0 0 0.5rem;
  text-wrap: balance;
}
.cms-post-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease;
}
/* The whole card is the target. Stretching the title's own link keeps that true
   without a wrapper <a> around block content or any JavaScript. */
.cms-post-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.cms-post-card__excerpt {
  margin: 0;
  color: var(--cms-body-color);
  font-size: 0.98rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.cms-post-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--cms-accent-color);
  opacity: 0.75;
  transition: opacity 180ms ease;
}
.cms-post-card__more svg {
  transition: transform 220ms cubic-bezier(0.2, 0, 0.2, 1);
}

.cms-post-card:hover .cms-post-card__title a,
.cms-post-card:focus-within .cms-post-card__title a { color: var(--cms-accent-color); }
.cms-post-card:hover .cms-post-card__thumb { transform: scale(1.04); }
.cms-post-card:hover .cms-post-card__more,
.cms-post-card:focus-within .cms-post-card__more { opacity: 1; }
.cms-post-card:hover .cms-post-card__more svg { transform: translateX(3px); }

.cms-post-card__title a:focus-visible {
  outline: 2px solid var(--cms-accent-color);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .cms-post-card__thumb,
  .cms-post-card__more,
  .cms-post-card__more svg { transition: none; }
  .cms-post-card:hover .cms-post-card__thumb { transform: none; }
  .cms-post-card:hover .cms-post-card__more svg { transform: none; }
}

.cms-blog-empty {
  border: 1px dashed var(--cms-border-color);
  border-radius: var(--cms-radius);
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--cms-muted-color);
}

/* ── Narrow screens ──────────────────────────────────────────────────────── */

@media (max-width: 760px) {
  .cms-block--float {
    float: none;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .cms-block--image-text { grid-template-columns: 1fr; }
  .cms-block--image-text.is-image-right { direction: ltr; }
  .cms-block--wide { width: 100%; margin-left: 0; transform: none; }
  .cms-post-card { grid-template-columns: 1fr; align-items: start; }
  .cms-post-card__thumb { aspect-ratio: 16 / 9; }
  .cms-blog-index__header { margin-bottom: 2rem; }
}

@media print {
  .cms-blog { padding-top: 0; }
  .cms-post__footer { display: none; }
}
