@import url('https://fonts.googleapis.com/css2?family=Amiri&family=Fira+Sans&display=swap');

/* --- Layout for centered, narrow 2-column page, Bootstrap-style --- */

body {
  background-color: #ffe;
  color: #000;
  font-size: 1rem;
  font-family: 'Fira Sans', sans-serif, "Times New Roman", serif;

  margin: 0;
  padding: 0;

  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
}

.container {
  display: flex;
  gap: 2rem;
  max-width: 800px;
  width: 100%;
  margin: 5% auto 0 auto;
  padding: 0 1rem;
}

.container * {
  overflow-wrap: break-word;
  word-break: break-word;
}

.left, .right {
  flex: 1;
  min-width: 0;
}

.left {
  flex-shrink: 1;
}

.right {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-shrink: 0; /* keep image from shrinking too much */
}

.right img {
  width: 75%;
  max-width: 260px;
  height: auto;
  border-radius: 8px;
}

/* --- Photo with image-matching caption width --- */

figure.photo {
  display: inline-block;
  text-align: center;
  margin: 0;
}

figure.photo img {
  display: block;
}

figure.photo figcaption {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  font-style: italic;
  color: #333;
}

/* --- Responsive collapse --- */

@media (max-width: 800px) {
  .container {
    flex-direction: column;
    max-width: 600px;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .right {
    justify-content: center;
  }

  .right img {
    width: 50%;
    max-width: 200px;
  }
}

/* --- Existing typography & element styles --- */

h1 {
  font-size: 2.5rem;
  font-weight: normal;
  font-family: "Amiri", "Times New Roman", serif;
  margin: 0;
  padding: 0;
}

h2 {
  font-size: 1.9rem;
  font-weight: normal;
  font-family: 'Fira Sans', sans-serif, "Times New Roman", serif;
  margin: 0;
  padding: 0;
}

h3 {
  font-size: 1.5rem;
  font-weight: normal;
  font-family: 'Fira Sans', sans-serif, "Times New Roman", serif;
  margin: 0;
  padding: 0;
}

code {
  background-color: rgb(255, 255, 240);
}

a {
  color: #000;
}

a.title-link {
  font-weight: bold;
}

a:hover {
  text-decoration: line-through underline;
}

span {
  display: block;
  line-height: 2;
  /* remove: width: 28em; */
}

ul {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
  line-height: 1.5;
  /* remove: width: 39em; */
}

li {
  padding-left: 1.5em;
  text-indent: -1em;
  margin-bottom: 0.5em;
  word-wrap: break-word;
}

li:before {
  content: "+";
  padding-right: 0.27px;
}

.wrapped {
  word-wrap: break-word;
  padding-bottom: 17em;
}