/* Cookbook film and original sample pages, in the existing brand palette. */
.book-film-section,.book-samples-section { padding-block:85px; scroll-margin-top:8px; }
.book-film-section { background:var(--blue); color:white; }
.book-media-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:55px; margin-bottom:35px; }
.book-media-heading h2 { font-size:clamp(36px,3.8vw,52px); line-height:1.12; letter-spacing:-2px; }
.book-media-heading>p { max-width:36ch; color:var(--muted); font-size:14px; line-height:1.9; }
.book-film-section .eyebrow,.book-film-section .serif-word { color:var(--yellow); }
.book-film-section .book-media-heading>p { color:#d7dcf1; }
.book-film-stage { position:relative; width:100%; aspect-ratio:16/9; overflow:hidden; isolation:isolate; background:#101125; border:1px solid #ffffff30; border-radius:14px; }
.book-film-stage>video { display:block; width:100%; height:100%; object-fit:contain; background:#101125; }
.book-film-external { display:inline-flex; align-items:center; gap:14px; margin-top:20px; color:#e1e5f3; font-size:11px; font-weight:700; padding-bottom:5px; border-bottom:1px solid #ffffff50; }
.book-film-external:hover { color:var(--yellow); }
.book-film-external .arrow-icon { width:15px; height:15px; }
.book-film-section :focus-visible { outline-color:var(--yellow); outline-offset:4px; }
.book-samples-section { background:#edf0f9; }
.book-sample-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:30px; }
.book-sample-card { display:block; min-width:0; color:var(--blue); }
.book-sample-image { display:grid; place-items:center; aspect-ratio:1.3; padding:12px; background:white; border:1px solid #d4daea; border-radius:11px; overflow:hidden; transition:border-color .2s,box-shadow .2s; }
.book-sample-image>img { width:100%; height:100%; object-fit:contain; }
.book-sample-card:hover .book-sample-image { border-color:#939dc6; box-shadow:0 7px 22px #272c6d12; }
.book-sample-caption { display:flex; justify-content:space-between; align-items:flex-start; gap:15px; padding-top:17px; font-size:14px; font-weight:800; line-height:1.6; letter-spacing:-.2px; }
.book-sample-caption .arrow-icon { flex:none; width:18px; height:18px; margin-top:3px; }
.book-samples-note { margin-top:26px; color:var(--muted); font-size:12px; line-height:1.8; }
body.book-preview-open { overflow:hidden; }
#book-preview-dialog { padding:0; margin:auto; width:min(1200px,calc(100vw - 40px)); max-width:none; max-height:calc(100dvh - 40px); border:0; border-radius:14px; color:var(--ink); background:var(--cream); box-shadow:0 30px 100px #0005; overflow:hidden; }
#book-preview-dialog[open] { display:flex; flex-direction:column; }
#book-preview-dialog::backdrop { background:#0b0e24d9; backdrop-filter:blur(7px); }
.book-preview-header { display:flex; justify-content:space-between; align-items:center; gap:24px; padding:19px 24px; background:var(--blue); color:white; flex:none; }
#book-preview-title { font-size:21px; font-weight:800; line-height:1.4; letter-spacing:-.5px; margin:0; }
#book-preview-close { display:grid; place-items:center; flex:none; width:42px; height:42px; padding:0; border:1px solid #ffffff60; border-radius:50%; background:transparent; color:white; font-size:28px; line-height:1; }
#book-preview-close:hover { background:#ffffff18; }
.book-preview-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:15px; padding:14px 24px; border-bottom:1px solid var(--line); flex:none; }
#book-preview-count { font-size:12px; font-weight:800; font-variant-numeric:tabular-nums; color:var(--blue); }
#book-preview-zoom { min-height:36px; padding:7px 13px; border:1px solid #c8cfe3; border-radius:6px; background:white; color:var(--blue); font-size:11px; font-weight:800; }
#book-preview-zoom:hover { border-color:var(--blue); background:#edf0f9; }
#book-preview-zoom[aria-pressed=true] { background:var(--blue); border-color:var(--blue); color:white; }
#book-preview-original { display:inline-flex; align-items:center; gap:12px; font-size:11px; font-weight:700; color:var(--blue); text-decoration:underline; text-underline-offset:4px; }
#book-preview-original .arrow-icon { width:15px; height:15px; }
.book-preview-canvas { padding:20px; overflow:auto; overscroll-behavior:contain; min-height:0; flex:1; background:#e0e4ee; }
#book-preview-image { width:100%; height:auto; margin-inline:auto; box-shadow:0 3px 15px #1c25491f; }
#book-preview-dialog.is-zoomed #book-preview-image { max-width:none; margin-inline:0; }
.book-preview-actions { display:flex; justify-content:space-between; align-items:center; gap:18px; padding:15px 24px; border-top:1px solid var(--line); flex:none; }
.book-preview-actions button { display:inline-flex; align-items:center; justify-content:center; gap:12px; min-width:120px; min-height:43px; padding:9px 16px; border:1px solid #c8cfe3; border-radius:7px; background:white; color:var(--blue); font-size:11px; font-weight:800; }
.book-preview-actions button:hover:not(:disabled) { border-color:var(--blue); background:#edf0f9; }
.book-preview-actions button:disabled { color:#9095a6; background:#f0f1f5; border-color:#dfe2ec; }
.book-preview-actions button svg { width:16px; height:16px; }
#book-preview-dialog :focus-visible { outline-color:#7a90ee; }
@media(max-width:820px) {
  .book-film-section,.book-samples-section { padding-block:65px; }
  .book-media-heading { gap:30px; }
  .book-media-heading h2 { font-size:38px; }
  .book-media-heading>p { font-size:13px; max-width:30ch; }
  .book-sample-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:27px 22px; }
}
@media(max-width:580px) {
  .book-film-section,.book-samples-section { padding-block:52px; }
  .book-media-heading { display:block; margin-bottom:27px; }
  .book-media-heading h2 { font-size:38px; letter-spacing:-1.8px; }
  .book-media-heading>p { max-width:100%; margin-top:19px; }
  .book-film-stage { border-radius:10px; }
  .book-sample-grid { grid-template-columns:1fr; gap:27px; }
  .book-sample-image { aspect-ratio:1.3; padding:10px; }
  .book-sample-caption { padding-top:12px; }
  #book-preview-dialog { width:calc(100vw - 20px); max-height:calc(100dvh - 20px); border-radius:10px; }
  .book-preview-header { padding:14px 16px; gap:14px; }
  #book-preview-title { font-size:16px; letter-spacing:-.3px; }
  #book-preview-close { width:36px; height:36px; }
  .book-preview-toolbar { padding:12px 16px; gap:10px; }
  #book-preview-original { font-size:10px; }
  .book-preview-canvas { padding:10px; }
  .book-preview-actions { padding:12px 16px; gap:10px; }
  .book-preview-actions button { flex:1; min-width:0; gap:6px; padding:8px 6px; white-space:nowrap; }
}
@media(prefers-reduced-motion:reduce) {
  .book-sample-image { transition:none; }
}
