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

:root {
  --color-bg: #fff;
  --color-text: #111;
  --color-muted: #888;
  --color-border: #e5e5e5;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Code', 'Fira Code', monospace;
  --max-width: 680px;
  --section-padding: 6rem 2rem;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
}

/* Header */

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--color-bg);
  border-top: 2px solid var(--color-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}

.monogram {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.05em;
}

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

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

nav a:hover {
  text-decoration: underline;
}

/* Sections */

main {
  max-width: var(--max-width);
  margin: 0 auto;
}

section {
  padding: var(--section-padding);
}

section + section {
  border-top: 1px solid var(--color-border);
}

.label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

/* About */

h1 {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.bio {
  font-size: 1.125rem;
  color: #333;
  max-width: 480px;
}

/* Projects */

ul {
  list-style: none;
}

ul li + li {
  border-top: 1px solid var(--color-border);
}

ul li a {
  display: block;
  padding: 1rem 0;
  color: var(--color-text);
  text-decoration: none;
  font-size: 1rem;
}

ul li a:hover {
  border-bottom: 2px solid var(--color-text);
}

/* Footer */

footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.875rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

.copyright {
  font-size: 0.75rem;
  color: var(--color-muted);
}

/* Mobile */

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

  section {
    padding: 4rem 1.25rem;
  }

  h1 {
    font-size: 2rem;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 2.5rem 1.25rem;
  }
}
