/* The book page: the text block alone on the paper, like a book opened at the page. Every public page and the login page.
   <main class="c-book" id="main"> holds a c-book__title and a c-ornament (index, login, errors) or a c-markdown (a story). */

.c-book { max-width: calc(var(--measure) + 3rem); margin: 0 auto; padding: 4rem 1.5rem 3rem; font-size: var(--size-text); line-height: var(--leading); }

/* The book page without a measure, for a page whose component places itself across the whole width (the story index,
   c-story-index, which sets its own side margins above 36rem and keeps c-book's below). */
.c-book--full { max-width: none; }
@media (width > 36rem) {
  .c-book--full { padding-inline: 0; }
}

/* The title of the story index (and of the login and error pages): centred small capitals. It shrinks on a narrow screen so that
   it stays on one line. "Iron and Salt", in EB Garamond small capitals with --tracking-caps-wide, is 7.8 times its font size wide,
   so (100vw - the 3rem of c-book padding) / 8.6 leaves about a tenth of the line free. It never grows past 2em, the desktop size;
   text-wrap: balance splits a longer title evenly if it has to wrap. */
.c-book__title { margin: 2rem 0 0; font-size: clamp(1.4em, calc((100vw - 3rem) / 8.6), 2em); font-weight: 400; line-height: 1.2; text-align: center; font-variant-caps: all-small-caps; letter-spacing: var(--tracking-caps-wide); text-wrap: balance; }

/* The ornament (c-ornament) under the title: one line of space above it, two below. */
.c-book__title + .c-ornament { margin-top: var(--line); margin-bottom: calc(var(--line) * 2); }

/* A short centred italic line: an empty state, an error, a pointer onward. */
.c-book__note { color: var(--color-ink-muted); font-style: italic; text-align: center; text-wrap: balance; }
