
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Baskerville:wght@400;700&display=swap');

/* ============================
   COLORS AND GLOBAL STYLES
============================ */

:root {
  --ink: #172537;
  --muted: #657286;
  --blue: #214d73;
  --line: #e5e9ed;
  --paper: #ffffff;
  --bg: #fbfcfd;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.75 'DM Sans', Arial, sans-serif;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
  padding-left: 36px;
  padding-right: 36px;
}

/* ============================
   NAVIGATION
============================ */

header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
}

.links {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.links a {
  font-size: 14px;
  color: #536478;
}

.links a.active {
  color: var(--blue);
  font-weight: 700;
}

/* ============================
   MAIN CONTENT
============================ */

main {
  padding-top: 48px !important;
  padding-bottom: 80px !important;
  min-height: 75vh;
}

h1, h2, h3 {
  font-family: 'Libre Baskerville', Georgia, serif;
  letter-spacing: -0.035em;
  line-height: 1.4;
}

h1 {
  font-size: 42px;
  margin: 0 0 16px;
}

h2 {
  font-size: 24px;
  margin: 52px 0 22px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

h3 {
  font-size: 18px;
  margin: 0 0 6px;
}

p {
  margin: 10px 0 18px;
}

.muted {
  color: var(--muted);
}

.subhead {
  font-size: 17px;
  line-height: 1.8;
  color: #536479;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #738295;
  font-weight: 700;
  font-size: 11px;
  margin-bottom: 14px;
}

/* ============================
   HOMEPAGE PROFILE
============================ */

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 255px;
  column-gap: 38px;
  align-items: start;
  padding-bottom: 12px;
}

.intro > div:first-child {
  min-width: 0;
}

.intro h1 {
  margin-top: 0;
  margin-bottom: 14px;
}

.intro .subhead {
  margin-bottom: 24px;
}

.intro p {
  line-height: 1.8;
}

/* Professional portrait */

.portrait-img {
  display: block;
  width: 255px;
  height: 320px;
  max-width: 100%;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 3px;
  margin-top: 46px;
  justify-self: end;
  align-self: start;
}

/* Old portrait placeholder,
   retained for compatibility */

.photo {
  background: #f0f3f6;
  border: 1px solid var(--line);
  border-radius: 3px;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 14px;
  color: #748193;
  line-height: 1.8;
  padding: 16px;
}

.photo small {
  font-size: 12px;
}

/* ============================
   ACTION BUTTONS
============================ */

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 26px 0;
}

.actions a,
.pill {
  display: inline-block;
  border: 1px solid #d2dce5;
  border-radius: 4px;
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 600;
}

.actions a:first-child {
  background: #204b70;
  color: #ffffff;
  border-color: #204b70;
}

.actions a:hover {
  opacity: 0.88;
  text-decoration: none;
}

/* ============================
   RESEARCH AND PAPER LISTS
============================ */

.paper {
  padding: 0 0 22px;
  margin: 0 0 24px;
  border-bottom: 1px solid #edf0f3;
}

.paper h3 {
  font-size: 17px;
}

.paper p {
  margin: 5px 0;
  font-size: 14px;
}

.note {
  padding: 15px;
  border-left: 3px solid #98aabc;
  background: #eff3f6;
  color: #4d5f73;
  font-size: 13px;
}

.list {
  padding-left: 24px;
}

.list li {
  margin: 10px 0;
}

.accent {
  color: var(--blue);
}

.meta {
  font-size: 13px;
  color: var(--muted);
}

/* ============================
   FOOTER
============================ */

footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: #718093;
  font-size: 12px;
  padding: 22px 0;
}

/* ============================
   TABLET
============================ */

@media (max-width: 850px) {
  .wrap {
    padding-left: 28px;
    padding-right: 28px;
  }

  .intro {
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 28px;
  }

  .portrait-img {
    width: 210px;
    height: 268px;
    margin-top: 42px;
  }

  h1 {
    font-size: 38px;
  }
}

/* ============================
   MOBILE
============================ */

