/* Shared styles for blog + supporting pages. Homepage keeps its inline CSS. */

:root {
  --bg: #0b0a08;
  --bg-elev: #121110;
  --ink: #f2eee6;
  --ink-dim: #8a857c;
  --ink-faint: #4a4741;
  --rule: rgba(242, 238, 230, 0.08);
  --rule-strong: rgba(242, 238, 230, 0.16);
  --gold: #e8b04b;
  --gold-bright: #f5c469;
  --green: #7fb77e;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Geist', -apple-system, sans-serif;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  font-feature-settings: 'ss01', 'cv11';
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
body::after {
  content: '';
  position: fixed;
  top: -30vh;
  right: -20vw;
  width: 80vw;
  height: 80vw;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at center, rgba(232, 176, 75, 0.07), transparent 55%);
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}

.mono {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.label {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ─── Nav ────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  background: rgba(11, 10, 8, 0.55);
  border-bottom: 1px solid var(--rule);
}

.logo {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-style: italic;
  font-size: 21px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(232, 176, 75, 0.7);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover,
.nav-link[aria-current="page"] { color: var(--gold); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  border: 1px solid var(--ink);
}
.btn:hover {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
  transform: translateY(-1px);
}
.btn .arrow { transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateX(3px); }

@media (max-width: 640px) {
  nav { padding: 18px 22px; }
  .wrap { padding: 0 22px; }
  .nav-link { display: none; }
}

/* ─── Page header (for blog pages) ──────────────── */
.page-header {
  padding: 180px 0 60px;
  position: relative;
  z-index: 2;
}
.breadcrumbs {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  flex-wrap: wrap;
}
.breadcrumbs a {
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs .sep { color: var(--ink-faint); }

.page-header h1 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(38px, 5.2vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 22ch;
  margin-bottom: 32px;
}
.page-header h1 em,
.page-header h1 .italic {
  font-style: italic;
  color: var(--gold);
  font-weight: 300;
}
.page-header .dek {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-dim);
  max-width: 58ch;
  margin-bottom: 32px;
}

.byline {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-wrap: wrap;
}
.byline strong { color: var(--ink); font-weight: 500; }
.byline .sep { color: var(--ink-faint); }

@media (max-width: 720px) {
  .page-header { padding: 130px 0 40px; }
}

/* ─── Article body ──────────────────────────────── */
.article {
  padding: 70px 0 40px;
  position: relative;
  z-index: 2;
}
.article .prose {
  max-width: 72ch;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
}
.article .prose p {
  margin: 0 0 26px;
  color: var(--ink);
}
.article .prose p.lede {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 24px;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 36px;
}
.article .prose p.lede em { color: var(--gold); font-style: italic; }

.article .prose h2 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 60px 0 20px;
  color: var(--ink);
}
.article .prose h2 em,
.article .prose h2 .italic { font-style: italic; color: var(--gold); font-weight: 300; }

.article .prose h3 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.25;
  margin: 40px 0 14px;
  color: var(--ink);
}

.article .prose strong { color: var(--gold-bright); font-weight: 500; }
.article .prose em { font-style: italic; }

.article .prose a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 176, 75, 0.35);
  transition: border-color 0.2s, color 0.2s;
}
.article .prose a:hover {
  color: var(--gold-bright);
  border-bottom-color: var(--gold-bright);
}

.article .prose ul,
.article .prose ol {
  margin: 0 0 26px 22px;
  padding: 0;
}
.article .prose li {
  margin: 0 0 10px;
  padding-left: 6px;
}
.article .prose ul li::marker { color: var(--gold); }
.article .prose ol li::marker { color: var(--gold); font-family: 'Geist Mono', monospace; font-size: 0.9em; }

.article .prose blockquote {
  margin: 36px 0;
  padding: 6px 0 6px 28px;
  border-left: 2px solid var(--gold);
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink);
  max-width: 60ch;
}

