:root {
  --background: #f5f6f8;
  --surface: #ffffff;
  --text: #172033;
  --muted-text: #566176;
  --accent: #2457c5;
  --accent-dark: #173c91;
  --border: #dde2ea;
  --shadow: 0 24px 70px rgba(23, 32, 51, 0.12);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(
      circle at 10% 20%,
      rgba(36, 87, 197, 0.08),
      transparent 35%
    ),
    var(--background);
  color: var(--text);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.7;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  border-bottom: 1px solid rgba(221, 226, 234, 0.9);
  background: rgba(245, 246, 248, 0.88);
  backdrop-filter: blur(16px);
}

.navbar {
  display: flex;
  width: min(var(--max-width), calc(100% - 48px));
  min-height: 82px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.site-logo {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  background: var(--text);
  color: white;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.nav-links a {
  display: inline-flex;
  min-height: 42px;
  padding: 0 13px;
  border-radius: 9px;
  align-items: center;
  gap: 8px;
  color: var(--muted-text);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.nav-links a:hover {
  background: var(--surface);
  color: var(--accent);
  transform: translateY(-1px);
}

.nav-icon {
  width: 19px;
  height: 19px;
  fill: currentColor;
  flex: 0 0 auto;
}

.hero {
  display: flex;
  min-height: calc(100vh - 83px);
  padding: 80px 0;
  align-items: center;
}

.hero-content {
  display: grid;
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  align-items: center;
  gap: clamp(50px, 8vw, 110px);
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

.hero-text {
  max-width: 700px;
}

.intro-label {
  margin: 0 0 15px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.65rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.hero h1 span {
  font-size: 0.62em;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.bio {
  max-width: 680px;
  margin: 30px 0 0;
  color: var(--muted-text);
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  line-height: 1.9;
}

.photo-container {
  display: flex;
  justify-content: center;
}

.profile-photo {
  width: min(360px, 100%);
  height: 470px;
  border: 10px solid var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow);
  object-fit: cover;
  object-position: center;
}

@media (max-width: 820px) {
  .navbar {
    width: min(100% - 30px, var(--max-width));
    padding: 14px 0;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .nav-links a {
    min-height: 38px;
    padding: 0 9px;
    font-size: 0.84rem;
  }

  .hero {
    min-height: auto;
    padding: 65px 0 90px;
  }

  .hero-content {
    width: min(100% - 36px, var(--max-width));
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .hero-text {
    max-width: 100%;
  }

  .photo-container {
    grid-row: 1;
    justify-content: flex-start;
  }

  .profile-photo {
    width: min(310px, 100%);
    height: 400px;
  }
}

@media (max-width: 560px) {
  .navbar {
    display: block;
  }

  .site-logo {
    margin-bottom: 12px;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 4px;
  }

  .nav-links a {
    padding-right: 8px;
    padding-left: 8px;
  }

  .nav-links span {
    display: none;
  }

  .nav-icon {
    width: 22px;
    height: 22px;
  }

  .hero {
    padding-top: 45px;
  }

  .hero h1 {
    font-size: 2.15rem;
  }

  .bio {
    margin-top: 22px;
    line-height: 1.75;
  }

  .profile-photo {
    width: 100%;
    height: auto;
    max-height: 440px;
  }
}
