:root {
  /* Tweakable accent: recolours hero, buttons, badges and footer together */
  --accent: #2F4A3A;
  --offwhite: #FAF7F0;
  --pale-sage: #EEF1E9;
  --sage: #E4E9DF;
  --charcoal: #2B2E2B;
  --muted-green: #4A5F44;
  --text-soft: #4D524D;
  --line: rgba(43, 46, 43, 0.12);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--offwhite);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; color: inherit; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid #8FB59A; outline-offset: 3px; border-radius: 6px; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; scroll-margin-top: 64px; }
.bg-sage { background: var(--sage); }

.label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-green);
  margin-bottom: 16px;
}
.h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.15; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  border-radius: 999px;
  font: 500 15px/1 var(--sans);
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--offwhite); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 85%, black); }
.btn-outline { border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent); }
.btn-outline:hover { border-color: var(--accent); background: rgba(47, 74, 58, 0.06); }
.btn-light { background: var(--offwhite); color: var(--accent); }
.btn-light:hover { background: #fff; }
.btn-ghost-light { border-color: rgba(250, 247, 240, 0.4); color: var(--offwhite); }
.btn-ghost-light:hover { border-color: var(--offwhite); background: rgba(250, 247, 240, 0.08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 18px; font-weight: 500; text-decoration: none; }
.wordmark::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a { text-decoration: none; font-size: 14px; padding: 0 12px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px; color: var(--charcoal); }
.nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.nav a.btn { color: var(--offwhite); min-height: 44px; padding: 0 20px; margin-left: 8px; }
.nav a.btn:hover { text-decoration: none; }

/* Hero */
.hero { background: var(--accent); color: var(--offwhite); padding: 112px 0 120px; }
.hero .label { color: rgba(250, 247, 240, 0.75); }
.hero h1 { font-size: clamp(44px, 6.6vw, 80px); line-height: 1.04; max-width: 780px; margin-bottom: 28px; }
.hero p.lead { font-size: 18px; max-width: 560px; color: rgba(250, 247, 240, 0.88); margin-bottom: 36px; }

/* Two-column intro */
.split { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.split > .left { flex: 1 1 340px; }
.split > .right { flex: 1 1 420px; color: var(--text-soft); }
.split > .right p + p { margin-top: 16px; }

/* Pillars */
.cards { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 64px; }
.pillar { flex: 1 1 220px; background: var(--pale-sage); border-radius: 16px; padding: 28px 24px; }
.pillar .num { font-family: var(--serif); font-size: 14px; color: var(--muted-green); margin-bottom: 14px; }
.pillar h3 { font-size: 22px; margin-bottom: 10px; }
.pillar p { font-size: 15px; color: var(--text-soft); }

/* Thank-you */
.badge-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.badge-row .label { margin: 0; }
.badge { background: var(--accent); color: var(--offwhite); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.thanks { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; }
.thanks .text { flex: 1 1 440px; }
.thanks .text .h2 { margin-bottom: 20px; }
.thanks .text > p { color: var(--text-soft); margin-bottom: 28px; }
.thanks .aside { flex: 1 1 340px; display: flex; flex-direction: column; gap: 16px; }
.steps { list-style: none; margin: 0 0 32px; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; color: var(--text-soft); }
.steps li strong { color: var(--charcoal); font-weight: 600; }
.step-num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--offwhite); display: grid; place-items: center; font-size: 13px; font-weight: 600; margin-top: 1px; }
.photo { background: #CBD5C4; border-radius: 16px; aspect-ratio: 16 / 10; display: grid; place-items: center; text-align: center; padding: 24px; font-size: 13px; color: var(--muted-green); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.sample { background: var(--offwhite); border-radius: 16px; padding: 28px; }
.sample .label { font-size: 11px; margin-bottom: 10px; }
.sample blockquote { margin: 0; font-family: var(--serif); font-size: 19px; line-height: 1.45; }

/* Get involved */
.involve-grid { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 64px; }
.involve { flex: 1 1 400px; background: var(--pale-sage); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; }
.involve h3 { font-size: 24px; margin-bottom: 12px; }
.involve p { color: var(--text-soft); font-size: 15px; margin-bottom: 24px; flex: 1; }
.text-link { align-self: flex-start; font-size: 15px; font-weight: 500; color: var(--accent); text-decoration: none; border-bottom: 1.5px solid color-mix(in srgb, var(--accent) 35%, transparent); padding: 10px 0 4px; transition: border-color .2s; }
.text-link:hover { border-bottom-color: var(--accent); }

/* Contact */
.contact-list { flex: 1 1 420px; list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list .k { font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-green); }
.contact-list .v { font-family: var(--serif); font-size: 20px; text-decoration: none; }
.contact-list a.v { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent); text-underline-offset: 5px; }
.contact-list a.v:hover { text-decoration-color: var(--accent); }
#contact .left p { color: var(--text-soft); margin-top: 20px; max-width: 420px; }

/* Footer */
.site-footer { background: var(--accent); color: var(--offwhite); padding: 40px 0; }
.site-footer .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer .tag { font-family: var(--serif); font-size: 20px; }
.site-footer small { font-size: 13px; color: rgba(250, 247, 240, 0.75); }

/* Inline links in body copy */
.steps a { color: var(--accent); text-underline-offset: 3px; }
.nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

/* Thank-you page */
.page-intro { padding: 88px 0 72px; }
.page-intro h1 { font-size: clamp(40px, 5.6vw, 64px); line-height: 1.06; margin-bottom: 20px; }
.page-intro .lead { font-size: 18px; max-width: 620px; color: var(--text-soft); }
.form-section .thanks { align-items: flex-start; }
.form-section .steps { margin-bottom: 32px; }
.form-card { background: var(--offwhite); border-radius: 16px; padding: 32px; box-shadow: 0 1px 2px rgba(43,46,43,0.04); }
.field { margin-bottom: 22px; }
.field label { display: block; font-weight: 500; font-size: 15px; margin-bottom: 8px; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.counter { font-size: 12px; color: var(--muted-green); }
.field input, .field select, .field textarea {
  width: 100%; font: 16px/1.5 var(--sans); color: var(--charcoal);
  background: #fff; border: 1.5px solid #C9D1C3; border-radius: 12px;
  padding: 12px 14px; min-height: 48px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,74,58,0.15); }
.field [aria-invalid="true"] { border-color: #A3402F; }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.select-wrap::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--muted-green); border-bottom: 1.5px solid var(--muted-green); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.check { display: inline-flex !important; align-items: center; gap: 8px; font-weight: 400 !important; font-size: 14px !important; color: var(--text-soft); cursor: pointer; min-height: 32px; margin-bottom: 8px !important; }
.check input { width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; accent-color: var(--accent); cursor: pointer; }
.field input:disabled { background: var(--pale-sage); color: var(--text-soft); cursor: not-allowed; }
.hint { font-size: 13px; color: var(--text-soft); margin-top: 6px; }
.error { font-size: 13px; color: #A3402F; margin-top: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .65; cursor: progress; transform: none; }
.form-status { font-size: 14px; margin-top: 14px; }
.form-status.is-error { color: #A3402F; }
.form-status:empty { display: none; }
.form-success { text-align: left; }
.form-success:focus { outline: none; }
.success-mark { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--offwhite); font-size: 20px; margin-bottom: 18px; }
.form-success h2 { font-size: 28px; line-height: 1.2; margin-bottom: 12px; }
.form-success p { color: var(--text-soft); margin-bottom: 24px; }
@media (max-width: 640px) {
  .page-intro { padding: 64px 0 48px; }
  .form-card { padding: 24px 20px; }
}

/* Side rail */
.rail {
  position: fixed; right: 28px; top: 50%; transform: translateY(-50%);
  z-index: 40; display: none;
  opacity: 0; pointer-events: none; transition: opacity .35s ease;
}
.rail.visible { opacity: 1; pointer-events: auto; }
.rail ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.rail a {
  display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  min-height: 32px; text-decoration: none; color: var(--muted-green);
  font-size: 12px; font-weight: 500;
}
.rail .rail-label { opacity: 0; transform: translateX(6px); transition: opacity .2s, transform .2s; background: rgba(250, 247, 240, 0.95); padding: 3px 10px; border-radius: 999px; white-space: nowrap; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.rail a:hover .rail-label, .rail a:focus-visible .rail-label, .rail a.active .rail-label { opacity: 1; transform: none; }
.rail .dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--muted-green); background: transparent; transition: background .2s, transform .2s; flex: none; margin: 0 4px; }
.rail a.active .dot { background: var(--accent); border-color: var(--accent); transform: scale(1.25); }
.rail a.active { color: var(--accent); }
@media (min-width: 1180px) { .rail { display: block; } }

/* Phone */
@media (max-width: 640px) {
  section { padding: 72px 0; }
  .hero { padding: 80px 0 88px; }
  .hero p.lead { font-size: 17px; }
  .site-header { position: static; }
  .site-header .container { justify-content: center; }
  .nav { justify-content: center; }
  .nav a { padding: 0 10px; font-size: 13.5px; }
  .involve { padding: 26px; }
  .contact-list .v { font-size: 18px; }
  .split > .right, .split > .left, .thanks .text, .thanks .aside, .contact-list, .involve { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
