/* Community Service Handbook - single stylesheet */
:root {
  --bg: #f5f3ec;
  --surface: #ffffff;
  --ink: #1d2a25;
  --muted: #4c5c55;
  --green: #2e5e4e;
  --teal: #1f5f57;
  --teal-dark: #164842;
  --teal-soft: #e2efe9;
  --sun: #e3b866;
  --ochre: #8a5a14;
  --line: #d8dccf;
  --hill-1: #cfe1d4;
  --hill-2: #a9cbb8;
  --focus: #b8720f;
  --radius: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Ubuntu, Arial, sans-serif;
  --serif: Georgia, "Noto Serif", "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.25; color: var(--green); }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.6rem); margin: 0.2em 0 0.5em; }
h2 { font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.65rem); margin: 2em 0 0.6em; }
h3 { font-size: 1.15rem; margin: 1.6em 0 0.4em; color: var(--teal-dark); }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.35em; }
li { margin-bottom: 0.35em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 1rem; }
.wrap-narrow { width: 100%; max-width: calc(72ch + 2rem); margin: 0 auto; padding: 0 1rem; }

/* Skip link */
.skip-link {
  position: absolute; left: 0.75rem; top: -4rem; z-index: 100;
  background: var(--teal-dark); color: #fff; padding: 0.6rem 1rem; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 0.75rem; color: #fff; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); line-height: 1.1; font-size: 0.95rem; }
.brand strong { font-family: var(--serif); font-size: 1.2rem; color: var(--green); }
.brand:hover { color: var(--ink); }
.logo-mark { width: 40px; height: 40px; flex: none; }
.nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem; }
.nav li { margin: 0; }
.nav a { display: block; padding: 0.45rem 0.75rem; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 500; }
.nav a:hover { background: var(--teal-soft); color: var(--teal-dark); }
.nav a[aria-current="page"] { background: var(--teal); color: #fff; }

/* Hero */
.hero { position: relative; background: linear-gradient(180deg, #e7f0ea 0%, var(--bg) 100%); overflow: hidden; }
.hero-inner { padding-top: 3rem; padding-bottom: 7rem; position: relative; z-index: 1; max-width: 1120px; }
.hero h1 { max-width: 22ch; }
.hero-lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; font-weight: 700; color: var(--ochre); margin: 0; }
.hero-hills { position: absolute; left: 0; bottom: 0; width: 100%; height: 120px; display: block; }

.button {
  display: inline-block; margin: 0.25rem 0.5rem 0.25rem 0; padding: 0.7rem 1.2rem;
  background: var(--teal); color: #fff; border: 2px solid var(--teal); border-radius: 999px;
  text-decoration: none; font-weight: 600;
}
.button:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.button-ghost { background: transparent; color: var(--teal-dark); }
.button-ghost:hover { background: var(--teal-soft); color: var(--teal-dark); }

/* Sections and cards */
.section { padding-top: 1rem; padding-bottom: 2rem; }
.card-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.card { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; border-top: 4px solid var(--teal); }
.card h3 { margin: 0.5rem 0 0.4rem; font-size: 1.15rem; }
.card h3 a { color: var(--green); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.card-icon { width: 36px; height: 36px; color: var(--teal); }

.how-steps { counter-reset: how; list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.how-steps li { counter-increment: how; background: var(--teal-soft); border-radius: var(--radius); padding: 1rem 1.1rem 1rem 3.4rem; position: relative; margin: 0; }
.how-steps li::before { content: counter(how); position: absolute; left: 1rem; top: 1rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 0.9rem; }
.aside-note { font-size: 0.92rem; color: var(--muted); }

/* Page heads and breadcrumb */
.page-head { padding-top: 1.5rem; padding-bottom: 0.5rem; }
.page-lede { font-size: 1.12rem; color: var(--muted); max-width: 65ch; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0.5rem 0 0; display: flex; flex-wrap: wrap; font-size: 0.9rem; color: var(--muted); }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; padding: 0 0.5rem; color: var(--line); color: #8b978f; }

/* Guide list */
.guide-list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1rem; }
.guide-row { display: flex; gap: 1rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin: 0; }
.guide-row h2 { margin: 0 0 0.35rem; font-size: 1.3rem; }
.guide-row h2 a { color: var(--green); }
.guide-row p { margin: 0 0 0.4rem; }
.row-summary { color: var(--muted); font-size: 0.96rem; }
.row-icon { width: 40px; height: 40px; flex: none; color: var(--teal); margin-top: 0.2rem; }

/* Article */
.article { padding-bottom: 2.5rem; }
.article-head { padding: 1rem 0 0.5rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; }
.article-icon { width: 48px; height: 48px; color: var(--teal); }
.meta { font-size: 0.9rem; color: var(--muted); margin: 0; }
.lede { font-size: 1.15rem; }
.note { background: #fbf4e4; border-left: 5px solid var(--sun); padding: 1rem 1.1rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0; }
.note p:last-child { margin-bottom: 0; }

ol.steps { list-style: none; counter-reset: step; padding: 0; }
ol.steps > li { counter-increment: step; position: relative; padding: 0.15rem 0 0.15rem 2.75rem; margin-bottom: 0.85rem; }
ol.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0.1rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700; font-size: 0.9rem; display: grid; place-items: center; }

ul.checklist { list-style: none; padding: 0; }
ul.checklist > li { position: relative; padding-left: 2.1rem; margin-bottom: 0.6rem; }
ul.checklist > li::before { content: ""; position: absolute; left: 0; top: 0.25rem; width: 1.2rem; height: 1.2rem; border: 2px solid var(--teal); border-radius: 4px; background: var(--surface); }
ul.checklist > li::after { content: ""; position: absolute; left: 0.42rem; top: 0.38rem; width: 0.38rem; height: 0.7rem; border: solid var(--teal); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

.takeaways { background: var(--teal); color: #fff; border-radius: var(--radius); padding: 1.25rem 1.4rem; margin: 2.5rem 0 1.5rem; }
.takeaways h2 { color: #fff; margin-top: 0; }
.takeaways ul { margin: 0; }
.takeaways li { margin-bottom: 0.5rem; }

.related { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 1.25rem 1.4rem; margin-bottom: 1.5rem; }
.related h2 { margin-top: 0; font-size: 1.25rem; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { margin-bottom: 0.9rem; }
.related li:last-child { margin-bottom: 0; }
.related a { font-weight: 600; display: block; }
.related span { display: block; color: var(--muted); font-size: 0.95rem; }

/* Simple pages */
.prose-page { padding-top: 1.5rem; padding-bottom: 2.5rem; }
.contact-email { font-size: 1.2rem; background: var(--teal-soft); padding: 1rem 1.2rem; border-radius: var(--radius); }
.contact-email a { font-weight: 600; word-break: break-all; }
.notfound { text-align: center; padding-top: 3rem; }
.notfound .page-lede { margin-left: auto; margin-right: auto; }
.nf-art { width: 180px; height: auto; }

/* Footer */
.site-footer { background: var(--teal-dark); color: #e6f0ec; margin-top: 2rem; padding: 2rem 0 1.5rem; font-size: 0.95rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--sun); }
.site-footer :focus-visible { outline-color: var(--sun); }
.disclaimer { max-width: 75ch; border-left: 4px solid var(--sun); padding-left: 0.9rem; }
.footer-links { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.footer-links li { margin: 0; }
.copy { margin: 0; color: #c9dcd4; }

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .header-inner { justify-content: flex-start; }
  .nav a { padding: 0.4rem 0.6rem; }
  .hero-inner { padding-top: 2rem; padding-bottom: 5.5rem; }
  .hero-hills { height: 80px; }
  .guide-row { flex-direction: column; }
}

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

@media print {
  .site-header nav, .skip-link, .hero-hills, .button { display: none; }
  .takeaways { background: none; color: var(--ink); border: 2px solid var(--teal); }
  .takeaways h2 { color: var(--green); }
  .site-footer { background: none; color: var(--ink); }
  .site-footer a { color: var(--ink); }
}
