:root {
  --bg: #f7f9fc;
  --card: #fff;
  --text: #2d333b;
  --muted: #657080;
  --line: #e5ebf2;
  --primary: #4a90d9;
  --primary-dark: #2f6fab;
  --radius: 8px;
  --shadow: 0 18px 45px rgba(53, 80, 112, .08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px max(24px, calc((100vw - 1120px) / 2));
  background: rgba(247, 249, 252, .88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.logo {
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}

.nav a {
  color: var(--muted);
  font-size: 15px;
}

.section,
.stats {
  width: calc(100% - 48px);
  max-width: 1120px;
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 32px;
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: 72px 0 48px;
}

.hero-copy,
.profile-card,
.card,
.mini-card {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-width: 0;
  overflow-wrap: anywhere;
}

.hero-copy {
  padding: 44px;
  border-radius: var(--radius);
}

.avatar {
  display: grid;
  width: 86px;
  height: 86px;
  margin-bottom: 26px;
  place-items: center;
  border-radius: 50%;
  background: #e8f3ff;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0;
}

.eyebrow,
.tag,
.stack {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: 64px;
  line-height: 1.05;
}

h2 {
  margin-bottom: 18px;
  font-size: 32px;
  line-height: 1.25;
}

h3 {
  margin-bottom: 12px;
  font-size: 21px;
  line-height: 1.35;
}

.intro {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  max-width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.button:hover {
  background: var(--primary-dark);
  color: #fff;
}

.text-link {
  font-weight: 700;
}

.profile-card {
  padding: 34px;
  border-radius: var(--radius);
}

.details {
  display: grid;
  gap: 18px;
  margin: 0;
}

.details div {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.details div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

dt {
  color: var(--muted);
  font-size: 14px;
}

dd {
  margin: 4px 0 0;
  font-weight: 700;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 84px;
}

.stats div {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.stats strong,
.stats span {
  display: block;
}

.stats strong {
  font-size: 28px;
  line-height: 1.2;
}

.stats span {
  margin-top: 6px;
  color: var(--muted);
}

.section {
  padding: 72px 0;
}

.section-title {
  max-width: 640px;
  margin-bottom: 28px;
}

.project-grid,
.strength-grid {
  display: grid;
  gap: 20px;
}

.project-grid {
  grid-template-columns: repeat(2, 1fr);
}

.strength-grid {
  grid-template-columns: repeat(4, 1fr);
}

.card,
.mini-card {
  border-radius: var(--radius);
}

.card {
  padding: 30px;
}

.card p,
.mini-card p {
  color: var(--muted);
}

.card ul {
  margin: 18px 0;
  padding-left: 20px;
  color: var(--muted);
}

.stack {
  margin-top: 22px;
  margin-bottom: 0;
}

.mini-card {
  padding: 24px;
}

.contact {
  display: grid;
  min-height: 100vh;
  place-content: center;
  padding: 80px 24px;
  text-align: center;
  background: #fff;
  border-top: 1px solid var(--line);
}

.contact h2 {
  max-width: 780px;
  margin-right: auto;
  margin-left: auto;
  font-size: 52px;
}

.contact p {
  max-width: 620px;
  margin-right: auto;
  margin-left: auto;
  color: var(--muted);
}

.contact .button {
  width: fit-content;
  margin: 18px auto 0;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px 20px;
  }

  .section,
  .stats {
    width: calc(100% - 32px);
  }

  .hero,
  .project-grid,
  .strength-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  .hero-copy,
  .profile-card,
  .card,
  .mini-card {
    padding: 24px;
    border-radius: var(--radius);
  }

  h1 {
    font-size: 44px;
  }

  .contact h2 {
    font-size: 34px;
  }

  .nav {
    gap: 10px 14px;
    justify-content: flex-start;
  }

  .stats {
    margin-bottom: 36px;
  }

  .section {
    padding: 48px 0;
  }
}
