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

:root {
  --bg: #fafafa;
  --fg: #111;
  --muted: #666;
  --border: #e5e5e5;
  --accent: #111;
  --max-width: 640px;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

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

a:hover {
  opacity: 0.7;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  max-width: calc(var(--max-width) + 4rem);
  margin: 0 auto;
  width: 100%;
}

.logo {
  font-weight: 600;
  letter-spacing: -0.02em;
}

.contact {
  font-size: 0.875rem;
  color: var(--muted);
}

main {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
  width: 100%;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 32ch;
}

.projects {
  margin-top: 5rem;
}

.projects h2 {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.project-list {
  list-style: none;
}

.project-card {
  display: block;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
}

.project-list li:last-child .project-card {
  border-bottom: 1px solid var(--border);
}

.project-name {
  display: block;
  font-weight: 500;
  margin-bottom: 0.15rem;
}

.project-desc {
  display: block;
  font-size: 0.9375rem;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  max-width: calc(var(--max-width) + 4rem);
  margin: 0 auto;
  width: 100%;
  font-size: 0.875rem;
  color: var(--muted);
}

@media (max-width: 480px) {
  .site-header,
  .site-footer {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  main {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .contact {
    font-size: 0.8125rem;
  }
}
