
:root {
  --bg: #f7f6f2;
  --paper: #ffffff;
  --text: #1c1c1c;
  --muted: #66645f;
  --line: #d9d7d0;
  --tag-bg: #ebe9e2;
  --max: 1120px;
  --soft: #efede7;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }

header {
  background: rgba(247,246,242,.96);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(8px);
}
.header-inner {
  min-height: 82px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}
.site-name {
  text-decoration: none; font-size: 1.18rem; font-weight: 650;
  letter-spacing: .01em; white-space: nowrap;
}
nav { display: flex; gap: 25px; flex-wrap: wrap; justify-content: flex-end; }
nav a { text-decoration: none; color: #333; font-size: .9rem; }
nav a:hover { text-decoration: underline; text-underline-offset: 5px; }

.hero {
  min-height: 74vh; display: flex; align-items: flex-end;
  background-color: #686868;
  background-image:
    linear-gradient(rgba(0,0,0,.18), rgba(0,0,0,.52));
  background-size: cover; background-position: center;
}
.hero-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto; padding: 90px 0 78px; color: white;
}
.hero-kicker, .eyebrow {
  margin: 0 0 14px; font-size: .78rem; font-weight: 650;
  text-transform: uppercase; letter-spacing: .16em;
}
.hero h1 {
  margin: 0; max-width: 900px;
  font-size: clamp(2.5rem,7vw,5.6rem);
  line-height: .98; font-weight: 500; letter-spacing: -.045em;
}
.hero-sub {
  margin: 26px 0 0; max-width: 730px;
  font-size: clamp(1.05rem,2vw,1.35rem); line-height: 1.5;
}

section { padding: 92px 0; border-bottom: 1px solid var(--line); }
.section-grid {
  display: grid; grid-template-columns: minmax(140px,.34fr) minmax(0,1fr);
  gap: 48px;
}
.section-label {
  margin: 0; font-size: .78rem; text-transform: uppercase;
  letter-spacing: .16em; color: var(--muted); font-weight: 650;
}
.lead {
  margin-top: 0; font-size: clamp(1.45rem,3vw,2.15rem);
  line-height: 1.35; letter-spacing: -.02em; max-width: 850px;
}
.about-panel {
  display: grid; grid-template-columns: minmax(0,1.25fr) 260px;
  gap: 36px; align-items: start;
}
.about-copy { max-width: 820px; }
.portrait-card { background: var(--paper); border: 1px solid var(--line); padding: 14px; }
.portrait-caption { margin: 12px 0 0; font-size: .86rem; color: var(--muted); }
.affiliation {
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid var(--line); color: var(--muted);
}
.advisor, .background { margin-top: 12px; color: var(--muted); }
.advisor a, .background a { color: var(--text); }

.research-grid {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 22px; margin-top: 22px;
}
.research-card {
  display: block; position: relative; text-decoration: none;
  background: var(--paper); border: 1px solid var(--line);
  padding: 28px; min-height: 255px;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.research-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,.07);
  border-color: #bdbab1;
}
.research-card .num { color: var(--muted); font-size: .8rem; letter-spacing: .08em; }
.research-card h3 { margin: 48px 0 14px; font-size: 1.38rem; line-height: 1.22; }
.research-card p { margin: 0; color: #4f4f4f; font-size: .96rem; max-width: 470px; }
.card-arrow { position: absolute; right: 24px; top: 23px; font-size: 1.15rem; color: var(--muted); }

.figure-gallery {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 24px; margin-top: 34px;
}
.featured-figure {
  margin: 0; background: var(--paper); border: 1px solid var(--line); overflow: hidden;
}
.featured-figure img { width: 100%; height: auto; background: #eee; }
.figure-text { padding: 18px 22px 22px; color: #474747; }
.figure-title { margin: 0 0 8px; font-size: .98rem; font-weight: 650; color: var(--text); }
.figure-text p:last-child { margin-bottom: 0; }

.publication-list { border-top: 1px solid var(--line); }
.pub {
  display: grid; grid-template-columns: 72px 1fr; gap: 22px;
  padding: 25px 0; border-bottom: 1px solid var(--line);
}
.pub-year { color: var(--muted); font-size: .9rem; padding-top: 2px; }
.pub-title { margin: 0 0 5px; font-weight: 650; line-height: 1.35; }
.pub-meta { margin: 0; color: var(--muted); font-size: .93rem; }
.pub-links { margin: 8px 0 0; font-size: .9rem; }
.all-link {
  display: inline-block; margin-top: 28px; font-weight: 650;
  text-decoration: none; border-bottom: 1px solid #777;
}

.news-placeholder { background: var(--paper); border: 1px solid var(--line); padding: 30px; }
.contact-row { display: flex; flex-wrap: wrap; gap: 16px 28px; margin-top: 26px; }
.contact-row a { font-weight: 550; }

.page-head { padding: 105px 0 74px; border-bottom: 1px solid var(--line); }
.page-head .eyebrow { color: var(--muted); }
.page-head h1 {
  font-size: clamp(3rem,7vw,6.3rem); line-height: .98;
  letter-spacing: -.05em; font-weight: 500; margin: 0;
}
.page-intro { max-width: 800px; margin-top: 28px; color: #454545; font-size: 1.12rem; }
.breadcrumb { margin-bottom: 26px; font-size: .9rem; color: var(--muted); }
.breadcrumb a { text-decoration: none; }

.detail-section { padding: 68px 0; }
.detail-grid {
  display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 48px;
}
.detail-title {
  margin: 0; font-size: .8rem; text-transform: uppercase;
  letter-spacing: .15em; color: var(--muted);
}
.copy { max-width: 820px; }
.copy h2 { margin-top: 0; font-size: 2rem; letter-spacing: -.02em; line-height: 1.2; }
.copy h3 { margin-top: 34px; margin-bottom: 8px; font-size: 1.15rem; }
.copy p { margin-top: 0; }

.theme-list {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 16px; margin-top: 26px;
}
.theme {
  background: var(--paper); border: 1px solid var(--line);
  padding: 22px;
}
.theme h3 { margin: 0 0 8px; font-size: 1.05rem; }
.theme p { margin: 0; color: var(--muted); font-size: .94rem; }

.visual {
  margin-top: 30px; background: var(--paper); border: 1px solid var(--line);
  padding: 22px;
}
.visual svg { width: 100%; height: auto; display: block; }
.visual-caption { margin: 15px 0 0; font-size: .88rem; color: var(--muted); }

.refs { border-top: 1px solid var(--line); }
.ref {
  display: grid; grid-template-columns: minmax(0,1fr) auto;
  gap: 20px; align-items: start; padding: 19px 0;
  border-bottom: 1px solid var(--line);
}
.ref-title { font-weight: 650; margin: 0 0 4px; line-height: 1.35; }
.ref-meta { color: var(--muted); margin: 0; font-size: .91rem; }
.ref-link { white-space: nowrap; font-size: .9rem; }
.status {
  display: inline-block; margin-left: 7px; padding: 2px 8px;
  border: 1px solid #aaa; border-radius: 999px; font-size: .73rem;
  color: #555; vertical-align: 1px; font-weight: 500;
}

.big-figure { margin: 30px 0 0; background: var(--paper); border: 1px solid var(--line); }
.big-figure img { width: 100%; }
.big-figure figcaption { padding: 18px 22px 22px; color: var(--muted); font-size: .91rem; }

.tool-grid, .data-grid {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-top: 24px;
}
.resource-card {
  background: var(--paper); border: 1px solid var(--line); padding: 23px;
}
.resource-card h3 { margin: 0 0 8px; font-size: 1.08rem; }
.resource-card p { margin: 0 0 13px; color: var(--muted); font-size: .93rem; }
.resource-card a { font-size: .9rem; font-weight: 600; }

.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.tag {
  display: inline-block; padding: 4px 9px; background: var(--tag-bg);
  border-radius: 999px; color: #55524b; font-size: .72rem; line-height: 1.2;
}

footer {
  padding: 38px 0 56px; color: var(--muted); font-size: .88rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .about-panel { grid-template-columns: 1fr; }
  .portrait-card { max-width: 260px; }
}
@media (max-width: 800px) {
  .header-inner { align-items: flex-start; flex-direction: column; padding: 18px 0; }
  nav { gap: 18px; }
  .hero { min-height: 60vh; }
  .section-grid, .detail-grid { grid-template-columns: 1fr; gap: 24px; }
  .research-grid, .figure-gallery, .theme-list, .tool-grid, .data-grid { grid-template-columns: 1fr; }
  .research-card { min-height: 0; }
  .research-card h3 { margin-top: 26px; }
}
@media (max-width: 520px) {
  .wrap, .hero-inner { width: min(100% - 30px,var(--max)); }
  section { padding: 66px 0; }
  .pub, .ref { grid-template-columns: 1fr; gap: 7px; }
}


/* Publications page hero uses the former homepage background image. */
.publication-hero {
  position: relative;
  padding: 120px 0 92px;
  border-bottom: 1px solid var(--line);
  color: #fff;
  background-color: #555;
  background-image:
    linear-gradient(rgba(0,0,0,.18), rgba(0,0,0,.56)),
    url("files/hero.jpg");
  background-size: cover;
  background-position: center;
}

.publication-hero .eyebrow,
.publication-hero .breadcrumb,
.publication-hero .page-intro {
  color: rgba(255,255,255,.9);
}

.publication-hero .breadcrumb a,
.publication-hero .contact-row a {
  color: #fff;
}

.publication-hero h1 {
  color: #fff;
}
