/* Reading text: the three reading pages (sound colors, thoughts, about), and the meadow's panel, which shows the
   same pages without leaving the meadow. Anything inside `.reading` is styled here. Sizes are in em, so the panel
   can set a smaller base size than a full page. The typeface and shared colours come from base.css. */

/* A reading page on its own: one quiet column of text on the night sky. */
.reading-page {
  margin: 0;
  min-height: 100vh;
  padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, color-mix(in srgb, var(--firefly-gold) 5%, transparent), transparent 70%),
    var(--night-top);
  background-attachment: fixed;
  color: var(--caption);
  font: 400 1.25rem/1.65 var(--font-caption);
  -webkit-text-size-adjust: 100%;
}
.reading-page .page {
  max-width: 34em;
  margin: 0 auto;
  padding: calc(28px + env(safe-area-inset-top, 0px)) 0 calc(56px + env(safe-area-inset-bottom, 0px));
}

.reading a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: color-mix(in srgb, var(--caption) 45%, transparent);
}
.reading a:hover { text-decoration-color: currentColor; }
.reading a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }

/* The name at the top of a page, which leads back to the meadow. */
.reading .site-name {
  display: inline-block;
  margin-bottom: 1.6em;
  font: italic 500 0.92em/1.3 var(--font-caption);
  letter-spacing: 0.04em;
  text-decoration: none;
  opacity: 0.75;
}
.reading .site-name:hover { opacity: 1; }

.reading h1 { margin: 0 0 0.35em; font: italic 500 2.08em/1.15 var(--font-caption); letter-spacing: 0.01em; }
.reading h2 { margin: 1.4em 0 0.3em; font: italic 500 1.28em/1.3 var(--font-caption); }
.reading h3 { margin: 1.2em 0 0.25em; font: italic 500 1.04em/1.3 var(--font-caption); }
.reading p { margin: 0 0 0.8em; }
.reading ul { margin: 0 0 0.8em; padding-left: 1.2em; }
.reading li { margin-bottom: 0.3em; }
.reading strong { font-weight: 500; }
.reading .lead { font-size: 1.12em; line-height: 1.55; }

/* A small spot of colour beside each sound colour's name, the same as in the meadow's sound panel. */
.reading .dot {
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin-right: 0.45em;
  border-radius: 50%;
  vertical-align: 0.12em;
}
.reading .dot[data-color="brown"] { background: var(--noise-brown); }
.reading .dot[data-color="pink"] { background: var(--noise-pink); }
.reading .dot[data-color="green"] { background: var(--noise-green); }
.reading .dot[data-color="white"] { background: var(--noise-white); }
.reading .dot[data-color="grey"] { background: var(--noise-grey); }
.reading .dot[data-color="blue"] { background: var(--noise-blue); }
.reading .dot[data-color="violet"] { background: var(--noise-violet); }

/* The thoughts, one to a line, with room around each. */
.reading .thoughts { margin: 0 0 0.4em; padding: 0; list-style: none; }
.reading .thoughts li { margin: 0 0 0.6em; font-style: italic; }

/* A poem keeps its own lines; the note about it follows in plain type. */
.reading .poem { margin: 1.4em 0 0.25em; font-style: italic; font-size: 1.08em; line-height: 1.5; }
.reading .poem span { display: block; }
.reading .poet { margin: 0 0 0.3em; font-size: 0.84em; letter-spacing: 0.06em; opacity: 0.75; }

.reading .page-foot {
  margin-top: 2.6em;
  padding-top: 0.8em;
  border-top: 1px solid color-mix(in srgb, var(--caption) 20%, transparent);
  font-size: 0.84em;
}
.reading .page-foot ul { display: flex; flex-wrap: wrap; gap: 0.3em 1.1em; margin: 0; padding: 0; list-style: none; }
.reading .page-foot li { margin: 0; }
.reading .page-foot [aria-current="page"] { text-decoration: none; opacity: 0.6; }
