/* ─── Harmony Blog – Public CSS ─────────────────────────────────────────── */
:root {
  --hbp-bg: #fafafa;
  --hbp-surface: #ffffff;
  --hbp-border: #e8e8ed;
  --hbp-text: #1c1c1e;
  --hbp-text2: #636366;
  --hbp-text3: #aeaeb2;
  --hbp-accent: #e63329;
  --hbp-accent-soft: #fdf2f1;
  --hbp-radius: 12px;
  --hbp-radius-sm: 8px;
  --hbp-shadow: 0 2px 8px rgba(0,0,0,.06), 0 8px 32px rgba(0,0,0,.04);
  --hbp-shadow-hover: 0 4px 16px rgba(0,0,0,.1), 0 16px 48px rgba(0,0,0,.06);
  --hbp-max: 1160px;
  --hbp-font: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  --hbp-font-serif: 'Georgia', 'Times New Roman', serif;
}

/* ─── Reset within blog scope ───────────────────────────────────────────── */
.hbp-page * { box-sizing: border-box; }
.hbp-page { font-family: var(--hbp-font); background: var(--hbp-bg); min-height: 100vh; color: var(--hbp-text); }

/* ─── Archive: Blog Listing ─────────────────────────────────────────────── */
.hbp-archive { max-width: var(--hbp-max); margin: 0 auto; padding: 56px 24px 80px; }

.hbp-archive-hero { margin-bottom: 48px; }
.hbp-archive-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--hbp-accent); margin-bottom: 10px; }
.hbp-archive-title { font-size: clamp(28px, 5vw, 48px); font-weight: 700; color: var(--hbp-text); margin: 0 0 14px; line-height: 1.15; letter-spacing: -.02em; }
.hbp-archive-desc { font-size: 16px; color: var(--hbp-text2); max-width: 520px; line-height: 1.6; margin: 0; }

/* Filter nav */
.hbp-filter-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.hbp-filter-nav a { padding: 7px 16px; border-radius: 20px; font-size: 13px; font-weight: 500; text-decoration: none; color: var(--hbp-text2); border: 1px solid var(--hbp-border); background: var(--hbp-surface); transition: all .2s; }
.hbp-filter-nav a:hover, .hbp-filter-nav a.active { background: var(--hbp-accent); color: #fff; border-color: var(--hbp-accent); }

/* Grid */
.hbp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hbp-grid.has-featured { grid-template-columns: repeat(3, 1fr); }
.hbp-card-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--hbp-radius); overflow: hidden; box-shadow: var(--hbp-shadow); background: var(--hbp-surface); transition: box-shadow .25s; text-decoration: none; }
.hbp-card-featured:hover { box-shadow: var(--hbp-shadow-hover); }

.hbp-card-featured .hbp-card-img { aspect-ratio: 16/10; overflow: hidden; }
.hbp-card-featured .hbp-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.hbp-card-featured:hover .hbp-card-img img { transform: scale(1.04); }
.hbp-card-featured .hbp-card-body { padding: 36px 40px; display: flex; flex-direction: column; justify-content: center; }

/* Regular card */
.hbp-card { display: flex; flex-direction: column; background: var(--hbp-surface); border-radius: var(--hbp-radius); overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.06); border: 1px solid var(--hbp-border); transition: all .25s; text-decoration: none; }
.hbp-card:hover { box-shadow: var(--hbp-shadow-hover); transform: translateY(-2px); border-color: transparent; }
.hbp-card .hbp-card-img { aspect-ratio: 16/10; overflow: hidden; background: #f0f0f3; }
.hbp-card .hbp-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.hbp-card:hover .hbp-card-img img { transform: scale(1.04); }
.hbp-card-no-img { display: flex; align-items: center; justify-content: center; }
.hbp-card-no-img-text { font-size: 11px; color: var(--hbp-text3); }
.hbp-card .hbp-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }

/* Card body */
.hbp-card-cat { font-size: 11px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--hbp-accent); text-decoration: none; margin-bottom: 8px; display: inline-block; }
.hbp-card-title { font-size: 17px; font-weight: 700; color: var(--hbp-text); margin: 0 0 10px; line-height: 1.35; letter-spacing: -.01em; }
.hbp-card-featured .hbp-card-title { font-size: clamp(20px, 3vw, 28px); margin-bottom: 14px; }
.hbp-card-excerpt { font-size: 14px; color: var(--hbp-text2); line-height: 1.65; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hbp-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--hbp-border); }
.hbp-card-date { font-size: 12px; color: var(--hbp-text3); }
.hbp-card-read-time { font-size: 12px; color: var(--hbp-text3); }
.hbp-card-arrow { color: var(--hbp-accent); font-size: 16px; line-height: 1; transition: transform .2s; }
.hbp-card:hover .hbp-card-arrow, .hbp-card-featured:hover .hbp-card-arrow { transform: translateX(3px); }

/* Empty */
.hbp-no-posts { text-align: center; padding: 80px; color: var(--hbp-text2); }

