/* 2xN reference kit 1.64: blog post typography, in the Maison Guillaume Blanc brand.
   Shared by the blog editor preview (blog-editor.dc.html) and every post in blog/.
   Structure from the kit; tokens from css/styles.css (Audrey headings, Montserrat body, olive accent). */

.post-page { background: var(--bg); color: var(--ink); }
.post-page main { padding-top: clamp(96px, 12vw, 128px); }

.post { max-width: 760px; margin: 0 auto; padding: 56px 24px 96px; }
.post__cat {
  font-family: var(--font); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 18px;
}
.post__title {
  font-family: var(--font-display); font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 400; letter-spacing: 0;
  line-height: 1.08; margin: 0 0 22px; color: var(--ink-strong); text-wrap: balance;
}
.post__summary {
  font-size: clamp(1.125rem, 2.1vw, 1.3125rem); line-height: 1.6; font-weight: 300;
  color: var(--ink-strong); margin: 0 0 30px; text-wrap: pretty;
}
.post__meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px;
  padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: 0.875rem; color: var(--ink-muted);
}
.post__author { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink-strong); }
.post__avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent); color: var(--accent-ink, #fff);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 0.9375rem; font-weight: 500;
}
.post__meta-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--stone, var(--line)); }
.post__hero {
  margin: 32px 0 8px; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 16 / 9; background: var(--surface-2);
}
.post__hero image-slot, .post__hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Body prose */
.post__body { font-size: 1.0625rem; line-height: 1.85; color: var(--ink); margin-top: 34px; }
.post__body > *:first-child { margin-top: 0; }
.post__body h2 {
  font-family: var(--font-display); font-size: clamp(1.75rem, 3.4vw, 2.375rem); font-weight: 400; letter-spacing: 0; line-height: 1.15;
  color: var(--ink-strong); margin: 48px 0 16px;
}
.post__body h2 .accent { color: var(--accent); }
.post__inline-img { margin: 36px 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface-2); }
.post__inline-img image-slot, .post__inline-img img { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; }
.post__body h3 {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; letter-spacing: 0;
  color: var(--ink-strong); margin: 32px 0 12px;
}
.post__body p { margin: 0 0 20px; }
.post__body a { color: var(--link, var(--accent)); font-weight: 600; text-underline-offset: 3px; }
.post__body ul, .post__body ol { margin: 0 0 22px; padding-left: 24px; }
.post__body li { margin: 0 0 10px; }
.post__body strong { font-weight: 600; color: var(--ink-strong); }
.post__body blockquote {
  margin: 28px 0; padding: 6px 0 6px 24px; border-left: 2px solid var(--stone, var(--accent));
  font-family: var(--font-display); font-style: italic; font-size: 1.375rem; line-height: 1.5; font-weight: 400; color: var(--ink-strong);
}
.post__body img { border-radius: var(--radius-md); margin: 28px 0; max-width: 100%; height: auto; }

/* In-article call to action */
.post__cta {
  margin: 48px 0 0; padding: 32px 34px; border-radius: var(--radius-lg);
  background: var(--bg-dark); color: var(--text-on-dark);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.post__cta-text { font-family: var(--font-display); font-size: clamp(1.375rem, 2.4vw, 1.75rem); font-weight: 400; line-height: 1.25; margin: 0; max-width: 28ch; color: var(--text-on-dark); }
.post__cta .btn { flex-shrink: 0; }

.post__back { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; min-height: 44px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-muted); text-decoration: none; transition: color 200ms ease, gap 200ms ease; }
.post__back:hover { color: var(--accent); gap: 12px; }
.post__back .arrow { display: inline-block; transform: scaleX(-1); }

@media (max-width: 640px) {
  .post { padding: 40px 20px 72px; }
  .post__cta { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .post__back { transition: none; } }
