/* --------------------- Open Props --------------------------- */
/* the props */
@import "https://unpkg.com/open-props";
/* optional imports that use the props */
@import "https://unpkg.com/open-props/normalize.min.css";
@import "https://unpkg.com/open-props/buttons.min.css";
/* ------------------------------------------------------------ */
body {
  font-family: sans-serif;
  font-weight: bold;
  text-align: center;
}

.navbar {
  background: var(--surface-2);
  padding: var(--size-3);
  width: 100%;
  position: sticky;
  top: 0;
  z-index: var(--layer-1);
  box-shadow: 0 4px 6px var(--surface-3);
}
.navbar .nav-link {
  color: var(--text-2);
  text-decoration: none;
  padding: var(--size-2) var(--size-3);
  border-radius: var(--radius-3);
  transition: all var(--transition-ease-in);
}
.navbar .nav-link:hover {
  background: var(--surface-3);
  color: var(--text-1);
}
.navbar .nav-link.active {
  background: var(--surface-4);
  color: var(--text-1);
}

.footer {
  background: var(--surface-2);
  padding: var(--size-3);
  width: 100%;
  position: sticky;
  bottom: 0;
  z-index: var(--layer-1);
  display: flex;
  flex-direction: row;
  justify-content: center;
  box-shadow: 0 -4px 6px var(--surface-3);
}
.footer .link {
  margin: var(--size-3);
}
.footer img:hover {
  transform: scale(1.1);
}

.root-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.content-container {
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-bottom: var(--size-8);
}

.round-image {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
}
.round-image img {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(0%, -15%);
}

img.invert {
  filter: none;
}
@media (prefers-color-scheme: dark) {
  img.invert {
    filter: invert(1);
  }
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--size-5);
  width: 100%;
  max-width: 1100px;
  padding: var(--size-5);
}
@media (max-width: 700px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-decoration: none;
  color: var(--text-1);
  background: var(--surface-1);
  border-radius: var(--radius-3);
  overflow: hidden;
  box-shadow: 0 4px 6px var(--surface-3);
  transition: transform var(--transition-ease-in), box-shadow var(--transition-ease-in);
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 12px var(--surface-3);
}
.project-card h2 {
  margin: 0;
  padding: var(--size-3);
  background: var(--surface-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-card p {
  margin: 0;
  padding: var(--size-3);
}

.project-card.talk-card h2 {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.talk-meta {
  font-size: var(--font-size-0);
  opacity: 0.75;
  padding-top: 0;
}

.buttons {
  display: flex;
  justify-content: space-evenly;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-align: center;
  margin: 0 auto;
  padding: 2rem;
}

p,
button {
  margin: var(--size-6);
}

pre {
  max-width: 100%;
  overflow-x: auto;
  padding: var(--size-3);
  background: var(--surface-2);
  border-radius: var(--radius-3);
}
pre code {
  white-space: pre;
  word-break: normal;
}

body > picture,
button {
  display: block;
  text-align: center;
  margin: 2rem;
}
