:root {
  --color-bg: #f7fbff;
  --color-primary: #6d38d5;
  --color-text: #21183f;
  --color-text-muted: #6d6877;
  --color-focus: #7c3aed;

  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;

  --container-width: 68rem;

  --transition-fast: 150ms ease;

  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--color-bg);
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--color-text);
  font-family:
    "Roboto", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  background:
    radial-gradient(circle at 18% 18%, rgba(125, 140, 255, 0.12), transparent 29rem),
    radial-gradient(circle at 82% 76%, rgba(255, 79, 94, 0.08), transparent 30rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(238, 242, 255, 0.68)), var(--color-bg);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 4px;
}

.max-w-container {
  width: min(100% - clamp(2rem, 7vw, 5rem), var(--container-width));
  margin-inline: auto;
}

.text-center {
  text-align: center;
}

.orbit-background {
  position: fixed;
  inset: 50% auto auto 50%;
  z-index: 0;
  width: min(125vmax, 98rem);
  height: min(125vmax, 98rem);
  display: block;
  pointer-events: none;
  opacity: 0.4;
  transform: translate(-50%, -50%);
  filter: saturate(1.08);
  overflow: visible;
}

.site-footer {
  position: relative;
  z-index: 1;
}

.site-main {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: calc(100vh - 5rem);
  place-items: center;
  padding-block: clamp(0.5rem, 2vw, 1.5rem);
}

.hero {
  display: grid;
  justify-items: center;
  gap: clamp(0.65rem, 1.6vw, 0.95rem);
}

.portrait-shell {
  position: relative;
  width: 150px;
  aspect-ratio: 1;
  border-radius: 30%;
  transform: rotate(40deg);
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  filter: drop-shadow(0 0.45rem 1rem rgba(255, 255, 255, 0.58));
}

.portrait-image {
  transform: rotate(-43deg);
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 44%;
  opacity: 0;
  z-index: 0;
  transition: opacity 400ms ease;
}

.portrait-image.is-active {
  opacity: 1;
  z-index: 1;
}

.portrait-image.is-entering {
  z-index: 2;
}

.intro {
  max-width: 42rem;
}

.intro h1 {
  margin: 0 0 var(--space-sm);
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

.intro p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.contact-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md) var(--space-lg);
}

.contact-section a {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-bottom: 1px solid color-mix(in srgb, var(--color-primary), transparent 58%);
  color: var(--color-primary);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    border-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
}

.contact-section svg {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.contact-section a:hover {
  border-color: currentColor;
  color: #4c1d95;
  transform: translateY(-0.125rem);
}

.info-text {
  max-width: 40rem;
  margin-top: var(--space-lg);
  color: var(--color-text-muted);
  text-align: justify;
}

.info-text p {
  margin: 0;
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
}

.site-footer {
  padding: var(--space-lg);
  color: var(--color-text-muted);
  text-align: center;
}

@media (max-width: 720px) {
  .site-main {
    min-height: auto;
    padding-block: var(--space-lg) var(--space-xl);
  }

  .contact-section {
    width: min(100%, 22rem);
    flex-direction: column;
    align-items: center;
  }

  .contact-section a {
    flex: 0 0 auto;
  }
}

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