/* ============================================================
   Hafner Blog — Black & White Design (Atlania-inspired)
   Font: Google Sans (already loaded via antigravity.css)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Text:wght@400;500;700&display=swap');

:root {
  --hb-black:      #000000;
  --hb-near-black: #1a1a1a;
  --hb-dark:       #1e1e24;
  --hb-white:      #ffffff;
  --hb-off-white:  #f8f9fa;
  --hb-light:      #f2f2f2;
  --hb-border:     #e5e5e5;
  --hb-muted:      #6b7280;
  --hb-muted-lt:   #9ca3af;
  --hb-font:       'Google Sans', 'Google Sans Text', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Reset / Base ── */
body.hb-theme {
  font-family: var(--hb-font);
  background: var(--hb-white);
  color: var(--hb-near-black);
  -webkit-font-smoothing: antialiased;
}

/* ── Layout container ── */
.hb-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── ──────────────────────────────────────────── */
/* HERO SECTION                                    */
/* ── ──────────────────────────────────────────── */
.hb-hero {
  padding: 120px 0 80px;
  background: var(--hb-white);
}
.hb-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .hb-hero-inner { grid-template-columns: 1fr; gap: 40px; }
}
.hb-hero-title-big {
  font-size: 96px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -4px;
  color: var(--hb-black);
  position: relative;
  display: inline-block;
  margin-bottom: 28px;
}
.hb-hero-title-big .dot {
  width: 14px;
  height: 14px;
  background: var(--hb-black);
  border-radius: 50%;
  display: inline-block;
  vertical-align: super;
  margin-left: 6px;
}
.hb-hero-meta {
  font-size: 13px;
  color: var(--hb-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hb-hero-meta strong { color: var(--hb-near-black); font-weight: 600; }
.hb-hero-article-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
.hb-hero-excerpt {
  font-size: 16px;
  color: var(--hb-muted);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 500px;
}
.hb-hero-cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--hb-border);
  padding-top: 24px;
}
.hb-btn-black {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--hb-black);
  color: var(--hb-white);
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s;
  font-family: var(--hb-font);
  border: none;
  cursor: pointer;
  border-radius: 2px;
}
.hb-btn-black svg { margin-left: 8px; }
.hb-btn-black:hover { background: #333; }
.hb-hero-image {
  border-radius: 16px;
  overflow: hidden;
  height: 480px;
  box-shadow: 0 8px 40px rgba(0,0,0,.12);
}
.hb-hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ── ──────────────────────────────────────────── */
/* SECTION HEADER                                  */
/* ── ──────────────────────────────────────────── */
.hb-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--hb-border);
  padding-bottom: 16px;
  margin-bottom: 40px;
}
.hb-section-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.hb-see-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--hb-black);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.hb-see-all:hover { text-decoration: underline; }

/* ── ──────────────────────────────────────────── */
/* FILTER PILLS                                    */
/* ── ──────────────────────────────────────────── */
.hb-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hb-filter-pill {
  padding: 8px 18px;
  border: 1px solid var(--hb-border);
  background: var(--hb-white);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 100px;
  color: var(--hb-muted);
  font-family: var(--hb-font);
  transition: border-color .2s, color .2s;
}
.hb-filter-pill:hover, .hb-filter-pill.active {
  border-color: var(--hb-black);
  color: var(--hb-black);
  font-weight: 600;
}

/* ── ──────────────────────────────────────────── */
/* 3-COLUMN ARTICLE GRID                           */
/* ── ──────────────────────────────────────────── */
.hb-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 64px;
}
@media (max-width: 1024px) { .hb-grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px)  { .hb-grid-3 { grid-template-columns: 1fr; } }

