@font-face {
  font-family: "Bitter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/bitter-bold-latin.woff2") format("woff2");
}

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

html {
  font-size: 18pt;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: #000;
  color: #ddd;
  line-height: 1;
  overflow-wrap: break-word;
  -webkit-text-size-adjust: none;
}

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
  overflow: hidden;
}

.profile {
  --spacing: 0.75rem;
  flex: 0 0 auto;
  width: 40rem;
  max-width: 100%;
  padding: 3rem;
  text-align: center;
}

.profile > * {
  margin-top: var(--spacing);
  margin-bottom: var(--spacing);
}

.profile > :first-child {
  margin-top: 0;
}

.profile > :last-child {
  margin-bottom: 0;
}

.portrait {
  max-width: 100%;
  line-height: 0;
}

.portrait-frame {
  display: inline-block;
  width: 12rem;
  max-width: 100%;
  overflow: hidden;
  border: 4px solid #ddd;
  border-radius: 100%;
  vertical-align: top;
  /* Keep the same clipped image rendering as the original. */
  -webkit-backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

.portrait img {
  width: inherit;
  max-width: 100%;
  height: auto;
  vertical-align: top;
}

h1 {
  padding: 0;
  font-family: "Bitter", sans-serif;
  font-size: 3em;
  font-weight: 700;
  line-height: 1.5;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  padding: 0;
  list-style: none;
  font-size: 2em;
  letter-spacing: 0;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  color: inherit;
}

.social-links svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
  pointer-events: none;
}

.social-links a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

@media (max-width: 1680px) {
  html {
    font-size: 13pt;
  }
}

@media (max-width: 980px) {
  html {
    font-size: 11pt;
  }
}

@media (max-width: 736px) {
  .profile {
    padding: 3rem 2rem;
  }
}

@media (max-width: 480px) {
  .profile {
    --spacing: 0.65625rem;
  }
}

@media (max-width: 360px) {
  .profile {
    --spacing: 0.5625rem;
    padding: 2.25rem 1.5rem;
  }

  h1 {
    font-size: 2em;
  }

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

/* The original uses the small viewport height on mobile devices. */
@media (hover: none) and (pointer: coarse) {
  .page {
    min-height: 100svh;
  }
}
