/* Skeleton Files blog (/blog/): index grid, post prose, FAQ, sources, CTA, author box, pagination.
   Every color is a token from style.css, so dark mode needs no rule of its own here. */

/* ---------- index ---------- */
.blog-index { padding-top: 48px; }
.blog-cats {
  display: flex; flex-wrap: wrap; gap: 8px 10px;
  font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.blog-cats a { color: var(--bone-dim); text-decoration: none; border: 1px solid var(--line); padding: 7px 12px; transition: color 0.15s, border-color 0.15s; }
.blog-cats a:hover { color: var(--bone); border-color: var(--amber); }
.blog-cats a[aria-current] { color: var(--on-amber); background: var(--amber-fill); border-color: var(--amber-fill); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.post-card {
  display: flex; flex-direction: column;
  background: var(--ink-2); border: 1px solid var(--line);
  transition: border-color 0.15s, transform 0.18s;
}
.post-card:hover { border-color: var(--amber); transform: translateY(-2px); }
.post-card-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-3); border-bottom: 1px solid var(--line); }
.post-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.post-card:hover .post-card-img img { transform: scale(1.03); }
.post-card-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 20px 22px; flex: 1; }
.post-card-cat { color: var(--amber); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; }
.post-card-cat:hover { text-decoration: underline; }
.post-card-title {
  font-family: "Archivo Black", sans-serif; font-size: 1.05rem; line-height: 1.3;
  text-transform: none; letter-spacing: 0; margin: 0; max-width: none;
}
.post-card-title a { color: var(--bone); text-decoration: none; }
.post-card-title a:hover { color: var(--amber); }
.post-card p { color: var(--bone-dim); font-size: 0.93rem; line-height: 1.5; }
.post-card-date { margin-top: auto; padding-top: 8px; color: var(--bone-dim); font-size: 0.76rem; letter-spacing: 0.06em; }
.blog-empty { margin-top: 36px; color: var(--bone-dim); max-width: 620px; }
.blog-empty a { color: var(--bone); text-decoration: underline; text-decoration-color: rgba(212, 160, 23, 0.6); text-underline-offset: 3px; }
.pager {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bone-dim);
}
.pager a { color: var(--bone); text-decoration: none; border-bottom: 1px solid var(--amber); padding-bottom: 2px; white-space: nowrap; }
.pager a:hover { color: var(--amber); }

/* ---------- post head ---------- */
.post-head h1 { text-transform: none; letter-spacing: 0; line-height: 1.12; font-size: clamp(1.7rem, 4.2vw, 2.9rem); }
.post-head .kicker a { color: inherit; text-decoration: none; }
.post-head .kicker a:hover { text-decoration: underline; }
.post-meta {
  margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 10px;
  color: var(--bone-dim); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.post-meta .sep { color: var(--amber); }

/* ---------- post body ---------- */
.post { padding-top: 48px; }
.post-layout { max-width: 760px; }
.post-hero { margin: 0 0 40px; }
.post-hero img, .post-fig img { display: block; width: 100%; height: auto; border: 1px solid var(--line); background: var(--ink-3); }
.post-hero figcaption, .post-fig figcaption {
  padding: 12px 6px 4px; font-size: 0.78rem; line-height: 1.5;
  color: var(--bone-dim); letter-spacing: 0.04em;
}
.post-hero .credit, .post-fig .credit { color: var(--amber); }
.post-hero .credit::before, .post-fig .credit::before { content: "· "; color: var(--bone-dim); }
.post-hero figcaption > .credit:first-child::before, .post-fig figcaption > .credit:first-child::before { content: none; }

.prose { max-width: 68ch; color: var(--bone); font-size: 1.05rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4 {
  font-family: "Archivo Black", sans-serif; line-height: 1.2; color: var(--bone);
  max-width: none; margin-bottom: 0;
}
.prose h2 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); text-transform: uppercase; letter-spacing: 0.02em; margin-top: 2em; }
.prose h3 { font-size: 1.12rem; text-transform: none; letter-spacing: 0; margin-top: 1.8em; }
.prose h4 { font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--amber); margin-top: 1.6em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 0.6em; }
.prose a { color: var(--bone); text-decoration: underline; text-decoration-color: rgba(212, 160, 23, 0.6); text-underline-offset: 3px; }
.prose a:hover { color: var(--amber); }
.prose strong { font-weight: 600; }
.prose code {
  font-family: "Special Elite", "Courier New", monospace; font-size: 0.92em;
  background: var(--ink-3); border: 1px solid var(--line); padding: 1px 6px;
}
.prose u { text-decoration-color: var(--amber); text-underline-offset: 3px; }
.prose s { color: var(--bone-dim); }
.prose blockquote {
  border-left: 3px solid var(--amber); padding: 6px 0 6px 22px;
  color: var(--bone-dim); font-size: 1.08rem; font-style: italic;
}
.prose blockquote p + p { margin-top: 0.8em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.4em; }
.prose li > ul, .prose li > ol { margin-top: 0.4em; }
.prose ul { list-style: none; padding-left: 1.2em; }
.prose ul > li { position: relative; }
.prose ul > li::before { content: "\2014"; position: absolute; left: -1.2em; color: var(--amber); }
.prose ol { list-style: decimal; }
.prose ol > li::marker { color: var(--amber); font-weight: 600; }
.prose .post-fig { margin: 1.8em 0; }

