/* Sjoert van Velzen — personal site (2026 refresh) */

:root {
  --maxw: 920px;
  --text: #1c1c1e;
  --muted: #6b7280;
  --faint: #9aa0a8;
  --accent: #14507e;
  --accent-dark: #0e3a5c;
  --border: #e6e7ea;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

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

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav .brand { font-weight: 600; font-size: 16px; letter-spacing: 0.2px; color: var(--text); }
.nav .links { display: flex; flex-wrap: wrap; gap: 20px; }
.nav .links a { color: var(--muted); font-size: 14px; }
.nav .links a:hover { color: var(--accent); text-decoration: none; }

/* ---- hero ---- */
.hero {
  background-image: linear-gradient(rgba(255,255,255,0.68), rgba(255,255,255,0.85)), url("img/WISE2012-001_cutoutout.jpg");
  background-size: cover; background-position: center;
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 56px 24px;
  display: flex; align-items: center; gap: 40px;
}
.hero .intro { flex: 1; }
.hero h1 { margin: 0; font-size: 38px; line-height: 1.1; font-weight: 600; letter-spacing: -0.3px; }
.hero .title { margin: 8px 0 0; color: var(--muted); font-size: 17px; }
.hero .tagline { margin: 18px 0 0; font-size: 18px; max-width: 460px; }
.hero .cta { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.portrait {
  width: 168px; height: 168px; border-radius: 50%; object-fit: cover;
  border: 4px solid #fff; box-shadow: 0 2px 14px rgba(0,0,0,0.12); flex-shrink: 0;
}

.btn {
  display: inline-block; padding: 9px 18px; border-radius: 8px; font-size: 15px;
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; text-decoration: none; }
.btn-outline { background: transparent; color: var(--accent); }
.btn-outline:hover { background: var(--bg-soft); color: var(--accent-dark); }

/* ---- sections ---- */
section { padding: 48px 0; border-top: 1px solid var(--border); }
section:first-of-type { border-top: none; }
.eyebrow { text-transform: uppercase; letter-spacing: 1.5px; font-size: 12px; font-weight: 600; color: var(--accent); margin: 0 0 10px; }
section h2 { margin: 0 0 16px; font-size: 24px; font-weight: 600; letter-spacing: -0.2px; }
section p { margin: 0 0 14px; max-width: 680px; }
.lede { color: var(--text); }

/* ---- group cards ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 22px; margin: 6px 0 0; }
.person { text-align: center; }
.person .avatar, .person img.avatar {
  width: 104px; height: 104px; border-radius: 50%; margin: 0 auto 10px; object-fit: cover;
}
.person .avatar {
  background: var(--accent); color: #fff; font-size: 32px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.person .name { font-weight: 600; font-size: 15px; }
.person .role { color: var(--muted); font-size: 13px; }
.person .topic { color: var(--faint); font-size: 13px; margin-top: 2px; }
.subhead { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin: 28px 0 14px; }
.former { color: var(--muted); font-size: 15px; margin-top: 18px; }

/* ---- table ---- */
table.students { width: 100%; border-collapse: collapse; font-size: 15px; }
table.students th {
  text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 2px solid var(--border);
}
table.students td { padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.students tr:hover td { background: var(--bg-soft); }
table.students .yr { color: var(--muted); white-space: nowrap; width: 64px; }
table.students .nm { white-space: nowrap; }

/* ---- lists (publications, media) ---- */
ul.linklist { list-style: none; padding: 0; margin: 0; }
ul.linklist li { padding: 8px 0; border-bottom: 1px solid var(--border); }
ul.linklist li:last-child { border-bottom: none; }
ul.linklist .meta { color: var(--faint); font-size: 14px; }

/* ---- contact / footer ---- */
.contact-grid { display: flex; flex-wrap: wrap; gap: 32px; }
.contact-grid div { min-width: 200px; }
.contact-grid .label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 4px; }
footer { border-top: 1px solid var(--border); padding: 24px 0 40px; color: var(--faint); font-size: 13px; }

/* ---- responsive ---- */
@media (max-width: 680px) {
  body { font-size: 16px; }
  .hero-inner { flex-direction: column-reverse; align-items: flex-start; gap: 24px; padding: 40px 24px; }
  .hero h1 { font-size: 30px; }
  .portrait { width: 120px; height: 120px; }
  .nav-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .nav .links { gap: 14px; }
}
