/* CSS Reset from https://www.joshwcomeau.com/css/custom-css-reset/, modified slightly */
/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
* {
  margin: 0;
}

body {
  /* 3. Add accessible line-height */
  line-height: 1.5;
  /* 4. Improve text rendering */
  -webkit-font-smoothing: antialiased;
}

/* 5. Improve media defaults */
img,
picture,
video,
canvas {
  display: block;
  max-width: 100%;
}

/* 6. Inherit fonts for form controls */
input,
button,
textarea,
select {
  font: inherit;
}

/* 7. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* 8. Improve line wrapping */
p {
  text-align: justify;
  text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: pretty;
}

/*
  9. Create a root stacking context
*/
#root,
#__next {
  isolation: isolate;
}

/* For deciding styling logic based on content type */
/* Each of the spread elements will have an internal div which will be centered */
/* Space out via margins on top and bottom */
/* $font-body: 'Space Grotesk', serif; */
/* $font-elt: 'Montagu Slab', sans-serif;  */
#blog > :not(h1, blockquote, table) {
  width: calc(100% - 2rem);
  margin-left: auto;
  margin-right: auto;
}
@media screen and (min-width: 1024px) {
  #blog > :not(h1, blockquote, table) {
    width: 60%;
  }
}

#seminar > :not(h1, blockquote, table) {
  width: calc(100% - 2rem);
  margin-left: auto;
  margin-right: auto;
}
@media screen and (min-width: 1024px) {
  #seminar > :not(h1, blockquote, table) {
    width: 60%;
  }
}

#blog-index > :not(h1, blockquote, table) {
  width: calc(100% - 2rem);
  margin-left: auto;
  margin-right: auto;
}
@media screen and (min-width: 1024px) {
  #blog-index > :not(h1, blockquote, table) {
    width: 60%;
  }
}

#seminar-index > :not(h1, blockquote, table) {
  width: calc(100% - 2rem);
  margin-left: auto;
  margin-right: auto;
}
@media screen and (min-width: 1024px) {
  #seminar-index > :not(h1, blockquote, table) {
    width: 60%;
  }
}

#research > :not(h1, blockquote, table) {
  width: calc(100% - 2rem);
  margin-left: auto;
  margin-right: auto;
}
@media screen and (min-width: 1024px) {
  #research > :not(h1, blockquote, table) {
    width: 60%;
  }
}

#teaching > :not(h1, blockquote, table) {
  width: calc(100% - 2rem);
  margin-left: auto;
  margin-right: auto;
}
@media screen and (min-width: 1024px) {
  #teaching > :not(h1, blockquote, table) {
    width: 60%;
  }
}

#links > :not(h1, blockquote, table) {
  width: calc(100% - 2rem);
  margin-left: auto;
  margin-right: auto;
}
@media screen and (min-width: 1024px) {
  #links > :not(h1, blockquote, table) {
    width: 60%;
  }
}

