/* tomifrancis.com — clean static rebuild, styled to match the current Google Sites design.
   Design tokens sampled from the live site:
   - font: Lato
   - content links: #006580 (teal)
   - nav: grey rgba(0,0,0,.64), active light-blue #49AAD4
   - white background, near-black text */

:root {
  --ink: rgba(0,0,0,0.85);
  --muted: #6b6b6b;
  --accent: #006580;        /* teal — content links */
  --nav: rgba(0,0,0,0.64);
  --nav-active: #49aad4;
  --rule: #e2e2e2;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
  font-size: 17px;
}

/* ---- top navigation (right-aligned, sticky, grey bar on scroll) ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  transition: background-color .2s ease;
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.1rem 1.4rem;
  display: flex;
  justify-content: flex-end;
  gap: 1.7rem;
}
.nav a {
  text-decoration: none;
  color: var(--nav);
  font-size: 1rem;
}
.nav a:hover { color: var(--nav-active); }
.nav a.active { color: var(--ink); }
/* when scrolled, nav gets the translucent dark bar + light text (matches live site) */
.nav.scrolled { background: rgba(40,40,40,0.86); }
.nav.scrolled a { color: rgba(255,255,255,0.85); }
.nav.scrolled a.active { color: #fff; }
.nav.scrolled a:hover { color: var(--nav-active); }

/* ---- page container ---- */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.5rem 1.4rem 5rem;
}

h1 {
  font-weight: 700;
  font-size: 2.1rem;
  margin: 0.6rem 0 1.4rem;
}
h1.center { text-align: center; }

h2 {           /* section heading, e.g. "Research" */
  font-weight: 700;
  font-size: 1.4rem;
  margin: 2rem 0 0.8rem;
}
h3 {           /* sub-heading, e.g. "Publications", "Thesis" */
  font-weight: 700;
  font-size: 1.1rem;
  margin: 1.4rem 0 0.5rem;
}

p { margin: 0 0 1rem; }

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

ul { padding-left: 1.3rem; margin: 0.5rem 0 1rem; }
li { margin: 0.45rem 0; }

.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.updated { color: var(--muted); font-size: 0.82rem; margin-top: 0.4rem; }

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

/* ---- home hero: photo left, intro right ---- */
.hero {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 2.4rem;
  align-items: start;
  margin-top: 0.5rem;
}
.hero img {
  width: 100%;
  height: auto;
  display: block;
}
.hero .intro p:first-child { margin-top: 0; }

/* big teal section link (the "Teaching" link on home) */
.section-link {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0.4rem 0;
}

/* publications */
.pub p { margin: 0.55rem 0; }
.links { white-space: nowrap; }

.contact { font-size: 1rem; }

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; gap: 1.2rem; }
  .hero img { max-width: 300px; margin: 0 auto; }
  h1 { font-size: 1.8rem; }
  .nav-inner { gap: 1.2rem; flex-wrap: wrap; padding: 0.9rem 1.1rem; }
}
