:root {
  --bg: #f6f5f1;
  --ink: #1a1a17;
  --ink-soft: #4d4a43;
  --muted: #908a7e;
  --faint: #b9b3a6;
  --line: #e4e0d6;
  --line-strong: #d6d1c4;
  --maxw: 440px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(36px, 9vw, 88px) 24px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.card {
  width: 100%;
  max-width: var(--maxw);
  display: flex;
  flex-direction: column;
}

/* Profile — centered, quiet */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.profile__id {
  margin-top: 18px;
}

.name {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 7vw, 2.4rem);
  font-weight: 500;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.tagline {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

/* Social icons */
.socials {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 22px 0 44px;
}

.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--faint);
  text-decoration: none;
}

.social:hover {
  color: var(--ink);
}

/* Link groups — contained blocks */
.link-group + .link-group {
  margin-top: 26px;
}

.link-group__title {
  margin: 0 0 10px 2px;
  color: var(--faint);
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

/* Link list */
.links {
  display: flex;
  flex-direction: column;
  background: #fcfbf8;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.link:last-child {
  border-bottom: none;
}

.link:hover {
  background: #f4f1ea;
}

.link__label {
  flex: 1;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -0.005em;
  line-height: 1.3;
}

.link__arrow {
  flex: none;
  color: var(--faint);
  opacity: 0;
}

.link:hover .link__arrow {
  color: var(--ink);
  opacity: 1;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Accessible focus */
.social:focus-visible,
.link:focus-visible {
  outline: 1.5px solid var(--ink);
  outline-offset: 4px;
  border-radius: 6px;
}

.link:focus-visible .link__arrow {
  opacity: 1;
}
