:root {
  --bg: #f4f1ec;
  --card: #fffdf9;
  --text: #1c1917;
  --muted: #57534e;
  --accent: #b45309;
  --border: #e7e5e4;
  --font: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', system-ui, sans-serif;
  --tg: #229ed9;
  --gh: #24292f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(circle at 20% 20%, #fde68a33, transparent 40%),
    radial-gradient(circle at 80% 80%, #fdba7433, transparent 40%);
}

.card {
  width: 100%;
  max-width: 520px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 50px rgba(28, 25, 23, 0.06);
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fbbf24, var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

h1 {
  font-size: 1.75rem;
  margin: 0 0 0.25rem;
  font-weight: 400;
}

.title {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--accent);
  margin: 0 0 1.25rem;
}

.bio {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 2rem;
  white-space: pre-line;
}

h2 {
  font-family: var(--sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.highlight-lines {
  margin: 0 0 2rem;
}

.highlight-line {
  margin: 0 0 0.65rem;
  color: var(--text);
  line-height: 1.65;
}

.highlight-line:last-child {
  margin-bottom: 0;
}

.projects {
  margin-bottom: 2rem;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.project-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.project-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-shrink: 0;
}

.project-badge {
  flex-shrink: 0;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
}

.project-badge--role {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.68rem;
  font-weight: 600;
  color: #0369a1;
  background: #e0f2fe;
}

.project-badge--role-designer {
  color: #7c3aed;
  background: #ede9fe;
}

.project-badge--role-co_developer {
  color: #0f766e;
  background: #ccfbf1;
}

.project-badge--development {
  color: #b45309;
  background: #fef3c7;
}

.project-badge--archived {
  color: #57534e;
  background: #f5f5f4;
}

.project-card--dev {
  border-style: dashed;
}

.project-card--archived {
  opacity: 0.88;
  background: #fafaf9;
}

.project-card--archived:hover {
  border-color: var(--border);
  box-shadow: none;
  transform: none;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.project-card:hover {
  border-color: var(--tg);
  box-shadow: 0 6px 18px rgba(34, 158, 217, 0.12);
  transform: translateY(-1px);
}

.project-name {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.project-desc {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.project-link {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--tg);
  margin-top: 0.15rem;
}

.social {
  display: flex;
  gap: 0.75rem;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--border);
  color: var(--text);
  background: #fff;
  text-decoration: none;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.icon-link svg {
  width: 24px;
  height: 24px;
}

.icon-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(28, 25, 23, 0.08);
}

.icon-link--telegram:hover {
  border-color: var(--tg);
  color: var(--tg);
}

.icon-link--github:hover {
  border-color: var(--gh);
  color: var(--gh);
}

footer {
  margin-top: 1.5rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-auth {
  color: var(--muted);
  text-decoration: none;
  opacity: 0.45;
  line-height: 1;
}

.footer-auth:hover {
  opacity: 1;
  color: var(--accent);
}
