*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #F3F2EE;
  --bg2:     #ECEAE4;
  --surface: #FAFAF8;
  --border:  rgba(0,0,0,0.09);
  --text:    #0E0E0E;
  --muted:   #6b6b6b;
  --accent:  #10b981;
  --grad:    linear-gradient(135deg, #10b981, #6366f1);
  --mono:    'DM Mono', monospace;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); overflow-x: hidden; }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  background: rgba(243,242,238,0.92);
}
.nav-inner { max-width: 780px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo-mark { width: 32px; height: 32px; flex-shrink: 0; }
.logo-text { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 16px; }
.nav-back { display: flex; align-items: center; gap: 6px; text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-back:hover { color: var(--text); }

/* POST WRAPPER */
.post-wrap { max-width: 780px; margin: 0 auto; padding: 120px 32px 80px; }

/* POST HEADER */
.post-header { margin-bottom: 48px; }
.post-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.post-tag {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 2px; color: var(--accent);
  background: rgba(16,185,129,.07); border: 1px solid rgba(16,185,129,.18);
  padding: 3px 10px; border-radius: 3px;
}
.post-date { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.post-read { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.post-sep { color: var(--border); }
.post-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(30px, 4vw, 48px); font-weight: 700;
  letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 20px;
}
.post-header .lead {
  font-size: 18px; color: var(--muted); line-height: 1.75;
  border-left: 3px solid var(--accent); padding-left: 20px;
}

/* DIVIDER */
.post-divider { width: 48px; height: 3px; background: var(--grad); border-radius: 2px; margin: 40px 0; }

/* BODY COPY */
.post-body { font-size: 16.5px; line-height: 1.85; color: #1a1a1a; }
.post-body h2 {
  font-family: 'Space Grotesk', sans-serif; font-size: 24px; font-weight: 700;
  letter-spacing: -0.5px; margin: 48px 0 16px;
}
.post-body h3 {
  font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 600;
  margin: 32px 0 12px;
}
.post-body p { margin-bottom: 22px; }
.post-body strong { font-weight: 600; color: var(--text); }
.post-body ul, .post-body ol { margin: 0 0 22px 24px; }
.post-body li { margin-bottom: 8px; line-height: 1.75; }
.post-body blockquote {
  border-left: 3px solid var(--accent); padding: 16px 20px;
  background: rgba(16,185,129,.04); border-radius: 0 8px 8px 0;
  margin: 28px 0; font-size: 17px; color: var(--text);
}
.post-body blockquote p { margin: 0; }
.post-body .callout {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px 24px; margin: 28px 0;
}
.post-body .callout-label {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 2px; color: var(--accent);
  margin-bottom: 8px;
}

/* POST FOOTER */
.post-footer {
  margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.post-footer-cta { display: flex; flex-direction: column; gap: 6px; }
.post-footer-cta span { font-size: 13px; color: var(--muted); font-family: var(--mono); }
.post-footer-cta a {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 18px;
  color: var(--text); text-decoration: none; transition: color .2s;
}
.post-footer-cta a:hover { color: var(--accent); }
.btn-footer {
  padding: 12px 24px; border-radius: 8px;
  background: var(--grad); color: #fff; font-weight: 600; font-size: 14px;
  text-decoration: none; white-space: nowrap;
}

/* FOOTER */
.footer { border-top: 1px solid var(--border); padding: 28px 0; }
.footer .nav-inner { max-width: 780px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-copy { color: var(--muted); font-size: 13px; }

@media (max-width: 600px) {
  .post-wrap { padding: 100px 20px 60px; }
  .nav-inner { padding: 0 20px; }
}
