:root {
  --bg: #efefed;
  --bg-deep: #e6e4e0;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-strong: rgba(255, 255, 255, 0.9);
  --text: #171b22;
  --muted: #30373f;
  --border: rgba(24, 30, 39, 0.14);
  --link: #1d4ed8;
  --brand: #14181d;
  --brand-soft: #f2efe8;
  --accent: #c6b38a;
  --shadow: rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.75), transparent 30%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

.page-shell {
  width: min(1100px, calc(100vw - 64px));
  margin: 32px auto 48px;
  padding: 0 0 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.66));
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(12px);
}

.site-header {
  padding: 22px 32px 18px;
  border-bottom: 1px solid var(--border);
}

.site-header h1 {
  margin: 0;
  font-size: clamp(2.5rem, 2vw + 1.5rem, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 1.05;
}

.profile-card {
  display: flex;
  justify-content: center;
  padding: 28px 32px 0;
}

.profile-photo {
  width: min(760px, 72vw);
  max-width: 740px;
  aspect-ratio: 1.15;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(20, 24, 29, 0.08);
  box-shadow: 0 24px 45px rgba(15, 23, 42, 0.1);
}

.content-block,
.social-block {
  padding: 24px 0 0;
}

.content-block h2,
.social-block h2 {
  margin: 0;
  padding: 0 32px;
  font-size: clamp(1.7rem, 1vw + 1.2rem, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.05em;
}

.divider {
  margin: 14px 32px 0;
  border-top: 1px solid var(--border);
}

.content-block {
  position: relative;
}

.content-block p {
  margin: 0;
  padding: 22px 32px 0;
  font-size: clamp(1.02rem, 0.8vw + 0.9rem, 1.24rem);
  color: var(--muted);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.social-block {
  padding-bottom: 12px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 32px 0;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--link);
  font-weight: 700;
  font-size: 1.04rem;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-link:hover,
.social-link:focus-visible {
  opacity: 0.9;
  transform: translateY(-1px);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #dfeaf8;
  color: var(--link);
  flex-shrink: 0;
}

.social-icon svg {
  width: 14px;
  height: 14px;
  display: block;
  fill: currentColor;
}

.linkedin-icon {
  background: rgba(10, 102, 194, 0.1);
}

.github-icon {
  background: rgba(36, 41, 47, 0.1);
  color: #24292f;
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100vw - 24px, 1100px);
    margin: 18px auto 28px;
  }

  .site-header {
    padding-left: 20px;
    padding-right: 20px;
  }

  .content-block h2,
  .social-block h2,
  .divider,
  .content-block p,
  .social-links {
    padding-left: 20px;
    padding-right: 20px;
  }

  .divider {
    margin-left: 20px;
    margin-right: 20px;
  }

  .profile-card {
    padding: 20px 20px 0;
  }

  .profile-photo {
    width: min(90vw, 760px);
  }

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