p {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

code {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

body {
  font-family: "Hanken Grotesk", sans-serif;
}

.dark {
  --smoothing: subpixel-antialiased;
  -webkit-font-smoothing: var(--smoothing);
  -moz-osx-font-smoothing: var(--smoothing);
  font-smoothing: var(--smoothing);
}

code, pre {
  font-family: "Fira Code", monospace;
}

body {
  --background: #f5f5f4;
  --text: #0a0a0a;
  --alt-background: #d4d4d8;
  --alt-text: #0a0a0a;
  --accent: #155e75;
  --alt-accent: #c084fc;
  --error: #9d174d;
  background-color: var(--background);
  color: var(--text);
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
  overflow-x: hidden;
  width: 100%;
  font-size: 1rem;
  font-size: 1rem;
}
body.dark {
  --background: #171717;
}
body.dark {
  --text: #f5f5f4;
}
body.dark {
  --alt-background: #262626;
}
body.dark {
  --alt-text: #d4d4d8;
}
body.dark {
  --accent: #c084fc;
}
body.dark {
  --alt-accent: #155e75;
}
body.dark {
  --error: #ec4899;
}
@media screen and (min-width: 1024px) {
  body {
    font-size: 1.2rem;
  }
}

main > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
}

/* Top matter */
.top-matter {
  padding-top: 3rem;
  padding-bottom: 2rem;
  background-color: var(--background);
  color: var(--text);
  font-family: "Hanken Grotesk", sans-serif;
  padding-left: 1rem;
  padding-right: 1rem;
}
.top-matter .page-header {
  word-break: normal;
  font-weight: bold;
}
.dark .top-matter .page-header {
  color: var(--text);
  text-shadow: 0 0 0.2em var(--accent);
}

.nav-bar {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  justify-items: center;
  align-items: center;
  gap: 1.5rem;
}
.nav-bar > a {
  text-decoration: none;
  display: flex;
  align-items: center;
  color: var(--accent);
  font-size: 1.1rem;
}
@media screen and (min-width: 1024px) {
  .nav-bar > a {
    font-size: 1.32rem;
  }
}

.page-header,
.page-subheader {
  text-align: center;
  font-weight: bold;
}

.page-header {
  font-size: 2.2rem;
}
@media screen and (min-width: 1024px) {
  .page-header {
    font-size: 2.64rem;
  }
}

.page-subheader {
  font-size: 1.5rem;
}
@media screen and (min-width: 1024px) {
  .page-subheader {
    font-size: 1.8rem;
  }
}

/* Headers */
h1, h2 {
  font-family: "Hanken Grotesk", sans-serif;
}

h1 {
  width: 100%;
  padding-bottom: 2rem;
  padding-top: 2rem;
  text-align: center;
  padding-left: 1rem;
  padding-right: 1rem;
  font-size: 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-content: center;
  justify-content: center;
  gap: 2rem;
}
@media screen and (min-width: 1024px) {
  h1 {
    font-size: 1.68rem;
  }
}
h1::before {
  content: "";
  display: block;
  width: 50%;
  height: 1px;
  background-color: var(--alt-background);
}

h2 {
  font-style: italic;
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}
@media screen and (min-width: 1024px) {
  h2 {
    font-size: 1.44rem;
  }
}

/* Footer */
.footer {
  font-size: 0.9rem;
  font-family: "Hanken Grotesk", sans-serif;
  width: 100%;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  padding-left: 1rem;
  padding-right: 1rem;
  text-align: center;
}
@media screen and (min-width: 1024px) {
  .footer {
    font-size: 1.08rem;
  }
}
.footer > a {
  text-decoration: none;
}

code {
  --x-pad: 0.2rem;
  --y-pad: 0.1rem;
  padding-left: var(--x-pad);
  padding-right: var(--x-pad);
  padding-top: var(--y-pad);
  padding-bottom: var(--y-pad);
  font-size: 0.9rem;
  background-color: var(--alt-background);
  color: var(--alt-text);
  border-radius: 0.2rem;
}
@media screen and (min-width: 1024px) {
  code {
    font-size: 1.08rem;
  }
}

/* Blocks */
figure > img {
  width: 80%;
  margin: auto;
  padding: 1rem;
  border: 1px dashed var(--alt-background);
}
figure > figcaption {
  width: 80%;
  margin: auto;
  font-style: italic;
}
figure > figcaption > p {
  text-align: center;
}

blockquote {
  width: 100%;
  padding-top: 2rem;
  padding-bottom: 2rem;
  margin-left: 0;
  margin-right: 0;
  background: var(--alt-background);
  color: var(--alt-text);
}
blockquote > div {
  width: calc(100% - 2rem);
  margin-left: auto;
  margin-right: auto;
  font-style: italic;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}
@media screen and (min-width: 1024px) {
  blockquote > div {
    width: 60%;
  }
}

/* Math */
/* See https://stackoverflow.com/questions/43305741/multiply-font-size-of-children */
.math {
  font-size: 0.9em;
}

.math-display {
  box-sizing: border-box;
}
.math-display > span {
  scrollbar-width: none;
  display: block;
  overflow-x: auto;
  /* Display scrollbar only on hover */
}
.math-display > span:hover {
  scrollbar-width: thin;
}

.eqn-num {
  display: none !important;
}

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

ul,
ol {
  list-style-type: disc;
  padding: 0;
  list-style-position: inside;
}
ul > li,
ol > li {
  padding-bottom: 1rem;
}

svg {
  display: inline-block;
}

.icon-big {
  width: 1.5rem;
  height: 1.5rem;
}

.icon {
  width: 1rem;
  height: 1rem;
}

/* Error */
.error {
  padding-top: 1.5rem;
}
.error > div {
  width: calc(100% - 2rem);
  margin-left: auto;
  margin-right: auto;
  font-size: var(--h1-font-size);
  margin: 1rem;
  text-align: center;
}
@media screen and (min-width: 1024px) {
  .error > div {
    width: 60%;
  }
}
.error > div > code {
  margin: auto;
  width: fit-content;
  display: block;
  padding: 1rem;
}

/* Table */
#seminar table {
  width: 100%;
  border: none;
  border-collapse: collapse;
  overflow-x: auto;
  font-family: "Hanken Grotesk", sans-serif;
}
@media screen and (min-width: 1024px) {
  #seminar table {
    width: calc(100% - 2rem);
    margin-left: auto;
    margin-right: auto;
  }
}
@media screen and (min-width: 1024px) and (min-width: 1024px) {
  #seminar table {
    width: 60%;
  }
}
#seminar table > tbody > tr {
  height: 8rem;
}
#seminar table th,
#seminar table td {
  padding: 1rem;
}
#seminar table td:nth-child(1) {
  width: 10%;
  text-align: center;
}
#seminar table td:nth-child(2) {
  width: 25%;
  text-align: center;
}
#seminar table td:nth-child(3) {
  width: 65%;
  text-align: justify;
}
#seminar table td {
  border-top: 1px solid var(--alt-background);
}

