/* ── PropFlow Blog — Shared Styles ─────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=IBM+Plex+Mono:wght@400;500&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --bg:        #0b0c0e;
  --bg2:       #13151a;
  --bg3:       #1a1d24;
  --gold:      #c8a96e;
  --gold-dim:  rgba(200,169,110,0.12);
  --gold-line: rgba(200,169,110,0.2);
  --text:      #e8e6e0;
  --muted:     #7a8090;
  --green:     #6eb87e;
  --red:       #c87070;
  --teal:      #7eb8a4;
  --radius:    12px;
  --max:       720px;
  --max-wide:  1100px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Lora', Georgia, serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── NAV ─────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,12,14,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gold-line);
  padding: 0 2rem;
}
.nav-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 1rem;
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.nav-logo-brand { display: inline-flex; letter-spacing: -0.02em; }
.nav-logo-brand .prop { color: var(--text); }
.nav-logo-brand .flow { color: var(--gold); }
.nav-logo-suffix { color: var(--text); font-weight: 400; font-size: 0.85rem; opacity: 0.5; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a {
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); text-decoration: none; }
.nav-cta {
  font-family: 'Syne', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--gold);
  color: #0b0c0e;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  letter-spacing: 0.03em;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { opacity: 0.85; text-decoration: none; }

/* ── HERO / PAGE HEADER ──────────────────────────────────────────── */
.page-header {
  border-bottom: 1px solid var(--gold-line);
  padding: 5rem 2rem 4rem;
  text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(200,169,110,0.06) 0%, transparent 70%);
}
.page-header .eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.6;
  margin-bottom: 1rem;
}
.page-header h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.page-header h1 em { color: var(--gold); font-style: normal; }
.page-header p {
  font-size: 1rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
  font-family: 'Syne', sans-serif;
  font-weight: 400;
}

/* ── BLOG INDEX GRID ─────────────────────────────────────────────── */
.blog-grid-wrap {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 4rem 2rem;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.blog-card {
  background: var(--bg2);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.blog-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.blog-card:hover { border-color: rgba(200,169,110,0.4); transform: translateY(-2px); }
.blog-card:hover::before { opacity: 1; }
.card-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.card-tag.tool { color: var(--teal); }
.card-tag.coming { color: var(--muted); }
.blog-card h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.blog-card p {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.6;
  font-family: 'Syne', sans-serif;
}
.card-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  color: var(--muted);
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.card-read {
  font-family: 'Syne', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  margin-top: 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.card-coming {
  font-family: 'Syne', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 0.25rem;
}
.blog-card.is-coming {
  opacity: 0.55;
  cursor: default;
}
.blog-card.is-coming:hover { transform: none; border-color: var(--gold-line); }
.blog-card.is-coming::before { display: none; }

/* ── ARTICLE PAGE ────────────────────────────────────────────────── */
.article-wrap {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
  display: grid;
  grid-template-columns: 1fr min(var(--max), 100%) 1fr;
  gap: 0 2rem;
}
.article-wrap > * { grid-column: 2; }
.article-header {
  padding: 3rem 2rem 2.5rem;
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
  width: 100%;
}
.article-header .eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.article-header .eyebrow a {
  color: var(--muted);
  transition: color 0.2s;
}
.article-header .eyebrow a:hover { color: var(--gold); text-decoration: none; }
.article-header h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.article-header .summary {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.65;
  font-family: 'Syne', sans-serif;
  margin-bottom: 1.5rem;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gold-line);
}
.meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gold-line); }

/* ── ARTICLE BODY ────────────────────────────────────────────────── */
.article-body {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem;
}
.article-body h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text);
  letter-spacing: -0.02em;
  margin: 2.5rem 0 0.75rem;
  line-height: 1.2;
}
.article-body h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  margin: 2rem 0 0.5rem;
}
.article-body p { margin-bottom: 1.25rem; color: #ccc8c0; }
.article-body ul, .article-body ol {
  margin: 0 0 1.25rem 1.5rem;
  color: #ccc8c0;
}
.article-body li { margin-bottom: 0.4rem; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body em { color: var(--gold); font-style: normal; font-weight: 600; }

/* Formula blocks */
.formula {
  background: var(--bg3);
  border: 1px solid var(--gold-line);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.88rem;
  color: var(--gold);
  line-height: 1.6;
}
.formula .formula-label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
  font-family: 'IBM Plex Mono', monospace;
}
.formula .formula-result {
  color: var(--green);
  font-weight: 500;
  margin-top: 0.35rem;
}

/* Example card */
.example-card {
  background: var(--bg2);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.75rem 0;
}
.example-card .example-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}
.example-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
}
.example-row:last-child { border-bottom: none; }
.example-row .label { color: var(--muted); }
.example-row .value { color: var(--text); font-weight: 500; }
.example-row .value.green { color: var(--green); }
.example-row .value.gold { color: var(--gold); }
.example-row .value.red { color: var(--red); }

/* Callout */
.callout {
  background: rgba(110,184,126,0.08);
  border: 1px solid rgba(110,184,126,0.25);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--green);
  font-family: 'Syne', sans-serif;
}
.callout.warn {
  background: rgba(200,112,112,0.08);
  border-color: rgba(200,112,112,0.25);
  color: var(--red);
}
.callout.gold {
  background: rgba(200,169,110,0.08);
  border-color: rgba(200,169,110,0.25);
  color: var(--gold);
}

/* ── INLINE CTA ──────────────────────────────────────────────────── */
.inline-cta {
  background: var(--bg2);
  border: 1px solid var(--gold-line);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2.5rem 0;
  text-align: center;
}
.inline-cta h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.inline-cta p {
  font-size: 0.88rem;
  color: var(--muted);
  font-family: 'Syne', sans-serif;
  margin-bottom: 1.25rem;
}
.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: #0b0c0e;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}
.btn-gold:hover { opacity: 0.85; text-decoration: none; }

/* ── FOOTER CTA BANNER ───────────────────────────────────────────── */
.footer-cta {
  background: var(--bg2);
  border-top: 1px solid var(--gold-line);
  padding: 4rem 2rem;
  text-align: center;
}
.footer-cta h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}
.footer-cta h2 em { color: var(--gold); font-style: normal; }
.footer-cta p {
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}
.footer-cta .btn-gold { font-size: 0.95rem; padding: 0.8rem 2rem; }

/* ── FOOTER NAV ──────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 2rem;
  text-align: center;
}
.footer-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}
.footer-logo .prop { color: var(--text); }
.footer-logo .flow { color: var(--gold); }
.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-links a {
  font-family: 'Syne', sans-serif;
  font-size: 0.78rem;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); text-decoration: none; }
.footer-copy {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  color: var(--muted);
  opacity: 0.5;
  width: 100%;
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* ── TOC ─────────────────────────────────────────────────────────── */
.toc {
  background: var(--bg2);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 0 0 2rem;
}
.toc-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.toc ol {
  margin: 0;
  padding-left: 1.25rem;
}
.toc li {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.toc li a { color: var(--muted); transition: color 0.2s; }
.toc li a:hover { color: var(--gold); text-decoration: none; }

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .page-header { padding: 3rem 1.25rem 2.5rem; }
  .blog-grid-wrap { padding: 2.5rem 1.25rem; }
  .article-header { padding: 2rem 1.25rem 1.5rem; }
  .article-body { padding: 1.5rem 1.25rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
