/* =========================================================
   hanah — blog styles (listing + article)
   Loaded only on /blog/ pages, on top of styles.css.
   ========================================================= */

/* ---------- listing ---------- */
.bloglist { max-width: 1180px; margin: 0 auto; padding: 64px 24px 96px; }
/* keep the left edge flush with the nav's .container, which drops to 20px gutters */
@media (max-width: 560px) { .bloglist { padding-left: 20px; padding-right: 20px; } }
.bloghero { max-width: 720px; margin: 0 0 40px; }
.bloghero h1 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; letter-spacing: -0.02em; font-size: clamp(2.25rem, 5vw, 3.25rem); line-height: 1.05; margin: 0 0 14px; }
.bloghero p { font-size: 1.1rem; color: var(--muted); margin: 0; }

.blogfilter { display: flex; gap: 8px; margin: 0 0 32px; flex-wrap: wrap; }
.blogfilter button { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--cream); color: var(--muted); font-size: .9rem; font-weight: 500; transition: all .15s ease; }
.blogfilter button:hover { color: var(--ink); border-color: var(--ink); }
.blogfilter button[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.bloggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.bcard { display: flex; flex-direction: column; gap: 12px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--cream); box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease; }
.bcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.bcard__cat { align-self: flex-start; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; padding: 4px 10px; border-radius: 999px; }
.bcard__cat--article { background: var(--mint); color: var(--ink); }
.bcard__cat--update { background: var(--sage); color: var(--ink-2); border: 1px solid var(--line); }
.bcard__title { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 1.35rem; line-height: 1.2; letter-spacing: -0.01em; margin: 0; }
.bcard__excerpt { color: var(--muted); font-size: .96rem; margin: 0; flex: 1; }
.bcard__date { color: var(--muted); font-size: .82rem; }
.blogempty { color: var(--muted); padding: 40px 0; }

/* ---------- article ---------- */
/* left-aligned inside .container so the column starts flush with the nav logo */
.post { max-width: 720px; margin: 0; padding: 56px 0 40px; }
.post__back { display: inline-block; color: var(--muted); font-size: .9rem; margin: 0 0 28px; }
.post__back:hover { color: var(--ink); text-decoration: underline; }
.post__cat { display: inline-block; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; padding: 4px 10px; border-radius: 999px; background: var(--mint); color: var(--ink); margin: 0 0 16px; }
.post__title { font-family: 'Fraunces', Georgia, serif; font-weight: 600; letter-spacing: -0.02em; font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.08; margin: 0 0 14px; }
.post__meta { color: var(--muted); font-size: .92rem; margin: 0 0 36px; }

.post__body { font-size: 1.08rem; line-height: 1.7; }
.post__body > *:first-child { margin-top: 0; }
.post__body h2 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 1.6rem; letter-spacing: -0.01em; margin: 44px 0 14px; }
.post__body h3 { font-size: 1.2rem; font-weight: 600; margin: 32px 0 10px; }
.post__body p { margin: 0 0 18px; color: var(--ink); }
.post__body ul, .post__body ol { margin: 0 0 18px; padding-left: 22px; }
.post__body li { margin: 0 0 8px; }
.post__body a { color: var(--lime-2); text-decoration: underline; text-underline-offset: 2px; }
.post__body a:hover { color: var(--ink); }
.post__body blockquote { margin: 0 0 22px; padding: 4px 0 4px 20px; border-left: 3px solid var(--lime); color: var(--ink-2); font-style: italic; }
.post__body img { border-radius: var(--radius); margin: 8px 0 24px; }
.post__body video { width: 100%; border-radius: var(--radius); margin: 8px 0 24px; display: block; }
.post__body figure { margin: 0 0 24px; }
.post__body figcaption { color: var(--muted); font-size: .85rem; margin-top: 6px; }

/* comparison tables — .post__table is the horizontal scroll surface on narrow screens */
.post__table { overflow-x: auto; margin: 8px 0 24px; }
.post__table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .95rem; line-height: 1.5; }
.post__table th, .post__table td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); }
.post__table th { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-2); }
.post__table td:first-child { font-weight: 600; }

.post__foot { max-width: 720px; margin: 0; padding: 0 0 80px; }
.post__cta { border-top: 1px solid var(--line); padding-top: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.post__cta p { margin: 0; font-size: 1.05rem; font-weight: 500; }
.post__cta a { display: inline-flex; align-items: center; padding: 11px 20px; border-radius: 999px; background: var(--lime); color: #fff; font-weight: 600; }
.post__cta a:hover { background: var(--lime-2); }
