:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1c1b19;
  --muted: #5f5c55;
  --border: #e4e1da;
  --accent: #2f5d50;
  --accent-text: #ffffff;
  --radius: 12px;
  --max: 44rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141412;
    --surface: #1d1c1a;
    --text: #ecebe7;
    --muted: #a7a49c;
    --border: #2f2e2a;
    --accent: #8cc4b2;
    --accent-text: #10201b;
  }
}

* { 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(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: var(--accent-text);
  padding: .5rem 1rem; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

.site-header, main, .site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.site-header {
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem;
  align-items: center; justify-content: space-between;
  padding-top: 1.5rem; padding-bottom: 1.5rem;
}
.brand { font-weight: 650; color: var(--text); text-decoration: none; }
nav { display: flex; gap: 1.25rem; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--text); }

.hero { padding: 3.5rem 0 2rem; }
h1 { font-size: clamp(2rem, 6vw, 2.9rem); line-height: 1.15; margin: 0 0 .75rem; letter-spacing: -.02em; }
.lede { font-size: 1.2rem; color: var(--muted); margin: 0; }

section { padding: 1.75rem 0; }
section + section { border-top: 1px solid var(--border); }
h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 1rem; }
h3 { font-size: 1.05rem; margin: 0 0 .35rem; }

.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.card p { margin: 0 0 .6rem; color: var(--muted); }

.links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }

.site-footer { padding-top: 2rem; padding-bottom: 3rem; color: var(--muted); font-size: .9rem; }
