/* Fraunces and Karla are loaded by a <link> in each page's <head>. */

:root {
  --cream: #F6F1E7;
  --cream-2: #FBF8F2;
  --ink: #22301F;
  --forest: #2E4632;
  --moss: #5C7A4E;
  --sage: #A8BC96;
  --sage-light: #E4EADC;
  --stone: #CDBFA0;
  /* Accessible variants: moss-text meets 4.5:1 for small text on cream,
     stone-deep meets 3:1 for form field borders */
  --moss-text: #52703F;
  --stone-deep: #8F8062;
  --max-width: 880px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Karla', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Fraunces', serif;
  color: var(--forest);
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

em, .accent-italic {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
}

p { margin: 0 0 1.1em; }
a { color: var(--moss-text); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 3px;
}

/* Skip link: hidden until focused with the keyboard */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 20;
  background: var(--forest); color: var(--cream-2);
  padding: 10px 18px; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem;
}
.skip-link:focus { top: 12px; text-decoration: none; }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* Nav */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: rgba(246, 241, 231, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--stone);
}
nav.wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
}
.wordmark {
  font-family: 'Fraunces', serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--forest);
  letter-spacing: 0.01em;
}
.wordmark:hover { text-decoration: none; }
nav ul {
  display: flex; gap: 28px; list-style: none; margin: 0; padding: 0;
}
nav a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
}
nav a.current { color: var(--forest); border-bottom: 1.5px solid var(--moss); }

@media (max-width: 640px) {
  nav.wrap { flex-wrap: wrap; gap: 8px 16px; padding: 14px 20px; }
  nav ul { flex-wrap: wrap; gap: 4px 16px; }
  nav a { font-size: 0.85rem; }
}

/* Eyebrow labels */
.eyebrow {
  font-family: 'Karla', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--moss-text);
  margin: 0 0 0.9em;
  display: block;
}

/* Sections */
section { padding: 72px 0; }
section.tight { padding: 48px 0; }
.divider {
  border: none; border-top: 1px solid var(--stone);
  margin: 0;
}

.hero {
  padding: 96px 0 64px;
  text-align: left;
}
.hero .lede {
  font-size: 1.2rem;
  color: var(--forest);
  max-width: 560px;
}
.hero-grid {
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
}
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.cta-row { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--forest); color: var(--cream-2); }
.btn-primary:hover { background: var(--moss); text-decoration: none; }
.btn-secondary { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-secondary:hover { background: var(--sage-light); text-decoration: none; }

.card {
  background: var(--cream-2);
  border: 1px solid var(--stone);
  border-radius: 16px;
  padding: 28px;
}
/* Compact cards in grids (pillars, organization types, next steps) */
.card-sm h3 { font-size: 1.05rem; }
.card-sm p { font-size: 0.92rem; }
.card-sm p:last-child { margin: 0; }

/* Small print under a button or form */
.note { font-size: 0.85rem; color: var(--moss-text); margin-top: 14px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 760px) {
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
}

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 14px 0 14px 44px;
  border-bottom: 1px solid var(--sage-light);
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 12px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--sage-light);
  color: var(--forest);
  font-family: 'Karla', sans-serif; font-weight: 700; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}

blockquote {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--forest);
  border-left: 3px solid var(--sage);
  margin: 1.5em 0;
  padding: 0.2em 0 0.2em 24px;
}

footer.site {
  border-top: 1px solid var(--stone);
  padding: 40px 0;
  margin-top: 40px;
}
footer.site .wrap {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
footer.site p { margin: 0; color: var(--moss-text); font-size: 0.9rem; }

/* Forms */
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; color: var(--forest); }
input, textarea, select {
  width: 100%;
  font-family: 'Karla', sans-serif;
  font-size: 1rem;
  padding: 11px 14px;
  border: 1.5px solid var(--stone-deep);
  border-radius: 10px;
  background: var(--cream-2);
  color: var(--ink);
  margin-bottom: 18px;
}
textarea { min-height: 120px; resize: vertical; }

.price-tag {
  font-family: 'Fraunces', serif;
  font-size: 2.4rem;
  color: var(--forest);
  font-weight: 600;
}
.price-tag span { font-size: 1rem; font-family: 'Karla', sans-serif; color: var(--moss-text); font-weight: 500; }

.badge {
  display: inline-block;
  background: var(--sage-light);
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
