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

:root {
  --bg: #fafaf8;
  --text: #1a1a18;
  --muted: #6b6b63;
  --border: #e0e0d8;
  --link: #1a1a18;
  --accent: #4a4a42;
  --max-width: 680px;
}

html {
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Georgia", serif;
  line-height: 1.7;
  padding: 0 1.5rem;
}

/* ── Layout ── */

.site-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 0 2rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.site-title {
  font-family: "Georgia", serif;
  font-size: 1rem;
  font-weight: normal;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--text);
}

nav {
  display: flex;
  gap: 1.75rem;
}

nav a {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}

nav a:hover,
nav a.active {
  color: var(--text);
}

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

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── Typography ── */

h1 {
  font-size: 2rem;
  font-weight: normal;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

h2 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 1.25rem;
  margin-top: 3rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text);
}

p:last-child {
  margin-bottom: 0;
}

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

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

/* ── Landing page ── */

.intro {
  margin-bottom: 4rem;
}

.intro .greeting {
  font-size: 2.5rem;
  font-weight: normal;
  line-height: 1.2;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.intro .tagline {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.intro .bio {
  font-size: 1.05rem;
  max-width: 600px;
}

/* ── Sections ── */

.section {
  margin-top: 3rem;
}

.section p,
.section li {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ── Projects list ── */

.project-list {
  list-style: none;
  margin-top: 1rem;
}

.project-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.project-list li:first-child {
  border-top: 1px solid var(--border);
}

.project-list a {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.9375rem;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-list a:hover {
  color: var(--accent);
}

.project-list a::after {
  content: "→";
  color: var(--muted);
  font-size: 0.875rem;
}

/* ── Contact list ── */

.contact-list {
  list-style: none;
  margin-top: 1rem;
}

.contact-list li {
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.9375rem;
}

.contact-list li:first-child {
  border-top: 1px solid var(--border);
}

.contact-list a {
  color: var(--text);
}

/* ── Page header ── */

.page-header {
  margin-bottom: 2.5rem;
}

.page-header h1 {
  font-size: 2rem;
}

.page-header .subtitle {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* ── Responsive ── */

@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
    gap: 1.25rem;
  }

  nav {
    gap: 1.25rem;
  }

  .intro .greeting {
    font-size: 2rem;
  }
}
