:root {
  --blue: #2867B6;
  --blue-2: #1f73d9;
  --dark: #282829;
  --text: #252a31;
  --muted: #667085;
  --surface: #ffffff;
  --bg: #fbfcfe;
  --shadow: 0 10px 26px rgba(25, 39, 59, 0.10);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--text);
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(circle at -8% 67%, rgba(40, 103, 182, 0.06) 0 16rem, transparent 16.1rem),
    radial-gradient(circle at 104% 9%, rgba(40, 103, 182, 0.035) 0 12rem, transparent 12.1rem),
    linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

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

.page-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding:
    max(32px, env(safe-area-inset-top))
    max(20px, env(safe-area-inset-right))
    max(32px, env(safe-area-inset-bottom))
    max(20px, env(safe-area-inset-left));
}

.bio-card {
  width: min(100%, 470px);
  margin-inline: auto;
}

.brand-header {
  text-align: center;
  margin-bottom: 26px;
}

.logo {
  display: block;
  width: min(72%, 300px);
  height: auto;
  margin: 0 auto 30px;
}

.brand-header h1 {
  margin: 0;
  color: var(--dark);
  font-size: clamp(2rem, 7.2vw, 2.55rem);
  line-height: 1.16;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.brand-header h1 span {
  color: var(--blue);
}

.brand-header p {
  max-width: 360px;
  margin: 15px auto 0;
  color: var(--muted);
  font-size: clamp(0.94rem, 3.5vw, 1.05rem);
  line-height: 1.55;
  font-weight: 400;
}

.links {
  display: grid;
  gap: 12px;
}

.link-button {
  position: relative;
  min-height: 68px;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  padding: 0 18px;
  overflow: hidden;
  border: 1px solid rgba(40, 103, 182, 0.05);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--dark);
  box-shadow: var(--shadow);
  text-decoration: none;
  font-size: clamp(1rem, 4vw, 1.1rem);
  font-weight: 600;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.link-button::after {
  content: "";
  width: 7px;
  height: 7px;
  justify-self: end;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.22;
}

.link-button:hover {
  transform: translateY(-2px);
  border-color: rgba(40, 103, 182, 0.18);
  box-shadow: 0 14px 32px rgba(25, 39, 59, 0.14);
}

.link-button:active {
  transform: translateY(0) scale(0.995);
}

.link-button:focus-visible {
  outline: 3px solid rgba(40, 103, 182, 0.24);
  outline-offset: 4px;
}

.link-button > span:nth-child(2) {
  text-align: center;
}

.link-button--primary {
  border-color: transparent;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-2) 100%);
  box-shadow: 0 12px 28px rgba(40, 103, 182, 0.24);
}

.link-button--dark {
  border-color: transparent;
  color: #ffffff;
  background: linear-gradient(135deg, #25272a 0%, #303237 100%);
  box-shadow: 0 12px 28px rgba(40, 40, 41, 0.20);
}

.icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  color: var(--blue);
}

.icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

.link-button--primary .icon,
.link-button--dark .icon {
  color: #ffffff;
}

.icon--linkedin {
  width: 29px;
  height: 29px;
  border-radius: 3px;
}

@media (max-width: 420px) {
  .page-shell {
    padding-inline: 16px;
  }

  .logo {
    width: min(72%, 270px);
    margin-bottom: 26px;
  }

  .brand-header {
    margin-bottom: 23px;
  }

  .link-button {
    min-height: 64px;
    grid-template-columns: 44px 1fr 44px;
    padding-inline: 16px;
    border-radius: 14px;
  }

  .icon {
    width: 29px;
    height: 29px;
  }
}

@media (max-width: 340px) {
  .link-button {
    grid-template-columns: 38px 1fr 28px;
    padding-inline: 13px;
    font-size: 0.93rem;
  }

  .icon {
    width: 26px;
    height: 26px;
  }
}

@media (min-width: 760px) {
  .bio-card {
    width: min(100%, 500px);
  }

  .page-shell {
    padding-block: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .link-button {
    transition: none;
  }
}
