/* Layout: one narrow reading column; colors match theme.scss. */
:root {
  --ink: #1d1f24;
  --muted: #6a6f78;
  --line: #e7e8ec;
  --accent: #2a5a88;
}

body {
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}

/* Navbar and footer */
.navbar { padding-top: .35rem; padding-bottom: .35rem; }
.navbar .navbar-title { color: var(--ink); font-weight: 600; letter-spacing: -.01em; }
.navbar .nav-link { color: var(--muted); font-size: .95rem; }
.navbar .nav-link:hover,
.navbar .nav-link.active { color: var(--ink); }
.nav-footer { border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.nav-footer a { color: var(--muted); }
.nav-footer a:hover { color: var(--ink); text-decoration: none; }

/* Page titles */
#title-block-header { margin-top: 1.5rem; }
h1.title { font-size: 2rem; font-weight: 650; letter-spacing: -.015em; }
#title-block-header .description { color: var(--muted); }

/* Section labels on the profile pages (posts keep normal headings) */
body.profile #quarto-content section.level2 > h2 {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--muted);
  border: 0;
  padding: 0;
  margin: 2.75rem 0 .9rem;
}

/* Home hero */
.hero { display: flex; align-items: center; gap: 1.25rem; margin: 2.5rem 0 1.5rem; }
.hero-photo { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; flex: none; }
.hero-name { font-size: 2rem; font-weight: 650; letter-spacing: -.015em; line-height: 1.2; margin: 0; border: 0; }
.hero-role { margin: .3rem 0 0; color: var(--muted); }
.lead { font-size: 1.1rem; font-weight: 400; line-height: 1.6; }
.lead p { margin-bottom: 1.1rem; }

/* Pill links */
.link-row p { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.link-row a {
  padding: .28rem .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .88rem;
  color: var(--ink);
}
.link-row a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* Simple divided lists */
.plain-list ul,
.pubs ul,
.post-list { list-style: none; padding: 0; margin: 0; }
.plain-list li,
.pubs li,
.post-list li { padding: .7rem 0; border-top: 1px solid var(--line); }
.plain-list li:first-child,
.pubs li:first-child,
.post-list li:first-child { border-top: 0; padding-top: 0; }

/* Papers, talks, patents: title on top, venue below */
.pubs li { color: var(--muted); font-size: .93rem; }
.pubs li > strong { display: block; color: var(--ink); font-size: 1rem; font-weight: 600; line-height: 1.45; margin-bottom: .1rem; }
.pubs li br { display: none; }
.note { display: block; color: var(--muted); font-size: .9rem; margin-top: .9rem; }

/* Posts on the home page */
.post-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.post-list .post-title { color: var(--ink); font-weight: 500; }
.post-list .post-title:hover { color: var(--accent); }
.post-list .post-date { color: var(--muted); font-size: .88rem; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* About: year column + entry */
.cv dl { display: grid; grid-template-columns: 7rem 1fr; column-gap: 1.25rem; row-gap: 1.1rem; margin: 0; }
.cv dt { font-weight: 400; color: var(--muted); font-size: .92rem; font-variant-numeric: tabular-nums; padding-top: .12rem; }
.cv dd { margin: 0; }
.cv dd p { margin: 0; }
.cv .desc { display: block; color: var(--muted); font-size: .93rem; margin-top: .1rem; }

/* Projects grid */
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .9rem; margin-top: 1.5rem; }
.project { border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem 1.05rem; }
.project h3 { font-size: 1.02rem; font-weight: 600; margin: 0 0 .3rem; }
.project p { margin: 0 0 .55rem; color: var(--muted); font-size: .93rem; line-height: 1.5; }
.project p:last-child { margin: 0; font-size: .9rem; }

@media (max-width: 575.98px) {
  .hero { gap: 1rem; margin-top: 1.5rem; }
  .hero-photo { width: 80px; height: 80px; }
  .hero-role { font-size: .92rem; }
  .hero-name, h1.title { font-size: 1.65rem; }
  .cv dl { grid-template-columns: 1fr; row-gap: 0; }
  .cv dt { padding-top: 1rem; }
  .cv dt:first-child { padding-top: 0; }
  .post-list li { flex-direction: column; gap: .1rem; }
}
