:root {
  --bg: #faf9f5;
  --surface: #ffffff;
  --ink: #16201b;
  --muted: #5d6b63;
  --line: #e7e3d8;
  --accent: #1f7a4d;
  --accent-ink: #14653f;
  --radius: 16px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.mark.small { width: 24px; height: 24px; font-size: 11px; border-radius: 6px; }

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 24px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 15px;
}
.nav-cta {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-ink);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 8px 16px;
  border-radius: 999px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.nav-cta:hover { border-color: var(--accent); transform: translateY(-1px); }

/* Hero */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px 24px 56px;
}
.eyebrow {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.hero h1 {
  margin: 0 0 22px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.lede {
  margin: 0 0 30px;
  max-width: 36rem;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--muted);
}
.hero-cta {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}
.hero-cta:hover { color: var(--accent-ink); }

/* Work */
.work {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 24px 80px;
}
.work-head { margin-bottom: 28px; }
.work-head h2 {
  margin: 0 0 4px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}
.work-head p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  min-height: 220px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 14px 34px -18px rgba(31, 122, 77, 0.4);
}
.card--feature { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}
.tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--accent);
  padding: 3px 9px;
  border-radius: 999px;
}
.card h3 {
  margin: 0 0 8px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
}
.card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}
.card-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--accent-ink);
  text-decoration: none;
}
.card-link:hover { text-decoration: underline; }
.card-link.muted { color: var(--muted); font-weight: 500; }

/* Footer */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 24px 48px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: var(--muted);
}
.footer > div { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); }
.footer a { color: var(--accent-ink); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

@media (max-width: 820px) {
  .grid { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .hero h1 br { display: none; }
}
