:root {
  --ink: #f5f3ef;
  --muted: #a8a8a4;
  --line: rgba(245, 243, 239, 0.22);
  --line-hover: rgba(245, 243, 239, 0.6);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #0b0c0c;
}

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

.page {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 32px;
  overflow: hidden;
}

.bg {
  position: absolute;
  inset: 0;
  background: url("assets/hero-workspace.png") center / cover no-repeat;
  filter: grayscale(1) brightness(0.38) contrast(1.05);
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.72) 78%);
}

.content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  width: 100%;
  max-width: 560px;
  text-align: center;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-hover);
}

.brand {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 32px;
  width: 100%;
}

.lang-col {
  display: flex;
  flex-direction: column;
}

.link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 160ms ease, border-color 160ms ease;
}

.lang-col a:first-child {
  border-top: 1px solid var(--line);
}

.link:hover,
.link:focus-visible {
  color: #ffffff;
  border-color: var(--line-hover);
}

.link-linkedin {
  grid-column: 1 / -1;
  justify-self: center;
  width: 100%;
  max-width: 260px;
  margin-top: 4px;
}

.lang {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.link:hover .lang,
.link:focus-visible .lang {
  color: #ffffff;
}

@media (max-width: 480px) {
  .page {
    padding: 24px;
  }

  .content {
    gap: 28px;
  }

  .links {
    column-gap: 14px;
  }

  .link {
    flex-direction: column;
    gap: 2px;
    font-size: 0.95rem;
    padding: 16px 2px;
  }

  .avatar {
    width: 76px;
    height: 76px;
  }
}