table.two-table {
  font-family: "Hanken Grotesk", sans-serif;
  width: 100%;
  border: none;
  border-collapse: collapse;
  overflow-x: auto;
  --left: 30%;
  --padding: 1rem;
}
@media screen and (min-width: 1024px) {
  table.two-table {
    --left: 40%;
  }
}
table.two-table > tbody > tr {
  height: 4rem;
}
table.two-table td:nth-child(1) {
  padding: var(--padding);
  font-style: italic;
  width: var(--left);
  text-align: right;
  border-right: 1px solid var(--alt-background);
}
table.two-table td:nth-child(2) {
  font-family: "Hanken Grotesk", sans-serif;
  padding: var(--padding);
  width: calc(100% - var(--left));
  text-align: left;
}
table.two-table td:nth-child(2) > a {
  text-decoration: none;
}

#index {
  /* $canvas-height: 20vh; */
  width: calc(100% - 2rem);
  margin-left: auto;
  margin-right: auto;
  /* padding-bottom: $canvas-height; */
  /* & #index-canvas { */
  /*   position: fixed; */
  /*   bottom: 0; */
  /*   height: $canvas-height; */
  /*   width: 100vw; */
  /* } */
}
@media screen and (min-width: 1024px) {
  #index {
    width: 60%;
  }
}
#index div.nav-container {
  width: 100%;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  /* @include large { */
  /*   gap: 1rem; */
  /* } */
}
#index a.nav-link {
  color: var(--text);
  width: 10rem;
  height: 10rem;
  text-decoration: none;
  font-family: "Hanken Grotesk", sans-serif;
  text-align: center;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
}
@media screen and (min-width: 1024px) {
  #index a.nav-link {
    width: 12rem;
    height: 10rem;
  }
}
#index a.nav-link > span.main {
  width: 100%;
  font-size: 1.5rem;
  color: var(--accent);
  border-bottom: 2px solid var(--alt-background);
}
#index a.nav-link > span.desc {
  margin-top: 0.2rem;
  font-size: 0.8rem;
  font-family: "Hanken Grotesk", sans-serif;
  font-style: italic;
  text-align: center;
  display: block;
}

