:root {
  --bg: #0f1117;
  --surface: #171a23;
  --border: #262a36;
  --text: #e8e9ee;
  --muted: #a3a7b5;
  --accent: #a78bfa;
  --accent-strong: #c4b5fd;
  --radius: 14px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-strong);
}

a:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
  border-radius: 4px;
}

.site-header,
main,
.site-footer {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header {
  padding-top: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 600;
  font-size: 1.125rem;
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  display: block;
}

main {
  flex: 1;
}

.hero {
  padding: 3.5rem 0 2.5rem;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 7vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

h3 {
  margin: 0 0 0.25rem;
  font-size: 1.125rem;
}

.lede {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.1875rem;
}

.projects,
.contact {
  padding-bottom: 2.5rem;
}

.project-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project {
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

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

.site-footer {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer p {
  margin: 0;
}

@media (min-width: 640px) {
  .project-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero {
    padding: 5rem 0 3rem;
  }
}
