:root {
  color-scheme: light;
  --black: #111111;
  --gray: #666666;
  --light-gray: #eeeeee;
  --white: #ffffff;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--white);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--black);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.page {
  width: min(100% - 32px, 580px);
  margin: 0 auto;
  padding: 56px 0 32px;
}

.profile { text-align: center; }

.profile > a {
  display: inline-block;
  width: 104px;
  height: 104px;
  overflow: hidden;
  border: 1px solid var(--black);
  border-radius: 50%;
}

.profile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.18);
}

h1 {
  margin: 20px 0 0;
  font-size: clamp(1.75rem, 6vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.username {
  margin: 7px 0 0;
  color: var(--gray);
  font-size: 0.92rem;
}

.bio {
  max-width: 530px;
  margin: 20px auto 0;
  color: #333333;
  font-size: 0.98rem;
  line-height: 1.65;
}

main { margin-top: 48px; }
section + section { margin-top: 38px; }

h2 {
  margin: 0 0 11px;
  color: var(--black);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.links { border-top: 1px solid var(--black); }

.link {
  display: flex;
  min-height: 74px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 15px 2px;
  border: 0;
  border-bottom: 1px solid var(--light-gray);
  color: var(--black);
  background: var(--white);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.link strong {
  font-size: 0.98rem;
  line-height: 1.25;
}

.link > span {
  color: var(--gray);
  font-size: 0.82rem;
  line-height: 1.35;
}

a.link:hover strong,
.copy-link:hover strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link.compact {
  min-height: 61px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.link.compact > span:last-child {
  flex: 0 1 auto;
  text-align: right;
}

.copy-link { appearance: none; }

.copy-text {
  color: var(--gray);
  font-size: 0.75rem;
}

.email-link strong { overflow-wrap: anywhere; }

footer {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--black);
  color: var(--gray);
  font-size: 0.76rem;
  line-height: 1.6;
  text-align: center;
}

footer p {
  margin: 0;
  overflow-wrap: anywhere;
}

footer span {
  margin: 0 5px;
  color: #999999;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 4px;
}

@media (max-width: 480px) {
  .page {
    width: min(100% - 28px, 580px);
    padding-top: 38px;
  }

  .profile > a {
    width: 92px;
    height: 92px;
  }

  .bio { font-size: 0.93rem; }
  main { margin-top: 40px; }

  .link.compact { gap: 12px; }
}
