/* ===== Mingchen Liu — academic site ===== */

:root {
  --ink:        #2c2c2c;   /* body text            */
  --title:      #3a4248;   /* big page titles      */
  --teal:       #1a6e7e;   /* section headers/links*/
  --teal-dark:  #145966;
  --accent-red: #9a2c25;   /* "Current Teaching"   */
  --muted:      #9aa0a4;   /* inactive nav links   */
  --rule:       #e3e3e3;   /* divider lines        */
  --maxw:       1140px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background: #ffffff;
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.65;
  font-feature-settings: "onum" 1;   /* old-style figures */
}

a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:hover { color: var(--teal-dark); }

/* ---------- header / nav ---------- */
header {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 28px 18px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
  gap: 10px;
}

.site-title {
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: .2px;
}

nav { display: flex; gap: 28px; }

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 1.1rem;
}
nav a:hover { color: var(--ink); }
nav a.active { color: var(--ink); }

/* ---------- main layout ---------- */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 28px 80px;
}

.page-title {
  font-family: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  font-weight: 500;
  color: var(--title);
  text-align: center;
  font-size: 4rem;
  line-height: 1.05;
  margin: 40px 0 26px;
}

.divider {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 30px 0;
}

p { margin: 0 0 18px; }

/* ---------- home ---------- */
.home-grid {
  display: flex;
  gap: 50px;
  align-items: flex-start;
  margin-top: 8px;
}
.home-text { flex: 1 1 auto; }
.home-photo { flex: 0 0 270px; }
.home-photo img {
  width: 100%;
  height: auto;
  display: block;
}
.photo-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1.18;
  background: #f0efeb;
  border: 1px dashed #c9c5bd;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #9b958a;
  font-size: .9rem;
  padding: 12px;
}

/* ---------- section headers ---------- */
.section-head {
  font-family: "EB Garamond", Georgia, serif;
  color: var(--teal);
  font-weight: 700;
  font-size: 1.55rem;
  margin: 4px 0 16px;
}

.paper-title { font-weight: 700; margin: 0 0 6px; }

.presented {
  font-style: italic;
  font-size: .95rem;
  color: #4a4a4a;
  margin: 0 0 22px;
}

.coming-soon { font-style: italic; }

/* ---------- teaching lists ---------- */
ul.courses {
  list-style: square;
  padding-left: 22px;
  margin: 0 0 8px;
}
ul.courses li { margin: 0 0 10px; }

.current { color: var(--accent-red); font-weight: 700; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  body { font-size: 18px; }
  header { padding: 18px 18px 14px; }
  nav { gap: 18px; }
  main { padding: 10px 18px 60px; }
  .page-title { font-size: 2.7rem; margin: 28px 0 20px; }
  .home-grid { flex-direction: column; gap: 26px; }
  .home-photo { flex-basis: auto; max-width: 280px; }
  .section-head { font-size: 1.35rem; }
}
