@import url('https://fonts.googleapis.com/css2?family=Inter:wght@500;600;700&display=swap');

:root {
  --background: #eeeeee;
  --text: #151515;
  --button-text: #664f4f;
  --border: #393939;
  --muted: #938282;
  --white: rgba(255,255,255,.84);
  --shadow: 0 6px 22px rgba(0,0,0,.08);
  --max-width: 720px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 3%, rgba(255,255,255,.95), transparent 30%),
    radial-gradient(circle at 92% 86%, rgba(255,255,255,.65), transparent 28%),
    linear-gradient(180deg, #f2f2f2 0%, #e8e8e8 100%);
  font-family: "Inter", Arial, sans-serif;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page {
  width: min(100%, var(--max-width));
  min-height: 100vh;
  margin: 0 auto;
  padding: max(22px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.round-button {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  padding: 0;
  color: #050505;
  border: 0;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.round-button svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-button {
  font-size: 2.25rem;
  font-weight: 700;
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 6px;
}

.profile-image {
  width: 700px;
  height: 204px;
 
}

.profile h1 {
  margin: 34px 0 0;
  font-size: clamp(1.85rem, 5.2vw, 2.55rem);
  line-height: 1.1;
  letter-spacing: .01em;
  text-align: center;
}

.links {
  display: grid;
  gap: 24px;
  margin-top: 54px;
}

.link-item {
  position: relative;
  display: grid;
  grid-template-columns: 70px 1fr 32px;
  align-items: center;
  min-height: 108px;
  padding: 14px 22px 14px 16px;
  color: var(--button-text);
  text-decoration: none;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  transition: transform 160ms ease, background 160ms ease;
}

.link-item:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.32);
}

.link-leading {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border-radius: 50%;
}

.link-leading svg {
  width: 43px;
  height: 43px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link-leading img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.link-title {
  padding: 0 10px;
  font-size: clamp(1rem, 3vw, 1.34rem);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}

.link-menu {
  color: var(--muted);
  font-size: 1.7rem;
  line-height: 1;
  text-align: right;
  letter-spacing: 2px;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  padding: 64px 0 8px;
}

.footer-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: #000;
  text-decoration: none;
}

.footer-icon svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 10;
  padding: 11px 16px;
  color: #fff;
  border-radius: 999px;
  background: #111;
  font-size: .85rem;
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: .18s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 560px) {
  .page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .round-button {
    width: 58px;
    height: 58px;
    border-radius: 20px;
  }

  .profile-image {
    width: 495px;
    height: 144px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .profile h1 {
    margin-top: 28px;
  }

  .links {
    gap: 19px;
    margin-top: 44px;
  }

  .link-item {
    grid-template-columns: 58px 1fr 24px;
    min-height: 92px;
    padding: 12px 17px 12px 13px;
  }

  .link-leading {
    width: 48px;
    height: 48px;
  }

  .link-leading svg {
    width: 37px;
    height: 37px;
  }

  .link-title {
    font-size: 1rem;
  }

  .link-menu {
    font-size: 1.42rem;
  }

  footer {
    padding-top: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
