/* ===========================================================
   Marco Eilers — personal website
   Modern minimal, slate/indigo accent
   =========================================================== */

:root {
  --accent:       #4338ca;
  --accent-2:     #6366f1;
  --accent-soft:  #eef2ff;
  --ink:          #1e293b;
  --ink-strong:   #0f172a;
  --muted:        #64748b;
  --line:         #e2e8f0;
  --bg:           #ffffff;
  --bg-soft:      #f8fafc;
  --radius:       14px;
  --maxw:         920px;
  --shadow-sm:    0 1px 2px rgba(15,23,42,.04), 0 1px 3px rgba(15,23,42,.06);
  --shadow-md:    0 4px 6px -1px rgba(15,23,42,.07), 0 2px 4px -2px rgba(15,23,42,.06);
  --shadow-lg:    0 14px 32px -12px rgba(67,56,202,.22);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); text-decoration: underline; }

h1, h2, h3 { color: var(--ink-strong); line-height: 1.2; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 58px; gap: 16px;
}
.nav__brand { font-weight: 700; color: var(--ink-strong); letter-spacing: -.01em; }
.nav__brand:hover { text-decoration: none; color: var(--accent); }
.nav__links {
  display: flex; gap: 4px; align-items: center;
  overflow-x: auto; scrollbar-width: none;
}
.nav__links::-webkit-scrollbar { display: none; }
.nav__links a {
  color: var(--muted); font-size: 14.5px; font-weight: 500;
  padding: 7px 11px; border-radius: 8px; white-space: nowrap;
}
.nav__links a:hover { color: var(--accent); background: var(--accent-soft); text-decoration: none; }
.nav__cv {
  color: #fff !important; background: var(--accent);
  padding: 7px 14px !important; border-radius: 8px; font-weight: 600 !important;
}
.nav__cv:hover { background: var(--accent-2) !important; }

/* ---------- hero ---------- */
.hero { padding: 56px 0 34px; }
.hero__inner {
  display: grid; grid-template-columns: 168px 1fr; gap: 36px; align-items: center;
}
.hero__photo {
  width: 168px; height: 168px; border-radius: 50%; object-fit: cover;
  border: 4px solid #fff; box-shadow: var(--shadow-lg);
}
.hero__name {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: 2.7rem; font-weight: 600; letter-spacing: -.015em;
  margin: 0 0 6px;
}
.hero__role { font-size: 1.12rem; color: var(--ink); margin: 0 0 2px; font-weight: 500; }
.hero__affil { color: var(--muted); margin: 0 0 16px; }
.hero__affil a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); }
.hero__affil a:hover { color: var(--accent); }

.links { display: flex; flex-wrap: wrap; gap: 9px; }
.links a {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14.5px; font-weight: 500; color: var(--ink);
  padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; box-shadow: var(--shadow-sm);
  transition: border-color .15s, color .15s, transform .15s;
}
.links a:hover {
  color: var(--accent); border-color: var(--accent-2);
  text-decoration: none; transform: translateY(-1px);
}
.links svg { width: 16px; height: 16px; }

/* ---------- generic section ---------- */
section { padding: 30px 0; }
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--accent);
  margin: 0 0 14px;
}
.section-title { font-size: 1.55rem; font-weight: 700; margin: 0 0 18px; letter-spacing: -.01em; }
.lead { color: var(--ink); max-width: 65ch; }
.muted { color: var(--muted); }

.divider { height: 1px; background: var(--line); border: 0; margin: 6px 0; }

/* ---------- about ---------- */
.about p { max-width: 68ch; }
.about p + p { margin-top: 14px; }

