/* Carlo Berchtold — personal link hub */
:root {
  --bg-0: #070709;
  --bg-1: #0e0e12;
  --bg-2: #16161c;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --accent: #7dd3fc;
  --accent-soft: rgba(125, 211, 252, 0.15);
  --glow: rgba(125, 211, 252, 0.12);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --radius-pill: 999px;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 440px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg-0);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--glow), transparent 55%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(167, 139, 250, 0.08), transparent 50%),
    radial-gradient(ellipse 50% 30% at 10% 80%, rgba(125, 211, 252, 0.06), transparent 45%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1.25rem 2rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.profile {
  text-align: center;
  margin-bottom: 1.75rem;
}

.avatar-ring {
  display: inline-block;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.55), rgba(167, 139, 250, 0.4), rgba(255, 255, 255, 0.12));
  box-shadow: 0 0 40px var(--glow), var(--shadow);
  margin-bottom: 1.15rem;
}

.avatar {
  display: block;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-2);
  border: 3px solid var(--bg-0);
}

.name {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  margin-bottom: 1.25rem;
  padding: 0.95rem 1.35rem;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--bg-0);
  background: linear-gradient(180deg, #e4e4e7 0%, #d4d4d8 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 10px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.cta:hover {
  background: linear-gradient(180deg, #fafafa 0%, #e4e4e7 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 14px 36px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.cta:active {
  transform: translateY(0);
}

.cta svg {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  margin-bottom: auto;
  padding: 0.25rem 0 2rem;
  list-style: none;
}

.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  transition:
    color 0.25s var(--ease),
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.socials a:hover {
  color: var(--text);
  background: var(--surface-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.socials a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  color: var(--text);
}

.socials svg {
  width: 1.25rem;
  height: 1.25rem;
}

.footer {
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.75;
  text-align: center;
}

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

  .cta:hover,
  .socials a:hover {
    transform: none;
  }
}

@media (min-width: 480px) {
  .avatar {
    width: 128px;
    height: 128px;
  }

  .name {
    font-size: 1.65rem;
  }
}
