/* ---- ---- Variables ---- ---- */
:root {
  --orange: #ff9933;
  --blue: #00eeff;
  --white: #ffffff;
  --dark: #1e1e22;
  --grey: #cccccc;
  --duration: 0.15s;
}

/* ---- ---- Structure ---- ---- */
html {
  line-height: 1.3;
}

body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  min-height: 100vh;
  background-color: var(--dark);
  padding: 2rem 1rem;
}
@supports (min-height: 100dvh) {
  body {
    min-height: 100dvh;
  }
}

.content {
  margin: auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 2rem 3rem;
}

.wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  margin: auto;
}
.wrapper nav {
  position: sticky;
  top: 0;
  -ms-flex-item-align: start;
      align-self: flex-start;
  padding: 1rem;
  margin: 0 auto;
  max-width: 20rem;
}

main {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 1rem;
  max-width: 45rem;
  background-color: var(--dark);
}
main > * {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* These are to simplify the Gradio app on the Food Identifier page. */
.gradio-container .prose {
  display: none;
}
.gradio-container #component-0 {
  gap: 0;
}

.bio {
  margin-bottom: -1rem;
}

.img-list {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 1.25rem 1fr;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (width < 35rem) {
  .img-list {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
  }
}
.img-list .img-link {
  margin: 0;
}

/* ---- ---- Standards ---- ---- */
/* ---- Elements ---- */
* {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 200;
  font-style: normal;
  overflow-wrap: anywhere;
}
*:not(.gradio-container *) {
  color: white;
}

/* -- Headings -- */
h1, h2, h3, h4, h5, h6 {
  font-family: "JetBrains Mono", monospace;
  font-optical-sizing: auto;
  font-weight: 800;
  font-style: normal;
  margin: 0;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

h3 {
  margin-bottom: 0.25rem;
}

/* -- Other -- */
section {
  margin-top: 1.5rem;
}
section > h2 {
  margin-top: 2.5rem;
}

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

b, strong {
  font-weight: 600;
}

.img {
  width: 100%;
  height: auto;
  margin: 1.25rem 0 1.25rem;
  display: block;
}

.img-link {
  display: block;
  margin: 1.25rem 0 1.25rem;
}
.img-link .img {
  will-change: transform;
  -webkit-transition: -webkit-box-shadow 0.1s, -webkit-transform 0.1s;
  transition: -webkit-box-shadow 0.1s, -webkit-transform 0.1s;
  transition: box-shadow 0.1s, transform 0.1s;
  transition: box-shadow 0.1s, transform 0.1s, -webkit-box-shadow 0.1s, -webkit-transform 0.1s;
  margin: 0;
}
.img-link:hover .img, .img-link:focus .img {
  -webkit-box-shadow: rgb(0, 0, 0) 0.5rem 0.5rem 0 0.1rem;
          box-shadow: rgb(0, 0, 0) 0.5rem 0.5rem 0 0.1rem;
  -webkit-transform: scale(1.01);
          transform: scale(1.01);
}

.list {
  padding-left: 2.5rem;
}
.list li::marker {
  font-weight: 500;
}
.list li + li {
  margin-top: 0.5rem;
}

/* ---- Classes ---- */
.link {
  color: var(--orange);
  font-weight: 400;
}
.link:hover, .link:focus {
  color: var(--blue);
  -webkit-transition: color var(--duration);
  transition: color var(--duration);
}

.highlight, .name {
  font-family: inherit;
  font-optical-sizing: inherit;
  font-weight: inherit;
  font-style: inherit;
  font-size: inherit;
}

.highlight {
  color: var(--blue) !important;
  -webkit-font-variant-ligatures: none;
          font-variant-ligatures: none;
}

.introduction {
  font-style: italic;
  line-height: 1.4;
  font-weight: 400;
}

.youtube-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
}

.youtube-container iframe, .youtube-container object, .youtube-container embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ---- ---- Navigation ---- ---- */
.side-nav {
  position: sticky;
  top: 2rem;
  -ms-flex-item-align: start;
      align-self: flex-start;
  max-width: 20rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  row-gap: 0.15rem;
}
@media (max-width: 71rem) {
  .side-nav {
    max-width: 45rem;
    position: static;
  }
}
.side-nav .name {
  font-size: 1.75rem;
}
.side-nav .nav-item {
  font-size: 1.15rem;
}

.name {
  color: var(--orange);
}
.name * {
  text-decoration: none;
  font-family: "JetBrains Mono", monospace;
  font-optical-sizing: auto;
  font-weight: 800;
  font-style: normal;
  color: inherit;
}

.name-wrapper {
  display: block;
  text-wrap: balance;
}

.socials {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 0.1rem 1rem;
  font-size: 1.5rem;
  list-style: none;
  padding: 0;
}

.social-link:hover i, .social-link:focus i {
  color: var(--blue);
  -webkit-transition: color var(--duration);
  transition: color var(--duration);
}

.nav-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  row-gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-item {
  font-family: "JetBrains Mono", monospace;
  font-optical-sizing: auto;
  font-weight: 800;
  font-style: normal;
  font-size: 1.25rem;
  color: var(--orange);
  text-decoration: none;
}
.nav-item * {
  font-family: inherit;
  font-optical-sizing: inherit;
  font-weight: inherit;
  font-style: inherit;
  font-size: inherit;
  color: inherit;
  text-decoration: inherit;
}
.nav-item .nav-link-wrapper {
  display: inline-block;
  padding-left: 1.5rem;
  text-indent: -1.5rem;
}
.nav-item .description {
  margin: 0;
  padding: 0.1rem 0 0 1.5rem;
  font-size: 1rem;
  list-style: none;
}
.nav-item a:hover, .nav-item a:focus {
  color: var(--blue);
  -webkit-transition: color var(--duration);
  transition: color var(--duration);
}

.description {
  font-family: "JetBrains Mono", monospace;
  font-optical-sizing: auto;
  font-weight: 200;
  font-style: italic;
  color: var(--grey);
}