/* Blog pages (index + posts). Kept apart from styles.css so the landing page's
   stylesheet and its cache key do not move every time a post needs a new rule;
   every colour comes from the tokens styles.css defines, so both themes follow. */

.blog { max-width: 760px; margin: 60px auto; padding: 0 24px; }
.blog h1 { font-size: 38px; line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.02em; }
.blog .sub { color: var(--dim); margin: 0 0 36px; font-size: 17px; }

/* Index: one row per post, newest first */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { border-top: 1px solid var(--border); padding: 24px 0; }
.post-list li:last-child { border-bottom: 1px solid var(--border); }
.post-list h2 { font-size: 21px; margin: 6px 0 8px; letter-spacing: -0.01em; }
.post-list h2 a { color: var(--text); }
.post-list p { color: var(--dim); margin: 0; }

.meta { color: var(--faint); font-size: 13.5px; }
.meta a { color: var(--dim); }

/* Post body */
.post .meta { margin: 0 0 32px; }
.post h2 { font-size: 23px; margin: 44px 0 12px; letter-spacing: -0.01em; }
.post h3 { font-size: 17px; margin: 28px 0 8px; }
.post p, .post li { color: var(--dim); line-height: 1.7; }
.post p { margin: 0 0 14px; }
.post ul, .post ol { margin: 0 0 14px; padding-left: 22px; }
.post li { margin: 5px 0; }
.post strong { color: var(--text); }
.post code { font-family: var(--mono); font-size: 13.5px; color: var(--text); }
.post .callout {
  border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: 10px; background: var(--panel); padding: 14px 18px; margin: 18px 0;
}
.post .callout p:last-child { margin-bottom: 0; }

.code { position: relative; margin: 12px 0 18px; }
.code pre {
  margin: 0; background: rgba(127,127,127,.08); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 76px 14px 16px; overflow-x: auto;
}
/* styles.css gives every <code> an inline pill; inside a block that would shade each line */
.code pre code { background: none; padding: 0; border-radius: 0; font-size: 12.5px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.code .copy {
  position: absolute; top: 8px; right: 8px; font: 600 12px/1 inherit; font-family: inherit;
  color: var(--dim); background: var(--panel); border: 1px solid var(--border);
  border-radius: 7px; padding: 6px 9px; cursor: pointer; opacity: .85;
}
.code .copy:hover { color: var(--text); opacity: 1; }

.table { overflow-x: auto; margin: 12px 0 18px; }
.table table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th, .table td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--border); }
.table th { color: var(--text); font-weight: 600; }
.table td { color: var(--dim); }

.post-foot { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--border); }

@media (max-width: 560px) {
  .blog { margin: 36px auto; padding: 0 16px; }
  .blog h1 { font-size: 30px; }
}
