/* Brightline v5.1 "Two looks under one roof" (Studio, 22 Nov; Matt 23:13: "good fo kids but very immarure for adults").
   Load AFTER cards.css on every page. cards.css stays the kids' look (kids' shelves, kids' product pages, Meet Bix).
   This file is (1) the grown-up, neutral SHELL every visitor sees (header, wordmark, home first screen, format key,
   Find Your Book, See Inside, How Buying Works, footer) and (2) the GROWN-UPS' LOOK (grown-ups' shelf + .grownpage).
   Sources (CONCEPTS.md "v5.1"): serif = the titles of Murder in Good Time, Memory Lane, When Milk Came in Glass, Client Kit;
   ivory ground = the Client Kit cover + the word-search letter tiles; mustard found-word bar = the highlighted words
   (KITCHEN, MILKMAN, TINSEL) on the two large-print word search covers; square number tiles = the money tiles on the
   Budget Planner + Shop Money Tracker covers; short gold rule = the rule under the Budget Planner and Client Kit titles;
   letter-spaced kicker = "A CLOCK WINDER MYSTERY", "EXCEL + GOOGLE SHEETS"; page palettes = each grown-up cover's own two colours.
   Body classes: index.html = "home"; grown-ups' product pages = "grownpage" + a palette (none = navy, t-maroon, t-forest,
   t-blush, t-ivory); kids' product pages: no class (cards.css look, this shell's header + footer). */
:root { --ivory: #F8F3EA; --ivory2: #F3ECDF; --navy: #1C2840; --maroon: #7B1E2C; --forest: #1F4D35; --plum: #7A2E3D;
  --mustard: #F2C14E; --gold: #D9A441; --hair: rgba(43,45,66,.14); }

/* ---------- SHELL: header (every page) ---------- */
.top { border-bottom: 1px solid var(--hair); }
.mark { position: relative; padding-bottom: 8px; font: 700 30px/1 "Playfair Display", Georgia, serif; color: var(--ink); letter-spacing: -.01em; text-shadow: none; }
.mark::after { content: ""; position: absolute; left: 1px; bottom: 0; width: 36px; height: 3px; background: var(--gold); }
.menu { gap: 4px; }
.menu a { position: relative; gap: 0; padding: 0 14px; border-radius: 0; background: none; color: var(--ink); font: 700 16px Nunito, sans-serif; }
/* the shelf colour survives as an 8 px dot + the hover underline, never as a toy pill */
.menu a::before { content: ""; flex: none; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--pc); }
.menu a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 7px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.menu a:hover { transform: none; }
.menu a:hover::after, .menu a:focus-visible::after { transform: scaleX(1); }

