/* 

html {
  font-family: 'EB Garamond', serif;
  font-weight: normal;
  font-size: 17px;
  line-height: 1.6;
}

body {
    background-color: #fff1e5;
}

a {
    color: #8B4513;
    text-decoration: none;
}

a:visited {
    color: #8B4513;
}

*/

@font-face {
  font-family: 'EB Garamond';
  src: url('../docs/garamond.ttf') format('truetype');
  font-weight: 100 700;
  font-style: normal;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

html {
  font-family: -apple-system, 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-y: scroll;
  scrollbar-gutter: stable;
  margin: 0;
  padding: 0;
  background-color: #fff1e5;
}

main {
  width: 90%;
  max-width: 800px;
  margin: auto;
  padding: 0 0 3rem 0;
}
.directory {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1rem;
  margin: 2rem 0 2rem 0;
  padding: 0;
}

.directory li {
  font-size: 1rem;
}

.directory .active-item {
  font-size: 1rem;
}

.directory li a {
  color: #8B4513;
  text-decoration: none;
}

.directory li a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  font-size: 1.05rem;
  line-height: 1.5rem;
}

.intro {
  width: 100%;
  max-width: 100%;
  margin-bottom: 1.5rem;
}

.intro p {
  margin: 0 0 1.25rem 0;
}

.links-list p {
  margin: 0.15rem 0;   
  font-size: 1rem;
  line-height: 1.2rem;
  white-space: normal;  
  text-overflow: clip;
  overflow: visible;
}

a {
  color: #8B4513;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3 {
  font-weight: 400;
  margin: 2rem 0 1rem 0;
}

h1 {
  font-size: 1.5rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.1rem;
}

@media (max-width: 800px) {
  main {
    width: 92%;
    padding: 0 0.75rem 2rem 0.75rem;
  }

  .directory {
    gap: 0.5rem;
    margin: 1.5rem 0;
  }

  .directory li {
    font-size: 0.95rem;
  }

  .container {
    font-size: 1rem;
    line-height: 1.45rem;
  }
}
div.picture-container {
    width: 100%;
    max-width: 300px;
}
img {
    width: 100%;
}
@media (max-width: 500px) {
  main {
    width: 95%;
    padding: 0 0.5rem 2rem 0.5rem;
  }

  .directory {
    flex-direction: column;
    gap: 0.3rem;
  }

  .directory li {
    font-size: 0.9rem;
  }
}
p.title {
    margin-bottom: 0
}
p.desc {
    margin-top: 0;
    margin-bottom: 0
}
p.links {
    margin-top: 0;
    margin-bottom: 0;
    font-size: .95rem;
}
div.links-list p {
    margin: .3rem auto;
    font-size: 1rem;
    line-height: 1.2rem;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
span.date {
    font-family: monospace;
    font-size: .8rem;
    position: relative;
    bottom: 1px;
    margin-right: 1rem;
    color: #555;
}

.footnote-ref {
    color: #8B4513;
    text-decoration: none;
    font-size: 0.8em;
    vertical-align: super;
    line-height: 0;
}

.footnote-ref:hover {
    text-decoration: underline;
}

.footnotes {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    font-size: 0.9em;
}

.footnotes h3 {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #333;
}

.footnote {
    margin-bottom: 10px;
    line-height: 1.4;
    text-align: justify;
    text-justify: inter-word;
}

.footnote-number {
    color: #8B4513;
    font-weight: bold;
}

.footnote-backref {
    color: #8B4513;
    text-decoration: none;
    margin-left: 5px;
    font-size: 0.8em;
}

.footnote-backref:hover {
    text-decoration: underline;
}

.video-grid {
    display: flex;
    gap: 5px;
    margin: 20px 0;
    flex-wrap: nowrap;
    align-items: flex-start;
}

.video-container {
    flex: 1;
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .video-grid {
        flex-wrap: wrap;
    }
}

.post-date {
    font-family: 'EB Garamond';
    margin-top: 0.5rem;
    font-size: 1.1em;
    margin-bottom: 30px;
}

.container p {
  text-align: justify;
  text-justify: inter-word;
}