/* Basic page */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: #111;
  background: #fff;
}

.page {
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* Two-column layout */
.profile {
  display: flex;
  align-items: flex-start;   /* top-align photo and text */
  gap: 48px;                 /* space between photo and text */
}

/* Photo container */
.photo {
  flex: 0 0 160px;           /* fixed column width */
  margin-top: 80px;          /* moves photo DOWN – adjust freely */
}

/* Actual image */
.photo img {
  width: 160px;              /* explicit size */
  height: auto;              /* keep proportions */
  display: block;
  border-radius: 6px;        /* optional */
}

/* Right-side content */
.content {
  flex: 1;
}

/* Name + tagline: move right and down */
.hero {
  margin-left: 40px;  /* move right; tweak this */
  margin-top: 40px;   /* move down; tweak this */
  margin-bottom: 22px;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 650;
}

.tagline {
  margin: 0;
  max-width: 560px;
}

/* About section */
.about {
  margin-left: 40px; /* align with hero */
  max-width: 640px;
}

.about h2 {
  margin: 18px 0 10px;
  font-size: 16px;
  font-weight: 650;
}

.about p {
  margin: 0 0 12px;
}

/* Bottom row blocks */
.links-row {
  margin-left: 40px; /* align with hero/about */
  margin-top: 18px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.cv {
  min-width: 140px;
}

.button {
  display: inline-block;
  padding: 10px 14px;
  border: 1px solid #111;
  border-radius: 10px;
  text-decoration: none;
  color: #111;
  font-weight: 600;
}

.button:hover {
  background: #f2f2f2;
}

.block {
  min-width: 180px;
}

.block h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 650;
}

.block ul {
  margin: 0;
  padding-left: 18px;
}

.block li {
  margin: 0 0 6px;
}

a {
  color: #111;
}

a:hover {
  text-decoration: none;
}

/* Make it responsive on phones */
@media (max-width: 780px) {
  .profile {
    flex-direction: column;
    gap: 20px;
  }

  .photo {
    margin-top: 0;
    width: 160px;
    flex-basis: auto;
  }

  .hero, .about, .links-row {
    margin-left: 0;
    margin-top: 0;
  }
}