/* Monthlee blog: same tokens and type as the landing page */
:root {
  --ink: #17170F;
  --ink-2: #3A3A33;
  --muted: #6B6A62;
  --paper: #FBF8F1;
  --white: #FFFFFF;
  --line: #ECE7DA;
  --green: #1F6B4A;
  --green-deep: #123D2B;
  --amber: #F4C04E;
  --sage: #DCEBDD;
  --peach: #FAD7BE;
  --radius-lg: 24px;
  --display: "Fraunces", Georgia, serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }

/* ----- nav ----- */
.nav { position: sticky; top: 12px; z-index: 20; margin: 12px auto 0; width: min(1120px, 100% - 24px); display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border-radius: 999px; background: rgba(255,255,255,.92); backdrop-filter: blur(14px); box-shadow: 0 8px 30px -14px rgba(23,23,15,.35); }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.brand .mark { width: 30px; height: 30px; }
.brand span:last-child { font: 600 21px var(--display); letter-spacing: -0.02em; }
.nav nav { display: flex; gap: 2px; margin-left: auto; }
.nav nav a { text-decoration: none; font-weight: 500; font-size: 15px; padding: 9px 13px; border-radius: 999px; color: var(--ink-2); }
.nav nav a:hover { background: rgba(23,23,15,.06); }
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 15px; border-radius: 999px; padding: 10px 18px; transition: transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-green { background: var(--green); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; padding: 12px 22px 12px 18px; }
.btn-dark svg { width: 26px; height: 26px; }
.btn-dark small { display: block; font-weight: 500; font-size: 11px; opacity: .8; line-height: 1.1; }
.btn-dark strong { display: block; font-size: 19px; line-height: 1.15; }

/* ----- shared ----- */
.chip { display: inline-block; font: 700 12px var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--green); background: #E3EFE8; padding: 5px 11px; border-radius: 999px; }
.eyebrow { font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
main { width: min(1120px, 100% - 32px); margin: 0 auto; }

/* ----- article ----- */
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin: 40px 0 0; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.post-head { max-width: 820px; margin: 28px 0 40px; }
.post-head h1 { font-size: clamp(38px, 5.4vw, 62px); margin: 16px 0 16px; color: var(--green-deep); }
.lede { font-size: 21px; color: var(--ink-2); margin: 0 0 18px; }
.byline { font-size: 15px; color: var(--muted); margin: 0; }

.post-grid { display: grid; grid-template-columns: 250px minmax(0, 720px); gap: 56px; align-items: start; }
.toc { position: sticky; top: 100px; font-size: 15px; }
.toc summary { font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); cursor: pointer; list-style: none; margin-bottom: 10px; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); display: grid; gap: 9px; }
.toc a { text-decoration: none; color: var(--ink-2); line-height: 1.35; display: block; }
.toc a:hover { color: var(--green); }

.prose { min-width: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 32px; margin-top: 1.9em; color: var(--green-deep); }
.prose h3 { font-size: 23px; margin-top: 1.5em; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose .anchor { margin-left: 10px; font-size: .6em; color: var(--muted); text-decoration: none; opacity: 0; }
.prose h2:hover .anchor, .prose h3:hover .anchor { opacity: 1; }
.prose p, .prose li { color: var(--ink-2); }
.prose a { color: var(--green); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--green); }
.prose blockquote { margin: 1.4em 0; padding: 18px 22px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); font-size: 16px; }
.prose blockquote p { margin: .5em 0; }
.prose code { font-size: .88em; background: #EFEBE1; padding: 2px 6px; border-radius: 6px; }
.prose pre { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 16px; overflow-x: auto; font-size: 15px; }
.prose pre code { background: none; padding: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.table-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); background: var(--white); }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: #F4F1E8; font-weight: 600; color: var(--ink); white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }

.takeaways { background: var(--sage); border-radius: var(--radius-lg); padding: 22px 26px; }
.takeaways .tk-title { font: 700 13px var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--green); margin: 0 0 10px; }
.takeaways ul { margin: 0; padding-left: 1.2em; }
.takeaways li { color: var(--green-deep); font-weight: 500; }