.article .prose hr {
  border: 0;
  height: 1px;
  background: var(--rule);
  margin: 56px auto;
  max-width: 120px;
}

/* Callout / inline CTA */
.callout {
  margin: 44px 0;
  padding: 28px 32px;
  border: 1px solid var(--rule-strong);
  border-left: 2px solid var(--gold);
  background: rgba(232, 176, 75, 0.03);
  border-radius: 4px;
}
.callout .label {
  margin-bottom: 10px;
  color: var(--gold);
}
.callout p {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-style: italic;
  font-size: 20px;
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 14px;
}
.callout a {
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 0;
}
.callout a:hover { color: var(--gold-bright); }

/* ─── FAQ (for post #10 FAQPage schema) ────────── */
.faq {
  max-width: 72ch;
  margin: 0 auto;
  border-top: 1px solid var(--rule);
}
.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 28px 0;
}
.faq summary {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.3;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 24px;
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  color: var(--gold);
  font-family: 'Geist Mono', monospace;
  font-size: 24px;
  line-height: 1;
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { color: var(--gold); }
.faq .answer {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-dim);
}
.faq .answer p { margin: 0 0 14px; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ─── Inline CTA block (article footer) ────────── */
.article-cta {
  margin: 80px auto 0;
  max-width: 72ch;
  padding: 56px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-align: left;
}
.article-cta .label { margin-bottom: 18px; }
.article-cta h3 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  max-width: 22ch;
}
.article-cta h3 em { font-style: italic; color: var(--gold); font-weight: 300; }
.article-cta a.cta-email {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-family: 'Geist Mono', monospace;
  font-size: 15px;
  font-weight: 500;
  border-radius: 999px;
  border: 0;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.article-cta a.cta-email:hover {
  background: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 20px 60px -15px rgba(232, 176, 75, 0.4);
}
.article-cta small {
  display: block;
  margin-top: 20px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ─── Related posts ────────────────────────────── */
.related {
  padding: 100px 0;
  position: relative;
  z-index: 2;
}
.related .label { margin-bottom: 40px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.related-card {
  display: block;
  padding: 32px 28px;
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 6px;
  text-decoration: none;
  color: var(--ink);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.related-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.related-card:hover {
  border-color: var(--rule-strong);
  transform: translateY(-3px);
}
.related-card:hover::before { transform: scaleX(1); }
.related-card .label {
  color: var(--gold);
  margin-bottom: 14px;
  display: block;
}
.related-card h4 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.related-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-dim);
  margin: 0;
}
@media (max-width: 900px) {
  .related-grid { grid-template-columns: 1fr; }
}

/* ─── Blog listing page ─────────────────────────── */
.blog-list {
  padding: 40px 0 100px;
  position: relative;
  z-index: 2;
}
.post-row {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 40px;
  padding: 36px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
  transition: padding 0.25s ease;
  align-items: baseline;
}
.post-row:first-child { border-top: 1px solid var(--rule); }
.post-row:hover { padding-left: 12px; }
.post-row .post-date {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.post-row h3 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color 0.2s;
}
.post-row:hover h3 { color: var(--gold); }
.post-row h3 em { font-style: italic; color: var(--gold); }
.post-row .post-arrow {
  font-family: 'Geist Mono', monospace;
  color: var(--ink-faint);
  font-size: 18px;
  transition: color 0.2s, transform 0.25s ease;
}
.post-row:hover .post-arrow {
  color: var(--gold);
  transform: translateX(4px);
}
.post-row p.excerpt {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-dim);
  max-width: 68ch;
}
@media (max-width: 720px) {
  .post-row { grid-template-columns: 1fr; gap: 8px; }
  .post-row .post-arrow { display: none; }
}

/* ─── Footer ────────────────────────────────────── */
footer {
  border-top: 1px solid var(--rule);
  padding: 40px 0;
  position: relative;
  z-index: 2;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-grid a {
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-grid a:hover { color: var(--gold); }

/* ─── Reveal ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
