* { box-sizing: border-box; }
html { scroll-padding-top: 12px; }
body {
  max-width: 880px;
  margin: auto;
  padding: max(18px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  color: #202846;
  background: #f5f6fc;
  font: 1rem/1.55 system-ui, sans-serif;
}
h1 { font-size: clamp(1.6rem, 5vw, 2.25rem); }
h1, h2, h3, p { margin-block: .45em; }
h3 { margin-top: .9em; }
a { color: #263d92; }
nav, .reader-nav { display: flex; flex-wrap: wrap; gap: 8px; }
nav a, .reader-nav button, header > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .35rem .8rem;
  border: 1px solid #ccd2ee;
  border-radius: .65rem;
  background: white;
  color: #263d92;
  font: inherit;
  font-weight: 650;
}
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #425ec7; outline-offset: 3px; }
button:disabled { color: #64708f; opacity: .72; }
.unit {
  margin: 1rem 0;
  padding: clamp(.85rem, 3vw, 1.4rem);
  border: 1px solid #d5daf0;
  border-radius: .9rem;
  background: white;
}
.unit:target { border-color: #5267bd; }
.question { color: #304995; font-weight: 650; }
dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .4rem .7rem; }
dt { font-weight: 700; }
dd { margin: 0; }
details { margin: .75rem 0 0; border-top: 1px solid #e4e8f4; }
summary { min-height: 44px; padding-block: .55rem; color: #2b408e; font-weight: 650; cursor: pointer; }
.story-audio { display: block; width: 100%; max-width: 420px; }
.reader-nav { align-items: center; margin: .75rem 0; }
.reader-nav output { padding-inline: .3rem; }
.story-page { display: block; width: 100%; height: auto; background: #f7f8fc; border: 1px solid #e4e8f4; border-radius: .5rem; }
.story-source { font-size: .88rem; color: #46536d; }
footer { padding: 1rem .2rem 0; color: #46536d; }
.story-text { font-size: clamp(1.12rem, 4.3vw, 1.35rem); }
.story-text:empty { display: none; }
@media (min-width: 640px) {
  .story-text { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
}
