:root {
  --bg: #ffffff;
  --text: #181818;
  --text-muted: #6b6b6b;
  --card-bg: #f3f3f1;
  --card-bg-hover: #e9e9e6;
  --card-text: #181818;
  --card-border: transparent;
  --card-shadow: 0 1px 2px rgb(0 0 0 / 0.06);

  --font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --page-max-width: 26rem;
  --radius-card: 9999px;
  --radius-photo: 50%;

  --transition: 180ms ease;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #181818;
    --text: #f5f5f5;
    --text-muted: #a3a3a3;
    --card-bg: #262626;
    --card-bg-hover: #303030;
    --card-text: #f5f5f5;
    --card-border: #3a3a3a;
    --card-shadow: 0 1px 2px rgb(0 0 0 / 0.4);
  }
}

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

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

body {
  font-family: var(--font-family);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--transition), color var(--transition);
}

.page {
  min-height: 100svh;
  max-width: var(--page-max-width);
  margin-inline: auto;
  padding: 3rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2rem;
}

.profile__photo {
  width: 7rem;
  height: 7rem;
  border-radius: var(--radius-photo);
  object-fit: cover;
  margin-bottom: 1rem;
  box-shadow: 0 2px 12px rgb(0 0 0 / 0.12);
}

.profile__name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.profile__bio {
  margin-top: 0.375rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 24rem;
  overflow-wrap: break-word;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  width: 100%;
}

.link-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.375rem;
  padding: 0.875rem 1.25rem;
  background: var(--card-bg);
  color: var(--card-text);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  transition:
    transform var(--transition),
    background-color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
  .link-card:hover {
    background: var(--card-bg-hover);
    transform: scale(1.02);
    box-shadow: 0 4px 14px rgb(0 0 0 / 0.12);
  }

  .link-card:active {
    transform: scale(0.98);
  }
}

.link-card:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.link-card__icon {
  position: absolute;
  left: 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.link-card:hover .link-card__icon {
  transform: scale(1.1);
}

.link-card__label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer {
  margin-top: auto;
  padding-top: 2.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer__link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.footer__link:hover {
  color: var(--text);
  border-bottom-color: currentColor;
}

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

@media (min-width: 480px) {
  .page {
    padding-inline: 1.5rem;
  }

  .profile__photo {
    width: 8rem;
    height: 8rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}