:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --ink: #1c1b19;
  --muted: #6b6862;
  --line: #e4e1db;
  --accent: #1c1b19;
  --radius: 14px;
  --max: 920px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: inherit;
  text-decoration: none;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 24px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
}

.logo {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 5px auto;
  background: var(--ink);
}

.hero,
.section,
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  padding-top: 88px;
  padding-bottom: 96px;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

h1,
h2,
h3 {
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 600;
  max-width: 16ch;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  max-width: 18ch;
}

.lede {
  max-width: 46ch;
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-ghost {
  border-color: var(--line);
  background: var(--surface);
}

.section {
  padding-top: 32px;
  padding-bottom: 88px;
}

.section-head {
  margin-bottom: 32px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  color: var(--muted);
}

.work-list {
  display: grid;
  gap: 16px;
}

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

.work-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.work-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.work-card p {
  color: var(--muted);
  max-width: 62ch;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.skills li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
}

.contact-copy {
  color: var(--muted);
  margin-bottom: 28px;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.contact-form .full,
.contact-form button,
.form-status {
  grid-column: 1 / -1;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
}

input:focus,
textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--ink) 20%, transparent);
  outline-offset: 1px;
}

.form-status {
  font-size: 14px;
  color: var(--muted);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 24px 48px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  gap: 18px;
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 24px;
    right: 24px;
    flex-direction: column;
    gap: 16px;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .nav.open .nav-links {
    display: flex;
  }

  .about-grid,
  .contact-form,
  .footer {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .hero {
    padding-top: 56px;
  }
}
