/* ============================================================
   Michael Finkelson — academic homepage
   al-folio inspired, classic light theme
   Change --accent below to recolor the whole site.
   ============================================================ */

:root {
  --accent: #3b5bdb;            /* links, year headers, hover */
  --accent-soft: #e2e7fb;       /* subtle accent backgrounds */
  --text: #1f2123;
  --text-muted: #6b7177;
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --border: #ededed;
  --maxw: 820px;
  --sans: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --slab: "Roboto Slab", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .15s ease, border-color .15s ease;
}
a:hover { color: var(--text); }

strong { font-weight: 700; }

/* ============================== NAV ============================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 16px;
}
.nav-brand {
  font-family: var(--slab);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: .2px;
}
.nav-brand:hover { color: var(--accent); }
.nav-links { display: flex; gap: 22px; }
.nav-links a {
  color: var(--text-muted);
  font-size: .95rem;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ============================== LAYOUT ============================== */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 46px 0; border-bottom: 1px solid var(--border); }
section:last-of-type { border-bottom: none; }

h2 {
  font-family: var(--slab);
  font-weight: 700;
  font-size: 1.7rem;
  margin: 0 0 26px;
  letter-spacing: .3px;
}

/* ============================== ABOUT ============================== */
.about {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
  padding-top: 54px;
}
.about-photo { position: sticky; top: 90px; }
.about-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 6px 24px rgba(0,0,0,.10);
  background: var(--bg-alt);
}
.about-text { min-width: 0; }
.about-text h1 {
  font-family: var(--slab);
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 1.15;
  margin: 0 0 8px;
}
.tagline {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin: 0 0 22px;
}
/* keep each role intact; the only break point is the space at the "·" */
.tagline .role { white-space: nowrap; }
.about-text p { margin: 0 0 16px; }
.contact-line { color: var(--text-muted); font-size: .96rem; }

/* social icons */
.social {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 18px;
}
.social a {
  display: inline-flex;
  width: 22px;
  height: 22px;
  color: var(--text-muted);
}
.social a:hover { color: var(--accent); transform: translateY(-2px); }
.social svg { width: 100%; height: 100%; fill: currentColor; transition: transform .15s ease; }

/* ============================== NEWS ============================== */
.news-table { width: 100%; border-collapse: collapse; }
.news-table td { padding: 9px 0; vertical-align: top; border-bottom: 1px dashed var(--border); }
.news-table tr:last-child td { border-bottom: none; }
.news-date {
  width: 96px;
  white-space: nowrap;
  color: var(--accent);
  font-weight: 500;
  font-size: .92rem;
  padding-right: 18px !important;
}
.news-body { color: var(--text); }

/* ============================== PUBLICATIONS ============================== */
.pub-year {
  font-family: var(--slab);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  border-top: 3px solid var(--accent);
  display: inline-block;
  padding-top: 6px;
  margin: 28px 0 14px;
}
.pub-list { list-style: none; margin: 0; padding: 0; }
.pub {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  padding: 18px 0;
  align-items: start;
}
.pub-thumb img,
.pub-thumb video {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  display: block;
}
.pub-meta { min-width: 0; }
.pub-title { font-weight: 700; font-size: 1.05rem; line-height: 1.35; margin-bottom: 4px; text-wrap: balance; }
.pub-authors { font-size: .96rem; color: var(--text); margin-bottom: 2px; }
.pub-authors .me { font-weight: 700; border-bottom: 2px solid var(--accent-soft); }
.pub-authors sup { color: var(--accent); font-weight: 700; }
.pub-venue { font-size: .92rem; color: var(--text-muted); font-style: italic; margin-bottom: 8px; }
.pub-venue .eq { font-style: normal; }
.pub-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pub-links a {
  font-size: .82rem;
  font-weight: 500;
  padding: 2px 10px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
}
.pub-links a:hover { background: var(--accent); color: #fff; }

/* ============================== FOOTER ============================== */
.site-footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 30px 24px 50px;
  color: var(--text-muted);
  font-size: .85rem;
  text-align: center;
}

/* ============================== RESPONSIVE ============================== */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-inner { padding: 12px 18px; }
  .nav-brand { font-size: 1rem; }
  .nav-links { gap: 16px; }
  main { padding: 0 18px; }

  .about {
    grid-template-columns: 1fr;
    gap: 22px;
    text-align: center;
    padding-top: 36px;
  }
  .about-photo { position: static; max-width: 190px; margin: 0 auto; }
  .about-text h1 { font-size: 1.9rem; white-space: normal; }
  .about-text { text-align: left; }
  .about-text h1, .tagline { text-align: center; }

  .pub { grid-template-columns: 1fr; gap: 12px; }
  .pub-thumb { max-width: 220px; }

  .news-table td { display: block; }
  .news-date { width: auto; padding-bottom: 0 !important; }
  .news-body { padding-top: 2px; }
}
