* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: #1a1a1a;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 32px 100px;
}

/* Two-column layout: content left, sidebar right */
.layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 64px;
  align-items: start;
}

/* Left: all text */
.content h1 {
  font-size: 38px;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 28px;
}

.content p {
  color: #3a3a3a;
  margin-bottom: 20px;
  font-size: 16px;
}

.content p:last-child {
  margin-bottom: 0;
}

a {
  color: #1a6ef5;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Inline figure with caption */
.inline-figure {
  margin: 28px 0;
}

.inline-figure img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

.inline-figure figcaption {
  font-size: 13px;
  color: #999;
  margin-top: 8px;
}

/* Right: photo + social links */
.sidebar {
  margin-top: 260px;
}

.photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  display: block;
  object-fit: cover;
  object-position: center top;
  margin-bottom: 20px;
}

nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
}

nav a {
  display: flex;
  align-items: center;
  color: #555;
  text-decoration: none;
  transition: color 0.15s;
}

nav a:hover {
  color: #1a1a1a;
  text-decoration: none;
}

nav svg {
  width: 22px;
  height: 22px;
}

/* Mobile: stack vertically */
@media (max-width: 640px) {
  main {
    padding: 48px 20px 64px;
  }

  .layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sidebar {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
  }

  nav {
    align-items: flex-start;
  }

  .content h1 {
    font-size: 28px;
  }
}
