:root {
  --bg: #faf6ee;
  --bg-alt: #fffdf8;
  --text: #2b2621;
  --text-muted: #756b5f;
  --accent: #3a6b4a;
  --border: #e6ddce;
  --radius: 14px;
  --max-width: 960px;
  --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1a16;
    --bg-alt: #252220;
    --text: #f3ede1;
    --text-muted: #b3a89a;
    --accent: #8fc99a;
    --border: #39342c;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}
.site-nav {
  display: flex;
  gap: 24px;
}
.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  display: block;
}

/* Hero */
.hero {
  padding: 96px 0 64px;
}
.hero h1 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  margin: 0 0 20px;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.hero .lede {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--accent);
  max-width: 42ch;
  margin: 0;
}

/* Sections */
.section {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}
.section h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.8rem;
  margin: 0 0 20px;
}
.section p {
  color: var(--text-muted);
  max-width: 65ch;
}
.section a { color: var(--accent); }

/* Project grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.project-card {
  display: block;
  padding: 24px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.project-card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  margin: 0 0 8px;
  font-size: 1.2rem;
}
.project-card p {
  margin: 0 0 12px;
  font-size: 0.95rem;
}
a.project-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.project-link {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
}
.project-card--placeholder {
  border-style: dashed;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.site-footer p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Mobile */
@media (max-width: 640px) {
  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .nav-toggle { display: flex; }
}