#research a {
  text-decoration: none;
}
#research > div.paper-list {
  display: flex;
  flex-direction: column;
}
#research > div.paper-list > div.paper {
  font-family: "Hanken Grotesk", sans-serif;
  margin-bottom: 3rem;
}
#research > div.paper-list > div.paper > h2 {
  font-style: normal;
  margin-bottom: 0.5rem;
}
#research > div.paper-list > div.paper > div.details > .icon {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
#research > div.paper-list > div.paper > div.journal {
  font-style: italic;
}
#research > div.paper-list > div.paper div.toggle {
  padding-top: 0.2rem;
  font-family: "Hanken Grotesk", sans-serif;
  text-decoration: none;
  color: var(--accent);
}
#research > div.paper-list > div.paper div.toggle:hover {
  cursor: pointer;
}
#research > div.paper-list > div.paper div.blurb {
  font-family: "Hanken Grotesk", sans-serif;
  /* border-left: 1px solid $medium-dark; */
  /* padding-left: 1em; */
  font-size: 0.9rem;
}
@media screen and (min-width: 1024px) {
  #research > div.paper-list > div.paper div.blurb {
    font-size: 1.08rem;
  }
}

#etc {
  width: calc(100% - 2rem);
  margin-left: auto;
  margin-right: auto;
}
@media screen and (min-width: 1024px) {
  #etc {
    width: 60%;
  }
}
#etc img {
  width: 50%;
}
#etc #friend-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: auto;
  width: fit-content;
}
#etc #friend-list > span {
  width: fit-content;
}

#links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
#links > a {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-decoration: none;
  border: 1px solid var(--alt-background);
  padding: 1rem;
  border-radius: 0.5rem;
}
#links > a > .desc {
  color: var(--text);
  font-style: italic;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  font-family: "Hanken Grotesk", sans-serif;
}
#links > a > .link {
  font-size: 0.8rem;
  text-wrap: wrap;
}
#links > a:hover {
  background-color: var(--alt-background);
}

#art {
  width: calc(100% - 2rem);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
@media screen and (min-width: 1024px) {
  #art {
    width: 60%;
  }
}
#art > .art-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
#art > .art-item > img {
  width: 100%;
  max-width: 600px;
  border: 1px solid var(--alt-background);
  border-radius: 0.5rem;
  padding: 0.5rem;
  image-rendering: pixelated;
}
#art > .art-item > .title {
  font-family: "Hanken Grotesk", sans-serif;
  font-style: italic;
  text-align: center;
  width: 80%;
  max-width: 600px;
}

#files {
  width: calc(100% - 2rem);
  margin-left: auto;
  margin-right: auto;
}
@media screen and (min-width: 1024px) {
  #files {
    width: 60%;
  }
}
#files > form {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 4rem;
}
#files > form > input[type=file] {
  padding: 0.5rem;
  width: 60%;
  border: 1px solid var(--alt-background);
  border-radius: 0.5rem;
  color: var(--alt-text);
}
#files > form > input[type=file]::file-selector-button {
  padding: 0.5rem;
  border: 1px solid var(--alt-background);
  background-color: var(--alt-background);
  border-radius: 0.5rem;
  color: var(--alt-text);
}
#files > form > input[type=submit] {
  padding: 0.5rem;
  border: 1px solid var(--alt-background);
  border-radius: 0.5rem;
  background-color: var(--alt-background);
  color: var(--alt-text);
}

/*# sourceMappingURL=style.css.map */
