/* Hallmark · shape: Title page (one tall printed sheet: masthead, a tile puzzle beside the title, three framed passages, the address at the foot) · genre: editorial · theme: custom (brand: Tilebrook Press, spec 2026-11-01) · job: hire · idea: "The homepage is a page from one of the books: the press's own mark set as a seven-tile color-by-number the visitor can fill." · vibe: "ink on paper, counted, quiet, finished by hand"
 * paper: oklch(98.6% 0.003 90) · accent: oklch(18% 0.005 90) (monochrome brand: the ink is the only signal) · display: Cormorant Garamond 500 · body: Jost 400/500 · hero: headline and one sentence on the left six columns, the numbered rosette on the right five, a hairline frame around the whole sheet · nav: wordmark left, the address right, inside the frame · footer: the mark alone over the press name, centred like a book's last page · imagery: none but the mark; the first book is held until it is live · signature: the brand mark as a color-by-number puzzle in the hero
 * axes: light/roman-serif/neutral · posture: Restrained (monochrome) · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: P and R tie, the page could read as a nice title page without an argument; the argument is the puzzle (a picture you finish yourself), so the first book line and a product list were cut rather than added */
/* Hallmark · waive 38ii · Cormorant italic on one standalone statement and the hero's caption, each whole, font-synthesis none · the books set their subtitles in italic Cormorant and the page quotes that voice */
/* Hallmark · dismissed 58 · 83 words in the window that spans the hero's foot and the passage: the passage is the page's only prose and the owner edits it next */
/* Hallmark · dismissed 77 · four sections by decision: the owner holds the books section until the first title is live on Amazon, so the page is the masthead, the puzzle, one passage, one statement and the colophon */
/* Hallmark · hero-review: in-thread · finish-review: subagent · 8 findings · 6 resolved (tiles inset 14% so outlines no longer cross; title and action above the puzzle on mobile; caption at body size in ink-2; one mailto dropped; tile idea echoed in the colophon; ledger labels at body size) · 1 owner-flagged ("this season" wording) · 1 accepted as written (copy) */
/* Hallmark · waive 79 · /gallery empty state at 1440: title, one line and one sentence, 161px clear above the colophon · no approved pictures exist at launch; the picture grid fills that space once readers send pages, and padding copy would break 58 */
/* Hallmark · waive 77 · /books/christmas-pixel "Finished pages from this book" at 1440: heading, one line and the empty state · no approved pictures exist yet; the picture grid gives the section its mass once readers send pages, as with the /gallery waiver above */
@import url("./frame.css");

body { min-height: 100dvh; }

.address { padding-block: var(--space-3xl); border-top: var(--rule-hair) solid var(--color-rule); display: grid; gap: var(--space-lg); justify-items: start; }
.mail { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.125rem, 5.5vw, var(--text-section)); line-height: 1.1; overflow-wrap: break-word; min-width: 0; max-width: 100%; text-decoration-thickness: 1px; text-underline-offset: 0.12em; }
.address p { max-width: 48ch; color: var(--color-ink-2); }

/* Inner pages: /share and /gallery, one column under the masthead. */
.page { padding-block: var(--space-2xl) var(--space-3xl); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-lg) var(--gap-columns); align-content: start; }
.page > * { grid-column: 1 / -1; }
.page h1, .page .lead { grid-column: 1 / span 5; }
.page .lead { align-self: start; }
.page .share, .page .err { grid-column: 7 / span 6; }
.page .err { grid-row: 1; align-self: end; } /* beside the title, above the form, so a refused upload is explained first */
.page .share { grid-row: 2 / span 3; }
.page h1 { font-size: var(--text-section); font-weight: 500; line-height: 1.05; max-width: 18ch; }
.page .lead { font-size: var(--text-lg); max-width: 46ch; color: var(--color-ink-2); }
.page .err { max-width: 46ch; padding: var(--space-sm) var(--space-md); border: var(--rule-hair) solid var(--color-ink); }
.page .empty { color: var(--color-ink-2); }
.share { display: grid; gap: var(--space-md); max-width: 36rem; }
.share p { margin: 0; display: grid; gap: var(--space-2xs); }
.share label { font-weight: 500; }
.share .hint { font-size: var(--text-sm); color: var(--color-ink-2); }
.share input[type=text], .share input[type=email], .share select, .share textarea { width: 100%; min-height: 44px; padding: var(--space-xs) 0; border: 0; border-bottom: var(--rule-hair) solid var(--color-ink); background: transparent; color: var(--color-ink); border-radius: 0; }
.share select { appearance: none; -webkit-appearance: none; }
.share input[type=file] { padding-block: var(--space-xs); }
.share .consent label { display: flex; gap: var(--space-sm); align-items: start; font-weight: 400; max-width: 46ch; }
.share .consent input { margin-top: 0.3em; accent-color: var(--color-ink); }
.share .btn { justify-self: start; cursor: pointer; }
.filter { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-lg); font-size: var(--text-sm); }
.filter a[aria-current] { text-decoration: none; border-bottom: var(--rule-hair) solid var(--color-ink); }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(14rem, 100%), 1fr)); gap: var(--space-xl) var(--gap-columns); }
.gallery li { display: grid; gap: var(--space-xs); }
.gallery a { display: block; }
.gallery img, .book__cover img, .inside img { width: 100%; height: auto; border: var(--rule-hair) solid var(--color-rule); }
.gallery p { margin: 0; font-size: var(--text-sm); color: var(--color-ink-2); }
.gallery strong { font-weight: 500; color: var(--color-ink); }
/* Prose pages: /about, /privacy, /terms. One measure, the heading rhythm of a printed page. */
.prose { padding-block: var(--space-2xl) var(--space-3xl); max-width: 62ch; display: grid; gap: var(--space-md); }
.prose h1 { font-size: var(--text-section); font-weight: 500; line-height: 1.05; margin-bottom: var(--space-sm); }
.prose h2 { font-size: var(--text-xl); font-weight: 500; line-height: 1.15; margin-top: var(--space-lg); }
.prose p { font-size: var(--text-lg); max-width: none; color: var(--color-ink-2); }

