/* ---------------------------------------------------------------------------
   home.css — styles for the CSIP Lab landing page (index.html).
   Vertical, single-column publication list in the style of jonbarron.info.
   Only index.html uses this file; project pages keep their own stylesheets.
   --------------------------------------------------------------------------- */

:root {
  --link: #1772d0;
  --link-hover: #f09228;
  --text: #1a1a1a;
  --muted: #565656;
  --rule: #e2e2e2;
  --highlight: #ffffd0;
  --row-hover: #f7f7f7;
  --page-width: 820px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0 18px 48px;
  background: #fff;
  color: var(--text);
  font-family: 'Lato', Verdana, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: var(--page-width);
  margin: 0 auto;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:focus,
a:hover {
  color: var(--link-hover);
}

/* --- header ------------------------------------------------------------- */

.site-header {
  padding: 44px 0 4px;
  text-align: center;
}

.lab-name {
  margin: 0;
  font-size: 31px;
  font-weight: 700;
  line-height: 1.25;
}

/* on sub-pages the lab name links home, but should not read as a link */
.lab-name a {
  color: inherit;
}

.lab-name a:hover {
  color: var(--link-hover);
}

.lab-tagline {
  margin: 8px 0 0;
  font-size: 17px;
  color: var(--muted);
}

.lab-intro {
  margin: 20px 0 0;
  text-align: left;
}

.inline-links {
  margin: 18px 0 0;
  text-align: center;
}

.inline-links .sep {
  color: #b0b0b0;
  padding: 0 5px;
}

/* the nav entry for the page you are already on */
.inline-links .current {
  color: var(--text);
  font-weight: 700;
}

/* --- section headings --------------------------------------------------- */

.section-title {
  margin: 40px 0 4px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
  font-size: 22px;
  font-weight: 400;
}

.section-note {
  margin: 10px 0 18px;
  color: var(--muted);
}

/* --- publication list --------------------------------------------------- */

.papers {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.paper {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px;
  border-radius: 6px;
  transition: background-color .2s ease-in-out;
}

.paper:not(.paper--new):hover {
  background: var(--row-hover);
}

/* Recently published work; mirrors the highlighted rows of the template. */
.paper--new {
  background: var(--highlight);
}

.paper-thumb {
  flex: 0 0 200px;
  max-width: 200px;
}

.paper-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: #fff;
  border-radius: 3px;
}

.paper-body {
  flex: 1 1 auto;
  min-width: 0;
}

.paper-title {
  font-size: 15px;
  font-weight: 700;
}

.paper-authors {
  color: var(--text);
}

.paper-venue {
  color: var(--muted);
}

.paper-award {
  font-weight: 700;
  color: var(--text);
}

.paper-tag {
  color: #c0392b;
  font-weight: 700;
}

.paper-links {
  margin-top: 2px;
}

.paper-links .sep {
  color: #b0b0b0;
  padding: 0 3px;
}

.paper-tldr {
  margin: 8px 0 0;
  color: #333;
}

/* --- team grid (team.html) ---------------------------------------------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 28px 20px;
  margin-top: 22px;
}

.member {
  text-align: center;
}

.member-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 22%;
  background: #f0f0f0;
  border-radius: 3px;
}

.member-name {
  display: block;
  margin-top: 10px;
  font-weight: 700;
}

.member-title {
  display: block;
  color: var(--muted);
}

/* --- alumni list (team.html) -------------------------------------------- */

.alumni {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.alumni li {
  padding: 8px 2px;
  border-bottom: 1px solid #f1f1f1;
}

.alumni li:last-child {
  border-bottom: none;
}

.alumni-name {
  font-weight: 700;
}

.alumni-meta {
  color: var(--muted);
}

.alumni-next {
  color: var(--muted);
  white-space: nowrap;
}

/* --- footer ------------------------------------------------------------- */

.site-footer {
  margin-top: 44px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* --- small screens ------------------------------------------------------ */

@media (max-width: 620px) {
  .paper {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .paper-thumb {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
  }

  .lab-name {
    font-size: 26px;
  }
}
