:root {
  --background: #f7f5f1;
  --text: #1c1b19;
  --muted: #5d5952;
  --rule: #d9d4cc;
  --focus: #1c1b19;
}

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

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

body {
  margin: 0;
  background-color: var(--background);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

.site-header,
.content,
.site-footer {
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  padding-inline: 24px;
}

.site-header {
  padding-top: clamp(3rem, 9vw, 5.5rem);
}

.portrait {
  display: block;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.content {
  padding-top: 2rem;
}

h1 {
  margin: 0 0 1.75rem;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2 {
  margin: 0 0 1.25rem;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1rem;
}

section {
  margin-top: 2rem;
}

hr {
  margin: 3.25rem 0;
  border: 0;
  border-top: 1px solid var(--rule);
}

.content a {
  color: #1f5ab5;
  text-decoration: underline;
  text-decoration-color: #9db4dc;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.content a:hover {
  color: #163f80;
  text-decoration-color: currentColor;
}

p:last-child {
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  padding-bottom: 4rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.site-footer a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #b9b2a8;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

@media (max-width: 480px) {
  body {
    font-size: 1rem;
  }

  .site-header,
  .content,
  .site-footer {
    padding-inline: 20px;
  }

  .site-header {
    padding-top: 2.5rem;
  }

  .portrait {
    width: 104px;
    height: 104px;
  }

  .content {
    padding-top: 1.5rem;
  }

  h1 {
    margin-bottom: 1.25rem;
    font-size: 1.75rem;
  }

  h2 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
  }

  section {
    margin-top: 2.5rem;
  }

  hr {
    margin: 2.5rem 0;
  }

  .site-footer {
    gap: 0.5rem 1.25rem;
    margin-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}
