:root {
  --bg: #faf8f4;
  --text: #1c1b19;
  --muted: #6b675f;
  --rule: #e4dfd5;
  --underline: #b9b3a8;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1e1d1b;
    --text: #ece8e1;
    --muted: #9d978c;
    --rule: #34312d;
    --underline: #5e5a53;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main, .site-header, .site-footer {
  max-width: 38rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

a {
  color: inherit;
  text-decoration-color: var(--underline);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: var(--text); }

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 2.5rem;
  padding-bottom: 4rem;
  font-family: var(--sans);
  font-size: 0.875rem;
}
.site-header .name { font-weight: 600; text-decoration: none; }
.site-header nav a { margin-left: 1.25rem; color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--text); }

h1 {
  font-weight: 500;
  font-size: 2.25rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}

.intro {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1.75rem;
  align-items: center;
}
.portrait {
  display: block;
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
  object-fit: cover;
  background: var(--rule);
}

.links { margin: 0; font-family: var(--sans); font-size: 0.9375rem; }
.links a { margin-right: 1.25rem; }

.note { color: var(--muted); margin: 0; }

@media (max-width: 520px) {
  .intro { grid-template-columns: 1fr; gap: 1.25rem; }
  h1 { font-size: 1.9rem; }
}

.site-footer {
  width: calc(100% - 2.5rem);
  max-width: 35.5rem;
  margin-top: 5rem;
  padding: 1.5rem 0 3rem;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--muted);
}