@media (max-width: 650px) {
  .wrap {
    padding-left: 23px;
    padding-right: 23px;
  }

  .nav {
    padding-top: 18px;
    padding-bottom: 17px;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .links {
    gap: 17px;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .portrait-img {
    grid-row: 1;
    width: 190px;
    height: 240px;
    margin: 0;
    justify-self: start;
  }

  h1 {
    font-size: 34px;
  }

  main {
    padding-top: 36px !important;
  }

  h2 {
    margin-top: 40px;
  }
}

/* Left portrait, right biography */

.intro {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 45px;
  align-items: start;
}

/* Photo container */
.intro-photo {
  width: 100%;
  min-width: 0;
}

/* Preserve the full photograph without cropping */
.intro .portrait-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  max-width: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  margin: 0;
  border-radius: 3px;
}

/* Biography */
.intro-content {
  min-width: 0;
}

.intro-content h1 {
  margin-top: 0;
}

.intro-content .eyebrow {
  margin-top: 0;
}

/* Tablet */
@media (max-width: 850px) {
  .intro {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
  }
}

/* Mobile */
@media (max-width: 650px) {
  .intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .intro-photo {
    width: 210px;
    max-width: 100%;
  }

  .intro .portrait-img {
    width: 100%;
    height: auto;
    max-height: none;
  }
}

/* Compact academic CV-style grants */

.grants-section {
  margin-top: 30px;
}

.grants-section h2 {
  margin-bottom: 22px;
}

.grant-entry {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  column-gap: 22px;
  padding: 0 0 13px;
  margin-bottom: 13px;
  border-bottom: 1px solid #edf0f3;
  align-items: start;
}

.grant-entry:last-child {
  border-bottom: none;
}

.grant-year {
  font-size: 14px;
  font-weight: 600;
  color: #657286;
  line-height: 1.55;
}

.grant-details {
  min-width: 0;
  font-size: 14px;
  line-height: 1.55;
}

.grant-details strong {
  font-weight: 600;
  color: #172537;
}

.grant-description {
  margin-top: 3px;
  color: #394b60;
}

.grant-meta {
  margin-top: 3px;
  font-size: 13px;
  color: #657286;
}

/* Mobile adjustments */

@media (max-width: 650px) {
  .grant-entry {
    grid-template-columns: 72px minmax(0, 1fr);
    column-gap: 15px;
  }

  .grant-year {
    font-size: 13px;
  }

  .grant-details {
    font-size: 13px;
  }

  .grant-meta {
    font-size: 12px;
  }
}

/* ====================================
   RESEARCH PAGE — COMPACT STYLE
==================================== */

/* Reduce page introduction spacing */

.research-header {
  margin-bottom: 12px;
}

.research-header h1 {
  font-size: 38px;
  margin: 0 0 4px;
  line-height: 1.25;
}

.research-header p {
  color: #657286;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* Section headings */

.working-papers h2,
.research-progress h2 {
  font-size: 23px;
  margin-top: 22px;
  margin-bottom: 18px;
  padding-top: 13px;
}

/* Working paper spacing */

.working-papers .paper {
  padding-bottom: 14px;
  margin-bottom: 19px;
  border-bottom: 1px solid #e5e9ed;
}

/* Paper title */

.working-papers .paper h3 {
  font-size: 17px;
  line-height: 1.45;
  margin: 0 0 5px;
  letter-spacing: -0.02em;
}

/* Authors */

.working-papers .paper .muted {
  font-size: 14px;
  line-height: 1.5;
  margin: 2px 0 3px;
  color: #657286;
}

/* Working paper status */

.working-papers .paper-status {
  font-size: 13px;
  line-height: 1.5;
  margin: 1px 0 3px;
  color: #33485d;
}

/* Conference presentation information */

.working-papers .conference {
  font-size: 12px;
  line-height: 1.55;
  color: #87909c;
  margin: 4px 0 0;
  font-weight: 400;
}

/* Label slightly darker than the list */

.conference-label {
  font-weight: 600;
  color: #737f8d;
}

/* Linked paper titles */

.working-papers h3 a {
  color: #172537;
  text-decoration: none;
}

.working-papers h3 a:hover {
  color: #214d73;
  text-decoration: underline;
}

/* ====================================
   RESEARCH IN PROGRESS
==================================== */

.progress-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.progress-list li {
  font-size: 15px;
  padding: 5px 0;
  border-bottom: 1px solid #edf0f3;
}

.progress-list li:last-child {
  border-bottom: none;
}

/* ====================================
   MOBILE
==================================== */

@media (max-width: 650px) {

  .research-header h1 {
    font-size: 32px;
  }

  .research-header p {
    font-size: 13px;
  }

  .working-papers h2,
  .research-progress h2 {
    margin-top: 18px;
  }

  .working-papers .paper h3 {
    font-size: 16px;
  }

  .working-papers .conference {
    font-size: 12px;
    line-height: 1.55;
  }
}