/* Pagination */
.hbp-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 56px; }
.hbp-pagination a, .hbp-pagination span { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 8px; font-size: 13px; font-weight: 500; text-decoration: none; border: 1px solid var(--hbp-border); background: var(--hbp-surface); color: var(--hbp-text2); transition: all .15s; }
.hbp-pagination a:hover { background: var(--hbp-text); color: #fff; border-color: var(--hbp-text); }
.hbp-pagination .current { background: var(--hbp-accent); color: #fff; border-color: var(--hbp-accent); }

/* ─── Single Post ────────────────────────────────────────────────────────── */
.hbp-single { background: var(--hbp-bg); }

/* Hero */
.hbp-single-hero { position: relative; max-height: 560px; overflow: hidden; background: #111; }
.hbp-single-hero img { width: 100%; height: 560px; object-fit: cover; opacity: .85; display: block; }
.hbp-single-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.1) 60%); display: flex; align-items: flex-end; }
.hbp-single-hero-content { max-width: var(--hbp-max); margin: 0 auto; padding: 48px 24px; width: 100%; }
.hbp-single-hero .hbp-card-cat { font-size: 11px; color: #fff; background: var(--hbp-accent); padding: 4px 10px; border-radius: 4px; }
.hbp-single-hero-title { font-size: clamp(24px, 5vw, 44px); font-weight: 800; color: #fff; margin: 12px 0 0; line-height: 1.15; letter-spacing: -.02em; max-width: 800px; text-shadow: 0 2px 12px rgba(0,0,0,.3); }

/* No thumbnail single */
.hbp-single-header { max-width: 780px; margin: 0 auto; padding: 56px 24px 0; }
.hbp-single-header .hbp-card-cat { margin-bottom: 14px; }
.hbp-single-header-title { font-size: clamp(24px, 5vw, 40px); font-weight: 800; color: var(--hbp-text); line-height: 1.15; letter-spacing: -.02em; margin: 0; }

/* Post meta bar */
.hbp-single-meta { max-width: 780px; margin: 0 auto; padding: 20px 24px; display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--hbp-border); }
.hbp-single-meta-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--hbp-accent); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.hbp-single-meta-info { display: flex; flex-direction: column; gap: 2px; }
.hbp-single-meta-author { font-size: 13px; font-weight: 600; color: var(--hbp-text); }
.hbp-single-meta-date { font-size: 12px; color: var(--hbp-text3); }
.hbp-single-meta-dot { color: var(--hbp-text3); }
.hbp-single-meta-read { font-size: 12px; color: var(--hbp-text3); margin-left: auto; }

/* Post content */
.hbp-single-content { max-width: 780px; margin: 0 auto; padding: 36px 24px 60px; }
.hbp-single-content .hbp-entry { font-size: 17px; line-height: 1.85; color: var(--hbp-text); }
.hbp-entry h2 { font-size: 24px; font-weight: 700; letter-spacing: -.01em; margin: 2em 0 .75em; color: var(--hbp-text); }
.hbp-entry h3 { font-size: 20px; font-weight: 700; margin: 1.75em 0 .6em; }
.hbp-entry h4 { font-size: 17px; font-weight: 700; margin: 1.5em 0 .5em; }
.hbp-entry p { margin: 0 0 1.5em; }
.hbp-entry a { color: var(--hbp-accent); text-decoration: underline; text-underline-offset: 3px; }
.hbp-entry ul, .hbp-entry ol { padding-left: 1.75em; margin-bottom: 1.5em; }
.hbp-entry li { margin-bottom: .5em; }
.hbp-entry blockquote { border-left: 3px solid var(--hbp-accent); margin: 2em 0; padding: 16px 24px; background: var(--hbp-accent-soft); border-radius: 0 var(--hbp-radius-sm) var(--hbp-radius-sm) 0; font-size: 18px; font-style: italic; color: var(--hbp-text2); }
.hbp-entry blockquote p { margin: 0; }
.hbp-entry img { max-width: 100%; border-radius: var(--hbp-radius-sm); height: auto; display: block; margin: 2em auto; }
.hbp-entry pre, .hbp-entry code { background: #f5f5f7; border-radius: 6px; font-family: 'SF Mono', 'Fira Mono', monospace; font-size: 14px; }
.hbp-entry pre { padding: 20px; overflow-x: auto; margin-bottom: 1.5em; }
.hbp-entry code { padding: 2px 6px; }
.hbp-entry hr { border: none; border-top: 1px solid var(--hbp-border); margin: 3em 0; }

/* Tags */
.hbp-single-tags { max-width: 780px; margin: 0 auto; padding: 0 24px 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.hbp-single-tag { padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 500; color: var(--hbp-text2); border: 1px solid var(--hbp-border); background: var(--hbp-surface); text-decoration: none; transition: all .15s; }
.hbp-single-tag:hover { background: var(--hbp-text); color: #fff; border-color: var(--hbp-text); }

/* Back / Related */
.hbp-single-footer { max-width: var(--hbp-max); margin: 0 auto; padding: 40px 24px 80px; border-top: 1px solid var(--hbp-border); }
.hbp-back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--hbp-text2); text-decoration: none; margin-bottom: 40px; }
.hbp-back-link:hover { color: var(--hbp-text); }
.hbp-related-title { font-size: 20px; font-weight: 700; color: var(--hbp-text); margin: 0 0 20px; }
.hbp-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hbp-grid { grid-template-columns: repeat(2, 1fr); }
  .hbp-card-featured { grid-template-columns: 1fr; }
  .hbp-card-featured .hbp-card-body { padding: 24px; }
  .hbp-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .hbp-grid { grid-template-columns: 1fr; }
  .hbp-card-featured { grid-column: 1; }
  .hbp-single-hero img { height: 280px; }
  .hbp-related-grid { grid-template-columns: 1fr; }
  .hbp-single-content .hbp-entry { font-size: 16px; }
}
