/* Inter: free font (SIL Open Font License, see assets/fonts/Inter-OFL.txt) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
}

:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #777777;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 56rem;
  margin: 0 auto;
  padding-inline: 1.5rem;
}

/* Header */
header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.75rem;
}
.name {
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}
nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.25rem;
}
nav a:first-child { margin-left: 0; }
nav a:hover,
nav a[aria-current="page"] { color: var(--text); }

main { padding-block: 2rem 4rem; }

/* Page banner image */
.banner {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 2rem;
}
.banner-sm { max-width: 42rem; }
.contact { margin: -1.25rem 0 2rem; color: var(--muted); }
.contact a { color: var(--muted); text-decoration: none; }
.contact a:hover { color: var(--text); }

/* Headings */
h1, h2 { font-weight: 500; line-height: 1.25; }
h1 { font-size: 1.6rem; margin: 0 0 1.5rem; }
h2 { font-size: 1rem; font-weight: 600; margin: 2.5rem 0 0.5rem; }

p { margin: 0 0 1rem; }
a { color: var(--text); text-underline-offset: 2px; }
.muted { color: var(--muted); }

/* Profile: photo beside name, stacks on phones */
.profile {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 1.5rem;
  margin-bottom: 2rem;
}
.profile img {
  width: 130px;
  height: auto;
  display: block;
}
.profile h1 { margin: 0; }
.profile .role { margin: 0; color: var(--muted); }

/* Plain lists */
ul.plain {
  list-style: none;
  padding: 0;
  margin: 0;
}
ul.plain li { padding-block: 0.2rem; }

/* Awards: year beside each item */
ul.years li {
  display: grid;
  grid-template-columns: 3.75rem 1fr;
  padding-block: 0.35rem;
}
ul.years .when { color: var(--muted); font-variant-numeric: tabular-nums; }

/* Placeholder text to replace */
.placeholder { color: var(--muted); font-style: italic; }

/* Publications */
ol.pubs { padding-left: 1.5rem; margin: 0; }
ol.pubs li { margin-bottom: 0.85rem; padding-left: 0.25rem; }
ol.pubs li::marker { color: var(--muted); }

