:root {
  --background: #fafafa;
  --text: #171717;
  --muted: #5f5f5f;
  --line: #d8d8d8;
  --page-width: 900px;
  --sans: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

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

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  display: flex;
  align-items: center;
  color: var(--text);
  background: var(--background);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

p,
h1,
figure {
  margin: 0;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--muted);
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

::selection {
  color: var(--background);
  background: var(--text);
}

.profile {
  display: grid;
  width: min(calc(100% - 3rem), var(--page-width));
  margin: auto;
  padding-block: 4rem;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(3rem, 8vw, 6rem);
  align-items: center;
}

.portrait-column {
  width: 280px;
}

.portrait {
  width: 100%;
}

.portrait picture {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about {
  max-width: 520px;
}

.bio {
  display: grid;
  gap: 0.85rem;
}

.bio p {
  color: #353535;
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.6;
}

.contact {
  display: grid;
  margin-top: 1rem;
  justify-items: start;
  gap: 0.4rem;
  font-size: 0.88rem;
}

.contact a {
  font-weight: 600;
}

.not-found {
  width: min(calc(100% - 3rem), 620px);
  margin: auto;
  padding-block: 4rem;
}

.not-found > p {
  color: var(--muted);
  font-size: 0.8rem;
}

.not-found h1 {
  margin-top: 0.7rem;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.05em;
}

.not-found a {
  display: inline-block;
  margin-top: 1.5rem;
}

@media (max-width: 700px) {
  body {
    align-items: flex-start;
  }

  .profile {
    width: min(calc(100% - 2rem), var(--page-width));
    padding-block: 3rem;
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .portrait-column {
    width: 200px;
  }

  .about {
    max-width: 560px;
  }
}

@media (max-width: 400px) {
  .portrait-column {
    width: 170px;
  }

  .bio p {
    font-size: 1rem;
  }
}
