/* The Move Ahead: the blog (list at /blog/, posts at /blog/<slug>/), also used by the admin's Preview.
   Same brand as the homepage: black, bone text, D-DIN for reading, Schabo only for the one-word "Blog" title.
   Post titles are D-DIN Bold in sentence case: they are full sentences, and long lines in capitals read as shouting. */

.blog-page { padding-top: var(--s5); padding-bottom: var(--s9); }

/* The list */
.blog-head { max-width: 760px; margin: 0 auto; text-align: center; }
.blog-head h1 { font-size: clamp(64px, 8vw, 112px); margin-top: var(--s3); }
.posts { list-style: none; max-width: 760px; margin: var(--s8) auto 0; border-top: 1px solid var(--hair); }
.posts li { border-bottom: 1px solid var(--hair); }
.posts a { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: var(--s6); align-items: center; padding: var(--s6) 0; text-decoration: none; }
.posts a.no-cover { grid-template-columns: minmax(0, 1fr); }
.posts h2 { font-family: var(--body); font-weight: 700; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.25; margin-top: var(--s2); overflow-wrap: anywhere; }
.posts p { margin-top: var(--s2); font-size: 17px; color: var(--bone-2); overflow-wrap: anywhere; }
.posts img { width: 220px; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid var(--hair); }
.posts a:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.posts-empty { max-width: 760px; margin: var(--s8) auto 0; padding-top: var(--s6); border-top: 1px solid var(--hair); text-align: center; color: var(--bone-3); }
@media (max-width: 640px) {
  .posts a { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .posts img { width: 100%; order: -1; }
}

/* A post */
.post-back { max-width: 720px; margin: 0 auto var(--s5); }
.post { max-width: 720px; margin: 0 auto; }
.post-head { text-align: center; }
.post-title { font-family: var(--body); font-weight: 700; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.1; letter-spacing: -.01em;
  margin-top: var(--s3); text-wrap: balance; overflow-wrap: anywhere; }
.post-summary { margin: var(--s4) auto 0; max-width: 46ch; font-size: clamp(19px, 1.7vw, 22px); color: var(--bone-2); text-wrap: pretty; }
.post-cover { margin-top: var(--s7); }
.post-cover img { width: 100%; height: auto; border: 1px solid var(--hair); }

.post-body { margin-top: var(--s7); font-size: 19px; line-height: 1.75; overflow-wrap: anywhere; }
.post-body > * + * { margin-top: var(--s5); }
.post-body h2 { font-family: var(--body); font-weight: 700; font-size: clamp(25px, 2.4vw, 30px); line-height: 1.25; margin-top: var(--s8); }
.post-body h3 { font-family: var(--body); font-weight: 700; font-size: 22px; line-height: 1.3; margin-top: var(--s7); }
.post-body h4 { font-family: var(--body); font-weight: 700; font-size: 19px; margin-top: var(--s6); }
.post-body strong { font-weight: 700; }
.post-body a { color: var(--bone); text-decoration: underline; text-decoration-color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.post-body a:hover { text-decoration-thickness: 2px; }
.post-body ul, .post-body ol { padding-left: 1.4em; }
.post-body li + li, .post-body li > ul, .post-body li > ol { margin-top: var(--s2); }
.post-body li::marker { color: var(--bone-3); }
.post-body ul.checklist { list-style: none; padding-left: 0; }
.post-body ul.checklist .box { color: var(--bone-3); }
.post-body blockquote { border-left: 1px solid var(--gold); padding: var(--s1) 0 var(--s1) var(--s5); font-size: 21px; font-style: italic; }
.post-body blockquote cite { display: block; margin-top: var(--s2); font-family: var(--system); font-style: normal; font-size: 12px;
  letter-spacing: .22em; text-transform: uppercase; color: var(--bone-3); }
.post-body hr { width: 96px; margin: var(--s8) auto; border: 0; border-top: 1px solid var(--hair-2); }
.post-body figure { margin-top: var(--s7); margin-bottom: var(--s7); }
.post-body figure img { width: 100%; height: auto; border: 1px solid var(--hair); }
.post-body figcaption { margin-top: var(--s2); font-size: 15px; line-height: 1.5; color: var(--bone-3); text-align: center; }

/* Every post ends with the one action: the diagnosis */
.post-cta { margin-top: var(--s9); padding: var(--s7) var(--s6); border: 1px solid var(--hair-2); text-align: center;
  background: linear-gradient(var(--panel), var(--panel)), var(--bg); }
.post-cta p { max-width: 44ch; margin: var(--s3) auto var(--s5); color: var(--bone-2); }
@media (max-width: 640px) {
  .post-body { font-size: 18px; }
  .post-cta { padding: var(--s6) var(--s4); }
  .post-cta .btn { width: 100%; }
}
