/* zclabs.org — single stylesheet. No external requests, no fonts, no trackers. */

:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --text: #1e1c19;
  --muted: #5f5a53;
  --rule: #e3ded6;
  --accent: #2f6b4f;
  --accent-soft: #eef4f0;
  --warn-bg: #fdf6e8;
  --warn-rule: #e8d5a8;
  --measure: 38rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141513;
    --surface: #1c1e1b;
    --text: #eae7e1;
    --muted: #a6a099;
    --rule: #32352f;
    --accent: #7fbd9a;
    --accent-soft: #1d2620;
    --warn-bg: #241f14;
    --warn-rule: #4a4028;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- header / footer ---------- */

.site-head {
  border-bottom: 1px solid var(--rule);
  padding: 1.5rem 0;
  margin-bottom: 3rem;
}

.site-head .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: baseline;
  justify-content: space-between;
}

.brand {
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--text);
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9375rem;
}

.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--accent); text-decoration: underline; }

.site-foot {
  border-top: 1px solid var(--rule);
  margin-top: 4rem;
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.site-foot p { margin: 0 0 0.6rem; }
.site-foot a { color: var(--muted); }

/* ---------- typography ---------- */

h1 {
  font-size: clamp(1.75rem, 5vw, 2.375rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.375rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 2.75rem 0 0.75rem;
}

h3 {
  font-size: 1.0625rem;
  margin: 1.75rem 0 0.5rem;
}

p { margin: 0 0 1.1rem; }

a { color: var(--accent); }

ul, ol { margin: 0 0 1.1rem; padding-left: 1.25rem; }
li { margin-bottom: 0.5rem; }

strong { font-weight: 650; }

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

/* ---------- article furniture ---------- */

.standfirst {
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.byline {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0 0 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.callout {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  margin: 1.75rem 0;
  border-radius: 0 4px 4px 0;
}

.callout p:last-child { margin-bottom: 0; }

.notice {
  background: var(--warn-bg);
  border: 1px solid var(--warn-rule);
  padding: 1rem 1.25rem;
  margin: 2rem 0;
  border-radius: 4px;
  font-size: 0.9375rem;
}

.notice p:last-child { margin-bottom: 0; }
.notice strong { display: block; margin-bottom: 0.35rem; }

/* ---------- references ---------- */

.refs {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}

.refs ol { padding-left: 1.5rem; }
.refs li { margin-bottom: 0.75rem; }

/* ---------- index listing ---------- */

.post-list { list-style: none; padding: 0; margin: 0; }

.post-list li {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
  margin: 0;
}

.post-list h2 { margin: 0 0 0.4rem; font-size: 1.25rem; }
.post-list h2 a { text-decoration: none; }
.post-list h2 a:hover { text-decoration: underline; }
.post-list p { margin: 0 0 0.4rem; color: var(--muted); font-size: 0.9375rem; }
.post-list time { font-size: 0.8125rem; color: var(--muted); }

.lede {
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}
