/* style.css */

body {
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 16px;         /* Increase base size */
  line-height: 1.5;        /* More breathing room */
  color: #222;
  background-color: #fdfdfd;
  margin: 0;
  padding: 0;
}

header {
  background-color: #fff;
  border-bottom: 1px solid #ccc;
  padding: 0.5em 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Layout: site title left, nav right */
.nav-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Your name or site title */
.site-title {
  display: flex;
  align-items: center;
  font-family: 'Lato', sans-serif;
  font-size: 1.25em;
  font-weight: 700;
  color: #222;
  gap: 0.5em;
}

.site-icon {
  width: 24px;
  height: 24px;
}

h1, h2, h3, nav a {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
}

h1 {
  font-size: 1.5em;
}

h2 {
  font-size: 1.25em;
}

h3 {
  font-size: 1em;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5em;
  margin: 0;
  padding: 0;
}

/* Link styling */
nav a {
  text-decoration: none;
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  color: #444;
  transition: color 0.2s ease;
}

nav a.active,
nav a:hover {
  color: #005588;
}
main {
  max-width: 800px;
  margin: 2em auto;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  padding: 0 1em;
}

p {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;  /* ✅ aligns image and text at the top */
  gap: 2em;
  margin-bottom: 3em;
}

.profile-pic {
  max-width: 380px;
  max-height: 380px;
  flex-shrink: 0;
  border: 5px solid #444;
}

.bio {
  flex: 1;
}

@media (max-width: 600px) {
  .intro {
    display: block;
    text-align: center;
  }
  .profile-pic {
    display: block;
    margin: 0 auto;
  }
  .bio {
    margin-top: 1em;
  }
}

footer {
  text-align: center;
  padding: 2em 0;
  font-size: 0.9em;
  color: #888;
}

/* Add vertical space between sections */
main section {
  margin-top: 1em;
  margin-bottom: 1em;
}

.cv-download {
  font-weight: bold;
  text-decoration: none;
}

.cv-download:hover {
  text-decoration: underline;
}
