:root {
  --paper: #f4f1ea;
  --ink: #232019;
  --ink-soft: #6b655a;
  --line: #d9d3c4;
  --accent: #a13d2a;
  --card-w: 380px;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(35, 32, 25, 0.08) 1px, transparent 0);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: "Space Mono", ui-monospace, monospace;
  -webkit-font-smoothing: antialiased;
}

.stage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.card {
  position: relative;
  width: 100%;
  max-width: var(--card-w);
  background: #fbfaf6;
  border: 1px solid var(--ink);
  padding: 40px 34px 28px;
  box-shadow: 8px 8px 0 var(--ink);
  animation: rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

.card__avatar {
  width: 64px;
  height: 64px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 22px;
}

.card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__name {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.25;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.card__role {
  margin: 0;
  font-size: 13px;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.card__location {
  margin: 6px 0 0;
  font-size: 10px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card__rule {
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    var(--line) 0,
    var(--line) 5px,
    transparent 5px,
    transparent 10px
  );
  margin: 26px 0 6px;
}

.card__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.card__links li + li {
  border-top: 1px solid var(--line);
}

.card__links a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, color 0.18s ease;
}

.card__links a:hover,
.card__links a:focus-visible {
  color: var(--accent);
  transform: translateX(4px);
}

.card__links a:focus-visible {
  outline: 1px dashed var(--accent);
  outline-offset: 4px;
}

.card__link-icon {
  width: 22px;
  height: 22px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card__link-icon svg {
  width: 100%;
  height: 100%;
}

.card__link-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.card__link-label {
  font-size: 13px;
  font-weight: 700;
}

.card__link-handle {
  font-size: 11.5px;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card__links a:hover .card__link-handle {
  color: var(--accent);
  opacity: 0.75;
}

.card__link-arrow {
  font-size: 14px;
  color: var(--ink-soft);
  transition: transform 0.18s ease, color 0.18s ease;
}

.card__links a:hover .card__link-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

@media (max-width: 420px) {
  .card {
    padding: 32px 22px 22px;
    box-shadow: 5px 5px 0 var(--ink);
  }

  .card__name {
    font-size: 20px;
  }
}
