:root {
  --nice-gray: rgb(236, 240, 243);
  --main-width: 84ch;
  font-size: 1.0em;
  font-family: "Noto Sans Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

html {
  box-sizing: border-box;
}

*,*:before,*:after {
  box-sizing: inherit;
}

body {
  margin: 0;
}

main {
  margin: 0 auto;
  max-width: var(--main-width);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.7em;
  min-height: calc(var(--main-width));
}

h1 {
  text-align: center;
  font-size: 2.8em;
  line-height: 1.2em;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.centered {
  text-align: center;
}

#abstract {
  max-width: 72ch;
  margin: 0 auto;
}

/***************
  Pill Buttons
***************/

.pill-button {
  padding: 0.5em 1em;
  border-radius: 9999px;
  background-color: black;
  color: white;
  text-decoration: none;
  margin-right: 0.25em;
  white-space: nowrap;
}

.pill-button > span {
  font-size: 1em;
}

.pill-button > img {
  height: 1em;
  display: inline-block;
  transform:translate(0, 0.125em);
}


/***************
  Dropdown
***************/
details {
  margin-top: 6px;
  display: inline-block;
  min-width: 16ch;
  text-align: center;
  padding: 4px 12px;
  position: relative;
}
details:hover {
  cursor: pointer;
}

details > div.options {
  position: absolute;
  background: white;
  width: 100%;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
  border-radius: 4px;
}

details > div.options > p {
  margin: 0;
  padding: 6px 2px;
}
details > div.options > p:hover {
  background-color: var(--nice-gray);
}

/************
  Reference
************/

pre.reference {
  -webkit-overflow-scrolling: touch;
  overflow-x: auto;
  padding: 0.5em 0.5em;
  white-space: pre;
  word-wrap: normal;
  line-height: 1.2em;
  background-color: #f5f5f5;
  font-size: 1.1em;
  border-radius: 4px;
}

/***************
  Figures
***************/


/* Makes <a> behave like it doesn't exist with regards to flexbox */
figure > a {
  display: contents;
}
figure > a > img,figure > img {
  width: 100%;
}
figcaption {
  text-align: left;
  font-style: italic;
}
