:root {
  --text: #2d3748;
  --muted: #4a5568;
  --border: #e2e8f0;
  --bg: #f8fafc; 
  --surface: #ffffff; 
  --accent: #1a202c; 
  --primary: #1e3a8a; 
}

body {
  font-family: Garamond, Baskerville, "Baskerville Old Face", "Hoefler Text", "Times New Roman", serif;
  background: var(--bg);
  color: var(--text);
  max-width: 860px;
  margin: 64px auto;
  padding: 0 24px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2 {
  color: var(--accent);
  font-weight: 600;
}

h1 {
  font-size: 38px;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 16px;
}

h2 {
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

p {
  margin: 0 0 16px;
}

ul {
  padding-left: 24px;
  margin: 0 0 24px 0;
}

li {
  margin-bottom: 12px;
  position: relative;
}

li::marker {
  color: var(--primary);
}

.contact {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.contact p {
  margin: 4px 0;
  color: var(--text);
  font-size: 15px;
}

.contact p:first-child {
  font-weight: 600;
  color: var(--accent);
  font-size: 16px;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: #0f172a;
  text-decoration: underline;
}

.profile-layout {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  margin-top: 32px;
}

.bio-text {
  flex: 1;
}

.bio-text h2 {
  margin-top: 0; 
}

.bio-image {
  flex-shrink: 0;
}

.bio-image img {
  width: 280px;
  height: auto;
  border-radius: 4px; 
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: block;
}

@media (max-width: 768px) {
  body {
    margin: 32px auto;
  }
  
  .profile-layout {
    flex-direction: column-reverse; 
    gap: 32px;
  }
  
  .bio-image {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .bio-image img {
    width: 100%;
    max-width: 320px;
  }

  h1 {
    font-size: 30px;
  }
}
