/* Palette drawn from aged drawing paper and iron-gall / india ink */
:root {
  --paper: #ede2c8;
  --ink: #2a2119;
  --ink-soft: #5e4f40;
  --sepia: #7a4a28;
  --rule: #c9b68f;
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* faint foxing and vignette, like old paper */
  background:
    radial-gradient(ellipse at 20% 10%, rgba(255,250,235,.45), transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(170,130,70,.10), transparent 50%),
    radial-gradient(ellipse at center, transparent 60%, rgba(140,105,55,.18) 100%),
    var(--paper);
  background-attachment: fixed;
  min-height: 100vh;
}

main {
  max-width: calc(44rem + clamp(1.5rem, 8vw, 7rem));
  margin: 0;
  padding: 4rem 1.5rem 4rem clamp(1.5rem, 8vw, 7rem);
}

a { color: var(--sepia); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }

/* Header */
.masthead {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--ink);
}

.portrait {
  width: 140px;
  height: 140px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  filter: sepia(.18) saturate(.9);
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--rule);
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

h1 {
  font-weight: 600;
  font-size: 1.85rem;
  line-height: 1.2;
  letter-spacing: -.015em;
  margin: 0 0 .2rem;
}

.role {
  margin: 0 0 .9rem;
  color: var(--ink-soft);
  font-size: 1rem;
}

.links { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }

.links a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--ink);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 500;
}
.links svg { width: 1em; height: 1em; fill: currentColor; }
.links a:hover { color: var(--sepia); text-decoration: underline; }

/* Body */
.lead {
  font-size: 1.2rem;
  line-height: 1.55;
  font-weight: 500;
  margin: 2rem 0 0;
}

section { margin-top: 2.75rem; }

h2 {
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ink);
  margin: 0 0 1rem;
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--ink);
}

h3 {
  font-weight: 600;
  font-size: 1rem;
  margin: 1.6rem 0 .4rem;
}

p { margin: 0 0 .9rem; }

.refs {
  font-size: .85rem;
  white-space: nowrap;
  margin-left: .25rem;
  color: var(--ink-soft);
}
.refs::before { content: "("; }
.refs::after { content: ")"; }

.note { font-size: .82rem; color: var(--ink-soft); }

.pubs { padding-left: 1.3rem; margin: 0; font-size: .93rem; }
.pubs li { margin-bottom: .8rem; padding-left: .2rem; }
.pubs li::marker { color: var(--ink-soft); }
.venue { font-style: italic; }
@media (max-width: 600px) {
  body { font-size: 16px; }
  main { padding-top: 2.5rem; }
  .masthead { flex-direction: column; text-align: center; }
  .links { justify-content: center; }
  h1 { font-size: 1.6rem; }
  .portrait { width: 120px; height: 120px; }
  .refs { white-space: normal; }
}
