:root {
  font-family: Inter, system-ui, sans-serif;
  color: #142b43;
  background: #eef3f5;
  line-height: 1.55;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #0b635d; text-underline-offset: .18em; }
button, select {
  min-height: 2.75rem;
  border: 1px solid #a6bcc3;
  border-radius: .5rem;
  background: white;
  color: #142b43;
  padding: .45rem .7rem;
  font: inherit;
}
button { cursor: pointer; }
button[aria-pressed="true"], button:hover:not(:disabled) { background: #e5f4f1; }
button:disabled { opacity: .45; cursor: default; }
:focus-visible { outline: 3px solid #008779; outline-offset: 3px; }
[hidden] { display: none !important; }
.masthead { background: white; border-bottom: 1px solid #dae3e7; }
.header-inner {
  max-width: 61rem;
  margin: auto;
  padding: .95rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  font-size: .875rem;
}
.brand { font-weight: 800; }
main { max-width: 61rem; margin: auto; padding: 1rem 1rem 3rem; }
.heading { padding: .25rem 0 1rem; }
.heading h1 { font-size: clamp(1.65rem, 5vw, 2.35rem); line-height: 1.1; margin: .35rem 0; }
.heading p { margin: .4rem 0 0; }
.heading a { display: inline-block; margin-top: .35rem; }
.controls, .end-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  padding: .65rem;
  background: #f8fafb;
  border: 1px solid #dae3e7;
  border-radius: .75rem;
  margin-bottom: .75rem;
}
.paging { display: flex; gap: .35rem; }
.controls > select { max-width: 100%; }
.end-controls { margin: .85rem 0 0; justify-content: space-between; }
.page-sheet {
  position: relative;
  margin: auto;
  max-width: 52rem;
  background: white;
  box-shadow: 0 8px 25px #142b4326;
}
#page-image { display: block; width: 100%; height: auto; }
#page-links a { display: block; position: absolute; border-radius: .15rem; }
#page-links a:hover, #page-links a:focus-visible { background: #007e7433; }
.text-page { background: white; border-radius: .75rem; padding: clamp(1rem, 5vw, 2rem); overflow-wrap: anywhere; }
#page-text { white-space: pre-wrap; max-width: 68ch; }
.notice { padding: 1rem; border-radius: .5rem; background: white; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 430px) {
  main { padding-right: .6rem; padding-left: .6rem; }
  .paging { flex: 1 1 auto; }
  .paging select { flex: 1 1 auto; }
  .controls > select { flex: 1 1 100%; }
}
