@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/raleway/v17/1Ptxg8zYS_SKggPN4iEgvnHyvveLxVs9pbCIPrE.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v16/S6uyw4BMUTPHjx4wXg.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --accent: #87ae73;
    --accent-dark: #9fcf88;
    --accent-text: #d8e8cf;
    --bg: #16181d;
    --fg: #e8e8e8;
    --muted: #9aa0a6;
    --panel-strong: #3a3f4d;
    --panel-soft: #20232c;
}

:root[data-theme="light"] {
    --accent: #87ae73;
    --accent-dark: #3d6529;
    --accent-text: #1a2d13;
    --bg: #fefefe;
    --fg: #0a0a0a;
    --muted: #556270;
    --panel-strong: #ccc;
    --panel-soft: #eee;
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

html {
  font-size: 100%;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  font-family: 'Lato', sans-serif;
  line-height: 1.5;
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: inline-block;
  vertical-align: middle;
  max-width: 100%;
  height: auto;
  border-style: none;
}

p {
  margin: 0 0 1rem;
  font-size: inherit;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

strong,
b {
  font-weight: bold;
  line-height: inherit;
}

small {
  font-size: 80%;
  line-height: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Raleway', sans-serif;
  font-style: normal;
  font-weight: normal;
  color: inherit;
  text-rendering: optimizeLegibility;
  margin-top: 0;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

ul,
ol {
  margin-bottom: 1rem;
  list-style-position: outside;
  line-height: 1.6;
}

ul {
  margin-left: 1.25rem;
  list-style-type: disc;
}

ol {
  margin-left: 1.25rem;
}

[hidden] {
  display: none;
}

/* masthead & nav (shared by CV, blog, and music) */

.masthead {
  max-width: 75rem;
  margin: 0 auto;
  padding: 1em 0.9375rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-family: 'Lato', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.masthead-title {
  font-family: 'Raleway', sans-serif;
  font-weight: bold;
  color: var(--fg);
  text-decoration: none;
}

.masthead-title:hover {
  text-decoration: none;
  color: var(--accent-dark);
}

.masthead-nav {
  display: flex;
  align-items: center;
  gap: 1em;
}

.masthead-nav a {
  color: var(--muted);
  text-decoration: none;
}

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

.theme-toggle {
  background: none;
  border: none;
  color: var(--fg);
  font-size: 1.1em;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

/* grid */

.grid-container {
  max-width: 75rem;
  margin-left: auto;
  margin-right: auto;
  margin-top: 3em;
  padding-right: 0.625rem;
  padding-left: 0.625rem;
}
@media print, screen and (min-width: 40em) {
  .grid-container {
    padding-right: 0.9375rem;
    padding-left: 0.9375rem;
  }
}

.grid-x {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-flow: row wrap;
          flex-flow: row wrap;
}

.cell {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
}
.cell.auto {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 0px;
          flex: 1 1 0;
}
.cell.shrink {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
}

.grid-x > .auto {
  width: auto;
}
.grid-x > .shrink {
  width: auto;
}

.grid-x > .small-shrink,
.grid-x > .small-6 {
  -ms-flex-preferred-size: auto;
      flex-basis: auto;
}

.grid-x > .small-6 {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
  width: 50%;
}

@media print, screen and (min-width: 40em) {
  .grid-x > .medium-shrink,
  .grid-x > .medium-3,
  .grid-x > .medium-9 {
    -ms-flex-preferred-size: auto;
        flex-basis: auto;
    -webkit-box-flex: 0;
        -ms-flex: 0 0 auto;
            flex: 0 0 auto;
  }
  .grid-x > .medium-auto {
    -webkit-box-flex: 1;
        -ms-flex: 1 1 0px;
            flex: 1 1 0;
    width: auto;
  }
  .grid-x > .medium-shrink {
    width: auto;
  }
  .grid-x > .medium-3 {
    width: 25%;
  }
  .grid-x > .medium-9 {
    width: 75%;
  }
}

@media print, screen and (min-width: 64em) {
  .grid-x > .large-shrink,
  .grid-x > .large-6 {
    -ms-flex-preferred-size: auto;
        flex-basis: auto;
    -webkit-box-flex: 0;
        -ms-flex: 0 0 auto;
            flex: 0 0 auto;
  }
  .grid-x > .large-auto {
    -webkit-box-flex: 1;
        -ms-flex: 1 1 0px;
            flex: 1 1 0;
    width: auto;
  }
  .grid-x > .large-shrink {
    width: auto;
  }
  .grid-x > .large-6 {
    width: 50%;
  }
}

.grid-margin-x:not(.grid-x) > .cell {
  width: auto;
}

.grid-margin-x {
  margin-left: -0.625rem;
  margin-right: -0.625rem;
}
@media print, screen and (min-width: 40em) {
  .grid-margin-x {
    margin-left: -0.9375rem;
    margin-right: -0.9375rem;
  }
}
.grid-margin-x > .cell {
  width: calc(100% - 1.25rem);
  margin-left: 0.625rem;
  margin-right: 0.625rem;
}
@media print, screen and (min-width: 40em) {
  .grid-margin-x > .cell {
    width: calc(100% - 1.875rem);
    margin-left: 0.9375rem;
    margin-right: 0.9375rem;
  }
}
.grid-margin-x > .auto {
  width: auto;
}
.grid-margin-x > .shrink {
  width: auto;
}
.grid-margin-x > .small-6 {
  width: calc(50% - 1.25rem);
}
@media print, screen and (min-width: 40em) {
  .grid-margin-x > .auto {
    width: auto;
  }
  .grid-margin-x > .shrink {
    width: auto;
  }
  .grid-margin-x > .small-6 {
    width: calc(50% - 1.875rem);
  }
  .grid-margin-x > .medium-auto {
    width: auto;
  }
  .grid-margin-x > .medium-shrink {
    width: auto;
  }
  .grid-margin-x > .medium-3 {
    width: calc(25% - 1.875rem);
  }
  .grid-margin-x > .medium-9 {
    width: calc(75% - 1.875rem);
  }
}
@media print, screen and (min-width: 64em) {
  .grid-margin-x > .large-auto {
    width: auto;
  }
  .grid-margin-x > .large-shrink {
    width: auto;
  }
  .grid-margin-x > .large-6 {
    width: calc(50% - 1.875rem);
  }
}

.grid-padding-x .grid-padding-x {
  margin-right: -0.625rem;
  margin-left: -0.625rem;
}
@media print, screen and (min-width: 40em) {
  .grid-padding-x .grid-padding-x {
    margin-right: -0.9375rem;
    margin-left: -0.9375rem;
  }
}
.grid-container:not(.full) > .grid-padding-x {
  margin-right: -0.625rem;
  margin-left: -0.625rem;
}
@media print, screen and (min-width: 40em) {
  .grid-container:not(.full) > .grid-padding-x {
    margin-right: -0.9375rem;
    margin-left: -0.9375rem;
  }
}
.grid-padding-x > .cell {
  padding-right: 0.625rem;
  padding-left: 0.625rem;
}
@media print, screen and (min-width: 40em) {
  .grid-padding-x > .cell {
    padding-right: 0.9375rem;
    padding-left: 0.9375rem;
  }
}

/* cv homepage */

a {
    text-decoration: none;
    color: var(--accent-dark);
}
a:hover,
a:focus {
    text-decoration: underline;
}

.headshot {
    max-height: 256px;
    border-radius: 12px;
}

h1 {
    font-weight: bolder;
    text-align: center;
    font-size: 2em;
    width: 100%;
    margin-top: 0.2em;
    margin-bottom: -0.2em;
}

h2 {
    font-size: 1.4em;
    font-weight: bold;
    margin-top: 1.5em;
}

h3 {
    font-weight: bold;
    font-size: 1.05em;
    margin-top: 1.5em;
}

/* CV homepage section headers only (banner style); blog posts use the plain h2/h3 above */
.column-content h2 {
    background: var(--panel-strong);
    border-radius: 2px;
    padding: 0.1em 0.5em;
    margin: 0 auto;
}

.column-content h3 {
    font-weight: 100;
    background: var(--panel-soft);
    border-radius: 2px;
    padding: 0.1em 0.5em;
    margin: 0 auto;
}

.time {
    color: var(--muted);
    font-style: italic;
    line-height: inherit;
    font-size: 0.8em;
}

section {
    padding: 1em 0;
}

section > .grid-x:not(:last-child) {
    margin-bottom: 1em;
}

.column-profile > .links {
    margin-top: 0.2em;
    font-size: 1.5em;
}

.column-profile > .links > a {
    color: var(--muted);
}

.column-profile > .links > a:hover {
    color: var(--accent);
}

.column-profile {
    text-align: center;
}

@media screen and (min-width: 40em) {
    .column-profile {
        position: sticky;
        top: 2em;
        align-self: flex-start;
    }
}

.logo {
    width: 3em;
}

.email {
    font-family: monospace;
}

.emoji {
    position: relative;
    list-style: none;
    margin: 0 auto;
    padding-left: 2em;
    z-index: 2;
}

.emoji > li {
    position: relative;
    padding: 0 1.75em 1em 2.3em;
    page-break-inside: avoid;
    break-inside: avoid-column;
}

.emoji > li:last-child {
    padding-bottom: 0;
}

.emoji > li::before {
    position: absolute;
    left: 0;
    top: 0.3em;
    width: 1.3em;
    height: 1.3em;
    content: "";
    background-color: var(--fg);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.emoji > li:nth-child(1)::before {
    -webkit-mask-image: url('../img/icons/apple.svg');
    mask-image: url('../img/icons/apple.svg');
}

.emoji > li:nth-child(2)::before {
    -webkit-mask-image: url('../img/icons/graduation-cap.svg');
    mask-image: url('../img/icons/graduation-cap.svg');
}

.emoji > li:nth-child(3)::before {
    -webkit-mask-image: url('../img/icons/brain-circuit.svg');
    mask-image: url('../img/icons/brain-circuit.svg');
}

.emoji > li:nth-child(4)::before {
    -webkit-mask-image: url('../img/icons/presentation.svg');
    mask-image: url('../img/icons/presentation.svg');
}

.emoji > li:nth-child(5)::before {
    -webkit-mask-image: url('../img/icons/turntable.svg');
    mask-image: url('../img/icons/turntable.svg');
}

footer {
    text-align: center;
    font-size: .8em;
}

.list-journals {
  list-style: none;
  margin-left: 2.9rem;
  counter-reset: jrncounter calc(1 + var(--num-journals));
}

.list-journals li {
  text-indent: -3rem;
  counter-increment: jrncounter -1;
}

.list-journals li::before {
  content: '[J' counter(jrncounter, decimal-leading-zero) '] ';
  font-family: monospace;
}

.list-conferences {
  list-style: none;
  margin-left: 2.9rem;
  counter-reset: cnfcounter calc(1 + var(--num-pubs-conf));
}

.list-conferences li {
  text-indent: -3rem;
  counter-increment: cnfcounter -1;
}

.list-conferences li::before {
  content: '[C' counter(cnfcounter, decimal-leading-zero) '] ';
  font-family: monospace;
}

.list-preprints {
  list-style: none;
  margin-left: 2.9rem;
  counter-reset: ppcounter calc(1 + var(--num-preprints));
}

.list-preprints li {
  text-indent: -3rem;
  counter-increment: ppcounter -1;
}

.list-preprints li::before {
  content: '[P' counter(ppcounter, decimal-leading-zero) '] ';
  font-family: monospace;
}

.list-workshops {
  list-style: none;
  margin-left: 2.9rem;
  counter-reset: wkcounter calc(1 + var(--num-workshops));
}

.list-workshops li {
  text-indent: -3rem;
  counter-increment: wkcounter -1;
}

.list-workshops li::before {
  content: '[W' counter(wkcounter, decimal-leading-zero) '] ';
  font-family: monospace;
}

/* responsive & print */

@media screen and (max-width: 39.9375em) {
    .emoji {
        margin-bottom: 2em;
        column-count: 1;
    }
    .column-content {
        padding-top: 2em;
    }
    .logo {
        width: 2em;
    }
}

@media print {
  .masthead,
  .theme-toggle {
    display: none;
  }

  body {
    orphans: 3;
    widows: 3;
  }

  .grid-margin-x {
    margin-left: 0;
    margin-right: 0;
  }

  .grid-margin-x > .cell {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  .column-profile {
    width: 90% !important;
    margin: 0 auto !important;
    position: static;
    align-self: auto;
  }

  .column-content {
    width: 90% !important;
    margin: 0 auto !important;
  }

  .links {
    display: none;
  }

  .cell {
    break-inside: avoid;
  }

  .list-journals,
  .list-conferences,
  .list-preprints,
  .list-workshops {
    break-inside: avoid;
  }

  .list-journals li,
  .list-conferences li,
  .list-preprints li,
  .list-workshops li {
    break-inside: avoid;
    display: block;
  }
}