/* ── ──────────────────────────────────────────── */
/* ARTICLE CARD                                    */
/* ── ──────────────────────────────────────────── */
.hb-card {
  background: var(--hb-white);
  border: 1px solid var(--hb-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, transform .2s;
}
.hb-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
  transform: translateY(-2px);
}
.hb-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.hb-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.hb-card-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--hb-muted);
  margin-bottom: 10px;
}
.hb-card-author-name { font-weight: 600; color: var(--hb-near-black); }
.hb-card-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}
.hb-card-category {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--hb-muted-lt);
  margin-bottom: 12px;
}
.hb-card-excerpt {
  font-size: 13px;
  color: var(--hb-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hb-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--hb-border);
  padding-top: 14px;
  margin-top: auto;
}
.hb-card-stats {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--hb-muted-lt);
}
.hb-card-arrow {
  background: var(--hb-black);
  color: var(--hb-white);
  padding: 8px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: background .2s;
  flex-shrink: 0;
}
.hb-card-arrow:hover { background: #333; }

/* ── ──────────────────────────────────────────── */
/* MUST-READ / FEATURED SECTION (2+1 layout)       */
/* ── ──────────────────────────────────────────── */
.hb-featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-bottom: 64px;
}
@media (max-width: 900px) { .hb-featured-grid { grid-template-columns: 1fr; } }

.hb-featured-main { display: block; }
.hb-featured-main-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  margin-bottom: 24px;
}
.hb-featured-main-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.hb-featured-main-title:hover { text-decoration: underline; cursor: pointer; }
.hb-featured-excerpt {
  font-size: 14px;
  color: var(--hb-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}
.hb-featured-meta {
  font-size: 12px;
  color: var(--hb-muted-lt);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Side list */
.hb-side-list { display: flex; flex-direction: column; gap: 24px; }
.hb-side-item {
  display: flex;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}
.hb-side-img {
  width: 100px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.hb-side-body { display: flex; flex-direction: column; justify-content: center; }
.hb-side-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
}
.hb-side-title:hover { text-decoration: underline; }
.hb-side-meta {
  font-size: 11px;
  color: var(--hb-muted-lt);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── ──────────────────────────────────────────── */
/* NEWSLETTER CTA SECTION                          */
/* ── ──────────────────────────────────────────── */
.hb-newsletter-cta {
  background: #ffffff !important;
  color: #1a1a1a !important;
  padding: 80px 24px;
  text-align: center;
  position: relative;
  z-index: 1;
  overflow: visible !important;
  border-top: 1px solid #e5e5e5;
}
.hb-newsletter-cta * {
  position: relative;
  z-index: 2;
}
.hb-newsletter-cta-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 32px;
  line-height: 1.15;
  letter-spacing: -1px;
  display: inline-block;
  color: #1a1a1a !important;
}
.hb-newsletter-cta p,
.hb-newsletter-cta span,
.hb-newsletter-cta label {
  color: #6b7280 !important;
}
.hb-newsletter-form {
  display: flex;
  max-width: 420px;
  margin: 0 auto;
  background: var(--hb-white);
  border: 2px solid #1a1a1a;
  border-radius: 6px;
  overflow: hidden;
  padding: 4px;
}
.hb-newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: var(--hb-font);
  color: var(--hb-near-black);
  background: transparent;
}
.hb-newsletter-form button {
  background: #1a1a1a;
  color: var(--hb-white);
  border: none;
  padding: 12px 16px;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  transition: background .2s;
}
.hb-newsletter-form button:hover { background: #333; }

/* ── ──────────────────────────────────────────── */
/* AUDIO PLAYER (inline)                           */
/* ── ──────────────────────────────────────────── */
.hb-audio-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--hb-off-white);
  border: 1px solid var(--hb-border);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 16px 0;
}
.hb-audio-bar audio {
  flex: 1;
  height: 36px;
  min-width: 0;
}
.hb-audio-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--hb-muted);
  white-space: nowrap;
}

/* ── ──────────────────────────────────────────── */
/* PAGE SECTIONS                                   */
/* ── ──────────────────────────────────────────── */
.hb-section {
  padding: 0 0 72px;
}
