:root {
  --accent: #2f5d50;
  --ink: #17181a;
  --muted: #5c6063;
  --line: #e6e4df;
  --bg: #faf9f6;
  --card: #ffffff;
}

* { box-sizing: border-box; }

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

a { color: inherit; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 24px;
}

.brand { font-weight: 700; text-decoration: none; }

nav { display: flex; align-items: center; gap: 22px; }
nav a { text-decoration: none; color: var(--muted); font-size: 15px; }
nav a:hover { color: var(--ink); }

.lang {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 8px;
  padding: 4px 10px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

main { max-width: 980px; margin: 0 auto; padding: 0 24px; }

section { padding: 64px 0; border-top: 1px solid var(--line); }
section.hero { border-top: 0; padding-top: 56px; }

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
}

h1 { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.15; margin: 0 0 20px; max-width: 760px; }
h2 { font-size: 26px; margin: 0 0 24px; }
h3 { font-size: 18px; margin: 0 0 8px; }

.lead { font-size: 19px; color: var(--muted); max-width: 700px; margin: 0; }

.grid, .projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.grid article, .project {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}

.grid p, .project p { margin: 0; color: var(--muted); }

.project { display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.project h3 { margin: 0; }

.project.featured {
  grid-column: 1 / -1;
  border-color: var(--accent);
  border-width: 2px;
}

.project.featured:hover { background: #f3f7f5; }

.tag {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.more { margin-top: 6px; font-weight: 600; color: var(--accent); }

.contact p { color: var(--muted); }

.button {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 10px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

footer {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 24px 40px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
}

@media (max-width: 640px) {
  nav a { display: none; }
  section { padding: 48px 0; }
}