/* ---------- news ---------- */
.news { list-style: none; margin: 0; padding: 0; }
.news li {
  display: grid; grid-template-columns: 88px 1fr; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.news li:last-child { border-bottom: 0; }
.news .date { color: var(--accent); font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; padding-top: 1px; }
.news .what { margin: 0; }

/* ---------- research cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; padding: 22px 22px 18px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #c7cffb; }
.card__top { display: flex; align-items: center; gap: 13px; margin-bottom: 10px; min-height: 50px; }
.card__badge {
  flex: none; width: 44px; height: 44px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em;
}
.card__badge--logo { width: 50px; height: 50px; background: transparent; padding: 2px; }
.card__badge--logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.card__title { font-size: 1.16rem; font-weight: 700; margin: 0; }
.card__title--logo { line-height: 0; }
.card__wordmark { height: 30px; width: auto; display: block; }
.card__body { color: var(--ink); font-size: 15.3px; line-height: 1.6; margin: 0 0 14px; }
.card__links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 7px 8px; }
.tag {
  font-size: 13px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); padding: 4px 10px; border-radius: 999px;
}
.tag:hover { background: var(--accent); color: #fff; text-decoration: none; }
.tag--plain { color: var(--muted); background: var(--bg-soft); }

/* ---------- awards ---------- */
.awards { list-style: none; margin: 0; padding: 0; }
.awards li {
  display: grid; grid-template-columns: 88px 1fr; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.awards li:last-child { border-bottom: 0; }
.awards .date { color: var(--muted); font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; padding-top: 1px; white-space: nowrap; }
.awards .what { margin: 0; }
.honor { color: var(--ink-strong); font-weight: 600; }
.pill {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .03em;
  color: #b45309; background: #fffbeb; border: 1px solid #fde68a;
  padding: 1px 8px; border-radius: 999px; margin-left: 6px; vertical-align: 1px;
}

/* ---------- publications ---------- */
.pub-group { margin-bottom: 24px; }
.pub-group h3 {
  font-size: 1.02rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em; margin: 0 0 12px;
}
.pubs { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.pub {
  display: grid; grid-template-columns: 64px 1fr; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.pub:last-child { border-bottom: 0; }
.pub__venue {
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
  color: var(--accent); padding-top: 3px;
}
.pub__venue small { display: block; color: var(--muted); font-weight: 600; font-size: 11.5px; }
.pub__title { font-weight: 600; color: var(--ink-strong); display: block; }
.pub__authors { color: var(--muted); font-size: 14.5px; }
.pub__authors .me { color: var(--ink); font-weight: 600; }
.pub__note { color: #b45309; font-size: 13.5px; font-weight: 600; }
.pub__links { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 2px 14px; }
.pub__links a { font-size: 13px; font-weight: 600; color: var(--accent); }
.pub__links a:hover { color: var(--accent-2); }
.pub__links .sep { color: var(--line); }

/* ---------- two-column simple lists ---------- */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li {
  display: grid; grid-template-columns: 132px 1fr; gap: 16px;
  padding: 9px 0; border-bottom: 1px solid var(--line);
}
.rows li:last-child { border-bottom: 0; }
.rows .when { color: var(--muted); font-size: 14px; font-weight: 600; }
.rows .what { margin: 0; }
.rows .what .role { color: var(--accent); font-weight: 600; }
.rows .what a.rep { font-size: 13px; font-weight: 600; white-space: nowrap; }

/* details / show-more */
details { margin-top: 8px; }
details > summary {
  cursor: pointer; color: var(--accent); font-weight: 600; font-size: 14.5px;
  list-style: none; padding: 8px 0; display: inline-block;
}
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "▸ "; }
details[open] > summary::before { content: "▾ "; }
details > summary:hover { color: var(--accent-2); }

/* ---------- service ---------- */
.service p { max-width: 70ch; }
.service ul { padding-left: 1.1em; margin: 8px 0; }
.service li { margin: 3px 0; }

/* ---------- contact / footer ---------- */
.footer {
  margin-top: 24px; padding: 40px 0 56px;
  background: var(--bg-soft); border-top: 1px solid var(--line);
}
.footer .section-title { margin-bottom: 10px; }
.footer .addr { color: var(--muted); font-size: 15px; line-height: 1.7; }
.footer .colophon { margin-top: 22px; color: var(--muted); font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { padding: 34px 0 24px; }
  .hero__inner { grid-template-columns: 1fr; gap: 20px; text-align: left; }
  .hero__photo { width: 124px; height: 124px; }
  .hero__name { font-size: 2.15rem; }
  .nav__brand { display: none; }
  .nav .wrap { justify-content: space-between; }
  .cards { grid-template-columns: 1fr; }
  .news li, .awards li { grid-template-columns: 70px 1fr; gap: 12px; }
  .pub { grid-template-columns: 1fr; gap: 4px; }
  .pub__venue { padding-top: 0; }
  .rows li { grid-template-columns: 1fr; gap: 2px; }
  .rows .when { font-size: 13px; }
}
