/* /catalogue: everything ClarityOne Publishing makes, on one page (scripts/everything-page.mjs).
   A plain reading page: one column of text, lists of links, the shop as quiet cards. It takes its colours from the
   house variables of the page it sits in (shell.css, ivory by day and navy by night), so it has no colours of its own. */
.everything { max-width: 1040px; margin-inline: auto; padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem); color: var(--copy, #263156); }
.everything a { color: var(--cream, #141d3d); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; text-decoration-color: var(--line-strong, rgba(20, 29, 61, .32)); }
.everything a:hover { text-decoration-color: currentColor; }
.everything__head .eyebrow { margin: 0 0 .6rem; color: var(--orange, #7c4f16); letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; }
.everything__head h1 { margin: 0 0 1.2rem; font-size: clamp(2.1rem, 5.2vw, 3.6rem); line-height: 1.06; color: var(--cream, #141d3d); text-wrap: balance; }
.everything__action { margin: 1.4rem 0 0; }
.everything__action .button { text-decoration: none; }
.everything__intro { max-width: 68ch; margin: 0 0 .9rem; font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.6; }

.everything__contents { margin: clamp(1.6rem, 4vw, 2.6rem) 0 0; padding: 1.1rem 1.3rem; border: 1px solid var(--line, rgba(20, 29, 61, .16)); border-radius: var(--r-nest, 14px); background: var(--page-raised, #fffcf5); }
.everything__contents ul { margin: 0; padding: 0; list-style: none; columns: 2 18rem; column-gap: 2rem; }
.everything__contents li { padding: .22rem 0; break-inside: avoid; }

.everything__section { margin-top: clamp(2.6rem, 6vw, 4.2rem); padding-top: clamp(1.4rem, 3vw, 2rem); border-top: 1px solid var(--line, rgba(20, 29, 61, .16)); scroll-margin-top: 6rem; }
.everything__section > h2 { margin: 0 0 1rem; font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.12; color: var(--cream, #141d3d); text-wrap: balance; }
.everything__section h3 { margin: 2rem 0 .7rem; font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.2; color: var(--cream, #141d3d); scroll-margin-top: 6rem; }
.everything__section > p, .everything__channel > p { max-width: 68ch; margin: 0 0 .9rem; line-height: 1.6; }

.everything__list { margin: 0 0 .4rem; padding: 0; list-style: none; }
.everything__list > li { padding: .55rem 0; border-bottom: 1px solid var(--line, rgba(20, 29, 61, .16)); line-height: 1.45; overflow-wrap: anywhere; }
.everything__list > li:last-child { border-bottom: 0; }
.everything__facts { color: var(--quiet, #37446c); font-size: .92em; }
.everything__list .everything__facts::before { content: "· "; }
.everything__line { display: block; max-width: 68ch; margin-top: .25rem; color: var(--copy, #263156); }
.everything__label { margin: 1rem 0 .3rem; color: var(--orange, #7c4f16); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }

.everything__product { margin: 0 0 1.1rem; padding: 1.15rem 1.3rem 1.2rem; border: 1px solid var(--card-edge, rgba(20, 29, 61, .14)); border-radius: var(--r-nest, 14px); background: var(--page-raised, #fffcf5); scroll-margin-top: 6rem; }
.everything__product h4 { margin: 0 0 .3rem; font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.25; color: var(--cream, #141d3d); overflow-wrap: anywhere; }
.everything__by { font-weight: 400; color: var(--quiet, #37446c); font-size: .9em; }
.everything__subtitle { margin: 0 0 .45rem; color: var(--quiet, #37446c); font-style: italic; }
.everything__product .everything__line { margin: 0 0 .5rem; }
.everything__product > .everything__facts { margin: 0; }
.everything__languages ul { margin: 0; padding: 0; list-style: none; }
.everything__languages li { padding: .34rem 0; border-top: 1px solid var(--line, rgba(20, 29, 61, .16)); line-height: 1.45; overflow-wrap: anywhere; }
/* An edition title in Arabic, Hebrew, Hindi, Japanese, Korean or Chinese keeps its own font metrics, as on its own page.
   house.css sizes every text of an English page on the Latin x-height (font-size-adjust .44, important), which set the
   Hindi, Japanese, Korean and Chinese titles smaller than the Latin ones beside them; it leaves pages in these six languages
   alone, and headings too. Only the marked titles of these rows, so nothing else changes, here or elsewhere. */
.everything .everything__languages bdi[data-script="own"],
.everything .everything__languages bdi[data-script="own"] * { font-size-adjust: none !important; }
.everything__stores { color: var(--quiet, #37446c); font-size: .9em; }
.everything__stores::before { content: "· "; }
.everything__stores a { color: inherit; }

.everything__channel { margin-bottom: 1.6rem; }
.everything__channel h3 { margin-bottom: .5rem; }

@media (max-width: 600px) {
  .everything__contents { padding: .9rem 1rem; }
  .everything__product { padding: 1rem; }
}
