/* === Base Colors & Variables === */
:root {
  --text: #1a1a1a;
  --bg: #f3f9f3;                /* soft sage green */
  --accent: #064e03;            /* deep forest green */
  --light-accent: #0a6b06;
  --muted: #555;
  --border: #d0e0d0;            /* soft green-gray */
  --max-width: 1000px;
  --gap: 24px;
}

/* === Reset === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
    Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* === Links === */
a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  text-decoration: underline;
}

/* === Container === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem;
}

/* === Header === */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
}

.site-title {
  font-size: 2rem;
  font-weight: 650;
  color: var(--accent);
}

/* === Navigation === */
.nav-list {
  list-style: none;
  display: flex;
  gap: 1.4rem;
}

.nav-list a {
  color: var(--text);
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

/* === Main Layout === */
.main-content {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

/* === Profile Section === */
.profile-section {
  flex-shrink: 0;
  width: 280px;
  text-align: center;  /* Only the photo area is centered */
}

/* === Profile Photo === */
.profile-photo {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 0;            /* square image like your HTML inline */
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
  display: block;
  margin: 0 auto;
}

/* === Biography Section === */
.bio-section {
  flex: 1;
}

/* text inside bio: same alignment on all devices */
.bio-section p,
.bio-section span {
  margin-bottom: 1rem;
  text-align: justify;        /* ⬅ ensure both sides aligned (left+right) */
  text-justify: inter-word;
}

/* === Divider === */
.divider {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* === Contact Inline Links === */
.contact-inline {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1rem;
}

.contact-inline a {
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

/* === Footer === */
.footer {
  text-align: center;
  color: var(--muted);
  padding-top: 1.5rem;
  margin-top: 2.5rem;
  border-top: 2px solid var(--border);
  font-size: 0.95rem;
}

/* === Responsive Design === */
@media (max-width: 900px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .nav-list {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .main-content {
    flex-direction: column;      /* stack photo above text */
    align-items: stretch;        /* no global centering */
  }

  .profile-section {
    width: 100%;
    text-align: center;
    margin-bottom: 1rem;
  }

  .profile-photo {
    width: 200px;
    height: 200px;
  }

  .bio-section {
    width: 100%;
  }

  .container {
    padding: 1rem 1.2rem;
  }
}

@media (max-width: 480px) {
  .profile-photo {
    width: 170px;
    height: 170px;
  }

  .site-title {
    font-size: 1.7rem;
  }

  .nav-list {
    gap: 0.8rem;
  }
}
