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

:root {
  --ink: #0B110E;
  --ink-raise: #111A15;
  --line: #1E2C24;
  --line-soft: #17231C;
  --bone: #ECE7D9;
  --bone-dim: #9AA69B;
  --sage: #71806F;
  --living: #4FCF86;
  --living-deep: #2E7E52;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--ink);
  color: var(--bone);
  font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 520px at 50% -8%, rgba(79, 207, 134, 0.08), transparent 62%),
    linear-gradient(180deg, #0C1310 0%, var(--ink) 42%, #0A0F0C 100%);
  z-index: -2;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  opacity: 0.035;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 26px;
}

.eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
}

/* ---------- Nav ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--bone);
}
.nav-brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: block;
}
.nav-brand span {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.nav-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--bone);
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 9px 16px;
  border-radius: 10px;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.nav-cta:hover {
  border-color: var(--living);
  color: var(--living);
  background: rgba(79, 207, 134, 0.06);
}

/* ---------- Blog index ---------- */
.blog-hero { padding: 12px 0 36px; }
.blog-hero .eyebrow { margin-bottom: 14px; }
.blog-hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 380;
  font-size: clamp(32px, 6.4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.018em;
  color: var(--bone);
  max-width: 16ch;
}
.blog-hero p {
  margin-top: 16px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--bone-dim);
  max-width: 46ch;
}

.post-list { display: flex; flex-direction: column; padding-bottom: 20px; }
.post-card {
  padding: 30px 0;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.post-list .post-card:last-child { border-bottom: 1px solid var(--line-soft); }
.post-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
}
.post-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: clamp(20px, 3.6vw, 25px);
  color: var(--bone);
  letter-spacing: -0.01em;
  line-height: 1.24;
  transition: color 0.15s ease;
}
.post-card:hover .post-title { color: var(--living); }
.post-excerpt {
  font-size: 15px;
  color: var(--bone-dim);
  line-height: 1.62;
  max-width: 58ch;
}
.post-meta { font-size: 12.5px; color: var(--sage); letter-spacing: 0.02em; }

.post-list-note {
  padding: 26px 0 8px;
  font-size: 14px;
  color: var(--sage);
  font-style: italic;
  font-family: 'Fraunces', Georgia, serif;
}

/* ---------- Article ---------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--sage);
  text-decoration: none;
  margin-bottom: 30px;
  transition: color 0.15s ease;
}
.back-link:hover { color: var(--living); }

.article-head {
  padding: 4px 0 32px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 36px;
}
.article-head .eyebrow { margin-bottom: 16px; }
.article-head h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 380;
  font-size: clamp(30px, 5.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--bone);
  max-width: 22ch;
}
.article-meta {
  margin-top: 18px;
  font-size: 13px;
  color: var(--sage);
  letter-spacing: 0.02em;
}

.prose p { font-size: 16.5px; line-height: 1.72; color: var(--bone-dim); margin-bottom: 18px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--bone); font-weight: 600; }
.prose a { color: var(--living); text-decoration: underline; text-decoration-color: rgba(79,207,134,0.35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--living); }
.prose h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: clamp(23px, 4vw, 29px);
  letter-spacing: -0.012em;
  line-height: 1.2;
  color: var(--bone);
  margin: 40px 0 16px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--bone);
  letter-spacing: -0.005em;
  margin: 28px 0 12px;
}
.prose ul, .prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--bone-dim);
  font-size: 16.5px;
  line-height: 1.72;
}
.prose li { margin-bottom: 9px; }
.prose li::marker { color: var(--sage); }
.prose li strong { color: var(--bone); }

.callout {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--ink-raise);
  padding: 22px 24px;
  margin: 30px 0;
}
.callout p { margin: 0; color: var(--bone-dim); font-size: 15px; line-height: 1.62; }
.callout p + p { margin-top: 10px; }
.callout strong { color: var(--living); }

/* Reuse of homepage CTA button */
.cta-row {
  margin-top: 40px;
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  background: var(--living);
  color: #06120B;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 16px 30px;
  border-radius: 13px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  box-shadow: 0 10px 30px -12px rgba(79, 207, 134, 0.55);
}
.cta svg { width: 19px; height: 19px; }
.cta:hover { transform: translateY(-2px); background: #5cd991; box-shadow: 0 16px 34px -12px rgba(79, 207, 134, 0.6); }
.cta:active { transform: translateY(0); }
.cta-note { font-size: 12.5px; color: var(--sage); letter-spacing: 0.04em; }

/* ---------- Footer ---------- */
.foot {
  padding: 54px 0 60px;
  text-align: center;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.foot-links a { color: var(--bone-dim); text-decoration: none; font-size: 13px; letter-spacing: 0.02em; transition: color 0.15s ease; }
.foot-links a:hover { color: var(--living); }
.foot-tag { font-family: 'Fraunces', Georgia, serif; font-size: 14px; color: var(--sage); font-style: italic; }

@media (max-width: 480px) {
  .nav-brand span { font-size: 16px; }
}

:focus-visible { outline: 2px solid var(--living); outline-offset: 3px; border-radius: 4px; }
