/* Marketing site: "Sage & Linen" direction. */
:root {
  --linen: #eef0e8;
  --paper: #f6f7f1;
  --ink: #1f2a22;
  --body: #46544a;
  --muted: #5b675e;
  --sage: #2f5a43;
  --sage-deep: #1f3f2e;
  --sage-mist: #c9d3c0;
  --line: #d9ded2;
  --line-2: #cdd4c6;
  --on-sage: #eef0e8;
  --on-sage-soft: #d8e1d3;
  --clay: #a3402c;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.65 Figtree, system-ui, sans-serif; color: var(--ink); background: var(--linen); }
a { color: var(--sage); }
a:hover { color: var(--sage-deep); }
img { max-width: 100%; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.narrow { max-width: 780px; }
.serif { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; }
h1, h2, h3 { margin: 0; }
h1.display { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: clamp(54px, 8vw, 116px); line-height: .95; letter-spacing: -.02em; }
h1.page-title { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: clamp(46px, 6.5vw, 88px); line-height: 1; letter-spacing: -.02em; max-width: 16ch; }
h2.section { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: clamp(38px, 4.6vw, 58px); line-height: 1.02; }
h3 { font-size: 20px; font-weight: 600; line-height: 1.3; }
em.sage { color: var(--sage); }
.kicker { margin: 0; font-size: 14px; font-weight: 700; color: var(--sage); letter-spacing: .08em; text-transform: uppercase; }
.lede { margin: 0; font-size: 20px; line-height: 1.6; color: var(--body); max-width: 38rem; }
.muted { color: var(--muted); }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

header.site { padding-top: 24px; padding-bottom: 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: "Instrument Serif", Georgia, serif; font-size: 28px; }
.logo svg { color: var(--sage); }
header.site nav { display: flex; align-items: center; gap: 6px 26px; flex-wrap: wrap; font-size: 15px; font-weight: 500; }
header.site nav a { color: #46544a; text-decoration: none; padding: 6px 0; }
header.site nav a:hover { color: var(--ink); }
header.site nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--sage); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 26px; border-radius: 10px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-family: inherit; }
.btn-sage { background: var(--sage); color: #f6f7f1 !important; padding: 6px 20px !important;}
.btn-sage:hover { background: var(--sage-deep); }
.btn-linen { background: var(--linen); color: var(--sage) !important; }
.btn-outline { border-color: var(--sage); color: var(--sage) !important; background: transparent; }
.btn-small { min-height: 44px; padding: 10px 20px; font-size: 15px; }
.textlink { color: var(--sage); font-weight: 600; text-decoration: underline; text-underline-offset: 5px; padding: 14px 6px; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

section { padding: 96px 0; }
section.tight { padding: 64px 0; }
.paper { background: var(--paper); }
.sage-band { background: var(--sage); color: var(--on-sage); }
.sage-band h2, .sage-band h3 { color: var(--on-sage); }
.sage-band p { color: var(--on-sage-soft); }
.sage-band a:not(.btn) { color: var(--on-sage); }

.hero { padding: 48px 0 80px; display: flex; flex-direction: column; gap: 48px; }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; align-items: end; }
.photo { border-radius: 18px; background: var(--sage-mist); display: flex; align-items: flex-end; padding: 24px; font-size: 14px; color: #3c4a40; min-height: 420px; }
.photo.short { min-height: 320px; }
.photo picture, .photo img { display: block; width: 100%; height: auto; }
.trust { display: flex; gap: 12px 28px; padding-top: 20px; border-top: 1px solid var(--line-2); font-size: 14px; color: var(--muted); flex-wrap: wrap; margin-top: 8px; }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 64px; align-items: start; }
.split.center { align-items: center; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack-lg { display: flex; flex-direction: column; gap: 36px; }

.ritual { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid var(--line); }
.ritual .n { font-family: "Instrument Serif", Georgia, serif; font-size: 34px; color: var(--sage); line-height: 1; }
.ritual p { margin: 6px 0 0; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.cards.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.linen .card, section:not(.paper) > .wrap > .cards .card { background: var(--paper); }
.paper .card { background: #fbfcf8; }
.card .label { font-size: 13px; font-weight: 700; color: var(--sage); letter-spacing: .06em; text-transform: uppercase; }
.card .quote { margin: 0; font-family: "Instrument Serif", Georgia, serif; font-size: 25px; line-height: 1.28; }
.card p { margin: 0; color: var(--body); }
.card ul { margin: 0; padding-left: 20px; color: var(--body); }
.card li + li { margin-top: 8px; }
.card .big { font-family: "Instrument Serif", Georgia, serif; font-size: 44px; line-height: 1; color: var(--sage); }

.levels { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.level { display: grid; grid-template-columns: 180px 110px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.level .name { font-family: "Instrument Serif", Georgia, serif; font-size: 30px; }
.level .range { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.level p { margin: 0; color: var(--body); }

.toc { display: flex; flex-wrap: wrap; gap: 10px; }
.toc a { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; color: var(--ink); font-size: 15px; background: var(--paper); }
.toc a:hover { border-color: var(--sage); }

.habit { scroll-margin-top: 24px; padding: 40px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 40px; }
.habit h3 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 36px; line-height: 1.05; }
.habit ol { margin: 0; padding: 0; list-style: none; counter-reset: t; display: grid; gap: 14px; }
.habit li { counter-increment: t; display: grid; grid-template-columns: 34px 1fr; gap: 12px; color: var(--body); }
.habit li::before { content: counter(t); width: 28px; height: 28px; border-radius: 50%; background: rgba(47, 90, 67, .12); color: var(--sage); display: grid; place-items: center; font-size: 14px; font-weight: 700; margin-top: 2px; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.step { counter-increment: s; padding: 28px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.step::before { content: counter(s, decimal-leading-zero); display: block; font-family: "Instrument Serif", Georgia, serif; font-size: 38px; color: var(--sage); line-height: 1; margin-bottom: 14px; }
.step p { margin: 8px 0 0; color: var(--body); }

.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-size: 19px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 28px; font-weight: 300; color: var(--sage); }
.faq details[open] summary::after { content: "–"; }
.faq summary:focus-visible { outline: 2px solid var(--sage); outline-offset: 4px; border-radius: 4px; }
.faq .answer { padding: 0 0 22px; color: var(--body); max-width: 46rem; }
.faq .answer p:last-child { margin: 0; }

.notice { border-radius: 16px; padding: 26px 28px; background: #f6e3dc; border: 1px solid #e3b9ab; color: #4a2219; }
.notice h2, .notice h3 { color: #4a2219; }
.notice a { color: #7d2c1c; font-weight: 600; }
.draft { border-radius: 12px; padding: 14px 18px; background: #f5ecd7; border: 1px solid #e2cfa3; color: #4f3f1a; font-size: 15px; }

.prose { max-width: 46rem; }
.prose h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 36px; margin: 48px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--body); }
.prose ul { padding-left: 22px; }
.prose li + li { margin-top: 6px; }

.cta { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 110px 0; }
.cta h2 { font-size: clamp(46px, 6vw, 84px); line-height: 1; }

footer.site { border-top: 1px solid var(--line-2); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer-grid h2 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; font-family: Figtree, sans-serif; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--body); text-decoration: none; font-size: 15px; }
.footer-grid a:hover { color: var(--sage); text-decoration: underline; }
.footer-company { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.footer-company a { color: inherit; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .habit { grid-template-columns: 1fr; gap: 18px; }
  .level { grid-template-columns: 1fr auto; }
  .level p { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  section { padding: 64px 0; }
  .photo { min-height: 260px; }
  header.site nav { gap: 4px 18px; }
}

/* Language switcher */
.lang-switch { display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px; border: 1px solid rgba(31, 42, 34, .18); }
.lang-switch a { min-width: 34px; min-height: 30px; display: inline-grid; place-items: center; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-decoration: none; color: inherit; opacity: .7; box-shadow: none !important; }
.lang-switch a:hover { opacity: 1; }
.lang-switch a[aria-current="true"] { background: #2f5a43; color: #f6f7f1; opacity: 1; }

/* Journal (blog) */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.post-card { background: #fbfcf8; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.post-cover { display: block; aspect-ratio: 16 / 10; background: var(--sage-mist); overflow: hidden; }
.post-cover img, .post-cover svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.post-body h2, .post-body h3 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 28px; line-height: 1.12; }
.post-body h3 { font-size: 24px; }
.post-body h2 a, .post-body h3 a { color: var(--ink); text-decoration: none; }
.post-body h2 a:hover, .post-body h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.post-body p { margin: 0; color: var(--body); font-size: 16px; }
.post-meta { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--sage); }
.post-hero { margin: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 21 / 9; background: var(--sage-mist); }
.post-hero img, .post-hero svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-body { padding-top: 40px; font-size: 18px; }
.article-body h2 { font-size: 34px; margin: 40px 0 12px; }
.article-body img { border-radius: 14px; margin: 12px 0; }
.article-body blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--sage); font-family: "Instrument Serif", Georgia, serif; font-size: 24px; color: var(--ink); }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 36px; }
.toc a[aria-current="page"] { background: var(--sage); color: #f6f7f1; border-color: var(--sage); }

/* Newsletter */
.newsletter { background: var(--sage); color: var(--on-sage); border-radius: 22px; padding: 44px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 28px; align-items: center; }
.newsletter h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 40px; line-height: 1.05; color: var(--on-sage); }
.newsletter p { margin: 0; color: var(--on-sage-soft); }
.newsletter form { display: flex; flex-direction: column; gap: 10px; }
.newsletter .row { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter input[type=email] { flex: 1; min-width: 220px; min-height: 50px; padding: 12px 16px; border-radius: 10px; border: 0; font: inherit; color: var(--ink); background: #fbfcf8; }
.newsletter input[type=email]:focus { outline: 3px solid #c9d3c0; }
.newsletter small { color: var(--on-sage-soft); font-size: 13px; }
.newsletter .notice-ok { background: rgba(238, 240, 232, .14); border-radius: 10px; padding: 12px 14px; color: var(--on-sage); }
.newsletter .error { color: #ffd9cf; font-size: 14px; }
.newsletter .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--on-sage-soft); cursor: pointer; }
.newsletter .consent input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: #fbfcf8; }
.newsletter .consent a { color: var(--on-sage); text-decoration: underline; }

/* Forms (contact, join the care team) */
.form .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form label { font-weight: 600; font-size: 15px; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form input[type=number], .form select, .form textarea { font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; min-height: 48px; width: 100%; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--sage); outline-offset: 1px; }
.form .row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form .error-text { color: var(--clay); font-size: 14px; margin: 0; }
.inline-check { display: flex; gap: 10px; align-items: center; font-weight: 400 !important; margin: 6px 0; }
.inline-check input { width: 20px; height: 20px; accent-color: var(--sage); flex-shrink: 0; }

/* Resources */
.resource-cover { display: flex; align-items: center; justify-content: center; height: 300px; padding: 22px; background: var(--sage-mist); overflow: hidden; }
.resource-cover img { max-height: 100%; max-width: 100%; width: auto; height: auto; border-radius: 6px; box-shadow: 0 10px 28px -14px rgba(31, 42, 34, .45); }
.resource-cover svg { width: 100%; height: 100%; }
.resource-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.resource-actions .btn { gap: 8px; }
.resource-size { font-weight: 400; font-size: 13px; opacity: .8; }
