/* The blog (2026-11-13; functions/_lib/blog.js): the site's tokens from styles.css, cards on the list, one calm reading
   column for a post, and a call to meet the app at the end of each one. */

.blog-page { min-height: 100vh; display: flex; flex-direction: column; }

.blog-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; max-width: var(--frame); margin: 0 auto; padding: 22px var(--gutter);
}
.blog-top .wordmark { color: var(--cream); }
.blog-top__nav { display: flex; align-items: center; gap: 6px; }
.blog-top__nav a {
  padding: 8px 12px; border-radius: 999px; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--text-secondary);
}
.blog-top__nav a:hover { color: var(--cream); background: var(--navy-raised); }
.blog-top__nav .blog-top__lang { border: 1px solid var(--navy-line); font-size: 13px; letter-spacing: 0.04em; }

.blog { flex: 1; width: 100%; max-width: var(--frame); margin: 0 auto; padding: 8px var(--gutter) 72px; }

/* ---------- List ---------- */
.blog-head { max-width: 720px; margin: 24px 0 36px; }
.blog-head h1 { font-size: clamp(40px, 7vw, 64px); line-height: 1.02; }
.blog-head__lead { margin-top: 12px; font-size: 19px; color: var(--text-secondary); }
.blog-head--message { margin: 72px auto; text-align: center; }
.blog-head--message .post-cta__button { margin-top: 24px; }
.blog-empty { padding: 40px 0; color: var(--text-muted); }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 22px; }
.post-card { border-radius: 22px; background: var(--navy-raised); border: 1px solid var(--navy-line); overflow: hidden; transition: transform 0.25s var(--ease), border-color 0.25s; }
.post-card:hover { transform: translateY(-3px); border-color: #45506A; }
.post-card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.post-card__cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--navy-deep); }
.post-card__cover--blank { display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, #2C3550, var(--navy-deep)); }
.post-card__cover--blank .dial { width: 56px; height: 56px; color: var(--cream); opacity: 0.85; }
.post-card__body { padding: 18px 20px 22px; }
.post-card__title { margin-top: 8px; font-size: 22px; line-height: 1.2; }
.post-card__summary { margin-top: 8px; font-size: 15px; color: var(--text-secondary); }
.post-meta { font-size: 14px; color: var(--text-muted); }

/* ---------- Post ---------- */
.blog-post { max-width: 720px; margin: 0 auto; }
.blog-post__back { display: inline-block; margin: 12px 0 28px; font-size: 15px; text-decoration: none; color: var(--text-secondary); }
.blog-post__back:hover { color: var(--amber); }
.blog-post__title { font-size: clamp(34px, 6vw, 52px); line-height: 1.06; }
.blog-post .post-meta { margin-top: 14px; }
.blog-post__summary { margin-top: 18px; font-size: 20px; line-height: 1.5; color: var(--text-secondary); }
.blog-post__cover { display: block; width: 100%; margin-top: 30px; border-radius: 22px; aspect-ratio: 16 / 9; object-fit: cover; background: var(--navy-deep); }

.prose { margin-top: 34px; font-size: 18px; line-height: 1.75; color: #DAD5CB; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; font-size: 28px; line-height: 1.2; color: var(--cream); }
.prose h3 { margin-top: 1.7em; font-size: 22px; line-height: 1.25; color: var(--cream); }
.prose h4 { margin-top: 1.5em; font: 600 18px/1.4 var(--body); color: var(--cream); }
.prose a { color: var(--amber); text-underline-offset: 3px; }
.prose strong { color: var(--cream); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--amber); }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--amber); color: var(--text-secondary); font-style: italic; }
.prose blockquote p + p { margin-top: 0.8em; }
.prose code { padding: 2px 6px; border-radius: 6px; background: var(--navy-raised); font-size: 0.9em; }
.prose pre { overflow-x: auto; padding: 16px 18px; border-radius: 14px; background: var(--navy-deep); border: 1px solid var(--navy-line); font-size: 15px; line-height: 1.6; }
.prose pre code { padding: 0; background: none; }
.prose hr { border: 0; border-top: 1px solid var(--navy-line); margin: 2.2em 0; }
.prose figure { margin-left: 0; margin-right: 0; }
.prose img { display: block; max-width: 100%; height: auto; border-radius: 16px; }
.prose figcaption { margin-top: 8px; font-size: 14px; color: var(--text-muted); text-align: center; }

.post-cta {
  display: flex; gap: 18px; align-items: flex-start; margin-top: 56px; padding: 24px; border-radius: 22px;
  background: linear-gradient(135deg, #2A2418, var(--navy-raised) 60%); border: 1px solid #4A3E26;
}
.post-cta__dial { flex: none; width: 44px; height: 44px; color: var(--cream); }
.post-cta__title { font-size: 22px; line-height: 1.2; }
.post-cta p { margin-top: 8px; color: var(--text-secondary); }
.post-cta__button {
  display: inline-block; margin-top: 16px; padding: 12px 20px; border-radius: 999px; background: var(--amber); color: var(--navy-deep);
  font-weight: 600; text-decoration: none;
}
.post-cta__button:hover { filter: brightness(1.06); }

.blog-foot {
  display: flex; flex-wrap: wrap; gap: 18px; width: 100%; max-width: var(--frame); margin: 0 auto; padding: 24px var(--gutter) 40px;
  border-top: 1px solid var(--navy-line); font-size: 14px; color: var(--text-muted);
}
.blog-foot a { color: var(--text-secondary); text-decoration: none; }
.blog-foot a:hover { color: var(--cream); }

@media (max-width: 560px) {
  .blog-top { padding-top: 16px; padding-bottom: 16px; }
  .blog-top .wordmark { font-size: 22px; }
  .blog-top__nav a { padding: 7px 9px; font-size: 14px; }
  .prose { font-size: 17px; }
  .post-cta { flex-direction: column; }
}
