:root {
  --page-bg: #ffffff;
  --card-bg: #eef0f3;
  --text-primary: rgba(16, 16, 17, 0.94);
  --text-secondary: rgba(26, 27, 32, 0.64);
  --text-tertiary: rgba(31, 31, 32, 0.42);
  --card-width: 353px;
  --card-height: 570px;
  --card-radius: 24px;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 770px;
  margin: 0;
  color: var(--text-primary);
  background: var(--page-bg);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  min-height: 770px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 100px 20px 0;
}

.profile-card {
  position: relative;
  isolation: isolate;
  width: var(--card-width);
  height: var(--card-height);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 32px 40px;
  border-radius: var(--card-radius);
  background: var(--card-bg);
  transform:
    perspective(900px)
    rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg));
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
  will-change: transform;
}

.profile-card::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.6),
    rgba(255, 255, 255, 0) 34%,
    rgba(0, 0, 0, 0.04) 100%
  );
  opacity: var(--edge-glow, 0);
  content: "";
  transition: opacity 180ms ease;
}

.profile-card__glare {
  position: absolute;
  inset: -55%;
  z-index: -1;
  opacity: var(--glare-opacity, 0);
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0) 32%,
    rgba(255, 255, 255, 0.72) 48%,
    rgba(255, 255, 255, 0.12) 55%,
    rgba(255, 255, 255, 0) 68%
  );
  transform: translateX(var(--glare-shift, -18%)) rotate(8deg);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  pointer-events: none;
}

.profile-card:hover {
  --edge-glow: 1;
  --glare-opacity: 0.8;
  background:
    radial-gradient(
      circle at var(--glare-x, 50%) var(--glare-y, 50%),
      rgba(255, 255, 255, 0.9) 0,
      rgba(255, 255, 255, 0.38) 16%,
      rgba(255, 255, 255, 0) 42%
    ),
    var(--card-bg);
}

.profile-card__header h1 {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  letter-spacing: 0;
}

.profile-card__header p,
.profile-card__footer a {
  margin: 0;
  font-size: 18px;
  line-height: 24px;
  letter-spacing: 0;
}

.profile-card__header p,
.profile-card__eyebrow {
  font-weight: 400;
}

.profile-card__eyebrow {
  margin: 0;
  color: var(--text-tertiary);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0;
}

.profile-card__footer {
  display: grid;
  gap: 8px;
}

.profile-card__footer a {
  width: fit-content;
  font-weight: 400;
  outline-offset: 5px;
  transition:
    color 140ms ease,
    transform 140ms ease;
}

.profile-card__footer a:hover {
  transform: translateX(2px);
}

.profile-card__footer a:focus-visible {
  border-radius: 4px;
  outline: 2px solid rgba(16, 16, 17, 0.42);
}

@media (max-width: 393px) {
  .page-shell {
    justify-content: flex-start;
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-card,
  .profile-card::before,
  .profile-card__glare,
  .profile-card__footer a {
    transition: none;
  }

  .profile-card,
  .profile-card__footer a:hover {
    transform: none;
  }
}
