/* Rendezo blog, page specific styles only.
   Tokens, reset, typography, nav, buttons and footer come from /site.css,
   the same file the landing page loads. This file used to carry its own copy
   of all of that with a "keep them in sync" note on top, and they drifted. */

/* Shared page head. Only padding-top, never the shorthand: the index header
   also carries .wrap, and a shorthand here would wipe out its side padding
   and leave the title misaligned against the cards below it. */
.page-head { padding-top: 80px; }
.page-head .eyebrow { margin-bottom: 18px; }
/* An article title is a heading, not a hero, so it steps down from the
   display size /site.css gives h1. */
.page-head h1 { font-size: clamp(2rem, 4vw, 2.85rem); line-height: var(--lh-heading); letter-spacing: var(--ls-heading); }
.page-head h1 + .sub { margin-top: 20px; }
/* On an article the meta line sits outside .page-head, so the gap under the
   title has to come from the header itself. */
.article .page-head { padding-bottom: 16px; }
.page-head .sub { max-width: 62ch; font-size: var(--fs-h3); }

/* Index column: header and cards share it, so their left edges agree */
.blog-col { max-width: 820px; margin: 0 auto; }
.post-list { padding: 56px 0 40px; display: grid; gap: 20px; }
.post-card {
  display: block; text-decoration: none; color: inherit;
  padding: 32px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform 0.18s ease, border-color 0.15s ease;
}
.post-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.post-card h2 { font-size: var(--fs-h4); line-height: var(--lh-snug); letter-spacing: var(--ls-tight); margin-bottom: 10px; }
.post-card p { font-size: var(--fs-sm); }
.post-meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; font-size: var(--fs-2xs); color: var(--muted); }
.post-card .post-meta { margin-bottom: 14px; }
.empty { color: var(--muted); font-size: var(--fs-sm); }

/* Article */
.article { max-width: 720px; padding-bottom: 40px; }
.article .post-meta { margin-bottom: 24px; }
.crumbs { padding-top: 32px; font-size: var(--fs-2xs); color: var(--muted); }
.crumbs a { color: var(--body); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

.article-body { font-size: var(--fs-h3); }
.article-body > * + * { margin-top: 22px; }
.article-body h2 { font-size: var(--fs-h4); line-height: var(--lh-snug); letter-spacing: var(--ls-heading); margin-top: 52px; margin-bottom: -4px; }
.article-body h3 { font-size: var(--fs-h3); margin-top: 36px; margin-bottom: -8px; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.article-body ul, .article-body ol { padding-left: 22px; }
.article-body li + li { margin-top: 8px; }
.article-body strong { color: var(--ink); }
.article-body blockquote {
  padding: 20px 24px; background: var(--accent-soft);
  border-left: 3px solid var(--accent); border-radius: 0 var(--r) var(--r) 0;
}
.article-body blockquote > * + * { margin-top: 14px; }
.article-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86em; padding: 2px 6px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xs);
}
.article-body pre {
  padding: 20px 22px; overflow-x: auto;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
}
.article-body pre code { background: none; border: 0; padding: 0; font-size: var(--fs-2xs); }
.article-body img { max-width: 100%; height: auto; border-radius: var(--r); border: 1px solid var(--line); }
.table-scroll { overflow-x: auto; }
.article-body table { border-collapse: collapse; width: 100%; font-size: var(--fs-sm); }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
.article-body th { background: var(--paper); color: var(--ink); font-weight: 600; }

/* In-article product callout */
.cta-box {
  margin: 64px 0 0; padding: 36px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl);
}
.cta-box h2 { font-size: var(--fs-h4); letter-spacing: var(--ls-tight); margin-bottom: 10px; }
.cta-box p { font-size: var(--fs-sm); margin-bottom: 24px; max-width: 54ch; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

footer { margin-top: 64px; }

@media (max-width: 620px) {
  .page-head { padding-top: 56px; }
  .post-card { padding: 26px; }
  .cta-box { padding: 28px; }
}
