:root {
  color-scheme: dark;
  --accent: #C697FF;
  --charcoal: #101013;
  --charcoal-deep: #070708;
  --text: #ffffff;
  --muted: #d8d4df;
  --shell-width: 520px;
  --profile-size: 126px;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100svh;
  margin: 0;
  background: var(--charcoal-deep);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  width: min(100%, var(--shell-width));
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--charcoal);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.45);
}

.hero {
  position: relative;
  height: clamp(294px, 45.15svh, 452px);
  background-image: url("assets/hero-background.webp");
  background-position: center 20%;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 3, 4, 0.02) 0%, rgba(3, 3, 4, 0.12) 62%, rgba(16, 16, 19, 0.95) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 44%;
  background: linear-gradient(180deg, rgba(16, 16, 19, 0) 0%, rgba(16, 16, 19, 0.74) 58%, var(--charcoal) 100%);
}

.content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: calc(100svh - clamp(294px, 45.15svh, 452px));
  margin-top: calc(var(--profile-size) / -2);
  padding: 0 18px max(54px, env(safe-area-inset-bottom));
  text-align: center;
}

.profile-image {
  width: var(--profile-size);
  height: var(--profile-size);
  border: 4px solid var(--accent);
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  background: #1a1a1d;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 0 7px rgba(16, 16, 19, 0.72);
}

h1 {
  margin: 21px 0 20px;
  color: var(--text);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 8px;
  margin: 0 auto;
}

.social-link {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  transition: transform 170ms ease, filter 170ms ease, box-shadow 170ms ease;
}

.social-link img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.social-link:hover,
.social-link:focus-visible {
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3);
  filter: saturate(1.1) brightness(1.08);
  transform: translateY(-2px);
}

.social-link:active,
.social-link.is-pressed {
  transform: scale(0.94);
}

.update-note {
  margin: 28px 0 10px;
  color: var(--accent);
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1.25;
}

.footer-handle {
  margin: 24px 0 0;
  color: rgba(198, 151, 255, 0.8);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.2;
}

.cta-card {
  position: relative;
  display: block;
  width: min(100%, 430px);
  aspect-ratio: 1.72 / 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background-image: linear-gradient(180deg, rgba(5, 5, 6, 0.05) 0%, rgba(5, 5, 6, 0.15) 44%, rgba(5, 5, 6, 0.68) 100%), url("assets/cta-background.webp");
  background-position: center 48%;
  background-size: cover;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.48);
  isolation: isolate;
  transform-origin: center;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.cta-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(198, 151, 255, 0.12) 0%, rgba(255, 255, 255, 0) 42%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.cta-icon {
  position: absolute;
  top: 17px;
  left: 17px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
  background: rgba(8, 8, 10, 0.68);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(10px);
}

.cta-icon img {
  width: 27px;
  height: 27px;
  object-fit: contain;
}

.cta-text {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  color: var(--text);
  font-size: 1.28rem;
  font-weight: 850;
  line-height: 1.1;
  text-align: left;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.82), 0 1px 1px rgba(0, 0, 0, 0.72);
}

.cta-card:hover,
.cta-card:focus-visible {
  border-color: rgba(198, 151, 255, 0.68);
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.56), 0 0 0 1px rgba(198, 151, 255, 0.16);
  filter: saturate(1.04);
  transform: translateY(-2px);
}

.cta-card:hover::after,
.cta-card:focus-visible::after {
  opacity: 1;
}

.cta-card:active,
.cta-card.is-pressed {
  transform: scale(0.985);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width: 340px) {
  :root {
    --profile-size: 116px;
  }

  .content {
    padding-right: 16px;
    padding-left: 16px;
  }

  h1 {
    font-size: 2.05rem;
  }

  .social-links {
    gap: 5px;
  }

  .social-link {
    width: 31px;
    height: 31px;
  }

  .social-link img {
    width: 100%;
    height: 100%;
  }

  .cta-text {
    font-size: 1.15rem;
  }
}

@media (min-width: 560px) {
  :root {
    --profile-size: 148px;
  }

  .page-shell {
    min-height: 100vh;
  }

  .hero {
    height: clamp(347px, 45.15vh, 494px);
  }

  .content {
    min-height: calc(100vh - clamp(347px, 45.15vh, 494px));
    padding-right: 24px;
    padding-left: 24px;
  }

  h1 {
    font-size: 2.55rem;
  }

  .social-link {
    width: 40px;
    height: 40px;
  }

  .social-link img {
    width: 100%;
    height: 100%;
  }

  .update-note {
    margin-top: 32px;
  }

  .cta-text {
    font-size: 1.42rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
