/* ===================================================================
   Academic homepage — warm parchment, serif display type, maroon
   accents. Same layout/palette/type system as the reference site,
   with an added image/GIF placeholder slot on each publication.
   =================================================================== */

:root {
  --bg: #f6f2e7;
  --card: #fbf8f0;
  --bg-soft: #efe9da;
  --text: #2e2a22;
  --text-soft: #5d5748;
  --text-faint: #8f8674;
  --accent: #800000;
  --accent-soft: #a34848;
  --border: #ddd5c2;
  --serif: Charter, "Bitstream Charter", "Source Serif 4", Georgia,
    "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  /* Optional: drop a subtle background image at images/background.svg
     and uncomment the two lines below to match the reference site's
     faint-doodle backdrop. Left plain for now since no asset exists yet. */
  /* background-image: url("images/background.svg");
     background-size: cover; background-position: center; background-attachment: fixed; */
  color: var(--text);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover { color: var(--accent-soft); }

.page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 56px 28px 60px;
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.hero {
  display: flex;
  gap: 48px;
  align-items: center;
  margin-bottom: 26px;
}

.hero-text { flex: 1; min-width: 0; }

.hero-name {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
  margin: 0 0 6px;
  line-height: 1.2;
}

.hero-name .accent { color: var(--accent); }

.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  color: var(--text-faint);
  font-size: 16px;
  margin: 0 0 22px;
}

.hero-text p { margin: 0 0 14px; color: var(--text); }

.hero-links {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-links a {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 999px;
  padding: 4px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-soft);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.hero-links a:hover { border-color: var(--accent); color: var(--accent); }

/* Image sits to the right of the bio text */
.hero-side {
  flex: 0 0 250px;
  text-align: center;
  padding-top: 84px;
}

.hero-photo {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: 0 2px 14px rgba(87, 80, 62, 0.14);
}

.hero-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14.5px;
  color: var(--text-faint);
  margin-top: 16px;
  line-height: 1.6;
}

@media (max-width: 780px) {
  .hero { flex-direction: column-reverse; align-items: center; }
  .hero-side { padding-top: 0; }
}

/* ------------------------------------------------------------------ */
/* Sections                                                            */
/* ------------------------------------------------------------------ */

.section { margin-top: 46px; }

.section-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  margin-bottom: 4px;
}

.section-title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--text);
}

.section-title .note {
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--text-faint);
  font-style: italic;
  font-weight: 400;
  margin-left: 10px;
}

/* Experience cards */

.intern-box {
  display: flex;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 15px 22px;
  margin-bottom: 12px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.intern-box:hover {
  box-shadow: 0 4px 14px rgba(128, 0, 0, 0.08);
  transform: translateY(-1px);
}

.intern-logo {
  width: 170px;
  height: 52px;
  margin-right: 22px;
  flex-shrink: 0;
  object-fit: contain;
}

.intern-info { flex: 1; }

.intern-company {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17.5px;
  color: var(--text);
  margin-bottom: 2px;
}

.intern-role { font-size: 14.5px; color: var(--text-soft); }
.intern-date { font-size: 13.5px; color: var(--text-faint); margin-top: 1px; }
.intern-advisor { font-size: 13.5px; color: var(--text-faint); font-style: italic; }

@media (max-width: 640px) {
  .intern-box { flex-direction: column; align-items: flex-start; gap: 10px; }
  .intern-logo { margin: 0; }
}

/* Publications */

.pub-year {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.03em;
  margin: 36px 0 16px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--border);
}

.pub-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 15px 22px;
  margin-bottom: 12px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.pub-box:hover {
  box-shadow: 0 4px 14px rgba(128, 0, 0, 0.08);
  transform: translateY(-1px);
}

/* Per-publication image/GIF slot */
.pub-media {
  flex: 0 0 140px;
}

.pub-image {
  width: 140px;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  display: block;
}

.pub-placeholder {
  width: 140px;
  height: 90px;
  border: 1px dashed var(--border);
  border-radius: 6px;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-faint);
  font-size: 11.5px;
  line-height: 1.4;
}

.pub-content { flex: 1; min-width: 0; }

.pub-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16.5px;
  color: var(--text);
  margin-bottom: 5px;
  line-height: 1.45;
}

.pub-authors { color: var(--text-soft); font-size: 14px; margin-bottom: 3px; }
.pub-authors b { color: var(--text); }

.pub-venue {
  font-style: italic;
  font-size: 13.5px;
  color: var(--text-faint);
}

.pub-link { margin-top: 5px; font-size: 13.5px; }
.pub-link a { font-weight: 600; margin-right: 12px; }

@media (max-width: 640px) {
  .pub-box { flex-direction: column; }
  .pub-media, .pub-image, .pub-placeholder { width: 100%; flex-basis: auto; }
  .pub-image, .pub-placeholder { width: 100%; height: 140px; }
}

/* Funding / IP tiles */

.fund-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 15px 22px;
  margin-bottom: 12px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.fund-box:hover {
  box-shadow: 0 4px 14px rgba(128, 0, 0, 0.08);
  transform: translateY(-1px);
}

.fund-tag {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 5px;
}

.fund-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.4;
}

.fund-desc { font-size: 13.5px; color: var(--text-soft); }

/* Status badge (e.g. "Under Review") on publications */

.status {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--bg-soft);
  color: var(--accent);
  margin-left: 8px;
  vertical-align: middle;
}

/* Simple lists (workshops, service) */

.plain-list {
  margin: 0;
  padding-left: 22px;
  color: var(--text);
}

.plain-list li { margin-bottom: 8px; }

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

.site-footer {
  margin-top: 60px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-faint);
  font-size: 13px;
}
