:root {
  --bg-top: #a3ad74;
  --bg-bottom: #59673a;
  --ink: #1f2917;
  --muted: #3f4d2d;
  --tile: rgba(248, 245, 235, 0.9);
  --tile-border: rgba(255, 251, 241, 0.98);
  --shadow: rgba(34, 47, 20, 0.24);
  --ring: rgba(94, 116, 51, 0.3);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  background-color: #72834c;
}

html {
  background:
    radial-gradient(42rem 42rem at -8% -18%, #d5dbb2 0%, transparent 60%),
    radial-gradient(36rem 36rem at 110% 108%, #4d5b31 0%, transparent 64%),
    linear-gradient(170deg, var(--bg-top), var(--bg-bottom));
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  background:
    radial-gradient(42rem 42rem at -8% -18%, #d5dbb2 0%, transparent 60%),
    radial-gradient(36rem 36rem at 110% 108%, #4d5b31 0%, transparent 64%),
    linear-gradient(170deg, var(--bg-top), var(--bg-bottom));
  overscroll-behavior-y: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(42rem 42rem at -8% -18%, #d5dbb2 0%, transparent 60%),
    radial-gradient(36rem 36rem at 110% 108%, #4d5b31 0%, transparent 64%),
    linear-gradient(170deg, var(--bg-top), var(--bg-bottom));
}

.page {
  max-width: 680px;
  margin: 0 auto;
  padding: calc(1.8rem + env(safe-area-inset-top)) 1rem calc(1.8rem + env(safe-area-inset-bottom));
}

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

.avatar {
  width: 98px;
  height: 98px;
  object-fit: cover;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 28px -20px var(--shadow);
}

h1 {
  margin: 0.8rem 0 0.2rem;
  font-family: "Fraunces", serif;
  font-size: clamp(1.7rem, 5vw, 2.35rem);
  line-height: 1.1;
}

.subtitle {
  max-width: 34ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.97rem;
}

.links {
  display: grid;
  gap: 0.72rem;
  max-width: 560px;
  margin: 0 auto;
}

.link-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--tile-border);
  border-radius: 14px;
  padding: 1rem 1.05rem;
  background: var(--tile);
  box-shadow: 0 14px 28px -20px var(--shadow);
  transform: translateY(8px);
  opacity: 0;
  animation: rise 360ms ease forwards;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-2px);
  border-color: #d9dec0;
  background: rgba(255, 251, 241, 0.98);
  box-shadow: 0 18px 32px -19px var(--shadow);
  outline: none;
}

.link-card:focus-visible {
  box-shadow: 0 0 0 3px var(--ring), 0 18px 32px -19px var(--shadow);
}

.link-card-top {
  display: flex;
  align-items: center;
}

.link-card h2 {
  margin: 0;
  width: 100%;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
}

.link-card p {
  margin: 0.36rem 0 0;
  text-align: left;
  color: #465437;
  font-size: 0.89rem;
}

.socials-wrap {
  margin-top: 1.5rem;
}

.socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.66rem;
}

.social-link {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.72);
  color: #3d4a2c;
  box-shadow: 0 10px 22px -18px var(--shadow);
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-2px);
  border-color: #d9dec0;
  background: rgba(255, 255, 255, 0.93);
  outline: none;
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.social-link:focus-visible {
  box-shadow: 0 0 0 3px var(--ring);
}

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

@media (max-width: 560px) {
  .page {
    padding-top: calc(1.3rem + env(safe-area-inset-top));
  }

  .profile {
    margin-bottom: 1.35rem;
  }

  .link-card {
    padding: 0.95rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto;
  }

  .link-card,
  .social-link {
    animation: none;
    transition: none;
    transform: none;
    opacity: 1;
  }
}
