/* Life Unburdened — site styles */

:root {
  --ink: #22303a;
  --ink-soft: #4d5d63;
  --pine: #2f5d50;
  --pine-dark: #1f4439;
  --pine-tint: #e4eee9;
  --sand: #f7f2e8;
  --sand-deep: #ece3d0;
  --paper: #fffdf8;
  --gold: #e8a93a;
  --gold-deep: #b97a12;
  --clay: #a8543a;
  --line: #e0d6c2;
  --danger: #a3372a;
  --danger-tint: #f9e6e2;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(34, 48, 58, .06), 0 8px 24px rgba(34, 48, 58, .08);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Source Sans Pro", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1120px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

img, svg { max-width: 100%; }
img { height: auto; }
.img-fluid { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--pine-dark);
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }

a { color: var(--pine); text-underline-offset: .18em; }
a:hover { color: var(--clay); }

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

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 46rem); margin-inline: auto; }
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section--paper { background: var(--paper); }
.center { text-align: center; }
.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-deep); margin: 0 0 .8rem;
}
.lede { font-size: 1.25rem; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 248, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--pine-dark); }
.brand img { width: 40px; height: 40px; }
.brand span { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; letter-spacing: .01em; }
.brand:hover { color: var(--pine); }

.nav ul { list-style: none; display: flex; align-items: center; gap: .25rem; margin: 0; padding: 0; }
.nav a, .nav button {
  display: block; padding: .5rem .9rem; border-radius: 999px;
  font: inherit; font-size: 1rem; font-weight: 600; color: var(--ink);
  text-decoration: none; background: none; border: 0; cursor: pointer;
}
.nav a:hover, .nav button:hover { background: var(--pine-tint); color: var(--pine-dark); }
.nav a.is-active { background: var(--pine); color: #fff; }
.nav form { margin: 0; }
.nav-toggle {
  display: none; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper); color: var(--pine-dark); cursor: pointer; align-items: center; justify-content: center;
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: .75rem 1.25rem 1rem; }
  .nav a, .nav button { width: 100%; text-align: left; border-radius: 10px; padding: .75rem .9rem; }
}

