:root {
  color-scheme: light dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  background: #f6f3ee;
  color: #1d1c1a;
}

body {
  margin: 0;
}

main {
  width: min(36rem, calc(100% - 3rem));
  margin: clamp(4rem, 12vh, 8rem) auto;
  line-height: 1.65;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 9rem;
  gap: 2.5rem;
  align-items: center;
}

.portrait {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.25rem;
  box-shadow: 0 1px 3px rgb(0 0 0 / 8%);
}

h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.intro p {
  margin: 0.75rem 0 0;
  color: #625f59;
}

h2 {
  margin: 3.5rem 0 0.75rem;
  color: #77726b;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration-color: #aaa49b;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: currentcolor;
}

a:focus-visible {
  outline: 2px solid currentcolor;
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-color-scheme: dark) {
  :root {
    background: #1a1816;
    color: #eeeae4;
  }

  .intro p {
    color: #b5afa7;
  }

  h2 {
    color: #99928a;
  }

  a {
    text-decoration-color: #726c65;
  }
}

@media (max-width: 34rem) {
  .intro {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .portrait {
    grid-row: 1;
    width: 8rem;
  }
}
