/* Layout and look modelled on simonestuenzi.github.io (plain HTML/CSS, card sections on a grey page) */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background-color: #f4f4f4;
  color: #444;
  padding: 20px;
}

a { color: #1a6fb5; text-decoration: none; }
a:hover { text-decoration: underline; }

.page { max-width: 1100px; margin: 0 auto; }

/* ---------- Banner header ---------- */
header { position: relative; text-align: center; color: #f4f4f4; }

.banner {
  /* Illustrative tundra scene generated by scripts/make_banner.py */
  background-image: linear-gradient(rgba(12,22,38,0.38), rgba(12,22,38,0.48)), url('images/banner.jpg');
  background-size: cover;
  background-position: bottom 40% center;
  padding: 48px 20px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.banner h1 {
  font-size: 2.4em;
  font-weight: normal;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.banner .tagline { font-size: 1.05em; opacity: 0.92; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }

.contact-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 26px;
}

.contact-list a {
  color: #fff;
  display: flex;
  align-items: center;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.contact-icon {
  width: 24px; height: 24px;
  margin-right: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: #1c3a54;
  font-size: 11px; font-weight: bold;
  display: inline-flex; align-items: center; justify-content: center;
  text-shadow: none;
  flex-shrink: 0;
}

/* ---------- Cards ---------- */
section {
  background-color: #fff;
  padding: 24px 28px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  margin-top: 20px;
}

section h2 { margin-bottom: 12px; color: #333; font-size: 1.6em; }
section h3 { font-size: 1.3em; margin: 25px 0 12px; color: #333; }
section h3.section-gap { margin-top: 40px; }
section p { margin-bottom: 12px; }

/* ---------- About ---------- */
.content { display: flex; align-items: flex-start; gap: 30px; }
.text-container { flex: 1; }
.text ul { margin-left: 40px; list-style: disc; margin-bottom: 12px; }
.role { color: #666; margin-top: -8px; margin-bottom: 14px; font-size: 1.02em; }

.cv-picture-container { flex: 0 0 22%; text-align: center; }
.cv-picture-container img { width: 100%; height: auto; border-radius: 4px; display: block; }
.caption { font-size: 0.85em; color: #888; margin-top: 6px; }

/* ---------- Publications ---------- */
.pub-list, .plain-list { list-style: none; padding-left: 20px; margin: 0 0 20px; }
.pub-list li, .plain-list li { margin-bottom: 15px; }
.year-group { margin-bottom: 18px; }
.year-group > strong { display: block; font-size: 1.2em; margin-bottom: 10px; color: #444; }
.note { font-size: 0.9em; color: #777; }

/* ---------- CV / projects ---------- */
.cv-subsection { margin-bottom: 10px; }
.cv-subsection > ul { list-style: none; padding-left: 20px; }
.cv-subsection > ul > li { margin: 14px 0; }
.cv-subsection ul ul { list-style: disc; margin-left: 22px; margin-top: 4px; }

/* ---------- Grants ---------- */
.funding-subsection { margin-bottom: 20px; }
.funding-subsection > strong { display: block; font-size: 1.2em; margin-bottom: 8px; color: #444; }
.funding-subsection ul { list-style: none; padding-left: 20px; }
.funding-subsection li p { margin: 4px 0; }
.funding-subsection li { margin-bottom: 16px; }

/* ---------- Placeholders ---------- */
.todo {
  background: #fff4cc;
  border: 1px dashed #d9a400;
  color: #7a5b00;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.92em;
}

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

/* ---------- Mobile ---------- */
@media only screen and (max-width: 768px) {
  body { padding: 10px; }
  .banner h1 { font-size: 1.8em; }
  .contact-list { flex-direction: column; align-items: center; }
  .content { flex-direction: column; align-items: center; }
  .cv-picture-container { order: -1; width: 60%; }
  section { padding: 18px; }
}
