:root {
  --bg: #f7f4ee;
  --surface: #ffffff;
  --text: #1d2420;
  --muted: #5a645e;
  --accent: #1f3a2e;
  --line: #e2ddd2;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141816;
    --surface: #1d2320;
    --text: #ecebe6;
    --muted: #a3aca6;
    --accent: #9cc7b0;
    --line: #2d3530;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  font-family: Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

nav a {
  margin-left: 20px;
  color: var(--muted);
  text-decoration: none;
}

nav a:hover { color: var(--text); }

.hero { padding: 88px 0 72px; }

.eyebrow,
.card-tag {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: Georgia, serif;
  line-height: 1.2;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
}

h2 { font-size: 1.8rem; margin: 0 0 24px; }
h3 { font-size: 1.3rem; margin: 0 0 8px; }

.lede {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.portfolio,
.contact {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.card p:last-child { margin-bottom: 0; color: var(--muted); }

.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