/* Book pages: /books/<id>. The cover on the left, the book on the right, its readers' pages underneath. */
.book { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: start; padding-block: var(--space-2xl) var(--space-3xl); }
.book__cover { grid-column: 1 / span 5; margin: 0; }
.book__text { grid-column: 7 / span 6; display: grid; gap: var(--space-lg); justify-items: start; }
.book__text h1 { font-size: var(--text-section); font-weight: 500; line-height: 1.05; max-width: 16ch; }
.book__text .lead { font-size: var(--text-lead); max-width: 30ch; color: var(--color-ink-2); }
.book__text p { max-width: 46ch; }
.facts { margin: 0; padding: 0; list-style: none; display: grid; }
.facts li { padding-block: var(--space-sm); border-top: var(--rule-hair) solid var(--color-paper-3); color: var(--color-ink-2); }
.book__buy { font-weight: 500; }
.book__price { margin-inline-start: var(--space-sm); }
.book__pages { border-top: var(--rule-hair) solid var(--color-rule); }
.book__pages h2 { grid-column: 1 / -1; font-size: var(--text-section); font-weight: 500; line-height: 1.05; max-width: 18ch; }
.book__pages .lead { grid-column: 1 / -1; }
.inside { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: var(--space-lg) var(--gap-columns); }
.inside figure { margin: 0; display: grid; gap: var(--space-sm); align-content: start; }
.inside figcaption { font-size: var(--text-sm); color: var(--color-ink-2); }

@media (max-width: 60rem) {
  .book { grid-template-columns: 1fr; padding-block: var(--space-xl) var(--space-2xl); }
  .book__cover, .book__text { grid-column: 1; }
  .book__cover { max-width: 22rem; }
  .page { grid-template-columns: 1fr; padding-block: var(--space-2xl); }
  .page h1, .page .lead, .page .share, .page .err { grid-column: 1; }
  .page .share, .page .err { grid-row: auto; }
}

/* The 404 page's puzzle: a black sheet with 404 in white tiles, colored by hand. Pressed tiles take their pencil; the 2s vanish into the sheet. */
.notfound { padding: var(--space-xl) var(--gutter) var(--space-2xl); background: var(--color-ink); color: var(--color-paper); display: grid; gap: var(--space-md); justify-items: center; text-align: center; }
.notfound h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); line-height: 1.15; max-width: 24ch; }
.notfound p { max-width: 40ch; font-size: var(--text-sm); color: var(--color-paper-3); min-height: 1.6em; }
.grid404 { width: min(100%, 720px); display: grid; margin-top: var(--space-sm); }
.grid404 .row { display: grid; grid-template-columns: repeat(19, minmax(0, 1fr)); gap: 2px; margin-bottom: 2px; }
.grid404 button { aspect-ratio: 1; border: 0; padding: 0; margin: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  font: 500 clamp(0.5rem, 1.8vw, 0.85rem)/1 var(--font-body); background: var(--color-ink); color: var(--color-paper-3);
  box-shadow: inset 0 0 0 1px var(--color-ink-2); }
.grid404 button:hover { box-shadow: inset 0 0 0 1px var(--color-paper-3); }
.grid404 button:focus-visible { outline: 2px solid var(--color-paper); outline-offset: 2px; }
.grid404 .n1 { --c: var(--color-paper); }
.grid404 .n2 { --c: var(--color-ink); }
.grid404 button[aria-pressed="true"] { background: var(--c); color: transparent; box-shadow: none; }
.grid404 button[aria-pressed="true"]:hover { box-shadow: inset 0 0 0 1px var(--color-ink-2); }