/* ---------- FAQ, sources, CTA, author ---------- */
.post-h2 {
  font-family: "Archivo Black", sans-serif; text-transform: uppercase;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem); letter-spacing: 0.04em;
  margin: 0 0 6px; max-width: none;
}
.post-faq { margin-top: 56px; max-width: 68ch; }
.post-faq .faq { margin-top: 10px; }
.post-faq .faq details p { padding-bottom: 12px; }
.post-faq .faq details p:last-child { padding-bottom: 20px; }
.post-sources { margin-top: 48px; max-width: 68ch; }
.sources-list { margin: 12px 0 0; padding-left: 1.6em; color: var(--bone-dim); font-size: 0.92rem; }
.sources-list li + li { margin-top: 6px; }
.sources-list li::marker { font-family: "Special Elite", monospace; color: var(--amber); }
.sources-list a { color: var(--bone); text-decoration: underline; text-decoration-color: rgba(212, 160, 23, 0.6); text-underline-offset: 3px; overflow-wrap: anywhere; }
.sources-list a:hover { color: var(--amber); }
.post-cta {
  margin-top: 56px; padding: 32px 30px; position: relative;
  background: var(--ink-2); border: 1px solid var(--line); border-left: 4px solid var(--amber-fill);
}
.post-cta::before { content: ""; position: absolute; inset: 8px; border: 1px dashed rgba(212, 160, 23, 0.25); pointer-events: none; }
.post-cta h2 { font-size: clamp(1.3rem, 2.8vw, 1.8rem); margin-bottom: 12px; }
.post-cta p { color: var(--bone-dim); max-width: 560px; margin-bottom: 22px; }
.post-cta .hero-ctas { gap: 20px; }
.author-box {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; gap: 20px; align-items: flex-start;
}
.author-box img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid var(--line); background: var(--ink-3); }
.author-k { display: block; color: var(--amber); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 4px; }
.author-name { display: block; font-family: "Archivo Black", sans-serif; font-weight: normal; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.author-box p { color: var(--bone-dim); font-size: 0.93rem; max-width: 560px; }
.author-box p + p { margin-top: 8px; }
.author-box a { color: var(--bone); text-decoration: underline; text-decoration-color: rgba(212, 160, 23, 0.6); text-underline-offset: 3px; }
.author-box a:hover { color: var(--amber); }
.post-related .post-grid { margin-top: 10px; }

/* ---------- 404 / 503 ---------- */
.blog-err { padding-top: 48px; }
.blog-err p { color: var(--bone-dim); max-width: 560px; }
.blog-err p a { color: var(--bone); }
.blog-err .hero-ctas { margin-top: 26px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .blog-index, .post, .blog-err { padding-top: 36px; }
  .post-hero { margin-bottom: 30px; }
  .prose { font-size: 1rem; }
  .post-cta { padding: 26px 22px; margin-top: 44px; }
  .post-cta .hero-ctas { flex-direction: column; align-items: flex-start; gap: 16px; }
  .post-faq { margin-top: 44px; }
}
@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; gap: 16px; }
  .post-head h1 { font-size: clamp(1.5rem, 7vw, 2rem); }
  .pager { flex-wrap: wrap; justify-content: center; text-align: center; }
  .pager-pos { order: 3; width: 100%; }
  .author-box { flex-direction: column; }
  .prose blockquote { padding-left: 16px; }
}
