/* The primer (about/README.md). The page is the journal's (journal/journal.css, loaded
   first): its paper, frame, title and heads. Here is only what the primer adds: figures
   drawn by figures.js, the cell types' pictures, and the same page laid out as one sheet
   for the picture of it (html[data-sheet], set by ?sheet). */

.primer b.term { font-style: italic; }
.primer .pending { color: var(--muted); }
.primer .save { margin: 14px 0 0; font-size: 14px; }
.primer .save a { letter-spacing: 0.2em; text-transform: uppercase; font-size: 12px; padding: 9px 4px; }
.primer section.part > h4 { text-align: center; margin: 22px 0 2px; color: var(--ink-2); }
.primer section.part > h4:first-of-type { margin-top: 14px; }

/* A figure: a slip of the plate's paper in the plate's ruled frame, in both manners (by
   lamplight the slip is dimmed, as the journal's pictures are). The drawing is in ink on
   that paper, so it does not change with the manner. */
figure.fig { margin: 16px auto 18px; max-width: 460px; text-align: center; break-inside: avoid; }
figure.fig .sheet { border: 1.5px solid var(--ink-2); outline: 0.75px solid var(--ink-2); outline-offset: 2.5px; margin: 4px; background: #ebe0c6; filter: var(--dim); }
figure.fig canvas { display: block; width: 100%; height: auto; }
figure.fig figcaption { font-size: 14px; font-style: italic; line-height: 1.4; color: var(--ink-2); margin-top: 9px; text-wrap: balance; }
figure.fig figcaption .tags { display: block; font-style: normal; color: var(--ink); margin-bottom: 3px; }
figure.fig figcaption .tag { white-space: nowrap; margin: 0 0.35em; }
figure.fig figcaption .tag i.l { font-style: italic; margin-right: 0.28em; }

/* The cell types: the journal's .kinds, with a drawn cell in the frame. */
.primer .kinds { margin-top: 4px; gap: 12px; }
.primer .kind { grid-template-columns: 92px 1fr; break-inside: avoid; }
.primer .kind .pic { width: 88px; height: 88px; filter: var(--dim); }
.primer .kind .pic canvas { display: block; width: 100%; height: 100%; }
.primer .kind h4 { font-size: 17px; letter-spacing: 0.04em; }
.primer .kind p { font-size: 15.5px; line-height: 1.48; margin: 0; }

dl.ways { margin: 0 0 12px; }
dl.ways dt { font-style: italic; margin-top: 8px; }
dl.ways dd { margin: 0 0 0 1.1em; font-size: 16px; line-height: 1.5; }
.primer footer { break-inside: avoid; }

/* ---- the sheet: the same page as one picture (scripts/about.py image). Four columns
   under the title, which runs across them. No way out and no lamp: it is a picture. */
html[data-sheet] body { padding: 30px; width: 2260px; }
html[data-sheet] main { max-width: none; padding: 30px 56px 50px; outline-offset: -8px; box-shadow: inset 0 0 90px 10px var(--tone); }
html[data-sheet] .top, html[data-sheet] .save { display: none; }
html[data-sheet] .titlepage { margin: 26px 0 30px; padding-bottom: 24px; }
html[data-sheet] h1 { font-size: 46px; }
html[data-sheet] h1 .small { font-size: 17px; margin-bottom: 10px; }
html[data-sheet] .titlepage .script { font-size: 38px; }
html[data-sheet] .summary { font-size: 19px; max-width: 44em; }
html[data-sheet] #sections { columns: 4; column-gap: 54px; column-rule: 1px solid var(--rule); }
html[data-sheet] section.part { margin: 0 0 30px; }
html[data-sheet] h2 { break-after: avoid; }
html[data-sheet] section.part > h4 { break-after: avoid; }
html[data-sheet] p { orphans: 3; widows: 3; }
html[data-sheet] footer { margin-top: 24px; }
html[data-sheet] footer a { display: none; }
html[data-sheet] footer { font-size: 0; }
html[data-sheet] footer::before { content: "Ediacara · ediacara.pages.dev"; font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; font-style: normal; }
