/* Typography: light Newsreader serif headings over a Source Sans 3 body. */
@import url("https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;0,6..72,500;1,6..72,400&display=swap");

:root {
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
}

.md-typeset {
  font-size: 0.85rem;
  line-height: 1.65;
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-header__title {
  font-family: var(--serif);
  letter-spacing: -0.005em;
  font-optical-sizing: auto;
}

.md-typeset h1 { font-weight: 400; font-size: 2.2em; }
.md-typeset h2 { font-weight: 400; font-size: 1.6em; margin-top: 2em; }
.md-typeset h3 { font-weight: 500; margin: 0 0 0.1em; font-size: 1.2em; }
.md-header__title { font-weight: 400; }

.md-typeset h3 small {
  font-family: var(--md-text-font-family);
  font-size: 0.85em;
  font-weight: 400;
  color: var(--md-default-fg-color--light);
  margin-left: 0.35em;
}

/* Home page header. */
.md-typeset .hero {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin: 0.5rem 0 2rem;
}

.md-typeset .hero img {
  width: 220px;
  height: auto;
  border-radius: 22%;
  flex-shrink: 0;
}

.md-typeset .hero h1 {
  margin: 0 0 0.3em;
}

.md-typeset .hero p {
  margin: 0.15em 0;
}

.md-typeset .hero__role {
  font-size: 1.1em;
  font-weight: 500;
}

.md-typeset .hero__meta,
.md-typeset .hero__focus {
  color: var(--md-default-fg-color--light);
}

@media screen and (max-width: 30em) {
  .md-typeset .hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* CV entries as a quiet vertical timeline. */
.md-typeset .cv-timeline {
  border-left: 2px solid var(--md-default-fg-color--lightest);
  margin-left: 0.3rem;
}

.md-typeset .cv-entry {
  position: relative;
  padding: 0 0 1.4em 1.2rem;
}

.md-typeset .cv-entry::before {
  content: "";
  position: absolute;
  left: calc(-0.3rem - 1px);
  top: 0.45em;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--md-default-bg-color);
  border: 2px solid var(--md-accent-fg-color, var(--md-primary-fg-color));
}

.md-typeset .cv-entry p {
  margin: 0.3em 0;
}

.md-typeset .cv-meta {
  display: block;
  color: var(--md-default-fg-color--light);
  font-size: 0.85em;
  font-variant-numeric: tabular-nums;
}

/* Replace bullet dots with a light en dash in CV lists. */
.md-typeset .cv-entry ul,
.md-typeset .cv-list ul {
  list-style: none;
  margin: 0.3em 0 0;
  padding: 0;
}

.md-typeset .cv-entry ul li,
.md-typeset .cv-list ul li {
  position: relative;
  margin: 0 0 0.25em;
  padding-left: 1.1em;
}

.md-typeset .cv-entry ul li::before,
.md-typeset .cv-list ul li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--md-default-fg-color--lighter);
}

/* Publication and talk lists: year column + entry body. */
.md-typeset .list-note {
  color: var(--md-default-fg-color--light);
  font-size: 0.8em;
  margin-top: -0.5em;
}

.md-typeset .entries {
  margin: 0.5em 0 1.5em;
}

.md-typeset .entry {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  padding: 0.7em 0;
}

.md-typeset .entry--first:not(:first-child) {
  border-top: 1px solid var(--md-default-fg-color--lightest);
  margin-top: 0.4em;
  padding-top: 1.1em;
}

.md-typeset .entry__year {
  font-family: var(--serif);
  font-size: 1.1em;
  color: var(--md-default-fg-color--light);
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

.md-typeset .entry__body p {
  margin: 0;
}

.md-typeset .entry__title {
  font-weight: 600;
  line-height: 1.4;
}

.md-typeset .entry__sub {
  color: var(--md-default-fg-color--light);
  font-size: 0.92em;
}

.md-typeset .entry__sub strong {
  color: var(--md-default-fg-color);
  font-weight: 600;
}

.md-typeset .entry__tags {
  margin-top: 0.35em !important;
}

.md-typeset .tag {
  display: inline-block;
  padding: 0.05em 0.55em;
  margin: 0.1em 0.3em 0.1em 0;
  border-radius: 999px;
  font-size: 0.78em;
  border: 1px solid var(--md-default-fg-color--lightest);
  color: var(--md-default-fg-color--light);
}

.md-typeset .tag--accent {
  border-color: var(--md-accent-fg-color);
  color: var(--md-accent-fg-color);
}

@media screen and (max-width: 30em) {
  .md-typeset .entry {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
  .md-typeset .entry__year:empty {
    display: none;
  }
}

.md-typeset .entry__host {
  font-size: 0.85em;
  color: var(--md-default-fg-color--light);
}
