:root {
  color-scheme: light;
  font-family: Arial, sans-serif;
  color: #282421;
  background: #f8f6f0;
  --wine: #58262e;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--wine);
  text-underline-offset: 4px;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: var(--wine);
  cursor: pointer;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
.page-frame:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 5px;
}
header {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 28px 23px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid #dbcebd;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--wine);
}
.brand span {
  font:
    22px Georgia,
    serif;
  color: #282421;
}
.brand small {
  font-size: 8px;
  color: #706356;
  letter-spacing: 0.08em;
}
.back-link {
  font-size: 13px;
}
main {
  max-width: 1020px;
  margin: auto;
  padding: 46px 28px 48px;
}
.intro {
  max-width: 740px;
  margin: auto;
  text-align: center;
}
.eyebrow {
  color: #826037;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.14em;
}
h1 {
  margin: 14px 0 15px;
  font:
    38px/1.17 Georgia,
    serif;
  color: var(--wine);
}
.intro > p:last-child {
  margin: 0;
  color: #706356;
  font-size: 15px;
  line-height: 1.6;
}
.reader-toolbar {
  max-width: 760px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 28px auto 16px;
}
.reader-toolbar button,
.reader-actions button {
  background: #fffdf9;
  border: 1px solid #c8b698;
  border-radius: 4px;
  min-height: 44px;
  padding: 10px 15px;
  font-size: 13px;
}
.reader-toolbar button:disabled {
  color: #a8a196;
  border-color: #ddd4c7;
  cursor: default;
}
.reader-toolbar button:not(:disabled):hover,
.reader-actions button:hover {
  background: #efe6d9;
}
#page-status {
  margin: 0;
  font-size: 13px;
  color: var(--wine);
  text-align: center;
}
#page-status span {
  color: #706356;
}
.page-frame {
  width: min(100%, 760px);
  margin: auto;
  overflow: auto;
  background: #e7dfd2;
  border: 1px solid #d7cbb9;
  box-shadow: 0 10px 34px #36231913;
}
.page-frame img {
  display: block;
  width: 100%;
  height: auto;
}
.page-frame.is-enlarged {
  max-height: 82vh;
}
.page-frame.is-enlarged img {
  width: 1200px;
  max-width: none;
}
.reader-actions {
  display: flex;
  max-width: 760px;
  margin: 19px auto 32px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
}
.accessible-text {
  max-width: 760px;
  margin: 26px auto;
  padding: 18px 20px;
  background: #fffdf9;
  border: 1px solid #d7cbb9;
  border-radius: 4px;
}
summary {
  color: var(--wine);
  cursor: pointer;
  font-size: 14px;
}
article {
  padding-top: 14px;
  max-width: 640px;
  line-height: 1.65;
  font-size: 15px;
}
article + article {
  margin-top: 32px;
  border-top: 1px solid #dbcebd;
}
h2 {
  font:
    26px/1.25 Georgia,
    serif;
  color: var(--wine);
}
h3 {
  font:
    19px Georgia,
    serif;
  color: var(--wine);
  margin-bottom: 6px;
}
li {
  margin-block: 9px;
}
.edition-note {
  font-size: 11px;
  line-height: 1.7;
  color: #706356;
  text-align: center;
}
@media (max-width: 600px) {
  header {
    padding: 21px 18px;
  }
  .brand {
    gap: 5px;
  }
  .brand span {
    font-size: 19px;
  }
  .back-link {
    font-size: 11px;
  }
  main {
    padding: 30px 16px 36px;
  }
  h1 {
    font-size: 29px;
  }
  .reader-toolbar button {
    padding: 9px 13px;
  }
  .reader-toolbar button span {
    display: none;
  }
  #page-status {
    font-size: 12px;
  }
  .reader-actions {
    align-items: flex-start;
  }
  .reader-actions a {
    max-width: 170px;
    line-height: 1.5;
    text-align: right;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
