:root {
  --text: #1c1a17;
  --muted: #6b6559;
  --border: #e0d8c5;
  --bg: #f5f0e6;
  --accent: #b5502e;
  --max-width: 680px;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.15s ease, color 0.15s ease;
}

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

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

.intro {
  padding: 2.5rem 0 3rem;
  border-bottom: 1px solid var(--border);
}

.intro h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 3rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}

.role {
  color: var(--muted);
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
}

.status {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  color: var(--accent);
  margin: 0 0 1.4rem;
}

.bio {
  margin: 0;
  max-width: 56ch;
}

h2 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.projects,
.skills,
.contact {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.contact {
  border-bottom: none;
}

.project + .project {
  margin-top: 2.2rem;
}

.project-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.project-head h3 {
  font-family: var(--serif);
  font-weight: 500;
  margin: 0;
  font-size: 1.35rem;
}

.project-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--accent);
  margin-right: 0.6rem;
  vertical-align: middle;
}

.project-link {
  font-size: 0.85rem;
  white-space: nowrap;
  border-bottom: none;
  color: var(--muted);
}

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

.project-tags {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0.4rem 0 0.6rem;
}

.project p:last-child {
  margin: 0;
  max-width: 60ch;
}

.skills dl {
  margin: 0;
}

.skill-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  padding: 0.5rem 0;
}

.skill-row dt {
  color: var(--muted);
  font-size: 0.9rem;
}

.skill-row dd {
  margin: 0;
}

.contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 1.5rem;
  color: var(--muted);
  font-size: 0.8rem;
}

@media (max-width: 600px) {
  main {
    padding: 2.25rem 1.25rem 1.25rem;
  }

  .intro {
    padding: 0 0 2rem;
  }

  .intro h1 {
    font-size: 2.15rem;
  }

  .projects,
  .skills,
  .contact {
    padding: 2rem 0;
  }

  .project-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .skill-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}
