:root {
  color-scheme: light;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  color: #27372e;
  background: #f8f7f3;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
    env(safe-area-inset-bottom) env(safe-area-inset-left);
  font-size: 1.125rem;
  font-weight: 500;
}
[hidden] {
  display: none !important;
}
a {
  color: #244c3d;
}
button,
a,
summary {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button,
summary {
  cursor: pointer;
}
button {
  font: inherit;
}
:focus-visible {
  outline: 3px solid #a57a43;
  outline-offset: 4px;
}
.skip {
  position: absolute;
  top: -80px;
  left: 15px;
}
.skip:focus {
  top: 10px;
  background: white;
  padding: 12px;
  z-index: 2;
}
header {
  padding: 24px max(24px, calc((100% - 1080px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e1e3da;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  font-size: 1.4375rem;
  font-weight: 700;
  text-decoration: none;
}
.brand img {
  margin-right: 9px;
  border-radius: 10px;
}
.brand span {
  font-weight: 400;
}
.back {
  font-size: 1rem;
  text-decoration: none;
}
main {
  max-width: 1030px;
  padding: 48px 24px;
  margin: auto;
}
.eyebrow {
  font-size: 0.9375rem;
  letter-spacing: 1.5px;
  font-weight: 650;
  line-height: 1.7;
  color: #475448;
}
h1,
h2,
h3 {
  font-family: Georgia, serif;
  font-weight: 400;
}
h1 {
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1.04;
  letter-spacing: -1.7px;
  margin: 18px 0;
}
h1 em {
  color: #475448;
}
.intro {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #475448;
  max-width: 560px;
}
.connection {
  background: #e9eee2;
  padding: 14px 18px;
  border: 1px solid #d5dfcf;
  border-radius: 10px;
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 28px;
}
.limits,
.section-note {
  color: #475448;
  font-size: 1rem;
  line-height: 1.8;
}
.limits {
  max-width: 700px;
}
.characters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 30px 0 44px;
}
.characters button {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e1e3da;
  border-radius: 12px;
  padding: 10px;
  color: #354d3c;
  background: #fffdf9;
  text-align: left;
  font-size: 1rem;
  overflow-wrap: anywhere;
}
.characters button[aria-pressed="true"] {
  background: #e9eee2;
  border-color: #668674;
}
.characters img {
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 20%;
  flex-shrink: 0;
}
.reader {
  scroll-margin-top: 24px;
}
.reader-heading {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 30px;
}
.reader-heading img {
  border-radius: 12px;
  object-fit: cover;
  object-position: 50% 20%;
}
.reader-heading h2 {
  font-size: 2.25rem;
  margin: 6px 0;
}
.reader-heading p:last-child {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #475448;
  margin: 0;
}
h3 {
  font-size: 1.625rem;
  margin: 32px 0 8px;
}
details {
  border: 1px solid #dfe3d8;
  border-radius: 12px;
  margin: 10px 0;
  background: #fffdf9;
  scroll-margin-top: 16px;
}
summary {
  padding: 20px;
  color: #244c3d;
  font-size: 1.125rem;
  line-height: 1.6;
}
details[open] summary {
  border-bottom: 1px solid #e9ebe3;
}
.chapter-content,
.verses {
  padding: 10px 24px 24px;
  font-size: 1.125rem;
  line-height: 1.9;
}
.question {
  font-family: Georgia, serif;
  font-size: 1.3125rem;
  line-height: 1.6;
}
.reflection {
  background: #f0f1e7;
  border-left: 3px solid #a57a43;
  padding: 15px 18px;
}
.citations {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.citations button {
  border: 1px solid #dce3d4;
  padding: 9px 12px;
  background: #edf1e8;
  color: #354d3c;
  font-size: 1rem;
  border-radius: 20px;
}
.verses {
  font-family: Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.9;
}
sup {
  color: #77562f;
  font-size: 0.9375rem;
  margin-right: 4px;
}
.error {
  padding: 18px;
  border: 1px solid #c6977b;
  background: #fff6ef;
  border-radius: 10px;
  line-height: 1.7;
}
footer {
  text-align: center;
  font-size: 0.9375rem;
  line-height: 1.9;
  color: #475448;
  padding: 25px 24px 45px;
}
@media (max-width: 650px) {
  header {
    padding: 18px;
    flex-wrap: wrap;
  }
  .brand {
    font-size: 1.25rem;
  }
  main {
    padding: 32px 18px;
  }
  .characters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .characters button {
    font-size: 1rem;
    gap: 8px;
    overflow-wrap: anywhere;
  }
  .reader-heading {
    align-items: flex-start;
    gap: 14px;
  }
  .reader-heading h2 {
    font-size: 1.875rem;
  }
  .reader-heading img {
    width: 60px;
    height: 80px;
  }
  .chapter-content,
  .verses {
    padding: 8px 18px 20px;
  }
}
