* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f5f5f2;
  color: #292925;
  font: 1.125rem/1.5 Georgia, "Times New Roman", serif;
}

main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 32px 24px 56px;
}

.story {
  margin-bottom: 24px;
  overflow-wrap: break-word;
}

.story p {
  margin: 0;
}

.story p + p {
  margin-top: 0.4em;
  text-indent: 1.25em;
}

.story .chapter-opening {
  margin-bottom: 0.65em;
  font-size: 1.25em;
  font-weight: bold;
}

.story .chapter-opening + p,
.story .hint {
  text-indent: 0;
}

.hint {
  font-style: italic;
}

.story.afterword {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #ddddd5;
  font-size: 1rem;
}

.afterword p + p {
  text-indent: 0;
}

.afterword p:first-child {
  font-weight: bold;
}

a {
  color: inherit;
  text-underline-offset: 0.15em;
  overflow-wrap: anywhere;
}

img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

.options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

button {
  flex: 1 1 10rem;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #ddddd5;
  border-radius: 8px;
  background: white;
  color: inherit;
  font: 1rem/1.4 system-ui, sans-serif;
  cursor: pointer;
}

button:hover {
  background: #eaeae3;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid #55554b;
  outline-offset: 3px;
}

@media (max-width: 480px) {
  body {
    font-size: 1.0625rem;
  }

  main {
    padding: 24px 20px 40px;
  }
}
