html { scroll-behavior: smooth; }

:root{
  --bg: #f7f5f2;
  --ink: #2b2b2b;
  --brand: #4a2a16;
  --paper: #ffffff;

  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-baskerville: "Baskerville", "Libre Baskerville", Georgia, "Times New Roman", serif;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* Anchor offset */
#home, #selected-publications, #selected-projects, #selected-photos, #contact {
  scroll-margin-top: 84px;
}

/* ===== NAVIGATION ===== */
.topnav {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--brand);
  color: #f4efe9;
  height: 64px;
  display: flex;
  align-items: center;
}

.topnav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand a {
  color: #f4efe9;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.navToggle {
  display: none;
  background: transparent;
  border: 0;
  color: #f4efe9;
  font-size: 22px;
  cursor: pointer;
}

.navlinks {
  display: flex;
  gap: 22px;
  font-size: 14px;
  align-items: center;
}

.navlinks a {
  color: #f4efe9;
  text-decoration: none;
  opacity: 0.9;
}

.navlinks a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* Dropdown */
.dropdown { position: relative; }

.dropdownMenu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  background: #ffffff;
  border-radius: 12px;
  padding: 8px;
  list-style: none;
  margin: 0;
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
  display: none;
}

.dropdownMenu a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: #2b2b2b;
}

.dropdownMenu a:hover {
  background: rgba(0,0,0,0.06);
}

.dropdown.open .dropdownMenu { display: block; }

/* ===== HERO: background only on TOP HALF ===== */
.hero{
  position: relative;
  padding: 88px 24px 0;
  overflow: visible;
  color: #ffffff;
}

/* ONLY top area has the hero image */
.hero::before{
  content:"";
  position:absolute;
  left:0; right:0; top:0;
  height: 200px;                 /* adjust if you want higher/lower cutoff */
  background-image:
  radial-gradient(1200px 500px at 75% 40%, rgba(0,0,0,0.05), rgba(0,0,0,0.35)),
  url("hero-bg.jpg");
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 56px;
  align-items: start;
}

/* Portrait: remove white frame */
.portraitCard{
  background: transparent;
  padding: 0;
  box-shadow: none;
  border-radius: 0;
}

/* Photo without white frame, still has subtle shadow */
.portraitCard img {
  width: 100%;
  display: block;
  border-radius: 0;
  box-shadow: 0 18px 45px rgba(0,0,0,0.18);
}

/* Hero text on background => white */
.hero h1 {
  font-family: var(--font-baskerville);
  font-size: 40px;
  line-height: 1.05;
  margin: 0 0 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #ffffff;
  text-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.hero h2 {
  font-family: var(--font-baskerville);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.4px;
  margin: 0 0 10px;
  color: #ffffff;
  text-shadow: 0 10px 30px rgba(0,0,0,0.28);
}


/* ===== White intro block (no background influence) ===== */
.heroIntro{
  background: #ffffff;
  padding: 50px 0 70px;
  
}

.heroIntro-inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 56px;
}

.heroIntro .introText{
  font-family: var(--font-baskerville);
  font-size: 18px;
  line-height: 1.9;
  color: #2b2b2b;
  max-width: 680px;
  margin: 0 0 14px;
}

.btnHero {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--brand);
  color: var(--brand);
  text-decoration: none;
  letter-spacing: 0.2px;
  background: transparent;
}

.btnHero:hover{
  background: rgba(74,42,22,0.06);
}

/* ===== Section titles (display font) ===== */
.section-title {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 600;
  margin-bottom: 22px;
}

/* ===== Selected Sections: View all (ONLY what you requested) ===== */
.sectionHead{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.sectionHead .section-title{
  margin-bottom: 22px; /* keep your original spacing */
}

.viewAllBtn{
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--brand);
  text-decoration: none;
  opacity: 0.95;
}

.viewAllBtn:hover{
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* Selected Publications list */
.pubList{
  margin: 0;
  padding-left: 22px;
}

.pubList li{
  margin-bottom: 14px;
}

/* ===== Projects ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 24px;
}

.card-link { text-decoration: none; color: inherit; }

.card {
  background: white;
  padding: 24px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  transition: 0.15s;
}

.card-link:hover .card {
  transform: translateY(-3px);
}

/* ===== Selected Photos ===== */
.photoGrid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 16px;
}

.photoGrid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
}

/* ===== Contact ===== */
.contact {
  background: var(--brand);
  color: #f4efe9;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 100px;
  gap: 48px;
}

.contact h3 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  margin: 0 0 18px;
}

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(244,239,233,0.6);
  padding: 10px 2px;
  color: white;
}

.btn {
  width: 100%;
  border: 1px solid rgba(244,239,233,0.8);
  background: transparent;
  color: white;
  padding: 14px;
  margin-top: 20px;
  cursor: pointer;
}

/* ===== Mobile ===== */
@media (max-width: 900px) {
  .hero-inner,
  .contact-inner,
  .heroIntro-inner {
    grid-template-columns: 1fr;
  }

  .hero::before{
    height: 300px;
    background-image:
    radial-gradient(1200px 500px at 60% 20%, rgba(0,0,0,0.10), rgba(0,0,0,0.45)),
    url("hero-bg.jpg");
  }

  .photoGrid { grid-template-columns: repeat(2,1fr); }

  .navToggle { display: block; }

  .navlinks {
    position: absolute;
    left: 0; right: 0;
    top: 64px;
    background: var(--brand);
    flex-direction: column;
    padding: 16px 24px;
    display: none;
  }

  .topnav.open .navlinks { display: flex; }
}


/* ===== PAGE STYLE ===== */
h1{
  font-size:46px;
  font-weight:300;
  margin:0 0 30px;
}

.section-title{
  font-size:22px;
  font-weight:650;
  margin:50px 0 18px;
  border-bottom:1px solid rgba(0,0,0,0.08);
  padding-bottom:8px;
}

.pub{
  background:#ffffff;
  border-radius:12px;
  padding:18px;
  margin-bottom:14px;
  box-shadow:0 10px 25px rgba(0,0,0,.05);
  border:1px solid rgba(0,0,0,.06);
}

.pub-title{
  font-weight:600;
  font-size:15px;
  margin-bottom:4px;
}

.pub-meta{
  font-size:14px;
  opacity:.8;
}

.pub a{
  color:#4a2a16;
}

.card-t{background:#fff;border-radius:12px;padding:18px;box-shadow:0 10px 25px rgba(0,0,0,.05);border:1px solid rgba(0,0,0,.06);}
.small-t{font-size:14px;opacity:.85;}
.list-t{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px;}
.item-t{background:#f7f5f2;border:1px solid rgba(0,0,0,.06);border-radius:12px;padding:12px;}
@media (max-width:900px){.list-t{grid-template-columns:1fr;}}

.sub-p{
  margin:0 0 28px;
  opacity:.78;
}
.cards-p{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(260px,1fr));
  gap:24px;
}
.card-p{
  background:#fff;
  padding:22px;
  border-radius:10px;
  box-shadow:0 10px 25px rgba(0,0,0,0.05);
  text-decoration:none;
  color:inherit;
  transition:transform .12s ease, box-shadow .12s ease;
}
.card-p:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 30px rgba(0,0,0,0.08);
}
.card-p h3{margin:0 0 8px;font-size:18px}
.card-p .zh{margin:0;opacity:.78;font-size:14px}
.badge-p{
  display:inline-block;
  margin-top:14px;
  border:1px solid rgba(74,42,22,.35);
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  color:#4a2a16;
  background:#fff;
}
