:root {
  color-scheme: dark;
  --page-bg: #000000;
  --card-radius: 40px;
  --page-gap: clamp(18px, 3.9vw, 50px);
  --content-width: 724px;
  --title: #ffffff;
  --subtitle: #abbad5;
  --body: #7d8aa2;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--title);
  font-synthesis-weight: none;
  font-family:
    "Inter",
    "SF Pro Text",
    "Helvetica Neue",
    Arial,
    sans-serif;
  letter-spacing: 0;
}

.page {
  display: flex;
  width: 100vw;
  min-height: 100dvh;
  align-items: flex-start;
  justify-content: center;
  padding: var(--page-gap);
  overflow: hidden;
}

.portfolio-card {
  position: relative;
  width: calc(100vw - (var(--page-gap) * 2));
  height: calc(100dvh - (var(--page-gap) * 2));
  overflow: hidden;
  border-radius: var(--card-radius);
  isolation: isolate;
}

.gradient-layer,
.blur-layer {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.gradient-layer {
  z-index: 0;
  background: linear-gradient(
    180deg,
    rgb(3, 7, 19) 0%,
    rgb(3, 9, 26) 33.347%,
    rgb(10, 20, 54) 44.716%,
    rgb(20, 49, 106) 56.705%,
    rgb(87, 145, 211) 72.488%,
    rgb(158, 193, 230) 82.378%,
    rgb(203, 193, 217) 100%
  );
}

.blur-layer {
  z-index: 1;
  background: rgba(0, 0, 0, 0.01);
  backdrop-filter: blur(71.668px);
  -webkit-backdrop-filter: blur(71.668px);
}

.content {
  position: absolute;
  z-index: 2;
  top: min(30.8%, 243px);
  left: 50%;
  display: flex;
  width: min(var(--content-width), calc(100% - 44px));
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
  transform: translateX(-50%);
}

.title-group {
  display: flex;
  width: 215px;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

h1,
p {
  margin: 0;
}

h1 {
  width: 100%;
  color: var(--title);
  font-family:
    "Inter Tight",
    "Inter",
    "SF Pro Display",
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.36px;
  line-height: 57.823px;
}

.title-group p {
  width: 100%;
  color: var(--subtitle);
  font-size: 20px;
  font-weight: 400;
  font-variation-settings: "wght" 400;
  letter-spacing: -0.4px;
  line-height: normal;
}

.bio {
  width: 100%;
  color: var(--body);
  font-size: 16px;
  font-weight: 400;
  font-variation-settings: "wght" 400;
  letter-spacing: -0.32px;
  line-height: normal;
}

.current {
  width: 100%;
  color: var(--title);
  font-size: 16px;
  font-weight: 400;
  font-variation-settings: "wght" 400;
  letter-spacing: -0.32px;
  line-height: normal;
}

.chat-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #ffffff;
  color: #050d23;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.36px;
  line-height: normal;
  text-align: center;
  text-decoration: none;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.chat-link:hover {
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-1px);
}

.chat-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.82);
  outline-offset: 4px;
}

@media (max-width: 760px) {
  :root {
    --card-radius: 30px;
  }

  .portfolio-card {
    min-height: calc(100dvh - (var(--page-gap) * 2));
  }

  .content {
    top: 23%;
    width: min(var(--content-width), calc(100% - 32px));
    gap: 26px;
  }

  .title-group {
    gap: 7px;
  }

  h1 {
    font-size: clamp(30px, 8.7vw, 36px);
    line-height: 1.2;
  }

  .title-group p {
    font-size: clamp(17px, 4.8vw, 20px);
  }

  .bio,
  .current {
    font-size: clamp(13px, 3.7vw, 16px);
  }

  .chat-link {
    font-size: 16px;
  }
}

@media (max-width: 440px) {
  :root {
    --page-gap: 16px;
    --card-radius: 24px;
  }

  .content {
    top: 18%;
    gap: 22px;
  }

  .bio {
    line-height: 1.22;
  }
}

@media (max-height: 640px) {
  .portfolio-card {
    min-height: calc(100dvh - (var(--page-gap) * 2));
  }

  .content {
    top: 15%;
    gap: 18px;
  }

  .title-group {
    gap: 10px;
  }

  h1 {
    line-height: 1.15;
  }

  .bio,
  .current {
    font-size: 14px;
  }
}
