:root {
  color-scheme: light dark;
  --paper: #f7f7f2;
  --ink: #262d28;
  --muted: #646b63;
  --accent: #41634e;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: 3rem 1.5rem 5rem;
  background: var(--paper);
  color: var(--ink);
}

main {
  width: 100%;
  max-width: 24rem;
  text-align: center;
}

.portrait {
  display: block;
  width: 8.5rem;
  max-width: 100%;
  height: auto;
  margin: 0 auto 1rem;
}

h1 {
  margin: 0 0 0.75rem;
  font-size: 2.125rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.bio {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  text-wrap: balance;
}

.bio span {
  display: inline-block;
  max-width: 100%;
}

.location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.location svg {
  flex-shrink: 0;
  width: 0.875rem;
  height: 0.875rem;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 0.75rem;
}

.contact a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding-inline: 0.375rem;
  color: var(--accent);
  font-size: 0.9375rem;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, currentColor 50%, transparent);
  text-underline-offset: 0.25rem;
}

.contact a:hover {
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
  border-radius: 2px;
}

::selection {
  background: var(--accent);
  color: var(--paper);
}

@media (max-height: 32rem) {
  body {
    padding-block: 2rem;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1d211e;
    --ink: #eeefe7;
    --muted: #a8afa5;
    --accent: #b3c9a8;
  }
}