/* ---------- SHELL: home first screen = a calm publisher's front page + a bento of six real covers ---------- */
.home .hero { background: var(--ivory); border-bottom: 0; }
.home .hero .wrap { grid-template-columns: .9fr 1.1fr; gap: 56px; padding-top: 64px; padding-bottom: 72px; }
.kick { margin: 0 0 18px; font: 800 13px/1.3 Nunito, sans-serif; letter-spacing: .22em; text-transform: uppercase; color: var(--plum); }
.home .hero h1 { font: 700 clamp(40px, 5.2vw, 72px)/1.06 "Playfair Display", Georgia, serif; color: var(--ink); letter-spacing: -.015em; text-shadow: none; }
/* one phrase gets the word-search "found word" bar (Pixel wraps it in <mark>) */
.home .hero h1 mark { color: inherit; background: linear-gradient(var(--mustard), var(--mustard)) 0 86% / 100% .4em no-repeat; padding: 0 .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.home .lede { font-weight: 400; color: var(--soft); }
.home .act .bix { display: none; } /* Bix moves to the kids' shelf heading (Pixel: delete it from the hero) */
.home .btn { border-radius: 8px; box-shadow: none; }
/* six EQUAL cover fields (Pixel review 23:57): with plain 1fr the long captions widened some columns, so tiles ended at
   three different heights and read as an accident; minmax(0,1fr) + a two-line caption box keeps every edge on one line */
.home .cutsheet { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 22px 16px; padding: 0; border: 0; border-radius: 0; }
.home .pc:nth-child(n) a { padding: 0; background: none; border-radius: 0; box-shadow: none; transform: none; }
.home .pc .pic { aspect-ratio: .84; padding: 10% 9%; border-radius: 6px; }
.home .pc .cap { min-height: calc(2 * 1.35em + 10px); }
.home .pc .cap .nw:first-child { white-space: normal; }
.home .pc .b3d, .home .pc .sheet, .home .pc .ebook, .home .pc .file { transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.home .pc a:hover .pic > span { transform: translateY(-6px); }
.home .pc .cap { padding: 10px 2px 0; text-align: left; font: 800 12px/1.35 Nunito, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.home .stk { display: none; } /* stickers are the kids' look: the hero caption carries the age instead */
.home .pop .pc { animation-name: rise; animation-duration: .6s; animation-timing-function: cubic-bezier(.2,.8,.2,1); }
@keyframes rise { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }

/* ---------- SHELL: the format key, as square number tiles ---------- */
.home .key { border-bottom: 1px solid var(--hair); }
.home .key li { padding: 4px 0; border-radius: 0; background: none; }
/* format marks (not steps): one colour per format, the same in the key and How Buying Works */
.fdefs { position: absolute; width: 0; height: 0; overflow: hidden; }
.home .key .n, .home .rows .n { border-radius: 6px; background: var(--fc); color: var(--fc); }
.home .key .n { width: 40px; height: 40px; }
/* office manager 23 Nov 15:0x: fixed size (a % height on an svg with no viewBox fell back to 150px and pushed the mark out under its tile) */
.home .n svg { display: block; width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.home .n.f-pb { --fc: var(--maroon); }
.home .n.f-kd { --fc: var(--forest); }
.home .n.f-pdf { --fc: var(--navy); }
.home .n.f-xl { --fc: var(--plum); }

/* ---------- SHELL: section titles, filters, See Inside, How Buying Works (home) ---------- */
.home .find h2.chunk, .home .sec:not(.bixsec) h2.chunk { font: 700 clamp(34px, 4.2vw, 54px)/1.08 "Playfair Display", Georgia, serif; color: var(--ink); letter-spacing: -.01em; text-shadow: none; }
.home .find .sub, .home .sec .sub { font-weight: 400; color: var(--soft); }
.home .find { padding-bottom: 0; }
.home .chip { border: 1.5px solid rgba(43,45,66,.35); border-radius: 8px; font-weight: 700; }
.home .chip[aria-pressed="true"] { border-color: var(--ink); }
.home .count .all { color: var(--plum); }
.home .sec { border-top: 1px solid var(--hair); }
.home .sec.tint:not(.bixsec) { background: #fff; }
.home .pages4 li:nth-child(n) a { padding: 0; overflow: hidden; border-radius: 6px; box-shadow: 0 0 0 1px var(--hair), 0 14px 28px -18px rgba(28,40,64,.45); transform: none; }
.home .pages4 a:hover { transform: translateY(-4px); }
/* four pages, four shapes (square, Letter, 6 x 9): each sits on the same 3:4 white mount so the captions share one line */
.home .pages4 { align-items: stretch; }
.home .pages4 li:nth-child(n) a { display: flex; flex-direction: column; height: 100%; }
.home .pages4 img { box-sizing: border-box; aspect-ratio: 3 / 4; object-fit: contain; padding: 14px; background: #fff; border-radius: 0; }
.home .pages4 span { flex: 1; padding: 12px 14px 14px; border-top: 1px solid var(--hair); text-align: left; font: 700 14px/1.35 Nunito, sans-serif; }
.home .sec:has(.rows) { background: var(--ivory); }
.home .rows { gap: 0; }
.home .rows li { padding: 20px 0; border-radius: 0; background: none; box-shadow: none; border-top: 1px solid var(--hair); }
.home .rows li:last-child { border-bottom: 1px solid var(--hair); }
.home .rows b { font: 700 21px/1.25 "Playfair Display", Georgia, serif; }
/* kids' shelf: Bix stands on the "Ages 3-8" heading line (her home on the page; Pixel adds the img after the h3 text) */
.shelf > h3 .shelfbix { width: 64px; height: auto; margin: -30px -8px -6px 12px; }

/* ---------- GROWN-UPS' LOOK: shelf (home) and every card on a grown-ups' page ---------- */
.home .shelf.grown { margin: 0 calc(50% - 50vw); padding: 64px calc(50vw - 50%) 80px; background: var(--ivory2); }
.shelf.grown > h3 { min-height: 0; margin: 0 0 30px; padding: 0 0 12px; border-radius: 0; background: none; color: var(--ink); font: 700 clamp(30px, 3.4vw, 44px)/1.1 "Playfair Display", Georgia, serif; position: relative; }
.shelf.grown > h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 3px; background: var(--gold); }
.grown .card a, .grownpage .card a { border-radius: 6px; outline: 0; box-shadow: 0 0 0 1px var(--hair), 0 14px 28px -18px rgba(28,40,64,.45); transition: transform .3s, box-shadow .3s; }
.grown .card a:hover, .grownpage .card a:hover { transform: translateY(-5px); box-shadow: 0 0 0 1px var(--hair), 0 22px 36px -18px rgba(28,40,64,.5); }
.grown .tile, .grownpage .card .tile { order: 1; }
/* the kind line becomes the covers' letter-spaced kicker, under the cover */
.grown .strip, .grownpage .card .strip { order: 2; padding: 14px 16px 0; background: none; color: var(--plum); font: 800 12px/1.35 Nunito, sans-serif; letter-spacing: .13em; }
.grown .facts, .grownpage .card .facts { order: 3; padding: 6px 16px 18px; }
.grownpage .card .facts h3 { font: 700 21px/1.2 "Playfair Display", Georgia, serif; }
.grown .fmt li::before, .grownpage .fmt li::before { width: 12px; height: 2px; border-radius: 0; background: var(--gold); transform: translateY(-4px); }

/* ---------- GROWN-UPS' PRODUCT PAGE: the book's own two colours, the cover as a crisp object, no card, no tilt ---------- */
.grownpage { --gbg: var(--navy); --gfg: #fff; --gsoft: #F2E3C0; --gacc: #E7B24A; --gaccink: var(--ink); --gnum: var(--navy); }
.grownpage.t-maroon { --gbg: var(--maroon); --gfg: #FFF6E6; --gsoft: #F2D9A8; --gacc: #E3A93B; --gaccink: #2B1A12; --gnum: var(--maroon); }
.grownpage.t-forest { --gbg: var(--forest); --gfg: #FFF8EC; --gsoft: #EBD9A6; --gacc: var(--gold); --gaccink: #1E2A1F; --gnum: var(--forest); }
.grownpage.t-blush { --gbg: #F4DCD8; --gfg: #4A1F2B; --gsoft: #7A2E3D; --gacc: var(--plum); --gaccink: #fff; --gnum: var(--plum); }
.grownpage.t-ivory { --gbg: #F6EFE7; --gfg: #3A1B26; --gsoft: #6B2737; --gacc: #6B2737; --gaccink: #fff; --gnum: #6B2737; }
.grownpage .ptop { background: var(--gbg); color: var(--gfg); border-bottom: 0; }
.grownpage .ptop .wrap { padding-top: 56px; padding-bottom: 72px; }
.grownpage .ptop h1, .grownpage .ptop .ways, .grownpage .ptop .after, .grownpage .ptop .factline { color: var(--gfg); }
.grownpage .ptop .crumb { font: 800 12px/1.3 Nunito, sans-serif; letter-spacing: .18em; text-transform: uppercase; }
.grownpage .soldon, .grownpage .ptop .crumb a { color: var(--gsoft); }
.grownpage .factline { font-weight: 700; }
.grownpage .cvcard { padding: 0; background: none; border-radius: 0; box-shadow: none; transform: none; }
/* with no card around it, the cover itself is the show: ~77% of the 400 px column for a novel, ~88% for a square sheet (Pixel) */
.grownpage .cvcard .pic { padding: 2% 4% 0; background: none; }
.grownpage .cvcard .pic .tl { width: 84%; }
.grownpage .cvcard .b3d { box-shadow: 3px 0 0 #FAF9F5, 4px 0 0 rgba(0,0,0,.25), 6px 1px 0 #F3F1EA, 7px 1px 0 rgba(0,0,0,.22), 18px 26px 40px -14px rgba(0,0,0,.55); }
.grownpage .cvcard .file { box-shadow: 0 0 0 1px rgba(0,0,0,.08), 18px 26px 40px -16px rgba(40,10,20,.4); }
.grownpage .cvcard .cap { padding: 22px 4% 0; text-align: left; color: var(--gsoft); font: 800 12px/1.35 Nunito, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.grownpage .stk { display: none; }
.grownpage .buy a { border-radius: 8px; background: transparent; color: var(--gfg); box-shadow: inset 0 0 0 1.5px var(--gfg); }
.grownpage .buy li:first-child a { background: var(--gacc); color: var(--gaccink); box-shadow: none; }
.grownpage .sec { border-top: 1px solid var(--hair); }
.grownpage .chart { gap: 0; }
.grownpage .chart li { padding: 20px 0; border-radius: 0; background: none; box-shadow: none; border-top: 1px solid var(--hair); }
.grownpage .chart li:last-child { border-bottom: 1px solid var(--hair); }
.grownpage .chart .n { border-radius: 6px; background: var(--gnum); font: 700 19px "Playfair Display", Georgia, serif; }
.grownpage .sec.night .chart li, .grownpage .sec.night .chart li:last-child { border-color: rgba(255,255,255,.18); }
.grownpage .jump a { border-radius: 8px; box-shadow: inset 0 0 0 1.5px currentColor; background: transparent; }
.grownpage .pages2 li:nth-child(n) figure { padding: 0; overflow: hidden; border-radius: 4px; transform: none; box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 18px 34px -18px rgba(0,0,0,.6); }
.grownpage .pages2 img { border-radius: 0; }
.grownpage .pages2 figcaption { padding: 12px 14px; text-align: left; font-weight: 700; }
.grownpage .sec:not(.night) .pages2 figure { box-shadow: 0 0 0 1px var(--hair), 0 14px 28px -18px rgba(28,40,64,.45); }
.prose .fine { font-size: 15px; color: var(--soft); }

/* ---------- every product page (Pixel review 23:57) ---------- */
/* the first line is the page's showpiece: it ran 7 lines in a 430 px column with two thirds of the band empty */
.starts blockquote { max-width: 980px; }
.starts blockquote p { text-wrap: balance; }
/* related books: three across, sized to the row, never three cards and an empty fourth slot */
.ptop ~ .sec .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 960px; }
.sec .note { max-width: 46em; margin: 22px 0 0; font-size: 15px; }
/* About + 404 (body "grownpage t-ivory plainpage"): a calm ivory title band with no cover, then serif section heads */
.ptop.plain .wrap { display: block; padding-top: 64px; padding-bottom: 64px; }
.ptop.plain .lede { max-width: 38em; margin: 6px 0 0; font-size: 20px; line-height: 1.55; color: var(--gfg); text-wrap: pretty; }
.ptop.plain .buy { margin-top: 26px; }
.plainpage .prose h2 { margin: 36px 0 10px; font: 700 clamp(26px, 3vw, 34px)/1.15 "Playfair Display", Georgia, serif; color: var(--ink); }
.plainpage .prose h2:first-child { margin-top: 0; }
.plainpage .prose a { color: var(--plum); }
/* a short page (404) left a white band under the navy footer: the main grows to fill the screen */
body.plainpage { min-height: 100vh; display: flex; flex-direction: column; }
body.plainpage > main { flex: 1 0 auto; }
.sec.night .note { color: #D5D6E0; }
/* an age chip shows cards from both kids' shelves, so the shelf names would contradict it: the count line names the age */
.shelf.nohead > h3 { display: none; }
/* strips that wrap (BEDTIME PICTURE BOOK · AGES 3-6) pushed their cover and title lower than the rest of the row:
   every strip gets a two-line band; the text node and the .nw span are two flex items, so the gap stands in for the space */
@media (min-width: 901px) {
  .cards .strip { display: flex; flex-wrap: wrap; align-content: center; column-gap: .3em; min-height: calc(2 * 1.25em + 18px); }
  .grown .strip, .grownpage .card .strip { align-content: flex-end; min-height: calc(2 * 1.35em + 14px); }
}

/* ---------- SHELL: footer (every page) = the night navy of Murder in Good Time ---------- */
.foot { background: var(--navy); }
.foot h2 { font: 700 18px "Playfair Display", Georgia, serif; color: var(--gold); }
.foot .mark { margin-top: 48px; padding-bottom: 14px; font: 700 clamp(44px, 7vw, 88px)/1 "Playfair Display", Georgia, serif; color: var(--ivory); }
.foot .mark::after { width: 64px; height: 4px; }

/* ---------- phone ---------- */
@media (max-width: 900px) {
  .mark { font-size: 26px; padding-bottom: 6px; }
  .menu { gap: 0; }
  .menu a { gap: 0; padding: 0 6px; font-size: 14px; }
  .menu a::before { width: 7px; height: 7px; margin-right: 6px; }
  .menu a::after { left: 6px; right: 6px; bottom: 6px; }
  /* one column on phones: ".home .hero .wrap" outranks cards.css's phone ".hero .wrap", so the column count is restated here (Pixel) */
  .home .hero .wrap { grid-template-columns: 1fr; gap: 18px; padding-top: 28px; padding-bottom: 36px; }
  .home .hero .kick { order: 0; margin: 0 0 -8px; font-size: 12px; letter-spacing: .18em; }
  /* ".home .cutsheet" outranks cards.css's phone rule, so the two columns are restated here; the intro comes before the
     covers so a first phone screen says what we sell and where you pay, then shows two covers (Pixel review 23:57) */
  .home .cutsheet { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; order: 3; }
  /* phones show 4 tiles (cards.css hides 5-6): picture book, novel, maze book and the Shop Money planner sheet as the 4th,
     so the first screen says printables and planners too (Bookworm 00:31); Memory Lane waits on the Grown-Ups shelf */
  .home .cutsheet .pc:nth-child(4) { display: none; }
  .home .cutsheet .pc:nth-child(6) { display: block; }
  .home .hero .lede { order: 2; margin: 0; font-size: 16px; }
  .home .act { order: 4; }
  .home .pc .cap { font-size: 11px; letter-spacing: .1em; }
  .ptop ~ .sec .cards { grid-template-columns: 1fr 1fr; }
  .home .shelf.grown { padding-top: 44px; padding-bottom: 56px; }
  .shelf > h3 .shelfbix { width: 52px; }
  .grown .strip, .grownpage .card .strip { padding: 12px 10px 0; font-size: 11px; letter-spacing: .1em; }
  .grown .facts, .grownpage .card .facts { padding: 6px 10px 14px; }
  .grownpage .ptop .wrap { padding-top: 28px; padding-bottom: 44px; }
  .grownpage .ptop .cv { max-width: 240px; }
  .grownpage .cvcard .cap { padding-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .home .pc a:hover .pic > span, .home .pages4 a:hover, .grown .card a:hover, .grownpage .card a:hover { transform: none; }
}