.faq { margin-top: 2.4em; }
.faq h2 { margin-bottom: .4em; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 19px; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green); font-size: 26px; line-height: .9; font-weight: 400; transition: rotate .2s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: 10px 0 0; }

/* ----- images ----- */
.cover { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; border-radius: 28px; margin: 0 0 48px; box-shadow: 0 30px 60px -40px rgba(23,23,15,.5); }
.infographic { margin: 2em auto; max-width: 460px; }
.infographic img { width: 100%; height: auto; border-radius: 24px; box-shadow: 0 30px 60px -36px rgba(23,23,15,.5); }
.infographic figcaption { text-align: center; font-size: 15px; color: var(--muted); margin-top: 12px; }
.card .thumb { max-width: none; width: calc(100% + 48px); margin: -24px -24px 6px; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 24px 24px 0 0; display: block; }
.featured { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.featured > div { min-width: 0; }
.featured img { width: 100%; height: auto; border-radius: 22px; box-shadow: 0 30px 50px -30px rgba(0,0,0,.5); }

/* ----- CTA ----- */
.cta { margin: 80px 0 0; background: var(--amber); border-radius: 36px; padding: 48px 52px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; }
.cta h2 { font-size: clamp(32px, 4vw, 48px); color: var(--green-deep); margin: 0; }
.cta p { color: #4A3B12; margin: 14px 0 24px; max-width: 46ch; }
.cta ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cta li { background: rgba(255,255,255,.6); border-radius: 16px; padding: 12px 16px; font-weight: 600; color: var(--green-deep); }

/* ----- cards ----- */
.related { margin-top: 72px; }
.related h2 { font-size: 34px; margin: 0 0 20px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; text-decoration: none; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -22px rgba(23,23,15,.45); }
.card[hidden] { display: none; }
.card h3 { font-size: 23px; margin: 4px 0 0; }
.card p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.card .meta { margin-top: auto; padding-top: 6px; font-size: 14px; color: var(--green); font-weight: 600; }

/* ----- blog index ----- */
.index-head { max-width: 760px; margin: 64px 0 36px; }
.index-head h1 { font-size: clamp(42px, 6vw, 76px); margin: 14px 0; color: var(--green-deep); }
.index-head p { font-size: 21px; color: var(--ink-2); margin: 0; }
.featured { text-decoration: none; background: var(--green); color: #fff; border-radius: 32px; padding: 40px 44px; margin-bottom: 36px; transition: transform .2s; }
.featured:hover { transform: translateY(-3px); }
.featured .chip { background: rgba(255,255,255,.16); color: #fff; }
.featured h2 { font-size: clamp(30px, 4vw, 46px); margin: 14px 0 10px; max-width: 22ch; }
.featured p { color: rgba(255,255,255,.82); margin: 0 0 16px; max-width: 60ch; }
.featured .meta { font-weight: 600; color: var(--amber); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filters button { border: 1px solid var(--line); background: var(--white); color: var(--ink-2); font: 600 15px var(--sans); padding: 9px 16px; border-radius: 999px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ----- footer ----- */
.footer { width: min(1120px, 100% - 32px); margin: 80px auto 0; padding: 28px 0 48px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 15px; }
.footer nav { display: flex; gap: 22px; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { color: var(--ink); }

/* ----- responsive ----- */
@media (max-width: 1000px) {
  .post-grid { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; }
  .toc summary { margin-bottom: 0; }
  .toc details[open] summary { margin-bottom: 10px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cta { grid-template-columns: 1fr; }
  .featured { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .nav nav a:not(:last-child) { display: none; }
  .nav nav a { padding: 8px 10px; }
  .crumbs { margin-top: 28px; }
  .lede { font-size: 19px; }
  .prose h2 { font-size: 27px; }
  .prose h3 { font-size: 21px; }
  .cards { grid-template-columns: 1fr; }
  .cta { padding: 32px 22px; border-radius: 28px; }
  .featured { padding: 28px 24px; border-radius: 26px; }
  .index-head { margin-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
