:root {
  color-scheme: dark;
  --background: #090a10;
  --surface: rgba(18, 20, 30, 0.64);
  --surface-hover: rgba(24, 26, 39, 0.82);
  --text: #f0eee9;
  --muted: #a8a7b1;
  --accent: #9494ff;
  --accent-soft: rgba(126, 126, 255, 0.28);
  --border: rgba(151, 151, 224, 0.28);
  --border-hover: rgba(160, 160, 255, 0.74);
  --display: Georgia, "Times New Roman", serif;
  --ui: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 47%, rgba(67, 67, 150, 0.13), transparent 32rem),
    var(--background);
  color: var(--text);
  font-family: var(--ui);
}

a {
  color: inherit;
}

.home-shell,
.links-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(1.5rem, 4vw, 4rem);
}

.home-shell {
  place-items: center;
}

.ambient-light {
  position: fixed;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: min(80vw, 56rem);
  height: min(80vw, 56rem);
  border-radius: 50%;
  background: rgba(74, 74, 174, 0.1);
  filter: blur(7rem);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.home-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2rem, 4vw, 2.75rem);
  text-align: center;
  animation: arrive 700ms ease-out both;
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.home-content h1 {
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 0.9;
}

.email-button {
  display: inline-flex;
  min-height: 3.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.7rem;
  border: 1px solid var(--border-hover);
  border-radius: 0.8rem;
  background: rgba(16, 17, 26, 0.52);
  box-shadow:
    0 0 0 1px rgba(139, 139, 255, 0.08) inset,
    0 0 2.6rem var(--accent-soft);
  color: #b5b5ff;
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.email-button:hover {
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px rgba(139, 139, 255, 0.12) inset,
    0 0 3.2rem rgba(126, 126, 255, 0.38);
  color: #d0d0ff;
  transform: translateY(-2px);
}

.links-shell {
  align-content: start;
  justify-items: center;
  padding-top: clamp(5rem, 14vh, 9rem);
}

.links-content {
  width: min(100%, 43rem);
  animation: arrive 700ms ease-out both;
}

.links-content h1 {
  margin-bottom: clamp(2.5rem, 7vw, 4.5rem);
  font-size: clamp(4rem, 9vw, 6rem);
  line-height: 1;
  text-align: center;
}

.links-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-card {
  display: flex;
  min-height: 7.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem clamp(1.5rem, 5vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: var(--surface);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.12);
  font-family: var(--display);
  font-size: clamp(1.7rem, 5vw, 2.35rem);
  letter-spacing: -0.035em;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.link-card::after {
  width: 0.75rem;
  height: 0.75rem;
  flex: 0 0 auto;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  content: "";
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.link-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.2), 0 0 2.5rem rgba(100, 100, 220, 0.08);
  transform: translateY(-2px);
}

.link-card:hover::after {
  transform: translateX(0.2rem) rotate(45deg);
}

.email-button:focus-visible,
.link-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

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

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

@media (max-width: 520px) {
  .home-content h1 {
    font-size: clamp(3.4rem, 18vw, 5rem);
  }

  .email-button {
    width: 100%;
    padding-inline: 1.25rem;
  }

  .links-shell {
    padding-inline: 1rem;
  }

  .link-card {
    min-height: 6.5rem;
  }
}

@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;
  }
}
