:root {
  --background: #f5f1ea;
  --text: #17212b;
  --muted: #6d737a;
  --line: #e8e1d8;
  --accent: #14213d;
  --shadow: 0 24px 70px rgba(23, 33, 43, 0.10);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255,255,255,.95), transparent 34rem),
    linear-gradient(180deg, #fbf8f2 0%, var(--background) 100%);
}

.site {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}

.profile-card {
  width: min(100%, 440px);
  padding: 34px 24px 26px;
  background: rgba(255,255,255,.90);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  text-align: center;
}

.portrait {
  width: 152px;
  height: 152px;
  display: block;
  margin: 0 auto 20px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
  outline: 1px solid var(--line);
  box-shadow: 0 16px 34px rgba(23,33,43,.12);
}

h1 {
  margin: 0;
  font-size: clamp(1.55rem, 5vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.role {
  margin: 10px 0 0;
  color: var(--accent);
  font-weight: 800;
}

.institution {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .95rem;
  font-weight: 700;
}

.handle {
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.phrase {
  margin: 14px 0 26px;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.social-links {
  display: grid;
  gap: 12px;
}

.social-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  width: 100%;
  min-height: 62px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 800;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.social-button:hover,
.social-button:focus {
  transform: translateY(-2px);
  border-color: #cfc5b8;
  box-shadow: 0 14px 30px rgba(23,33,43,.10);
}

.social-button img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex: 0 0 40px;
}

.social-button span {
  flex: 1;
  text-align: center;
  margin-right: 56px;
}

.contact-button {
  background: #14213d;
  color: #ffffff;
  border-color: #14213d;
}

footer {
  margin-top: 24px;
  color: var(--muted);
  font-size: .84rem;
  overflow-wrap: anywhere;
}

@media (max-width: 420px) {
  .site { padding: 18px 12px; }
  .profile-card { padding: 28px 18px 22px; border-radius: 24px; }
  .portrait { width: 132px; height: 132px; }
  .social-button { min-height: 58px; padding: 11px 14px; }
  .social-button img { width: 36px; height: 36px; flex-basis: 36px; }
  .social-button span { margin-right: 50px; }
}
