@import url('/css/fonts.css');

:root {
  --ink: #17221f;
  --body: #42504c;
  --muted: #59645f;
  --teal: #0f8f80;
  --teal-dark: #0a6d62;
  --teal-soft: #e7f5f2;
  --plum: #6f5477;
  --plum-soft: #f2edf4;
  --sand: #f5efe6;
  --paper: #fffefb;
  --line: #dfe7e4;
  --shadow: 0 18px 50px rgba(24, 52, 45, .1);
  --serif: 'Playfair Display', 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;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal-dark); text-underline-offset: 3px; }
a:hover { color: var(--teal); }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; }
.skip-link {
  position: fixed;
  z-index: 5000;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
}
.skip-link:focus { transform: none; }
.reading-progress {
  position: fixed;
  z-index: 4000;
  inset: 0 auto auto 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), #39b7a8);
}

.site-nav {
  position: sticky;
  z-index: 1000;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(223, 231, 228, .86);
  background: rgba(255, 254, 251, .94);
  backdrop-filter: blur(16px);
}
.nav-brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.nav-brand img { width: 34px; height: 34px; border-radius: 10px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: #34413d; font-size: 14px; font-weight: 600; text-decoration: none; }
.nav-links a[aria-current='page'] { color: var(--teal-dark); }
.download-link,
.tool-button,
.filter-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}
.download-link { padding: 10px 18px; color: #fff !important; background: var(--ink); }
.nav-toggle { display: none; border: 0; background: transparent; color: var(--ink); font-weight: 700; }
.mobile-nav { display: none; }

.article-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 5vw 98px;
  background:
    radial-gradient(circle at 88% 8%, rgba(111, 84, 119, .16), transparent 32%),
    radial-gradient(circle at 10% 78%, rgba(15, 143, 128, .15), transparent 34%),
    linear-gradient(145deg, #f8fbfa, #f6f0f5 62%, #f7f1e8);
}
.article-hero::after {
  content: '';
  position: absolute;
  right: -80px;
  bottom: -140px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(15, 143, 128, .2);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(15, 143, 128, .035), 0 0 0 84px rgba(111, 84, 119, .03);
}
.hero-inner { position: relative; z-index: 1; max-width: 940px; margin: 0 auto; text-align: center; }
.breadcrumb { margin-bottom: 22px; color: var(--muted); font-size: 13px; }
.breadcrumb a { color: inherit; }
.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 7px 12px;
  color: var(--teal-dark);
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(15, 143, 128, .25);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1, h2, h3 { font-family: var(--serif); }
h1 { max-width: 900px; margin: 0 auto 22px; font-size: clamp(42px, 6.6vw, 76px); line-height: 1.02; letter-spacing: -.035em; }
.hero-deck { max-width: 760px; margin: 0 auto 28px; color: #4a5854; font-size: clamp(18px, 2vw, 22px); line-height: 1.55; }
.byline { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }
.byline a { color: inherit; font-weight: 700; }
.hero-media { position: relative; z-index: 4; max-width: 1120px; margin: -62px auto 58px; padding: 0 24px; }
.hero-media img { display: block; width: 100%; height: auto; border: 10px solid rgba(255, 255, 255, .96); border-radius: 28px; box-shadow: var(--shadow); }

.article-layout { display: grid; grid-template-columns: minmax(180px, 230px) minmax(0, 760px); gap: 64px; max-width: 1100px; margin: 0 auto; padding: 0 24px 90px; }
.article-toc { align-self: start; position: sticky; top: 104px; }
.article-toc strong { display: block; margin-bottom: 12px; color: var(--ink); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.article-toc ol { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.article-toc a { color: var(--muted); font-size: 13px; line-height: 1.35; text-decoration: none; }
.article-toc a:hover { color: var(--teal-dark); }
.article-body { min-width: 0; color: var(--body); font-size: 17px; line-height: 1.82; }
.article-body > p { margin: 0 0 23px; }
.article-body > p:first-of-type { color: var(--ink); font-size: 20px; line-height: 1.7; }
.article-body h2 { margin: 68px 0 20px; color: var(--ink); font-size: clamp(31px, 4.2vw, 45px); line-height: 1.14; letter-spacing: -.02em; }
.article-body h3 { margin: 34px 0 12px; color: var(--ink); font-size: 24px; line-height: 1.25; }
.article-body ul, .article-body ol { padding-left: 23px; }
.article-body li { margin-bottom: 10px; }
.article-body strong { color: var(--ink); }

.quick-answer,
.takeaway-box {
  margin: 0 0 36px;
  padding: 28px 30px;
  border: 1px solid #cde4de;
  border-radius: 20px;
  background: linear-gradient(140deg, #f2faf8, #eef6f4);
}
.quick-answer h2,
.takeaway-box h2 { margin: 0 0 12px; font-family: var(--sans); font-size: 13px; letter-spacing: .11em; text-transform: uppercase; }
.quick-answer p:last-child,
.takeaway-box ul:last-child { margin-bottom: 0; }
.evidence-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 38px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--line); }
.evidence-stat { padding: 20px; background: #fff; text-align: center; }
.evidence-stat b { display: block; margin-bottom: 6px; color: var(--teal-dark); font-family: var(--serif); font-size: 30px; line-height: 1; }
.evidence-stat span { color: var(--muted); font-size: 12px; line-height: 1.4; }

.expert-quote {
  position: relative;
  margin: 44px 0;
  padding: 34px 36px 30px 42px;
  border-left: 5px solid var(--teal);
  border-radius: 0 20px 20px 0;
  background: var(--plum-soft);
}
.expert-quote::before { content: '“'; position: absolute; top: 8px; left: 14px; color: rgba(111, 84, 119, .28); font-family: Georgia, serif; font-size: 68px; line-height: 1; }
.expert-quote blockquote { margin: 0 0 14px; color: #34293a; font-family: var(--serif); font-size: 22px; line-height: 1.55; }
.expert-quote cite { color: var(--muted); font-size: 13px; font-style: normal; }

.infographic {
  margin: 42px 0;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(31, 65, 57, .07);
}
.infographic .visual-label { margin-bottom: 6px; color: var(--teal-dark); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.infographic h3 { margin: 0 0 8px; font-size: 28px; }
.visual-subtitle { margin: 0 0 24px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.visual-process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-items: stretch; }
.process-step { position: relative; padding: 18px 14px; border-radius: 14px; background: var(--teal-soft); color: var(--ink); font-size: 13px; line-height: 1.45; text-align: center; }
.process-step b { display: block; margin-bottom: 5px; color: var(--teal-dark); font-size: 12px; }
.process-step:not(:last-child)::after { content: '→'; position: absolute; z-index: 2; top: 50%; right: -12px; color: var(--teal-dark); font-weight: 700; transform: translateY(-50%); }
.figure-note { margin: 18px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.figure-note a { color: inherit; }
.depth-chart { display: grid; gap: 12px; margin-top: 22px; }
.depth-row { display: grid; grid-template-columns: 90px 1fr; gap: 14px; align-items: center; }
.depth-row span { color: var(--muted); font-size: 12px; }
.depth-track { height: 24px; overflow: hidden; border-radius: 99px; background: #edf1ef; }
.depth-fill { height: 100%; display: flex; align-items: center; padding-left: 12px; border-radius: inherit; background: linear-gradient(90deg, #8ed2c7, var(--teal)); color: #093f38; font-size: 11px; font-weight: 700; }

.tool {
  margin: 44px 0;
  padding: 30px;
  border-radius: 24px;
  color: var(--ink);
  background: #f7faf9;
  border: 1px solid var(--line);
}
.tool h3 { margin: 0 0 8px; }
.tool-intro { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.tool-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filter-button { min-height: 38px; padding: 8px 14px; color: #38504a; border-color: #cddbd7; background: #fff; font-size: 13px; }
.filter-button[aria-pressed='true'] { color: #fff; border-color: var(--teal-dark); background: var(--teal-dark); }
.tool-button { padding: 10px 18px; color: #fff; background: var(--ink); }
.random-output { min-height: 100px; display: flex; align-items: center; margin-bottom: 16px; padding: 22px; border-radius: 16px; background: #fff; border: 1px solid #d7e2df; color: var(--ink); font-family: var(--serif); font-size: 22px; line-height: 1.45; }
.tool-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; }

.question-group { margin: 30px 0; }
.question-group h3 { display: flex; gap: 10px; align-items: baseline; margin-bottom: 8px; }
.question-group h3 span { color: var(--teal-dark); font-family: var(--sans); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.question-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 0; padding: 0 !important; counter-reset: prompt; list-style: none; }
.prompt-card { position: relative; min-height: 108px; padding: 18px 18px 18px 48px; border: 1px solid var(--line); border-radius: 15px; background: #fff; color: #30413c; font-size: 14px; line-height: 1.5; counter-increment: prompt; }
.prompt-card::before { content: counter(prompt); position: absolute; top: 17px; left: 17px; color: var(--teal-dark); font-weight: 700; }
.question-group[hidden], .prompt-card[hidden] { display: none; }

.step-list { display: grid; gap: 14px; margin: 28px 0; }
.step-card { display: grid; grid-template-columns: 42px 1fr; gap: 16px; padding: 20px; border-bottom: 1px solid var(--line); }
.step-number { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--teal-dark); font-weight: 700; }
.step-card h3 { margin: 1px 0 7px; font-family: var(--sans); font-size: 17px; }
.step-card p { margin: 0; font-size: 14px; line-height: 1.65; }
.exercise-card { margin: 12px 0; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.exercise-card summary { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 18px 20px; cursor: pointer; color: var(--ink); font-weight: 700; list-style: none; }
.exercise-card summary::-webkit-details-marker { display: none; }
.exercise-card summary span { color: var(--muted); font-size: 11px; font-weight: 600; }
.exercise-content { padding: 0 20px 20px; font-size: 14px; line-height: 1.68; }
.exercise-content ol { margin-bottom: 0; }

.compare-table { width: 100%; margin: 26px 0; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.compare-table th { padding: 13px; color: var(--ink); background: var(--teal-soft); text-align: left; }
.compare-table td { padding: 13px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare-table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }

.builder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { color: var(--ink); font-size: 12px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; padding: 10px 12px; color: var(--ink); background: #fff; border: 1px solid #cbd9d5; border-radius: 10px; }
.field textarea { min-height: 86px; resize: vertical; }
.plan-output { margin-top: 20px; padding: 20px; border-left: 4px solid var(--teal); border-radius: 0 12px 12px 0; background: #fff; color: var(--ink); }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.check-option { display: flex; gap: 9px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 13px; line-height: 1.4; }
.check-option input { margin-top: 3px; accent-color: var(--teal-dark); }

.safety-note { margin: 36px 0; padding: 24px 26px; border: 1px solid #e6cfb6; border-radius: 18px; background: #fff8ef; }
.safety-note h3 { margin: 0 0 8px; font-family: var(--sans); font-size: 16px; }
.safety-note p { margin: 0; color: #665747; font-size: 14px; line-height: 1.65; }
.inline-cta { display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; margin: 44px 0; padding: 26px 28px; border-radius: 20px; color: #fff; background: linear-gradient(135deg, #173c36, #0a7468); }
.inline-cta h3 { margin: 0 0 7px; color: #fff; font-family: var(--sans); font-size: 18px; }
.inline-cta p { margin: 0; color: rgba(255, 255, 255, .82); font-size: 14px; line-height: 1.55; }
.inline-cta a { color: #fff; }
.inline-cta .download-link { background: #fff; color: var(--teal-dark) !important; white-space: nowrap; }

.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.faq-item summary { padding: 17px 20px; cursor: pointer; color: var(--ink); font-weight: 700; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin: 0; padding: 0 20px 19px; font-size: 14px; line-height: 1.65; }
.sources { font-size: 13px; line-height: 1.65; }
.sources li { margin-bottom: 12px; }
.review-box { display: grid; grid-template-columns: 64px 1fr; gap: 17px; align-items: center; margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line); }
.reviewer-monogram { display: grid; width: 64px; height: 64px; place-items: center; border: 1px solid rgba(111, 84, 119, .24); border-radius: 50%; background: linear-gradient(145deg, #f4ecf5, #e7f1eb); color: var(--plum); font-family: var(--serif); font-size: 21px; font-weight: 700; letter-spacing: .04em; }
.review-box strong { display: block; margin-bottom: 4px; }
.review-box p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

.bottom-cta { padding: 80px 24px; color: #fff; background: linear-gradient(135deg, #123f38, #0f8f80 62%, #6f5477); text-align: center; }
.bottom-cta-inner { max-width: 720px; margin: 0 auto; }
.bottom-cta h2 { margin: 0 0 14px; font-size: clamp(34px, 5vw, 52px); }
.bottom-cta p { margin: 0 auto 25px; color: rgba(255, 255, 255, .85); font-size: 17px; line-height: 1.6; }
.store-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.store-links a { padding: 13px 20px; border-radius: 999px; color: var(--ink); background: #fff; font-weight: 700; text-decoration: none; }
.store-links a:last-child { color: #fff; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35); }
.related { max-width: 1100px; margin: 0 auto; padding: 72px 24px; }
.related h2 { margin: 0 0 24px; font-size: 36px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card { min-height: 180px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: #fff; text-decoration: none; }
.related-card small { color: var(--teal-dark); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.related-card h3 { margin: 12px 0 8px; font-size: 23px; }
.related-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.site-footer { padding: 52px 5vw 26px; color: #d9e8e4; background: #13221f; }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 40px; max-width: 1120px; margin: 0 auto 36px; }
.footer-brand { color: #fff; font-family: var(--serif); font-size: 23px; }
.footer-grid h3 { margin: 0 0 14px; color: #fff; font-family: var(--sans); font-size: 13px; }
.footer-grid a { display: block; margin: 9px 0; color: #bacbc6; font-size: 13px; text-decoration: none; }
.footer-bottom { max-width: 1120px; margin: 0 auto; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); color: #8fa29c; font-size: 12px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; min-height: 44px; }
  .mobile-nav.open { display: grid; position: fixed; z-index: 999; top: 72px; right: 0; left: 0; gap: 4px; padding: 18px 5vw 24px; border-bottom: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
  .mobile-nav a { padding: 11px 0; color: var(--ink); text-decoration: none; }
  .article-layout { grid-template-columns: 1fr; gap: 26px; }
  .article-toc { position: static; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; }
  .article-toc ol { grid-template-columns: 1fr 1fr; }
  .visual-process { grid-template-columns: 1fr 1fr; }
  .process-step:nth-child(2)::after { display: none; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .site-nav { min-height: 64px; padding-inline: 18px; }
  .mobile-nav.open { top: 64px; }
  .article-hero { padding: 54px 20px 82px; }
  h1 { font-size: 42px; }
  .hero-deck { font-size: 17px; }
  .hero-media { margin-top: -46px; padding: 0 12px; }
  .hero-media img { border-width: 6px; border-radius: 18px; }
  .article-layout { padding: 0 18px 68px; }
  .article-toc ol { grid-template-columns: 1fr; }
  .article-body { font-size: 16px; }
  .article-body h2 { margin-top: 54px; }
  .quick-answer, .takeaway-box, .infographic, .tool { padding: 22px 20px; }
  .evidence-strip { grid-template-columns: 1fr; }
  .expert-quote { padding: 28px 22px 24px 30px; }
  .expert-quote blockquote { font-size: 20px; }
  .visual-process { grid-template-columns: 1fr; }
  .process-step::after { display: none; }
  .question-list { grid-template-columns: 1fr; }
  .builder-grid, .check-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .inline-cta { grid-template-columns: 1fr; }
  .inline-cta .download-link { justify-self: start; }
  .related-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid { gap: 25px; }
}

@media print {
  .site-nav, .mobile-nav, .reading-progress, .article-hero, .hero-media, .article-toc, .bottom-cta, .related, .site-footer, .inline-cta, .tool-controls, .tool-button, .review-box { display: none !important; }
  body { background: #fff; }
  .article-layout { display: block; max-width: none; padding: 0; }
  .article-body { color: #111; font-size: 11pt; line-height: 1.45; }
  .print-sheet { break-inside: avoid; border: 1px solid #777; box-shadow: none; }
  a { color: inherit; text-decoration: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
