/* ------- Academic clean style, inspired by chong-l.github.io ------- */

:root {
  --text: #1a1a1a;
  --muted: #555;
  --link: #0b5fa5;
  --link-hover: #c0392b;
  --rule: #e3e3e3;
  --bg: #ffffff;
  --accent-bg: #f7f7f5;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration: none;
}
a:hover { color: var(--link-hover); text-decoration: underline; }

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 28px 24px 64px;
}

/* ------- Top navigation ------- */
nav.topnav {
  border-bottom: 1px solid var(--rule);
  padding: 14px 24px;
  background: #002F5F; /* TAMU-CC Islander Blue */
}
nav.topnav .inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
nav.topnav .brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
}
nav.topnav .links { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
nav.topnav a { color: #ffffff; }
nav.topnav a:hover { color: #82B5DD; text-decoration: none; } /* TAMU-CC Tarpon Sky */

/* ------- Headings ------- */
h1, h2, h3 { font-weight: 700; line-height: 1.25; }
h1 {
  font-size: 2.0rem;
  margin: 0.4em 0 0.4em;
}
h2 {
  font-size: 1.35rem;
  margin: 1.6em 0 0.5em;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--rule);
}
h3 { font-size: 1.1rem; margin: 1.2em 0 0.4em; }

/* ------- Profile header ------- */
.profile {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.profile .photo {
  width: 320px;
  flex: 0 0 320px;
  max-width: 100%;
}

/* Icon row under the profile photo */
.profile-icons {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-top: 14px;
  font-size: 1.5rem;
}
.profile-icons a {
  color: var(--muted);
  transition: color 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
}
.profile-icons a:hover {
  color: #fff;
  background: var(--link);
  text-decoration: none;
}

/* Inline email icon (used on hiring page) */
.email-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-bg);
  color: var(--link);
  vertical-align: middle;
  margin: 0 4px;
  text-decoration: none;
}
.email-icon:hover {
  background: var(--link);
  color: #fff;
  text-decoration: none;
}
.profile .photo img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--rule);
}
.profile .info { flex: 1; min-width: 0; }
.profile .info .role {
  color: var(--muted);
  margin-top: -4px;
  margin-bottom: 8px;
}
.profile .contacts {
  margin-top: 8px;
  font-size: 0.95rem;
  color: var(--muted);
}
.profile .contacts a { color: var(--link); }

@media (max-width: 640px) {
  .profile { flex-direction: column; }
  .profile .photo { width: 100%; flex-basis: auto; max-width: 400px; }
}

/* ------- Lists & content ------- */
p { margin: 0.6em 0 0.9em; }
ul { padding-left: 1.2em; }
li { margin: 0.25em 0; }

/* News list with dated entries */
.news ul { list-style: none; padding-left: 0; }
.news li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--rule);
}
.news li .date { color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 540px) {
  .news li { grid-template-columns: 1fr; }
  .news li .date { font-size: 0.9rem; }
}

/* Publication entries */
.pub-list { list-style: none; padding-left: 0; }
.pub-list li {
  display: grid;
  grid-template-columns: 60px 60px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.pub-list li .year { color: var(--muted); font-variant-numeric: tabular-nums; }
.pub-list li .tag {
  color: var(--muted);
  font-family: "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.9rem;
}
.pub-list li .title { font-style: italic; }
.pub-list li .me { font-weight: 700; }
@media (max-width: 640px) {
  .pub-list li { grid-template-columns: 50px 50px 1fr; }
}

/* Highlighted project cards */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 10px;
}
.project {
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--accent-bg);
}
.project h3 { margin-top: 0; }
.project p { margin: 0.3em 0 0.5em; color: var(--text); }
.project .tags { font-size: 0.85rem; color: var(--muted); }

/* Misc */
hr { border: 0; border-top: 1px solid var(--rule); margin: 28px 0; }
footer.foot {
  margin-top: 36px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
}
img.hero {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--rule);
  margin: 6px 0 4px;
}
.caption { color: var(--muted); font-size: 0.9rem; margin-top: -2px; }

code, kbd {
  font-family: "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: #f0f0ee;
  padding: 1px 5px;
  border-radius: 4px;
}