:root {
  --bg: #0b0b0b;
  --card: #222222;
  --card-hover: #2c2c2c;
  --ink: #ffffff;
  --muted: #c8c8c8;
  --font: "Source Sans 3", "Segoe UI", sans-serif;
}

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

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  width: min(100% - 2rem, 42rem);
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

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

.avatar {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  background: #111;
}

.profile h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.profile .tagline {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 400;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}

.socials a {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  opacity: 0.95;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.socials a:hover,
.socials a:focus-visible {
  opacity: 1;
  transform: translateY(-1px);
}

.socials img {
  display: block;
  width: 1.45rem;
  height: 1.45rem;
  object-fit: contain;
}

.section-label {
  margin: 1.35rem 0 0.7rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.link-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.1rem;
  padding: 0.45rem 3.7rem;
  background: var(--card);
  border-radius: 0.85rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.link-card:hover,
.link-card:focus-visible {
  background: var(--card-hover);
  transform: translateY(-1px);
}

.link-card img {
  position: absolute;
  left: 0.45rem;
  top: 50%;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 0.45rem;
  object-fit: cover;
  background: #111;
  transform: translateY(-50%);
}

.link-card .label {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
}

.site-home {
  display: block;
  margin-top: 1.75rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-home:hover,
.site-home:focus-visible {
  color: var(--ink);
}

@media (min-width: 640px) {
  .profile h1 {
    font-size: 1.5rem;
  }

  .link-card .label {
    font-size: 1rem;
  }
}
