/* Meadow — public policy site (Cloudflare Pages). Shared stylesheet.
   Palette matches the tester-facing docs so the pages read as one product. */

:root {
  --paper:      #faf7f2;
  --surface:    #ffffff;
  --border:     #ece6d9;
  --border-str: #ded5c3;
  --ink:        #1f2420;
  --detail:     #4d4a40;
  --muted:      #8a8576;
  --accent:     #2d5648;
  --accent-soft:#e6ece7;
  --shadow:     0 1px 2px rgba(31, 36, 32, .05), 0 8px 24px -16px rgba(31, 36, 32, .18);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper:      #171915;
    --surface:    #1f221d;
    --border:     #32362e;
    --border-str: #434839;
    --ink:        #eceadf;
    --detail:     #bdb9a8;
    --muted:      #8d8a7c;
    --accent:     #8fb39b;
    --accent-soft:#26332b;
    --shadow:     0 1px 2px rgba(0,0,0,.3), 0 8px 24px -16px rgba(0,0,0,.7);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.1rem, 4vw, 2rem) 5rem;
}

/* ---------- masthead ---------- */
.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: clamp(2rem, 5vw, 3rem);
}
.wordmark {
  font-size: 1.05rem;
  font-weight: 660;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.masthead nav { display: flex; gap: 1.25rem; font-size: .9rem; }
.masthead nav a { color: var(--muted); text-decoration: none; }
.masthead nav a:hover { color: var(--accent); }
.masthead nav a[aria-current="page"] { color: var(--ink); }

/* ---------- type ---------- */
h1, h2, h3 { text-wrap: balance; line-height: 1.25; letter-spacing: -0.015em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.25rem); font-weight: 660; margin: 0 0 .5rem; }
h2 {
  font-size: 1.2rem;
  font-weight: 640;
  margin: 2.75rem 0 .85rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
h3 { font-size: 1rem; font-weight: 640; margin: 1.75rem 0 .5rem; }
p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.35rem; }
li { margin-bottom: .45rem; }
a { color: var(--accent); }
strong { font-weight: 640; }

.updated {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--muted);
  margin: 0 0 2rem;
}
.lede { font-size: 1.06rem; color: var(--detail); margin-bottom: 2rem; }

/* ---------- callout ---------- */
.callout {
  background: var(--surface);
  border: 1px solid var(--border-str);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow);
}
.callout p:last-child { margin-bottom: 0; }
.callout h3 { margin-top: 0; }

/* ---------- contact card ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.35rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card .addr {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: .95rem;
}

footer {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: .85rem;
  color: var(--muted);
}
footer a { color: var(--muted); }
