/* =========================================================
   SITE STYLES — Modern Minimal Academic
   Shared across all pages.
   ========================================================= */

:root{
  --bg:        #fbfbfa;
  --surface:  #ffffff;
  --ink:      #111418;
  --ink-2:    #2a2f37;
  --muted:    #6b7280;
  --muted-2:  #9aa0aa;
  --line:     #e7e7e3;
  --line-2:   #efefea;
  --accent:   #2a3f8f;
  --accent-2: #e9ecf6;
  --gold:     #b58900;
  --max:      980px;
  --radius:   10px;
}

*{ box-sizing: border-box; }
html, body{ margin:0; padding:0; }
body{
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection{ background: var(--accent); color:#fff; }

a{
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color .15s ease, border-color .15s ease;
}
a:hover{ color: var(--accent); border-color: var(--accent); }

h1, h2, h3 { letter-spacing: -0.02em; }

/* ---------- nav ---------- */
.nav{
  position: sticky; top:0; z-index: 10;
  background: rgba(251,251,250,.86);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner{
  display:flex; align-items:center; justify-content:space-between;
  height: 60px;
  max-width: var(--max); margin: 0 auto; padding: 0 28px;
}
.brand{
  font-weight: 600; letter-spacing: -0.01em; font-size: 15px;
  border:none; color: var(--ink);
}
.brand .dot{
  display:inline-block; width:7px; height:7px; border-radius:50%;
  background: var(--accent); margin-right: 9px; vertical-align: 2px;
}
.nav-links{ display:flex; gap: 24px; }
.nav-links a{
  border:none; font-size: 14.5px; color: var(--ink-2);
  position: relative; padding: 4px 0;
}
.nav-links a:hover{ color: var(--accent); }
.nav-links a.active{ color: var(--accent); }
.nav-links a.active::after{
  content:""; position:absolute; left:0; right:0; bottom:-1px; height:2px;
  background: var(--accent);
}

/* ---------- shell ---------- */
.shell{ max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* ---------- page header ---------- */
.page-head{
  padding: 56px 0 36px;
  border-bottom: 1px solid var(--line);
}
.page-head .kicker{
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.page-head h1{
  font-size: clamp(36px, 4.4vw, 50px);
  line-height: 1.05;
  font-weight: 600;
  margin: 0 0 14px;
}
.page-head .lede{
  font-size: 18.5px; color: var(--ink-2); max-width: 700px;
  margin: 0;
}

/* ---------- HOME hero ---------- */
.hero{
  display:grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
}
.hero h1{
  font-size: clamp(34px, 4.4vw, 48px);
  line-height: 1.05;
  font-weight: 600;
  margin: 0 0 14px;
}
.hero .role{
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 26px;
}
.hero .role strong{ color: var(--ink-2); font-weight: 500; }
.hero .bio p{ margin: 0 0 14px; color: var(--ink-2); font-size: 17px; }
.hero .bio a{ color: var(--accent); border-color: rgba(42,63,143,.25); }
.hero .bio a:hover{ border-color: var(--accent); }

.hero-side{ display:flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.headshot{
  width: 100%; max-width: 280px; aspect-ratio: 1/1.05;
  object-fit: cover; object-position: 50% 30%;
  border-radius: var(--radius);
  filter: saturate(.96);
}
.contact-card{
  width: 100%; max-width: 280px;
  font-size: 14px; color: var(--ink-2);
}
.contact-card .row{
  display:flex; gap: 10px; padding: 8px 0;
  border-top: 1px solid var(--line-2);
}
.contact-card .row:last-child{ border-bottom: 1px solid var(--line-2); }
.contact-card .k{ color: var(--muted); width: 78px; flex: none; }
.contact-card a{ border:none; color: var(--ink-2); }
.contact-card a:hover{ color: var(--accent); }

/* ---------- block ---------- */
section.block{ padding: 56px 0; border-bottom: 1px solid var(--line); }
section.block:last-of-type{ border-bottom: none; }
.block-head{
  display:flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 26px;
}
.block-head h2{
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin: 0;
}
.block-head .meta{ font-size: 13px; color: var(--muted-2); border:none; color: var(--accent); }
.block-head .meta:hover{ color: var(--accent); border:none; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- featured publications (home) ---------- */
.featured{ display:flex; flex-direction: column; gap: 0; }
.featured .item{
  padding: 22px 0;
  border-top: 1px solid var(--line-2);
  display:grid; grid-template-columns: 60px 1fr; gap: 18px;
}
.featured .item:first-child{ border-top: none; padding-top: 4px; }
.featured .yr{
  color: var(--muted); font-size: 13.5px;
  font-variant-numeric: tabular-nums; padding-top: 2px;
}
.featured .title{
  font-size: 18px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--ink); margin-bottom: 4px; line-height: 1.35;
}
.featured .title a{ color: var(--ink); border:none; }
.featured .title a:hover{ color: var(--accent); }
.featured .blurb{ color: var(--ink-2); font-size: 15.5px; margin: 6px 0 8px; max-width: 620px; }
.featured .meta{
  font-size: 13.5px; color: var(--muted);
  display:flex; flex-wrap: wrap; gap: 14px; align-items: center;
}
.featured .venue{ font-style: italic; }
.featured .award{
  font-size: 11.5px; letter-spacing: .02em;
  padding: 3px 8px; border-radius: 999px;
  background: #fdf6e3; border: 1px solid #ecdfb9; color: #6b5413;
  font-style: normal;
}

/* ---------- research areas ---------- */
.areas{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.area{
  padding: 22px 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .15s ease;
}
.area:hover{ border-color: #d4d4ce; }
.area .num{ font-size: 12px; color: var(--muted-2); letter-spacing: .08em; }
.area h3{
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
  margin: 8px 0 8px;
}
.area p{ font-size: 14.5px; color: var(--ink-2); margin: 0; line-height: 1.55; }

/* ---------- news (bold date, roomy rows) ---------- */
.news{ display:flex; flex-direction: column; gap: 26px; }
.news .item{
  display:grid; grid-template-columns: 150px 1fr;
  gap: 36px;
  font-size: 17px;
  line-height: 1.6;
}
.news .date{
  color: var(--ink); font-weight: 700;
  font-size: 16px; letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.news .text{ color: var(--ink-2); text-wrap: pretty; }
.news .text strong{ color: var(--ink); font-weight: 600; }
.news .text em{ font-style: italic; }
.news .text a{
  color: var(--accent);
  border-bottom: 1px solid rgba(42,63,143,.28);
  padding-bottom: 1px;
}
.news .text a:hover{ color: var(--accent); border-color: var(--accent); }

/* ---------- publications full list ---------- */
.pubgroup{ margin-bottom: 36px; }
.pubgroup:last-child{ margin-bottom: 0; }
.pubgroup-title{
  font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); font-weight: 600;
  margin: 0 0 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.pub{
  display:grid; grid-template-columns: 60px 1fr; gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line-2);
}
.pub:first-child{ border-top: none; }
.pub .yr{ color: var(--muted); font-size: 13.5px; padding-top: 2px; font-variant-numeric: tabular-nums; }
.pub .title{
  font-size: 16px; font-weight: 600; letter-spacing: -0.005em;
  color: var(--ink); margin-bottom: 4px; line-height: 1.4;
}
.pub .authors{ font-size: 14.5px; color: var(--ink-2); margin-bottom: 4px; }
.pub .authors strong{ color: var(--ink); font-weight: 600; }
.pub .venue{ font-size: 14px; color: var(--muted); font-style: italic; }
.pub .badges{ display:flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.badge{
  font-size: 11.5px; padding: 3px 8px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
}
.badge.award{ background: #fdf6e3; border-color: #ecdfb9; color: #6b5413; }
.pub .links{ margin-top: 8px; display:flex; gap: 14px; flex-wrap: wrap; }
.pub .links a{
  font-size: 13px; color: var(--accent); border:none;
  border-bottom: 1px solid rgba(42,63,143,.25); padding-bottom: 1px;
}
.pub .links a:hover{ border-color: var(--accent); }

/* ---------- generic row list ---------- */
.row-list .row{
  display:grid; grid-template-columns: 60px 1fr; gap: 18px;
  padding: 12px 0; border-top: 1px solid var(--line-2);
  font-size: 15px;
}
.row-list .row:first-child{ border-top: none; }
.row-list .yr{ color: var(--muted); font-size: 13.5px; padding-top: 2px; font-variant-numeric: tabular-nums; }
.row-list .main{ color: var(--ink-2); }
.row-list .main strong{ color: var(--ink); font-weight: 600; }
.row-list .sub{ font-size: 13.5px; color: var(--muted); margin-top: 2px; }

/* ---------- experience timeline (CV page) ---------- */
.tl-legend{ display:inline-flex; align-items:center; gap:6px; color:var(--muted) !important; }
.tl-key{ display:inline-block; width:9px; height:9px; border-radius:50%; }
.tl-key-industry{ background:var(--accent); }
.tl-key-research{ background:var(--bg); border:1.5px solid var(--accent); width:8px; height:8px; }

.timeline{ display:flex; flex-direction:column; }
.tl-item{
  display:grid; grid-template-columns: 132px 24px 1fr;
  gap: 0 20px;
}
.tl-when{
  text-align:right; color:var(--muted);
  font-size:13.5px; line-height:1.45; padding-top:3px;
  font-variant-numeric: tabular-nums;
}
.tl-when .loc{ display:block; color:var(--muted-2); font-size:12.5px; margin-top:3px; }
.tl-rail{ position:relative; display:flex; justify-content:center; }
.tl-rail::before{
  content:""; position:absolute; top:0; bottom:0;
  width:1px; background:var(--line);
}
.tl-item:first-child .tl-rail::before{ top:9px; }
.tl-item:last-child .tl-rail::before{ height:9px; bottom:auto; }
.tl-dot{
  position:relative; z-index:1;
  width:11px; height:11px; border-radius:50%;
  margin-top:7px; flex:none;
  background:var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}
.tl-item[data-kind="research"] .tl-dot{
  width:10px; height:10px;
  background:var(--bg); border:1.5px solid var(--accent);
}
.tl-body{ padding-bottom:34px; max-width:580px; }
.tl-item:last-child .tl-body{ padding-bottom:6px; }
.tl-role{ font-size:16.5px; font-weight:600; letter-spacing:-0.005em; line-height:1.35; }
.tl-org{ font-size:14px; color:var(--accent); margin-top:2px; }
.tl-desc{ font-size:14.5px; color:var(--ink-2); margin:7px 0 0; line-height:1.55; }

/* ---------- experience (CV page) ---------- */
.exp{ display:flex; flex-direction: column; gap: 26px; }
.exp .item{
  display:grid; grid-template-columns: 180px 1fr; gap: 24px;
  padding-top: 20px; border-top: 1px solid var(--line-2);
}
.exp .item:first-child{ border-top: none; padding-top: 0; }
.exp .when{ color: var(--muted); font-size: 13.5px; }
.exp .where{ color: var(--muted-2); font-size: 13px; margin-top: 2px; }
.exp .role{ font-size: 16px; font-weight: 600; margin: 0 0 2px; }
.exp .org{ font-size: 14.5px; color: var(--accent); margin-bottom: 8px; }
.exp p { margin: 6px 0 0; color: var(--ink-2); font-size: 14.5px; }

/* ---------- teaching ---------- */
.notes-list{ display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.note{
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color .15s ease, transform .15s ease;
}
.note:hover{ border-color: var(--accent); }
.note .meta{ font-size: 12px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.note h3{ font-size: 18px; font-weight: 600; margin: 0; }
.note h3 a{ color: var(--ink); border:none; }
.note h3 a:hover{ color: var(--accent); }
.note p{ font-size: 14.5px; color: var(--ink-2); margin: 0; }
.note .arrow{
  margin-top: auto; padding-top: 6px;
  font-size: 13px; color: var(--accent);
}

.teaching-intro{
  font-size: 18px; color: var(--ink-2); max-width: 660px;
  margin: 0 0 8px;
}

/* ---------- footer ---------- */
.foot{
  padding: 40px 0 64px;
  font-size: 13px; color: var(--muted);
  display:flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  border-top: 1px solid var(--line);
}
.foot a{ color: var(--muted); border:none; }
.foot a:hover{ color: var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 820px){
  .hero{ grid-template-columns: 1fr; gap: 32px; padding: 48px 0 40px; }
  .hero-side{ order: -1; flex-direction: row; align-items: center; gap: 22px; }
  .headshot{ width: 110px; max-width: 110px; }
  .contact-card{ flex: 1; }
  .areas{ grid-template-columns: 1fr; }
  .news{ gap: 22px; }
  .news .item{ grid-template-columns: 1fr; gap: 5px; }
  .news .date{ font-size: 15px; }
  .notes-list{ grid-template-columns: 1fr; }
  .exp .item{ grid-template-columns: 1fr; gap: 8px; }
  .tl-item{ grid-template-columns: 20px 1fr; gap: 0 16px; }
  .tl-when{ grid-column: 2; grid-row: 1; text-align:left; padding-top:5px; padding-bottom:6px; }
  .tl-when .loc{ display:inline; margin-left:8px; }
  .tl-rail{ grid-column: 1; grid-row: 1 / span 2; }
  .tl-body{ grid-column: 2; grid-row: 2; padding-bottom:30px; }
  .nav-links{ gap: 14px; }
  .nav-links a{ font-size: 13.5px; }
}
