:root {
  --bg: #ffffff;
  --text: #000000;
  --heading: #242424;
  --muted: #6e6e6e;
  --banner-bg: #f4f4f4;
  --radius: 3000px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 32px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
  transition: opacity 0.15s ease-in-out;
}

a:hover { opacity: 0.5; }

/* Banner */

.banner {
  background: var(--banner-bg);
  font-size: 18px;
  line-height: 1.5;
  padding: 14px 20px;
  text-align: center;
}

.banner a { font-weight: 500; }

/* Layout */

.page {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 60px 20px;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 80px;
}

/* Header */

.title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 12px;
  margin: 0 0 40px;
  color: var(--heading);
  font-size: 36px;
  line-height: 1.55;
  font-weight: 400;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: var(--radius);
  object-fit: cover;
  display: block;
  flex: none;
}

/* Sections */

.bio { margin: 0 0 40px; max-width: 944px; }

.block { margin: 0 0 32px; }

.block:last-child { margin-bottom: 0; }

.label { font-weight: 500; }

.links { list-style: none; margin: 8px 0 0; padding: 0; }

.lang {
  margin-top: 56px;
  font-size: 18px;
  color: var(--muted);
}

.lang a { color: var(--muted); }

/* Responsive */

@media (max-width: 1199px) {
  .wrap { padding: 0 40px; }
}

@media (max-width: 959px) {
  body { font-size: 24px; }
  .title { font-size: 30px; }
  .wrap { padding: 0 24px; }
}

@media (max-width: 639px) {
  body { font-size: 18px; }
  .title { font-size: 26px; margin-bottom: 28px; }
  .avatar { width: 40px; height: 40px; }
  .page { padding: 40px 16px; }
  .wrap { padding: 0; }
  .bio, .block { margin-bottom: 24px; }
  .banner { font-size: 15px; }
  .lang { margin-top: 40px; font-size: 16px; }
}
