/* ============================================================
   Advent — Blog CSS
   Styles for block-editor-authored posts + blog listings.
   Loaded only on blog views (see inc/enqueue.php).
   ============================================================ */

/* ---- Post listing ---- */
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.25rem); }
@media (max-width: 900px) { .post-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-list { grid-template-columns: 1fr; } }

.post-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand-200); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.post-card__meta { font-size: var(--step--1); color: var(--muted); display: flex; gap: 0.75rem; flex-wrap: wrap; }
.post-card__title { font-size: var(--step-1); line-height: 1.25; }
.post-card__title a { text-decoration: none; color: var(--espresso); }
.post-card__title a:hover { color: var(--brown); }
.post-card__excerpt { color: var(--muted); }
.post-card__cat { display: inline-block; align-self: flex-start; font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; color: var(--brown); background: var(--sand-100); padding: 0.25rem 0.7rem; border-radius: 999px; }

/* ---- Single post ---- */
.post-single { max-width: 760px; margin-inline: auto; }
.post-single__header { text-align: center; margin-bottom: clamp(2rem, 4vw, 3rem); }
.post-single__title { font-size: var(--step-4); margin-block: 0.75rem; }
.post-single__meta { font-size: var(--step--1); color: var(--muted); display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.post-single__cover { max-width: var(--container); margin: 0 auto clamp(2rem, 4vw, 3rem); border-radius: var(--radius); overflow: hidden; }

/* ---- Block content typography ---- */
.entry-content { font-size: var(--step-0); line-height: 1.75; }
.entry-content > * + * { margin-top: 1.5rem; }
.entry-content h2 { font-size: var(--step-2); margin-top: 2.5rem; }
.entry-content h3 { font-size: var(--step-1); margin-top: 2rem; }
.entry-content p, .entry-content li { max-width: 70ch; }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; display: grid; gap: 0.6rem; }
.entry-content a { color: var(--brown); }
.entry-content img, .entry-content figure { border-radius: var(--radius); }
.entry-content figcaption { font-size: var(--step--1); color: var(--muted); text-align: center; margin-top: 0.6rem; }
.entry-content blockquote { border-left: 3px solid var(--clay); padding-left: 1.5rem; font-family: var(--font-display); font-size: var(--step-1); font-style: italic; color: var(--espresso); }
.entry-content pre { background: var(--espresso); color: var(--sand-100); padding: 1.25rem; border-radius: var(--radius-sm); overflow-x: auto; font-size: 0.9rem; }
.entry-content code { background: var(--sand-100); padding: 0.15em 0.4em; border-radius: 4px; font-size: 0.9em; }
.entry-content pre code { background: none; padding: 0; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.5rem; }

/* ---- Post footer / tags / share ---- */
.entry-footer { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; }
.tag-list a { font-size: var(--step--1); background: var(--sand-100); padding: 0.3rem 0.8rem; border-radius: 999px; text-decoration: none; color: var(--ink); }
.tag-list a:hover { background: var(--sand-200); }

/* ---- Author box (E-E-A-T) ---- */
.author-box { display: flex; gap: 1.25rem; align-items: flex-start; margin-top: 2.5rem; padding: 1.75rem; background: var(--sand-100); border: 1px solid var(--line); border-radius: var(--radius); }
.author-box__avatar { width: 72px; height: 72px; border-radius: 50%; flex: none; }
.author-box__label { font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; color: var(--brown); margin-bottom: 0.25rem; }
.author-box__name { font-size: var(--step-1); margin-bottom: 0.5rem; }
.author-box__name a { text-decoration: none; color: var(--espresso); }
.author-box__bio { color: var(--muted); margin: 0; }
@media (max-width: 520px) { .author-box { flex-direction: column; gap: 0.75rem; } }

/* ---- Author / related ---- */
.related-posts { margin-top: clamp(3rem, 6vw, 5rem); }

/* ---- Archive header ---- */
.archive-header { text-align: center; padding-block: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem); }
.archive-header__title { font-size: var(--step-4); }
.archive-header__desc { color: var(--muted); max-width: 60ch; margin: 1rem auto 0; }
