:root {
  --background: #f8f8f6;
  --text: #171717;
  --muted: #686868;
  --accent: #b92f28;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  text-rendering: optimizeLegibility;
}

.home {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: 3rem 1.5rem;
}

.intro {
  width: min(100%, 36rem);
  text-align: center;
}

.portrait {
  display: block;
  width: clamp(9rem, 24vw, 11rem);
  height: auto;
  margin: 0 auto 2.25rem;
  object-fit: cover;
}

h1 {
  max-width: 14ch;
  margin: 0 auto;
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-wrap: balance;
}

.intro > p {
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.social-links a {
  color: var(--text);
  font-size: 0.9rem;
  text-underline-offset: 0.25rem;
  text-decoration-thickness: 1px;
}

.social-links a:hover {
  color: var(--accent);
}

.social-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width: 30rem) {
  .home {
    padding-inline: 1.25rem;
  }

  .portrait {
    margin-bottom: 1.75rem;
  }

  .social-links {
    gap: 1.15rem;
  }
}
