:root {
  --paper: #f7f4ed;
  --card: #ffffff;
  --band: #efede6;
  --ink: #28271f;
  --ink-soft: #5d5a51;
  --green: #315b43;
  --green-hover: #27493a;
  --on-green: #f7f4ed;
  --sage: #4d5b38;
  --line: rgba(64, 62, 49, 0.16);
  --note: #fff6dc;
  --note-line: #b8902f;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #181715;
    --card: #1f1f1f;
    --band: #22211e;
    --ink: #eeebe2;
    --ink-soft: #bdb9ad;
    --green: #4f8a68;
    --green-hover: #5f9b78;
    --on-green: #10140f;
    --sage: #a7b693;
    --line: rgba(238, 235, 226, 0.16);
    --note: #2e2a1c;
    --note-line: #b8902f;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 1.06rem/1.6 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: var(--green); }
h1, h2, h3, .brand span { font-family: Georgia, "Times New Roman", serif; }

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  max-width: 64rem;
  margin: 0 auto;
  padding: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.65rem; color: var(--ink); text-decoration: none; font-size: 1.2rem; font-weight: 700; }
.brand img { border-radius: 0.6rem; }
.top nav { display: flex; gap: 1.1rem; }
.top nav a { color: var(--ink-soft); font-weight: 650; text-decoration: none; }
.top nav a:hover { color: var(--green); }

main section { max-width: 64rem; margin: 0 auto; padding: 3rem 1rem; }
main section.band { max-width: none; background: var(--band); }
main section.band > * { max-width: 62rem; margin-left: auto; margin-right: auto; }

.hero { padding-top: 3.5rem; padding-bottom: 4rem; }
.eyebrow { margin: 0 0 0.5rem; color: var(--sage); font-size: 0.85rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
h1 { margin: 0 0 1rem; font-size: clamp(2.1rem, 6vw, 3.4rem); line-height: 1.12; font-weight: 500; }
h2 { margin: 0 0 1.25rem; font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 500; }
h3 { margin: 0 0 0.35rem; font-size: 1.25rem; font-weight: 600; }
.lead { max-width: 42rem; font-size: 1.18rem; color: var(--ink-soft); }
.small { color: var(--ink-soft); font-size: 0.92rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 0.75rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  border: 2px solid var(--green);
  border-radius: 0.8rem;
  color: var(--green);
  font-weight: 750;
  text-decoration: none;
}
.button.primary { color: var(--on-green); background: var(--green); }
.button:hover { border-color: var(--green-hover); background: var(--green-hover); color: var(--on-green); }

.mission {
  margin: 0 0 1.5rem;
  padding: 1.25rem 1.5rem;
  border-left: 5px solid var(--green);
  border-radius: 0 0.8rem 0.8rem 0;
  background: var(--card);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  line-height: 1.5;
}
.mission p { margin: 0; }
.ref { color: var(--ink-soft); font-size: 0.9rem; white-space: nowrap; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; padding: 0; list-style: none; counter-reset: step; }
.steps li { padding: 1.25rem; border: 1px solid var(--line); border-radius: 0.9rem; background: var(--card); counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2rem; height: 2rem; margin-bottom: 0.6rem; border-radius: 50%; color: var(--on-green); background: var(--green); font-weight: 800; }
.steps p { margin: 0; color: var(--ink-soft); }

.story p { max-width: 44rem; }
.draft-note { padding: 1rem 1.25rem; border: 2px dashed var(--note-line); border-radius: 0.8rem; background: var(--note); }

footer { max-width: 64rem; margin: 0 auto; padding: 2.5rem 1rem 3rem; border-top: 1px solid var(--line); text-align: center; }
footer p { margin: 0.35rem 0; }

@media (max-width: 30rem) {
  .top nav { width: 100%; justify-content: space-between; }
  .actions .button { flex: 1 1 100%; }
}
