/* Layout: single column, left-aligned editorial rows; services as a two-column index like a school improvement plan */
:root {
  --bg: #f5f7f6;
  --surface: #ffffff;
  --ink: #14232a;
  --muted: #52646b;
  --line: #d7dfdc;
  --accent: #1d6b58;
  --accent-ink: #ffffff;
  --mark: #f0c14b;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1a1e; --surface: #15242a; --ink: #e6eeeb; --muted: #9fb2b0;
    --line: #26393f; --accent: #5cc3a5; --accent-ink: #0b1a16; --mark: #e2b443;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1a1e; --surface: #15242a; --ink: #e6eeeb; --muted: #9fb2b0;
  --line: #26393f; --accent: #5cc3a5; --accent-ink: #0b1a16; --mark: #e2b443;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 72rem; margin: 0 auto; padding-inline: clamp(1rem, 4vw, 2.5rem); }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--mark); outline-offset: 2px;
}
h1, h2, h3 { font-family: var(--display); line-height: 1.1; text-wrap: balance; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
.eyebrow { font: 500 0.75rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.9rem; flex-wrap: wrap; }
.brand { display: flex; align-items: baseline; gap: 0.5rem; text-decoration: none; color: var(--ink); }
.brand b { font: 700 1.2rem/1 var(--display); }
.brand span { font: 400 0.8rem/1 var(--mono); color: var(--muted); }
.nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav a:hover { color: var(--accent); }

/* Hero */
.hero { padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4.5rem); }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); font-weight: 700; max-width: 18ch; margin-top: 1rem; }
.hero h1 mark { background: linear-gradient(transparent 62%, var(--mark) 62%); color: inherit; padding: 0 0.05em; }
.hero p.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 58ch; margin-top: 1.5rem; }
.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 2rem; }
.btn { display: inline-block; padding: 0.8rem 1.25rem; border-radius: 6px; font-weight: 700; text-decoration: none; border: 2px solid var(--accent); font-family: var(--body); font-size: 1rem; cursor: pointer; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn:hover { filter: brightness(1.08); }

/* Who for */
.audience { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.5rem; padding: 0; list-style: none; }
.audience li { font: 500 0.85rem/1 var(--mono); border: 1px solid var(--line); border-radius: 999px; padding: 0.55rem 0.9rem; color: var(--ink); background: var(--surface); }

/* Sections */
section.block { padding-block: clamp(3rem, 7vw, 5rem); border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 0.75rem; margin-bottom: 2.5rem; max-width: 46rem; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.section-head p { color: var(--muted); }

/* Services index */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.service { padding: 1.75rem 1.5rem 1.75rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 3.25rem 1fr; gap: 0.25rem 1rem; min-width: 0; }
.service .code { font: 500 0.8rem/1.6 var(--mono); color: var(--accent); grid-row: span 3; padding-top: 0.25rem; }
.service h3 { font-size: 1.35rem; }
.service p { color: var(--muted); }
.service ul { margin: 0.5rem 0 0; padding-left: 1.1rem; color: var(--ink); font-size: 0.97rem; }
.service li + li { margin-top: 0.2rem; }

/* Standards strip */
.standards { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: clamp(1.5rem, 4vw, 2.25rem); display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.standard h3 { font-size: 1.05rem; font-family: var(--body); font-weight: 700; letter-spacing: 0; }
.standard p { color: var(--muted); font-size: 0.95rem; margin-top: 0.35rem; }

/* Approach steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--accent); padding-top: 1rem; }
.steps li::before { content: "Step " counter(step); display: block; font: 500 0.75rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.6rem; }
.steps h3 { font-size: 1.2rem; }
.steps p { color: var(--muted); margin-top: 0.4rem; }

/* About */
.about { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); align-items: start; }
.about .prose { display: grid; gap: 1rem; max-width: 62ch; }
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.8rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.facts span:first-child { color: var(--muted); font: 500 0.85rem/1.6 var(--mono); }
.facts span:last-child { font-weight: 600; text-align: right; }

/* Contact */
.contact { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.contact .direct { display: grid; gap: 1rem; align-content: start; }
.contact .direct p { color: var(--muted); }
.email-line { font: 600 1.15rem/1.4 var(--mono); color: var(--ink); user-select: all; word-break: break-all; }
form { display: grid; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: clamp(1.25rem, 3vw, 2rem); min-width: 0; }
.field { display: grid; gap: 0.35rem; }
.row2 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
label { font-weight: 600; font-size: 0.95rem; }
input, textarea, select { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 0.7rem 0.8rem; width: 100%; }
textarea { min-height: 8rem; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--muted); }
.form-status { font-weight: 600; color: var(--accent); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 2rem 2.5rem; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

/* Simple pages */
.page { padding-block: clamp(2.5rem, 6vw, 4rem); max-width: 46rem; }
.page h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1.5rem; }
.page h2 { font-size: 1.35rem; margin-top: 2rem; margin-bottom: 0.5rem; }
.page p, .page li { color: var(--ink); }
.page p + p { margin-top: 0.75rem; }
