/* ---- Design tokens: change colours and sizes here ---- */
:root {
  --bg: #fafaf8;
  --text: #1c1c1c;
  --muted: #6b6b6b;
  --accent: #2f6f5e;
  --header-height: 3.5rem;
  --max-width: 60rem;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161616;
    --text: #ececec;
    --muted: #9a9a9a;
    --accent: #7cc4ad;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

/* ---- Fixed header ---- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  background: var(--bg);
  border-bottom: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  z-index: 10;
}

.site-name {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.contact-links { display: flex; gap: 1rem; }

/* ---- Page content (padded so the fixed header doesn't cover it) ---- */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--header-height) + 2rem) 1rem 4rem;
}

.hero h1 { font-size: clamp(2rem, 6vw, 3.5rem); margin: 0 0 0.25rem; }
.hero p { color: var(--muted); margin: 0; }

.test-section {
  margin-top: 3rem;
  padding: 1rem 1.25rem;
  border: 1px dashed var(--muted);
  border-radius: 8px;
}

/* If this stylesheet loads, the "CSS loaded" check flips to yes */
.css-check { font-size: 0; }
.css-check::after { content: "yes ✓"; font-size: 1rem; color: var(--accent); }

.ok { color: var(--accent); }
.fail { color: #c0392b; }
