/* Layout: a calm document-like column with a full-width masthead band and a quiet footer. */
:root {
  --paper: #f6f7f5;
  --surface: #ffffff;
  --ink: #18222b;
  --muted: #55626c;
  --rule: #d5dbd9;
  --accent: #2f6b5b;      /* kawakawa green */
  --accent-ink: #ffffff;
  --band: #1d2f3a;        /* harbour slate */
  --band-ink: #eef2f1;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 66ch;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121a20; --surface: #18232b; --ink: #e6ebe9; --muted: #9aa8b0; --rule: #2c3a43;
    --accent: #7cc0a9; --accent-ink: #0f1a17; --band: #0c1419; --band-ink: #e6ebe9; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121a20; --surface: #18232b; --ink: #e6ebe9; --muted: #9aa8b0; --rule: #2c3a43;
  --accent: #7cc0a9; --accent-ink: #0f1a17; --band: #0c1419; --band-ink: #e6ebe9; color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap {
  max-width: 68rem; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Masthead */
.masthead { background: var(--band); color: var(--band-ink); }
.masthead .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 18px; }
.brand { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--band-ink); text-decoration: none; letter-spacing: 0.01em; }
.brand span { font-style: italic; font-weight: 400; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.nav a { color: var(--band-ink); text-decoration: none; font-size: 0.95rem; padding-block: 4px; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* Page header */
.lede { padding-block: 64px 40px; border-bottom: 1px solid var(--rule); }
.eyebrow { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin: 0 0 12px; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 500; max-width: 26ch; }
h2 { font-size: 1.75rem; font-weight: 500; }
h3 { font-size: 1.2rem; font-weight: 600; }
.lede p.intro { font-size: 1.2rem; color: var(--muted); max-width: var(--measure); margin: 20px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); text-decoration: none; padding: 10px 20px; border-radius: 3px; font-weight: 600; font-size: 0.95rem; }
.btn.secondary { background: transparent; color: var(--ink); border: 1px solid var(--rule); }

section.block { padding-block: 48px; border-bottom: 1px solid var(--rule); }
section.block > .wrap > h2 { margin-bottom: 24px; }
.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1em; }

/* Two-column feature list */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 32px 40px; }
.grid > div { min-width: 0; }
.grid h3 { margin-bottom: 6px; }
.grid p { margin: 0; color: var(--muted); }

/* Document types: the vocabulary of public-sector accountability */
.docs { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.docs li { border: 1px solid var(--rule); background: var(--surface); padding: 4px 12px; border-radius: 2px; font-size: 0.9rem; }

/* Client list */
.clients { columns: 2 16rem; column-gap: 40px; padding: 0; margin: 0; list-style: none; }
.clients li { break-inside: avoid; padding-block: 6px; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 16px; }
.clients.single { columns: 1; }
.grid .clients li { color: var(--ink); }
.clients li span { color: var(--muted); font-size: 0.9rem; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Services detail */
.service { display: grid; grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); gap: 12px 40px; padding-block: 28px; border-top: 1px solid var(--rule); }
.service:first-of-type { border-top: 0; }
.service ul { margin: 0; padding-left: 1.1em; }
.service li { margin-bottom: 4px; }
.service .examples { color: var(--muted); font-size: 0.95rem; margin: 12px 0 0; }
@media (max-width: 640px) { .service { grid-template-columns: minmax(0, 1fr); } }

/* Contact card */
.contact-card { background: var(--surface); border: 1px solid var(--rule); padding: 28px; max-width: 34rem; display: grid; gap: 18px; }
.contact-card dt { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.contact-card dd { margin: 2px 0 0; font-size: 1.25rem; font-family: var(--font-display); user-select: all; overflow-wrap: anywhere; }

footer { padding-block: 32px; color: var(--muted); font-size: 0.9rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
