:root {
  color-scheme: light;
  font-family: system-ui, "Sylfaen", sans-serif;
  color: #102338;
  background: #f0f6fd;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: radial-gradient(ellipse at 50% 12%, #dfefff, #f0f6fd 62%);
}

.profile {
  width: min(100%, 460px);
  border: 1px solid #dce9f6;
  border-radius: 32px;
  background: white;
  box-shadow: 0 24px 68px #294f8022;
}

.cover {
  height: clamp(118px, 28vw, 165px);
  border-radius: 31px 31px 0 0;
  background:
    radial-gradient(circle at 96% 105%, #ffffff44 0 34%, transparent 34.5%),
    radial-gradient(circle at 99% 105%, #ffffff44 0 49%, transparent 49.5%),
    linear-gradient(115deg, #c3e7ff, #86caff);
}

.details {
  position: relative;
  margin-top: -61px;
  padding: 0 clamp(18px, 7vw, 42px) clamp(25px, 7vw, 40px);
  text-align: center;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid #095ba9; outline-offset: 4px; }

.avatar {
  display: block;
  width: 126px;
  margin-inline: auto;
  aspect-ratio: 1;
  border: 5px solid white;
  border-radius: 50%;
  background: #dae8f5;
  box-shadow: 0 5px 16px #10233825;
}

.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% 24%;
  border-radius: 50%;
}

h1 {
  margin: 18px 0 7px;
  font-size: clamp(1.7rem, 6vw, 2.25rem);
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.username { color: #3f5974; }
h1 a:hover, .username:hover { text-decoration: underline; }

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65em;
  min-height: 56px;
  margin-top: 29px;
  padding: 12px;
  border-radius: 15px;
  background: #096fc3;
  color: white;
  font-weight: 700;
  line-height: 1.4;
}

.button:hover { background: #075da5; }