:root {
  --ink: #2b2830;
  --paper: #d9d3df;
  --rule: #2b2830;
  --gutter: 18px;
  --block-pad-x: calc(var(--gutter) + 12px);
}

* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "IBM Plex Mono", "Courier New", monospace;
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  font-size: 0.80rem;
}

a {
  color: var(--ink);
  text-decoration: underline;
}

.underline {
  text-decoration: underline;
}

.page {
  width: 100%;
  margin: 0;
  padding: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
}

h1,
h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 200;
  margin: 0 0 10px;
}

h1 {
  font-size: 1.7rem;
}

h2 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 10px;
  line-height: 1.45;
}

.top-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 40px 0 44px;
  position: relative;
  align-items: end;
}

.top-row::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  height: 1px;
  background: var(--rule);
}

.top-left h1 {
  margin-bottom: 0px;
}

.top-left {
  padding: 0 var(--block-pad-x);
}

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  font-size: 0.80rem;
}

.contact .sep {
  padding: 0 2px;
}

.top-right {
  padding: 0 var(--block-pad-x);
}

.top-right p {
  margin-bottom: 0;
}
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.cell {
  padding: 40px var(--block-pad-x) 44px;
  overflow-y: auto;
}

.cell.left {
  border-right: 1px solid var(--rule);
}

.cell.right {
  display: grid;
  grid-template-rows: auto auto;
  position: relative;
}

.subcell {
  padding: 0 0 20px;
}

.subcell.divider {
  border-top: none;
  padding-top: 20px;
  position: relative;
}

.subcell.divider::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--block-pad-x));
  top: 0;
  right: calc(-1 * var(--block-pad-x));
  height: 1px;
  background: var(--rule);
}

.note {
  margin-bottom: 12px;
}

.tree,
.tree ul {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.tree > li {
  margin-bottom: 10px;
}

.tree li {
  line-height: 1.55;
  position: relative;
  padding-left: 16px;
}

.tree li::before {
  content: "-";
  position: absolute;
  left: 0;
}

.publications > li {
  font-style: italic;
}

.publications > li ul {
  font-style: normal;
}

.tree ul {
  margin-top: 4px;
  padding-left: 18px;
}

@media (max-width: 800px) {
  .page {
    padding: 0;
    height: auto;
  }

  .top-row,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .top-right {
    margin-top: 14px;
  }

  .content-grid {
    height: auto;
    overflow: visible;
  }

  .cell {
    overflow: visible;
  }

  .cell.left {
    border-right: none;
    border-bottom: 1px solid var(--rule);
  }

  .cell.right {
    padding-top: 24px;
  }

  h1 {
    font-size: 1.9rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}
