﻿:root {
  color-scheme: light;
  --background: #f7f5f0;
  --foreground: #1f2933;
  --ring: rgba(31, 41, 51, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--background);
  color: var(--foreground);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: -20%;
  z-index: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.5) 48%, transparent 66%),
    radial-gradient(circle at 45% 20%, rgba(255, 255, 255, 0.95), transparent 32rem),
    radial-gradient(circle at 70% 75%, rgba(170, 185, 176, 0.28), transparent 24rem);
  background-size: 180% 180%, auto, auto;
  transform: translate3d(0, 0, 0) scale(1);
}

.profile {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 28rem);
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  padding: 2rem;
  text-align: center;
}

.profile__photo {
  width: clamp(7.5rem, 28vw, 10rem);
  height: clamp(7.5rem, 28vw, 10rem);
  border-radius: 50%;
  object-fit: cover;
  background: #e5e7eb;
  box-shadow:
    0 0 0 0.5rem rgba(255, 255, 255, 0.85),
    0 1.5rem 3rem var(--ring);
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 3.5rem);
  line-height: 1.05;
  font-weight: 700;
}

@media (prefers-reduced-motion: no-preference) {
  body::before {
    animation: background-drift 9s ease-in-out infinite alternate;
  }

  .profile {
    animation: enter 600ms ease-out both;
  }
}

@keyframes background-drift {
  from {
    background-position: 0% 50%, center, center;
    transform: translate3d(-1.5rem, -1rem, 0) scale(1);
  }

  to {
    background-position: 100% 50%, center, center;
    transform: translate3d(1.5rem, 1rem, 0) scale(1.05);
  }
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
