:root {
  --bg: #f6f3ec;
  --ink: #1c1a17;
  --muted: #6b665d;
  --rule: #d9d3c7;
  --accent: #c2410c;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151412;
    --ink: #f3efe7;
    --muted: #a39d92;
    --rule: #2e2b27;
    --accent: #fb923c;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 38rem;
  margin: 0 auto;
  padding: clamp(3rem, 10vw, 7rem) 1.25rem 3rem;
}

.logo {
  width: 2.25rem;
  height: 2.25rem;
  fill: currentColor;
  margin-bottom: 2.5rem;
}

.name {
  margin: 0;
  font: 400 clamp(3.5rem, 14vw, 6.5rem)/0.9 var(--serif);
  letter-spacing: -0.02em;
}

.name em {
  font-style: italic;
  color: var(--accent);
}

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

.portrait {
  margin: 3rem 0;
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  filter: grayscale(0.15);
}

.bio p {
  margin: 0 0 1.25rem;
  font: 400 1.375rem/1.45 var(--serif);
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--rule);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}

a:hover,
a:focus-visible {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--muted);
}

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

.links a {
  color: var(--ink);
  text-decoration: none;
}

.links a:hover,
.links a:focus-visible {
  color: var(--accent);
}

.copyright {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  a {
    transition: none;
  }
}
