/* ── the catalogue ──────────────────────────────────────────────────────────
 *
 * EACH PRODUCT IS SHOWN BY WHAT IT MAKES, on a plane of its own colour: a
 * page Bookdesign drew, a Nativo conversation, a Simple Backend function, an
 * Our Notes letter. Four unlike products share one page by sharing that
 * idea, not by being squeezed into one card shape. The frames are the only
 * colour on the host; everything around them stays the ledger's greys, so
 * the products are what you see first and the house is what holds them.
 *
 * Spreads alternate sides like a printed catalogue, and fold to one column
 * on a phone with the picture first. The money is one line per product; the
 * price list and the fine print are /billing.
 *
 * ITS OWN FILE because only / uses it; every other page loads site.css
 * alone and pays nothing for these. */
.catalogue-page .container,
.catalogue-page header .container,
.catalogue-page footer .container { max-width: 68rem; }

.cat-mast { max-width: 40rem; }
.cat-mast h1 { font-size: clamp(2.75rem, 1.5rem + 5vw, 4.75rem); letter-spacing: -.05em; line-height: 1; margin: 0 0 1.25rem; max-width: none; }
.cat-mast .lead { font-size: 1.125rem; color: var(--muted); margin: 0; max-width: 30rem; }

.plate {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2rem 4rem;
  align-items: center;
  margin-top: 6rem;
}
.plate.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.plate.flip .frame { order: 2; }
.plate-text { max-width: 26rem; }
.plate-kind {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin: 0;
}
.plate h2 { font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem); letter-spacing: -.035em; line-height: 1.05; margin: .6rem 0 .5rem; }
.plate-line { font-size: 1.1875rem; color: var(--fg); margin: 0 0 1rem; letter-spacing: -.01em; }
.plate-text > p:not([class]) { color: var(--muted); font-size: .9375rem; margin: 0; }
.plate-price {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  font-size: .9375rem; color: var(--fg);
  margin: 1.5rem 0 0; padding-top: 1rem;
  border-top: 1px solid var(--rule);
}
.plate-go {
  display: inline-block; margin-top: 1.25rem;
  padding: .7rem 1.15rem; border-radius: 999px;
  background: var(--fg); color: var(--bg);
  font-weight: 500; font-size: .9375rem; text-decoration: none;
}
.plate-go:hover { opacity: .85; }
.plate-more { margin-left: 1rem; font-size: .875rem; color: var(--muted); }

/* The frames. Each takes its product's own colours, in both themes: they are
   the products' faces, not this host's. */
.frame {
  position: relative; margin: 0;
  aspect-ratio: 4 / 3.2;
  border-radius: .875rem; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: clamp(1.25rem, 4vw, 2.75rem);
}

.frame-book { background: #EFE6D8; gap: 1.1rem; aspect-ratio: auto; }
.book-page {
  background: #FFFDF8; width: min(100%, 25rem);
  padding: .75rem .75rem 1rem; border-radius: .2rem;
  box-shadow: 0 1px 0 rgba(60, 40, 20, .08), 0 14px 30px -14px rgba(60, 40, 20, .35);
  transform: rotate(-1.2deg);
}
.book-page img { display: block; width: 100%; height: auto; border-radius: .1rem; }
.book-page p { font-family: Newsreader, Georgia, serif; font-size: .9375rem; color: #3A2E22; margin: .7rem .25rem 0; max-width: none; text-align: center; }
.looks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; width: min(100%, 25rem); }
.looks img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .2rem; }
.looks span { display: block; font-size: .6875rem; color: #6B5844; text-align: center; margin-top: .25rem; letter-spacing: .02em; }

.frame-nativo { background: #E85D26; }
.chat { width: min(100%, 22rem); display: grid; gap: .6rem; }
.bubble { margin: 0; max-width: 82%; padding: .65rem .9rem; border-radius: 1.1rem; font-size: .9375rem; line-height: 1.4; }
.bubble.tutor { background: #FDE1C8; color: #4A1B07; border-bottom-left-radius: .3rem; justify-self: start; }
.bubble.you { background: #FFFFFF; color: #2A1206; border-bottom-right-radius: .3rem; justify-self: end; }
.voice { margin: .4rem 0 0; justify-self: center; display: inline-flex; align-items: center; gap: .6rem; font-size: .8125rem; color: #FFF4EA; }
.wave { display: inline-flex; align-items: center; gap: 3px; height: 1.25rem; }
.wave i { display: block; width: 3px; border-radius: 2px; background: #FFF4EA; height: 40%; }
.wave i:nth-child(3n) { height: 90%; } .wave i:nth-child(3n+1) { height: 60%; } .wave i:nth-child(4n) { height: 25%; }

.frame-sb { background: #3A0053; align-items: stretch; }
.frame-sb .code { margin: 0 auto; width: min(100%, 26rem); background: rgba(0, 0, 0, .28); color: #F1E8F7; border-radius: .6rem; padding: 1.1rem 1.25rem; font: 400 clamp(.6875rem, 2.9vw, .875rem)/1.65 "IBM Plex Mono", ui-monospace, monospace; overflow-x: auto; }
.frame-sb .c { color: #A88BBE; } .frame-sb .k { color: #FFB86B; } .frame-sb .f { color: #8FE3C8; } .frame-sb .s { color: #C7B5FF; }
.call { margin: 1rem auto 0; width: min(100%, 26rem); max-width: none; font: 400 .8125rem/1.5 "IBM Plex Mono", ui-monospace, monospace; color: #E6D9EF; display: flex; flex-wrap: wrap; gap: .35rem .6rem; align-items: baseline; }
.call .verb { font-weight: 500; color: #FFFFFF; }
.call .ok { background: #8FE3C8; color: #12302A; border-radius: .25rem; padding: 0 .35rem; font-weight: 500; }
.call .out { color: #C7B5FF; }

.frame-notes { background: #1F6E5C; }
.letter {
  background: #FBFCFA; color: #16191F;
  width: min(100%, 22rem); padding: 1.5rem 1.6rem 1.4rem;
  border-radius: .15rem;
  font-family: Newsreader, Georgia, serif; font-size: 1rem; line-height: 1.55;
  box-shadow: 0 18px 34px -18px rgba(0, 0, 0, .55);
  transform: rotate(1deg);
}
.letter p { margin: 0 0 .7rem; max-width: none; }
.letter-date { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: #586070; }
.letter-q { font-style: italic; color: #2B3A8C; }
.letter-sign { margin: 0 !important; color: #586070; }

.cat-billing {
  margin-top: 7rem; padding: 1.5rem 0;
  border-top: 2px solid var(--fg); border-bottom: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; align-items: baseline;
  font-size: .9375rem;
}
.cat-billing p { margin: 0; max-width: none; color: var(--muted); }
.cat-billing b { color: var(--fg); font-weight: 500; }
.cat-billing a { font-weight: 500; }
.catalogue-page .worried { max-width: 34rem; }

@media (max-width: 52rem) {
  .plate { grid-template-columns: 1fr; margin-top: 4rem; gap: 1.5rem; }
  .plate.flip { grid-template-columns: 1fr; }
  .plate.flip .frame { order: 0; }
  .plate-text { max-width: none; }
  .frame { aspect-ratio: auto; min-height: 20rem; }
}
@media (prefers-reduced-motion: reduce) { .book-page, .letter { transform: none; } }
