:root {
  --accent: #699476;
  --text: #000;
  --muted: #555;
  --border: #699476;
  --bg-alt: #f2f2f5;
}

* { box-sizing: border-box; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
  background: #fff;
}

a { color: #117a65; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Nav ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
header ul {
  display: inline-block;
  list-style: none;
  margin: 0;
  padding: 8px 0;
}
header li { display: inline-block; }
header a {
  display: block;
  color: #000;
  padding: 10px 16px;
  font-weight: 500;
}
header a:hover {
  background: #eee;
  border-radius: 4px;
  text-decoration: none;
}

/* ---------- About ---------- */
#about {
  padding: 40px 15px;
  border-bottom: 1px solid var(--border);
}
.profile-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.profile-photo {
  width: 150px;
  height: 200px;
  border-radius: 6px;
  object-fit: cover;
  flex: 0 0 auto;
}
.profile-main { flex: 1 1 320px; min-width: 260px; }
.profile-main h1 { margin: 0 0 4px 0; font-size: 2em; font-weight: 700; }
.profile-main p { margin: 2px 0; color: var(--text); }
.profile-links { flex: 0 0 auto; display: flex; flex-direction: column; gap: 6px; min-width: 220px; }
.btn-row { display: flex; gap: 6px; }
.btn {
  flex: 1;
  text-align: center;
  padding: 10px 12px;
  background: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: #000;
  font-weight: 500;
  font-size: .95em;
}
.btn:hover { background: #e8e8e8; text-decoration: none; }
.btn i { margin-right: 6px; }
.btn.icon-only i { margin: 0; }

.bio {
  max-width: 900px;
  margin: 30px auto 0 auto;
  text-align: justify;
}

/* ---------- Section shell ---------- */
section.block {
  padding: 50px 15px 20px 15px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
section.block h2 {
  font-weight: 300;
  font-size: 2em;
  margin: 0 0 40px 0;
  position: relative;
  display: inline-block;
}
section.block h2::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  margin: 8px auto 0 auto;
  height: 2px;
  width: 50px;
  background: var(--accent);
}

/* ---------- Bordered entry blocks (experience/education/publications) ---------- */
.entry-block {
  max-width: 900px;
  margin: 0 auto 20px auto;
  padding: 18px 20px;
  border: 1px solid var(--border);
  text-align: left;
  border-radius: 3px;
}
.entry-block:after { content: ""; display: table; clear: both; }
.entry-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}
.entry-head h3 { margin: 0; font-size: 1.2em; font-weight: 600; }
.entry-head span.date { color: var(--muted); font-weight: 400; font-size: .95em; white-space: nowrap; }
.entry-block h4 {
  margin: 0 0 10px 0;
  font-weight: 400;
  color: var(--muted);
  font-size: 1em;
}
.entry-block p { margin: 0 0 8px 0; }
.entry-block ul { margin: 0; padding-left: 18px; }
.entry-block li { margin-bottom: 4px; }

/* ---------- Skills tag list ---------- */
.tags {
  max-width: 850px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.tags li {
  display: inline-block;
  margin: 5px;
  padding: 6px 12px;
  background: var(--bg-alt);
  font-size: .95em;
}

/* ---------- Footer ---------- */
footer {
  padding: 30px 15px;
  text-align: center;
  color: var(--muted);
  font-size: .9em;
}
footer .social a {
  display: inline-block;
  padding: 8px 10px;
  color: #000;
  font-size: 1.2em;
}

@media only screen and (max-width: 700px) {
  .profile-row { flex-direction: column; align-items: center; text-align: center; }
  .profile-links { width: 100%; max-width: 320px; }
  .entry-head { flex-direction: column; }
  header ul { padding: 4px 0; }
  header a { padding: 8px 10px; font-size: .9em; }
}
