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

:root {
  --fg: #1a1a1a;
  --fg-secondary: #4a4a4a;
  --fg-muted: #767676;
  --bg: #fafafa;
  --rule: #d4d4d4;
  --link: #1a1a1a;
}

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

body {
  font-family: "Charter", "Bitstream Charter", "Sitka Text", Cambria, serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

header {
  margin-bottom: 3rem;
}

h1 {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}

.subtitle {
  font-size: 0.875rem;
  color: var(--fg-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

section {
  margin-bottom: 3rem;
}

.thesis p {
  margin-bottom: 1rem;
  color: var(--fg-secondary);
}

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

h2 {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 1rem;
}

.portfolio ul {
  list-style: none;
}

.portfolio li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.9375rem;
}

.portfolio li:last-child {
  border-bottom: none;
}

.portfolio strong {
  font-weight: 600;
}

.contact {
  margin-top: 4rem;
}

.contact p {
  font-size: 0.875rem;
  color: var(--fg-secondary);
}

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

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

a:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
  border-bottom-color: transparent;
}

footer {
  margin-top: 6rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

footer p {
  font-size: 0.75rem;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}

@media (max-width: 480px) {
  html {
    font-size: 16px;
  }

  main {
    padding: 3rem 1.25rem;
  }

  header {
    margin-bottom: 2.5rem;
  }

  .contact {
    margin-top: 3rem;
  }

  footer {
    margin-top: 4rem;
  }
}