/* ---------- Buttons ---------- */
.btn, input[type=submit], button[type=submit] {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.5rem; border-radius: 999px; border: 2px solid var(--pine);
  background: var(--pine); color: #fff !important;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:hover, input[type=submit]:hover, button[type=submit]:hover {
  background: var(--pine-dark); border-color: var(--pine-dark); transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(31, 68, 57, .25);
}
.btn--ghost { background: rgba(255, 253, 248, .75); color: var(--pine-dark) !important; }
.btn--ghost:hover { background: var(--paper); color: var(--pine-dark) !important; }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--ink) !important; }
.btn--gold:hover { background: #f0b850; border-color: #f0b850; }
.btn svg { width: 1.1em; height: 1.1em; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.nav button[type=submit] { border: 0; background: none; color: var(--ink) !important; padding: .5rem .9rem; box-shadow: none; transform: none; }
.nav button[type=submit]:hover { background: var(--pine-tint); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: #f4ead2 url("../img/hero-dawn.bcd0b15fca08.svg") center bottom / cover no-repeat;
  min-height: min(86vh, 760px);
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(15rem, 34vw, 24rem);
}
.hero__text { max-width: 40rem; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); color: var(--pine-dark); margin-bottom: 1.4rem; }
.hero .eyebrow { color: var(--clay); }

/* ---------- Interior page heading ---------- */
.page-head {
  position: relative;
  background: linear-gradient(180deg, #cfe2e0 0%, #f4ead2 70%, #f7dfb4 100%);
  padding: clamp(2.2rem, 5vw, 3.6rem) 0 clamp(3.6rem, 7vw, 5.4rem);
  text-align: center;
}
.page-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(36px, 6vw, 72px);
  background: url("../img/hills.9554e33d0bb3.svg") center bottom / 100% 100% no-repeat;
}
.page-head h1 { margin: 0 auto; max-width: 22em; }
.page-head p { margin: .7rem auto 0; max-width: 38rem; color: var(--ink-soft); }
.page-head .eyebrow { color: var(--clay); margin-bottom: .6rem; }
.page-head + .section { padding-top: clamp(2rem, 4vw, 3rem); }

/* ---------- Prose ---------- */
.prose { max-width: 44rem; margin-inline: auto; }
.prose > *:first-child { margin-top: 0; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose img { border-radius: var(--radius); display: block; margin: 1.5rem auto; box-shadow: var(--shadow); }
.prose blockquote {
  margin: 1.6rem 0; padding: .4rem 0 .4rem 1.4rem; border-left: 4px solid var(--gold);
  font-family: var(--font-display); font-size: 1.2rem; color: var(--pine-dark);
}
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1.1em; }
.prose--dropcap > p:first-of-type::first-letter,
.prose--dropcap > .custom-text-block:first-of-type > p:first-of-type::first-letter {
  font-family: var(--font-display); font-weight: 600; font-size: 3.7em; line-height: .82;
  float: left; padding: .08em .12em 0 0; color: var(--clay);
}
.custom-text-block p:last-child { margin-bottom: 1.1em; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }

a.card { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; }
a.card:hover { transform: translateY(-3px); border-color: var(--pine); box-shadow: 0 2px 4px rgba(34,48,58,.06), 0 14px 32px rgba(34,48,58,.14); color: inherit; }
a.card .more { margin-top: auto; padding-top: 1rem; font-weight: 600; color: var(--pine); display: inline-flex; align-items: center; gap: .4rem; }
a.card:hover .more { color: var(--clay); }
a.card .more svg { width: 1em; height: 1em; transition: transform .15s; }
a.card:hover .more svg { transform: translateX(3px); }

.icon-badge {
  width: 3.5rem; height: 3.5rem; border-radius: 16px; margin-bottom: 1.1rem;
  display: grid; place-items: center; background: var(--pine-tint); color: var(--pine);
}
.icon-badge svg { width: 1.9rem; height: 1.9rem; }
.icon-badge--gold { background: #fbefd4; color: var(--gold-deep); }
.icon-badge--clay { background: #f6e3db; color: var(--clay); }

.post-card time, .post-meta { font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep); }
.post-card h3 { margin-top: .35rem; font-size: 1.35rem; }
.post-card p { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 600; }

/* call to action band */
.band { background: var(--pine-dark); color: #e9f0ec; text-align: center; }
.band h2 { color: #fff; }
.band p { max-width: 38rem; margin-inline: auto; color: #cfdcd6; }
.band .btn-row { justify-content: center; margin-top: 1.6rem; }

/* ---------- Lessons ---------- */
.steps { list-style: none; display: flex; justify-content: center; gap: .4rem; padding: 0; margin: 1.4rem 0 0; flex-wrap: wrap; }
.steps li {
  display: flex; align-items: center; gap: .5rem; padding: .35rem .9rem .35rem .4rem; border-radius: 999px;
  background: rgba(255, 253, 248, .7); border: 1px solid var(--line); font-size: .95rem; font-weight: 600; color: var(--ink-soft);
}
.steps li b { width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; background: var(--sand-deep); color: var(--ink-soft); font-size: .85rem; }
.steps li.is-done b { background: var(--pine-tint); color: var(--pine); }
.steps li.is-current { background: var(--pine); border-color: var(--pine); color: #fff; }
.steps li.is-current b { background: var(--gold); color: var(--ink); }
@media (max-width: 620px) { .steps li span { display: none; } .steps li { padding: .3rem; } }

.lesson-body h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 1.4rem 0 1.2rem; }
.lesson-body img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }

.question-list { list-style: none; counter-reset: q; padding: 0; margin: 0; }
.question-list > li { counter-increment: q; position: relative; padding-left: 3rem; margin-bottom: 1.5rem; }
.question-list > li::before {
  content: counter(q); position: absolute; left: 0; top: .1rem; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--pine); color: #fff; font-weight: 600; font-size: .95rem;
}

/* ---------- Forms ---------- */
label { display: block; font-weight: 600; margin-bottom: .35rem; color: var(--ink); }
.asteriskField { color: var(--clay); margin-left: .15em; }

input[type=text], input[type=email], input[type=password], input[type=search], input[type=url], input[type=tel], input[type=number], select, textarea, .form-control {
  display: block; width: 100%; padding: .75rem .95rem;
  font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 9rem; resize: vertical; }
input:focus, select:focus, textarea:focus, .form-control:focus {
  outline: none; border-color: var(--pine); box-shadow: 0 0 0 4px rgba(47, 93, 80, .16);
}
::placeholder { color: #8a979b; }
.form-group, .form-row { margin-bottom: 1.2rem; }
.form-text, .helptext, .help { display: block; font-size: .9rem; color: var(--ink-soft); margin-top: .35rem; }
.helptext ul, .help ul { margin: .3rem 0 0; padding-left: 1.2rem; }
.is-invalid { border-color: var(--danger) !important; }
.invalid-feedback, .errorlist { display: block; color: var(--danger); font-size: .92rem; font-weight: 600; margin: .35rem 0 0; padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; margin: 0; }

.alert, .errornote {
  padding: .9rem 1.1rem; border-radius: 10px; margin: 0 0 1.2rem;
  background: var(--danger-tint); color: var(--danger); border: 1px solid #ecc4bc; font-weight: 600;
}
.alert-success, .note { background: var(--pine-tint); color: var(--pine-dark); border-color: #c5d9cf; }

.form-card { max-width: 34rem; margin-inline: auto; }
.split { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.split__art img { border-radius: 24px; width: 100%; box-shadow: var(--shadow); margin-bottom: 1.4rem; }
.fine { font-size: .82rem; color: var(--ink-soft); line-height: 1.5; margin-top: 1rem; }
.grecaptcha-badge { visibility: hidden; }

/* ---------- Volunteer / student conversation pages ---------- */
.student-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.student-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.25rem; background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  text-decoration: none; color: var(--ink); font-weight: 600; transition: border-color .15s, transform .15s;
}
.student-list a:hover { border-color: var(--pine); transform: translateX(3px); }
.pill { display: inline-block; padding: .15rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--gold); color: var(--ink); }
.avatar { width: 2.4rem; height: 2.4rem; border-radius: 50%; display: inline-grid; place-items: center; background: var(--pine-tint); color: var(--pine); font-weight: 600; margin-right: .8rem; flex: none; }
.student-list .who { display: flex; align-items: center; }

details.lesson {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1rem; overflow: hidden;
}
details.lesson > summary {
  list-style: none; cursor: pointer; padding: 1.05rem 1.4rem; display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--pine-dark);
}
details.lesson > summary::-webkit-details-marker { display: none; }
details.lesson > summary::after { content: "+"; font-family: var(--font-body); font-size: 1.5rem; line-height: 1; color: var(--pine); }
details.lesson[open] > summary::after { content: "–"; }
details.lesson[open] > summary { border-bottom: 1px solid var(--line); background: var(--pine-tint); }
.lesson__body { padding: 1.4rem; }
.qa { padding-bottom: 1.4rem; margin-bottom: 1.4rem; border-bottom: 1px dashed var(--line); }
.qa:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.qa__q { font-weight: 600; margin-bottom: .7rem; }
.bubble { max-width: 85%; padding: .65rem 1rem; border-radius: 16px; margin: 0 0 .5rem; background: var(--sand); border: 1px solid var(--line); line-height: 1.5; }
.bubble b { display: block; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.bubble--reply { margin-left: auto; background: var(--pine-tint); border-color: #c5d9cf; }
.qa input[type=text] { margin-top: .7rem; }

/* ---------- Search / pagination ---------- */
.search-form { display: flex; gap: .6rem; max-width: 36rem; margin: 0 auto 2rem; }
.result-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.pager { display: flex; justify-content: space-between; margin-top: 2rem; font-weight: 600; }

/* ---------- Message pages ---------- */
.message { text-align: center; }
.message img { width: min(100%, 380px); margin: 0 auto 1.6rem; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: #162f28; color: #cfdcd6; padding: 2.75rem 0 2rem; font-size: 1rem; }
.site-footer .wrap { display: grid; gap: 2rem; grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr; gap: 1.4rem; } }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .7rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .3rem; }
.site-footer a { color: #e9f0ec; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.site-footer .brand { color: #fff; margin-bottom: .8rem; }
.site-footer blockquote { margin: 0; font-family: var(--font-display); font-style: italic; color: #e9f0ec; max-width: 26rem; line-height: 1.5; }
.site-footer cite { display: block; margin-top: .4rem; font-family: var(--font-body); font-style: normal; font-size: .85rem; color: #a9beb5; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.14); padding-top: 1.2rem; font-size: .85rem; color: #a9beb5; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Keep the bench and tree in view on narrow screens */
@media (max-width: 760px) {
  .hero { background-position: 82% bottom; background-size: auto 62%; background-color: #b9d6da;
          background-image: url("../img/hero-dawn.bcd0b15fca08.svg"), linear-gradient(180deg, #d3e5e4 0%, #b9d6da 38%); padding-bottom: 17rem; min-height: 0; }
  .brand span { font-size: 1.1rem; }
}
