:root {
  --bg-color: #ffffff;
  --text-main: #111111;
  --text-muted: #666666;
  --link-color: #111111;
  --link-hover: #555555;
  --border-color: #e5e7eb;

  --font-serif: "Newsreader", Georgia, "Times New Roman", Times, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  font-size: 16px;
}

body {
  font-family: var(--font-serif);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.85;
  padding: 5rem 1.5rem;
  max-width: 54rem;
  /* 864px container */
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header & Profile Layout */
.header {
  margin-bottom: 2.25rem;
}

.name {
  font-family: var(--font-serif);
  font-size: 3.4rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text-main);
  line-height: 1.05;
}

.profile-section {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.photo-wrapper {
  flex-shrink: 0;
}

.profile-photo {
  width: 240px;
  height: 285px;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
  display: block;
}

/* Bio */
.bio {
  flex: 1;
  margin-bottom: 0;
}

.bio p {
  font-size: 1.15rem;
  margin-bottom: 1.35rem;
  letter-spacing: -0.01em;
}

.bio a {
  color: var(--link-color);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: #999999;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.bio a:hover {
  color: var(--link-hover);
  text-decoration-color: var(--link-hover);
}

/* Links List */
.links {
  margin-bottom: 2rem;
}

.links h2 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
  font-weight: 600;
}

.link-list {
  list-style: none;
  font-family: var(--font-sans);
  font-size: 1rem;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1.75rem;
}

.link-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--link-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.link-list a:hover {
  color: var(--link-hover);
}

.link-list a:hover .icon {
  fill: var(--link-hover);
}

.icon {
  width: 18px;
  height: 18px;
  fill: var(--text-main);
  flex-shrink: 0;
  transition: fill 0.15s ease;
}

/* Mobile Responsiveness */
@media (max-width: 560px) {
  body {
    padding: 3rem 1.25rem;
  }

  .name {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
  }

  .profile-section {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .profile-photo {
    width: 170px;
    height: 205px;
    border-radius: 14px;
  }
}