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

body {
  font-family: 'Arvo', 'Rockwell', 'Georgia', serif;
  background: #f5f2ee;
  color: #2c2c2c;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
}

main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3rem;
  width: 100%;
  max-width: 960px;
}

.header-section {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.portrait {
  width: clamp(224px, 28vw, 364px);
  height: clamp(224px, 28vw, 364px);
  object-fit: cover;
  flex-shrink: 0;
}

.info {
  text-align: left;
}

.bio {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #555;
  margin-top: 0.8rem;
  margin-bottom: 1.2rem;
}

.bio-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.2s;
}

.bio-link:hover {
  opacity: 0.6;
}

.about-link {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: #2c2c2c;
  text-decoration: none;
  border-bottom: 1px solid #2c2c2c;
  padding-bottom: 2px;
  transition: border-color 0.3s;
}

.about-link:hover {
  border-color: #2c2c2c;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 0.8rem;
}

.social-icon {
  color: #888;
  transition: color 0.3s;
}

.social-icon:hover {
  color: #2c2c2c;
}

h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.contact-heading {
  font-size: 0.9rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
  margin-top: 1.2rem;
  margin-bottom: 0.3rem;
}

h2 {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 400;
  color: #888;
  margin-top: 0.3rem;
}

/* Projects */
.projects {
  width: 100%;
}

.projects h3 {
  font-size: 0.9rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
  margin-bottom: 1.2rem;
}

.project-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-card {
  text-decoration: none;
  color: #2c2c2c;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-card-title {
  font-size: 1rem;
  border-bottom: 1px solid #ccc;
  padding-bottom: 4px;
  transition: border-color 0.3s;
}

.project-card:hover .project-card-title {
  border-color: #2c2c2c;
}

.thumb-wrap {
  overflow: hidden;
}

.thumb-wrap img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.project-card:hover .thumb-wrap img {
  transform: scale(1.07);
}

/* About page */
body.about-page main {
  flex-direction: column;
  gap: 2rem;
}

.about-content {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.about-photo {
  width: clamp(220px, 28vw, 320px);
  flex-shrink: 0;
  object-fit: cover;
}

.about-heading {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 1.2rem;
}

.ideology-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #888;
  margin-bottom: 1rem;
}

.ideology p {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.2rem;
  color: #2c2c2c;
}

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

/* Mobile */
@media (max-width: 700px) {
  main {
    align-items: center;
  }
  .header-section {
    flex-direction: column;
    text-align: center;
  }
  .info {
    text-align: center;
  }
  .project-cards {
    grid-template-columns: 1fr;
  }
  .about-content {
    flex-direction: column;
  }
  .about-photo {
    width: 100%;
    max-width: 400px;
  }
}
