:root {
  --charcoal: #16181D;
  --cream: #FAFAF8;
  --spark: #D9731A;
  --spark-dim: #B8611A;
  --muted: #6B7280;
  --muted-light: #9AA1AC;
  --border: #E7E5E1;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* Site header (blog pages) */
.site-header { padding: 28px 0; border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { display: block; }
.brand .name { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: var(--charcoal); }
.brand .sub { font-size: 9px; font-weight: 600; letter-spacing: 0.24em; color: var(--muted); margin-top: 1px; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--muted); }
.nav-links a.active, .nav-links a:hover { color: var(--charcoal); }

/* Blog index */
.blog-hero { position: relative; overflow: hidden; padding: 64px 0 40px; text-align: center; }
.blog-hero .glow {
  position: absolute; top: -160px; left: 50%; transform: translateX(-50%);
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(217,115,26,0.14) 0%, rgba(217,115,26,0) 70%);
  pointer-events: none;
}
.blog-hero .pill {
  position: relative; display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; color: var(--spark-dim); background: rgba(217,115,26,0.1);
  border: 1px solid rgba(217,115,26,0.3); border-radius: 999px; padding: 6px 16px; margin-bottom: 20px;
}
.blog-hero h1 { position: relative; font-size: 44px; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 14px; }
.blog-hero p { position: relative; font-size: 17px; color: #3A3D45; max-width: 520px; margin: 0 auto; }

/* Featured post (founder story gets the charcoal treatment) */
.featured-post {
  position: relative; overflow: hidden;
  display: block; text-decoration: none;
  background: var(--charcoal); color: var(--cream);
  border-radius: 16px; padding: 40px 36px; margin: 8px 0 40px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.featured-post:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(22,24,29,0.18); }
.featured-post .flame-mark {
  position: absolute; right: -50px; bottom: -70px;
  width: 320px; height: 320px; opacity: 0.14; pointer-events: none;
}
.featured-post .flame-mark path { fill: var(--spark); }
.featured-post .tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cream); background: rgba(217,115,26,0.25); border: 1px solid rgba(217,115,26,0.5);
  border-radius: 999px; padding: 5px 14px; margin: 0 0 16px;
}
.featured-post h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 12px; color: var(--cream); }
.featured-post p { font-size: 16px; line-height: 1.6; color: #D8D9DC; margin: 0 0 20px; max-width: 560px; }
.featured-post .read-more {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700;
  color: var(--charcoal); background: var(--cream); padding: 11px 22px; border-radius: 999px;
}

/* Post grid */
.post-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  padding: 0 0 72px;
}
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }
.grid-card {
  display: block; text-decoration: none;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 26px 24px; transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.grid-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(22,24,29,0.08); border-color: rgba(217,115,26,0.35); }
.card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(217,115,26,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--spark-dim); margin: 0 0 16px;
}
.card-icon svg { width: 22px; height: 22px; }
.grid-card .tag {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--spark-dim); background: rgba(217,115,26,0.1); border-radius: 999px; padding: 4px 10px; margin: 0 0 12px;
}
.grid-card h2 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 8px; color: var(--charcoal); line-height: 1.3; }
.grid-card p { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.grid-card .meta { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--charcoal); }
.grid-card .meta .read-time { font-weight: 500; color: var(--muted-light); }

/* Article */
.article-hero { padding: 48px 0 8px; }
.article-hero .tag { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--spark-dim); margin: 0 0 14px; }
.article-hero h1 { font-size: 38px; line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 16px; }
.article-hero .dek { font-size: 17px; color: #3A3D45; max-width: 560px; margin: 0 0 8px; }
article { padding: 24px 0 8px; }
article h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin: 40px 0 14px; }
article h3 { font-size: 17px; font-weight: 700; margin: 28px 0 10px; }
article p { font-size: 16px; line-height: 1.65; color: #26282E; margin: 0 0 18px; }
article ul { margin: 0 0 20px; padding-left: 22px; }
article li { font-size: 16px; line-height: 1.6; color: #26282E; margin-bottom: 8px; }
article .byline { font-size: 14px; color: var(--muted); margin: 4px 0 0; }

/* CTA band */
.cta-band { background: var(--charcoal); color: var(--cream); padding: 44px 0; margin: 48px 0 0; text-align: center; }
.cta-band h3 { font-size: 20px; font-weight: 700; margin: 0 0 8px; }
.cta-band p { font-size: 15px; color: #D8D9DC; margin: 0 0 20px; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-band a.btn { display: inline-block; padding: 13px 26px; font-size: 15px; font-weight: 700; color: var(--charcoal); background: var(--cream); border-radius: 8px; text-decoration: none; }

/* Footer */
footer { padding: 40px 0 56px; text-align: center; }
footer .fname { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
footer .contact { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
footer .contact a { text-decoration: none; color: var(--spark-dim); font-weight: 600; }
footer .disclaimer { font-size: 12px; color: var(--muted-light); max-width: 480px; margin: 0 auto 14px; }
footer .copyright { font-size: 12px; color: var(--muted-light); }

@media (max-width: 480px) {
  .article-hero h1 { font-size: 30px; }
  .blog-hero h1 { font-size: 32px; }
  .featured-post { padding: 28px 22px; }
  .featured-post h2 { font-size: 23px; }
}
