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

:root {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #777777;
  --max-w: 680px;
  --gap: 4rem;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  padding: 0 1.5rem;
}

/* ── Nav ── */
header {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 0 1rem;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

nav a:hover {
  color: var(--fg);
}

/* ── Sections ── */
main {
  max-width: var(--max-w);
  margin: 0 auto;
}

section {
  padding: var(--gap) 0;
  border-top: 1px solid #e5e5e5;
}

section:first-child {
  border-top: none;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h2 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.project-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--fg);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 1px solid var(--fg);
  padding-bottom: 1px;
}

.project-link:hover {
  color: var(--muted);
  border-color: var(--muted);
}

.tagline {
  color: var(--muted);
  margin-top: 0.75rem;
}

/* ── Work list ── */
.work-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.work-list li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.work-title {
  font-weight: 500;
}

.work-desc {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ── Contact ── */
.contact-list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.contact-list a {
  color: var(--fg);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--fg);
  padding-bottom: 1px;
}

.contact-list a:hover {
  color: var(--muted);
  border-color: var(--muted);
}

/* ── Footer ── */
footer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.8rem;
}
