:root {
  --text: #1c1c1c;
  --muted: #5a5a5a;
  --accent: #00675c;
  --accent-dark: #004a42;
  --hairline: #e3e3e0;
  --serif: Charter, "Bitstream Charter", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { font-size: 17px; }

body {
  margin: 0;
  font-family: var(--sans);
  line-height: 1.6;
  color: var(--text);
  background: #fff;
}

.container {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container--wide { max-width: 50rem; }

/* Header / nav */
.site-header {
  border-bottom: 1px solid var(--hairline);
  padding: 1.1rem 0;
  margin-bottom: 2.5rem;
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.site-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 2px;
}

.site-nav a:hover { color: var(--accent-dark); }

.site-nav a[aria-current="page"] {
  color: var(--text);
  border-bottom: 2px solid var(--accent);
}

/* Typography */
h1, h2, h3 { font-family: var(--serif); line-height: 1.25; }

h1 { font-size: 1.9rem; margin: 0 0 1rem; }

h2 {
  font-size: 1.3rem;
  margin: 2.2rem 0 0.8rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--hairline);
}

h3 { font-size: 1.05rem; margin: 1.6rem 0 0.5rem; }

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

/* Home page */
.intro {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.intro__text { flex: 1; }

.portrait {
  width: 170px;
  height: auto;
  border-radius: 4px;
  flex-shrink: 0;
}

.role { color: var(--muted); margin-top: 0.2rem; }

/* Contact table (definition-list style) */
.contact { margin: 1rem 0; }
.contact dt { font-weight: 600; float: left; width: 6.5rem; clear: left; }
.contact dd { margin: 0 0 0.4rem 7.5rem; }

/* Publication / item lists */
ul.pubs { list-style: none; padding: 0; margin: 0; }
ul.pubs li { margin-bottom: 0.9rem; }
.pubs .venue { font-style: italic; }
.pubs .links { white-space: nowrap; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--hairline);
  margin-top: 3.5rem;
  padding: 1.2rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 40rem) {
  html { font-size: 16px; }
  h1 { font-size: 1.55rem; }
  .intro { flex-direction: column-reverse; align-items: center; }
  .intro__text { width: 100%; }
  .portrait { width: 150px; }
  .contact dt { float: none; width: auto; }
  .contact dd { margin-left: 0; margin-bottom: 0.6rem; }
}
