@import url("https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&display=swap");
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap");

body {
  font-family: "Spectral", Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1a1a1a;
  background: #faf8f5;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

#quarto-header,
.quarto-title-block,
footer.footer {
  display: none;
}

#quarto-content,
#quarto-content.page-columns,
.quarto-container {
  display: block;
  margin: 0;
  padding: 0;
}

main.content,
.page-columns .content {
  display: block;
  max-width: none;
  width: auto;
  margin: 0;
  padding: 0;
}

.wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 2rem;
  max-width: 52rem;
  margin: 0 auto;
}

.main-section {
  max-width: 640px;
  padding-right: 2rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Spectral", Georgia, serif;
  font-weight: 600;
  line-height: 1.3;
  color: #1a1a1a;
  letter-spacing: 0.01em;
  margin: 1.25rem 0 0.5rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.75rem;
}

.subtitle {
  font-family: "Spectral", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 300;
  color: #666;
  line-height: 1.45;
  margin: 0.25rem 0 1.5rem;
}

.main-section h3 {
  font-family: "DM Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #888;
  border-top: 1px solid #ddd;
  padding-top: 1rem;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.main-section > p:first-of-type {
  margin-top: 1.4rem;
}

p,
ul,
ol {
  margin-bottom: 0.75rem;
}

ol,
ul {
  padding-left: 1.4rem;
}

li {
  margin: 0.55rem 0;
  line-height: 1.6;
}

li li {
  margin: 0.25rem 0;
}

a {
  color: #b5451b;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

a:hover {
  color: #8f3414;
  border-bottom-color: currentColor;
}

.sidenav {
  background: #f5f2ed;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  width: 100%;
  box-sizing: border-box;
  position: sticky;
  top: 2rem;
}

.sidenav a {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  margin: 0.25rem 0;
  font-family: "DM Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #666;
  line-height: 1.8;
  border-bottom: none;
  border-radius: 4px;
  box-sizing: border-box;
}

.sidenav a:hover {
  color: #1a1a1a;
}

.profile-photo {
  width: 100%;
  height: auto;
  max-width: 220px;
  display: block;
  margin: 1.25rem auto 0;
  transform: translateX(-3mm);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
}

details.abstract {
  margin-top: 0.35rem;
  margin-bottom: 0.85rem;
}

details.abstract summary {
  display: inline-block;
  font-family: "DM Sans", sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  color: #888;
  border: 1px solid #ccc;
  border-radius: 2px;
  padding: 0.1rem 0.4rem;
  cursor: pointer;
  list-style: none;
}

details.abstract summary::-webkit-details-marker {
  display: none;
}

details.abstract summary::before {
  content: "[+] ";
}

details.abstract[open] summary::before {
  content: "[-] ";
}

details.abstract summary:hover {
  color: #1a1a1a;
  border-color: #999;
}

details.abstract p {
  margin-top: 0.5rem;
  margin-bottom: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #333;
}

strong,
b {
  font-weight: 600;
}

@media (max-width: 768px) {
  body {
    padding: 1rem;
  }

  .wrapper {
    grid-template-columns: 1fr;
  }

  .main-section {
    padding-right: 0;
  }

  .sidenav {
    position: static;
    padding: 1rem;
  }

  .sidenav a {
    text-align: center;
    padding: 0.75rem;
  }

  .profile-photo {
    max-width: 190px;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .main-section h3 {
    font-size: 0.68rem;
  }
}

@media print {
  body {
    color: #000;
    background: #fff;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .sidenav {
    display: none;
  }
}
