/* ===========================================================
   Academic site styles — edit colors here to restyle the site
   =========================================================== */
:root {
  --accent: #2f6b4f;        /* links, highlights (forest green) */
  --accent-dark: #1f4a36;
  --text: #333;
  --muted: #777;
  --bg: #fff;
  --nav-bg: #f5f5f5;
  --border: #e6e6e6;
  --max: 760px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Lora", Georgia, serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

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

h1, h2, h3, h4, h5,
.nav, .site-footer, .btn, .meta {
  font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
}

h1, h2, h3, h4 { font-weight: 800; line-height: 1.25; }
h2 { margin-top: 2.2rem; }
h3 { margin-top: 1.8rem; }

img { max-width: 100%; height: auto; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
}
.brand {
  font-weight: 800;
  font-size: 1.05rem;
  color: #404040;
  letter-spacing: .3px;
}
.brand:hover { color: var(--accent); text-decoration: none; }

.nav-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav-links a {
  display: block;
  padding: 8px 12px;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #404040;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 1.1rem;
  cursor: pointer;
  color: #404040;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 56px; left: 0; right: 0;
    flex-direction: column;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 16px;
  }
  .nav-links.open { display: flex; }
}

/* ---------- Page header ---------- */
/* Banner image behind the title.
   To change the photo for EVERY page: replace images/banner.jpg.
   To give ONE page its own photo: in that page's <header>, add
   style="--banner: url('images/other-photo.jpg')"                    */
.page-header {
  --banner: url("../images/IMG_3211.jpeg");
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 420px;
  padding: 80px 16px;
  margin-bottom: 2rem;
  color: #fff;
  background-image: var(--banner);
  background-size: cover;
  background-position: center;     /* try "center top" or "center 30%" to reframe */
}
/* Dark overlay so white text stays readable on any photo */
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);  /* raise to 0.5 for a busier photo */
}
.page-header > * { position: relative; }
.page-header h1 {
  font-size: 3rem;
  margin: 0 0 .5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.page-header .subtitle {
  font-family: "Open Sans", sans-serif;
  font-weight: 300;
  font-size: 1.3rem;
  margin: 0 auto;
  max-width: 700px;
  text-shadow: 0 1px 6px rgba(0,0,0,.6);
}
/* Shorter banner on inner pages and on phones */
.page-header.short { min-height: 260px; }
@media (max-width: 600px) {
  .page-header { min-height: 280px; }
  .page-header.short { min-height: 180px; }
  .page-header h1 { font-size: 2.1rem; }
}

/* ---------- Main content ---------- */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px 60px;
}

.profile {
  text-align: center;
  margin: 2rem 0;
}
.profile img {
  width: 300px;
  max-width: 80%;
  border-radius: 6px;
}
.caption {
  display: block;
  font-size: .85rem;
  font-style: italic;
  color: var(--muted);
  margin-top: .4rem;
}

hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }

/* Research / project blocks */
.project { margin-bottom: 2.5rem; }
.project img { border-radius: 6px; margin: .5rem 0 1rem; }
.figure-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }

/* Publications */
.pub-list { list-style: none; padding: 0; }
.pub-list li { margin-bottom: 1.2rem; padding-left: 1.2rem; border-left: 3px solid var(--border); }
.pub-list li:hover { border-left-color: var(--accent); }
.pub-list .me { font-weight: 700; }
.badge {
  display: inline-block;
  font-family: "Open Sans", sans-serif;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 1px 7px;
  margin-left: 4px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  color: var(--accent);
}
.badge:hover { background: var(--accent); color: #fff; text-decoration: none; }

.btn {
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid var(--accent);
  border-radius: 4px;
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.btn:hover { background: var(--accent); color: #fff; text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--nav-bg);
  text-align: center;
  padding: 36px 16px;
  color: var(--muted);
  font-size: .85rem;
}
.socials { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; justify-content: center; gap: 14px; }
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #404040;
  color: #fff;
  font-size: 1.2rem;
}
.socials a:hover { background: var(--accent); text-decoration: none; }
