:root {
  --ink: #1a1a2e;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #fafaf9;
  --panel: #ffffff;
  --accent: #c65d3b;
  --max-width: 920px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: inherit; }

/* ---------- Nav ---------- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 250, 249, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
header.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.nav .brand {
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a.link {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.15s ease;
}
.nav a.link:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  padding: 6rem 0 5rem;
}
.hero .eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}
.hero p.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 56ch;
  margin: 0 0 2.25rem;
}
.btn-row { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.08); }

/* ---------- Section shell ---------- */
section { padding: 4.5rem 0; border-top: 1px solid var(--line); }
section .kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
section h2 {
  font-size: 1.7rem;
  margin: 0 0 1.5rem;
  letter-spacing: -0.01em;
}

/* ---------- About ---------- */
.about p { max-width: 68ch; color: #33394a; font-size: 1.02rem; }

/* ---------- Work ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.project {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.6rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.project:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(20, 20, 30, 0.06); }
.project .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
}
.project h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.project p { margin: 0 0 1rem; color: var(--muted); font-size: 0.94rem; }
.project .stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.project .stack span {
  font-size: 0.72rem;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  color: #4b5563;
}

/* ---------- Toolkit ---------- */
.toolkit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.25rem 1.5rem;
}
.toolkit-group h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 0.6rem;
}
.toolkit-group ul { list-style: none; margin: 0; padding: 0; }
.toolkit-group li { font-size: 0.95rem; padding: 0.2rem 0; }

/* ---------- Contact ---------- */
.contact { text-align: left; }
.contact p.lede { color: var(--muted); max-width: 50ch; margin-bottom: 1.75rem; }
.contact-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.contact-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.contact-links a:hover { border-color: var(--accent); transform: translateY(-2px); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.85rem;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 640px) {
  .nav ul { gap: 1.1rem; }
  section { padding: 3rem 0; }
  footer { flex-direction: column; }
}
