/* ==========================================================================
   Standfast — design system
   Calm, institutional, reassuring. Generous type. No alarm colours.
   ========================================================================== */

:root {
  /* Palette — heritage green, warm paper, soft sand. Deliberately un-alarming. */
  --green-900: #16302A;
  --green-800: #1F423A;
  --green-700: #2C5B4F;
  --green-600: #3A7264;
  --green-500: #4E8B7B;
  --green-200: #BFD8D0;
  --green-100: #DDEAE5;
  --green-050: #EEF5F2;

  --ink: #16211E;
  --ink-soft: #384540;
  --muted: #5F6F69;
  --muted-light: #8A9993;

  --paper: #FBF8F3;
  --paper-2: #F5F0E7;
  --sand: #E9DFCE;
  --sand-deep: #D8C9B0;
  --white: #FFFFFF;

  --amber: #B7772C;
  --amber-soft: #F6EBDA;
  --rule: #E3DCCF;
  --rule-strong: #D2C8B6;

  /* Type */
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  /* Space */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  --maxw: 1160px;
  --readw: 720px;

  --radius: 10px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(22,48,42,.06), 0 2px 8px rgba(22,48,42,.05);
  --shadow-md: 0 2px 4px rgba(22,48,42,.05), 0 12px 32px -8px rgba(22,48,42,.14);
  --shadow-lg: 0 4px 8px rgba(22,48,42,.05), 0 28px 60px -16px rgba(22,48,42,.20);
}

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

/* [hidden] must beat our own display rules (.stepdots is display:flex) */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;              /* generous base — volunteer committee members */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--green-900);
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 4.6vw, 3.75rem); line-height: 1.08; }
h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 1.8vw, 1.55rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 var(--s-4); }
p.lead {
  font-size: clamp(1.2rem, 1.7vw, 1.42rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-900); }

strong { font-weight: 650; color: var(--green-900); }

hr { border: 0; border-top: 1px solid var(--rule); margin: var(--s-7) 0; }

::selection { background: var(--green-100); }

/* --------------------------------------------------------------- layout */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s-6); }
.wrap-narrow { max-width: 860px; margin: 0 auto; padding: 0 var(--s-6); }
.read { max-width: var(--readw); }

.section { padding: var(--s-9) 0; }
.section-sm { padding: var(--s-8) 0; }
.section--paper2 { background: var(--paper-2); }
.section--green { background: var(--green-900); color: var(--green-100); }
.section--green h2, .section--green h3 { color: var(--white); }

.eyebrow {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--green-600);
  margin: 0 0 var(--s-3);
}
.section--green .eyebrow { color: var(--green-200); }

/* --------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,248,243,.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px var(--s-6);
  display: flex; align-items: center; gap: var(--s-5);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand__mark { width: 30px; height: 34px; flex: none; }
.brand__name {
  font-family: var(--serif); font-size: 1.42rem; font-weight: 600;
  color: var(--green-900); letter-spacing: -0.02em;
}
.brand__name em { font-style: normal; color: var(--green-600); }

.nav { margin-left: auto; display: flex; align-items: center; gap: var(--s-5); }
.nav a {
  font-size: .96rem; font-weight: 500; color: var(--ink-soft); text-decoration: none;
}
.nav a:hover { color: var(--green-700); }
/* nav link colour must not win over button colour */
.nav a.btn--primary, .nav a.btn--primary:hover { color: var(--white); }
.nav a.btn--ghost { color: var(--green-800); }

@media (max-width: 780px) {
  .nav .nav-hide { display: none; }
}

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-size: 1.02rem; font-weight: 600;
  padding: 15px 26px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
  line-height: 1.2;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--green-700); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--green-800); color: var(--white); box-shadow: var(--shadow-md); }

.btn--ghost { background: transparent; color: var(--green-800); border-color: var(--rule-strong); }
.btn--ghost:hover { background: var(--white); border-color: var(--green-500); color: var(--green-900); }

.btn--light { background: var(--white); color: var(--green-900); box-shadow: var(--shadow-sm); }
.btn--light:hover { background: var(--green-050); color: var(--green-900); }

.btn--lg { font-size: 1.1rem; padding: 18px 32px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

/* --------------------------------------------------------------- cards */
.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
  box-shadow: var(--shadow-sm);
}

.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- footer */
.site-footer {
  background: var(--green-900); color: var(--green-200);
  padding: var(--s-8) 0 var(--s-6);
  font-size: .95rem;
}
.site-footer a { color: var(--green-100); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer .brand__name { color: var(--white); }
.site-footer .brand__name em { color: var(--green-200); }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: var(--s-6);
  padding-bottom: var(--s-6); border-bottom: 1px solid rgba(255,255,255,.12);
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--white); font-family: var(--sans); font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: var(--s-3); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-legal {
  padding-top: var(--s-5); font-size: .86rem; color: var(--green-200);
  display: flex; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap;
  opacity: .8;
}
.footer-parent {
  padding-top: var(--s-4); font-size: .82rem; letter-spacing: .01em;
  color: var(--green-200); opacity: .55;
}
.footer-parent a { color: inherit; border-bottom: 1px solid rgba(255,255,255,.22); }
.footer-parent a:hover { color: var(--white); text-decoration: none; }

/* --------------------------------------------------------------- misc */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--green-050); color: var(--green-800);
  border: 1px solid var(--green-100);
  padding: 6px 13px; border-radius: 999px;
  font-size: .84rem; font-weight: 600; letter-spacing: .01em;
}
.pill--sand { background: var(--amber-soft); border-color: #EBD9BE; color: #8A5A1E; }
.pill--free { background: var(--green-700); color: var(--white); border-color: var(--green-700); }

.note {
  background: var(--amber-soft);
  border-left: 3px solid var(--amber);
  padding: var(--s-4) var(--s-5);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .98rem;
  color: #6E4A19;
}
.note strong { color: #5A3B12; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.fade-up { animation: fadeUp .5s cubic-bezier(.2,.7,.3,1) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
