/* ============ Recipe book page ============ */
body.book-page {
  margin: 0;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  background: #d6b893;
}

/* The scene is laid out at the photo's real size and scaled by book.js,
   so the writing stays lined up with the paper on every screen. */
.stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 1536px;
  height: 1024px;
  transform-origin: 0 0;
  transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(var(--k, 1));
}
.stage .page { cursor: pointer; }
.stage-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Each page is a flat 480 x 640 sheet, bent into the photo's perspective */
.page {
  position: absolute;
  left: 0;
  top: 0;
  width: 480px;
  height: 640px;
  transform-origin: 0 0;
}
.page-left  { transform: matrix3d(0.461922,-0.074414,0,-0.000094, 0.036056,0.433629,0,-0.000061, 0,0,1,0, 248,578,0,1); }
.page-right { transform: matrix3d(0.534770,0.069755,0,0.000100, -0.007324,0.379609,0,-0.000150, 0,0,1,0, 500,566,0,1); }

/* ink that sits in the paper: multiply lets the paper's light and shadow show through */
.page-inner {
  position: absolute;
  inset: 60px 56px 70px 64px;
  color: #3b2618;
  mix-blend-mode: multiply;
  font-family: "Kalam", "Segoe Print", cursive;
  font-weight: 300;
  font-size: calc(24px * var(--fs, 1));
  overflow: hidden;
}
.page-left .page-inner  { inset: 38px 50px 88px 34px; }  /* keep clear of the spine and the curl at the bottom */
.page-right .page-inner { inset: 34px 30px 86px 62px; }

/* Title page */
.title-page { text-align: center; }
.book-small { font-size: 0.87em; margin: 1.3em 0 0; opacity: 0.8; }
.book-title {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 3.05em;
  line-height: 1;
  margin: 6px 0 4px;
  color: #5a2a14;
}
.flourish { font-size: 1.1em; color: #8a4b1c; letter-spacing: 6px; }
.book-sub { font-size: 1.12em; line-height: 1.25; margin: 0.6em 0 0; }
.book-note { font-size: 0.8em; line-height: 1.35; margin: 1.6em 10px 0; opacity: 0.75; }

/* Contents */
.contents-title {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 2.5em;
  margin: 0 0 0.3em;
  color: #5a2a14;
  text-align: center;
}
.contents { list-style: none; margin: 0; padding: 0; }
.contents .section {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 1.27em;
  color: #8a4b1c;
  margin: 0.5em 0 0;
}
.contents a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 1em;
  line-height: 1.5;
  color: inherit;
  text-decoration: none;
}
.contents a .dots {
  flex: 1;
  border-bottom: 3px dotted rgba(59, 38, 24, 0.45);
  transform: translateY(-8px);
}
.contents a:hover .name,
.contents a:focus-visible .name {
  text-decoration: underline wavy rgba(138, 75, 28, 0.7);
  text-underline-offset: 6px;
}
.contents a:focus-visible { outline: none; }

/* Way back to the homepage */
.back-tag {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 10;
  padding: 0.4em 0.9em;
  background: #fbf6ea;
  color: #4a3320;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 15px;
  text-decoration: none;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transform: rotate(-2deg);
  transition: transform 0.2s ease;
}
.back-tag:hover { transform: rotate(0deg) translateY(-2px); }

/* tall phones: soften the join between the photo and the wall colour above it */
.stage.letterbox::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: -400px;
  height: 560px;
  background: linear-gradient(#d6b893 72%, rgba(214, 184, 147, 0));
  z-index: 1;
  pointer-events: none;
}


/* ============ Recipe spreads (same on the stand and in the open book) ============ */
.recipe-left, .recipe-right {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding-bottom: 1.5em;               /* room for the page number */
  box-sizing: border-box;
}
.recipe-title {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 2.6em;
  line-height: 1;
  margin: 0 0 0.15em;
  color: #5a2a14;
  text-align: center;
}
.recipe-meta { margin: 0 0 0.3em; font-size: 0.8em; opacity: 0.75; text-align: center; }
.recipe-art {
  display: block;
  width: calc(var(--fs, 1) * 165px);
  max-width: 78%;
  height: auto;
  margin: 0.1em auto 0.35em;
  transform: rotate(-2deg);
}
.recipe-intro { margin: 0 0 0.5em; font-size: 0.85em; line-height: 1.35; font-style: italic; text-align: center; }
.recipe-h {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 1.45em;
  margin: 0.2em 0 0.15em;
  color: #8a4b1c;
}
.recipe-right .recipe-h:first-child { font-size: 1.9em; margin-top: 0; }
.ingredients, .method { margin: 0; padding: 0; }
.ingredients { list-style: none; line-height: 1.32; }
.ing-cols { display: flex; gap: 1.1em; }
.ing-cols .ingredients { flex: 1; }
.ingredients li { break-inside: avoid; }
.ingredients li::before { content: "~ "; opacity: 0.5; }
.ingredients .ing-head { font-weight: 700; margin-top: 0.35em; break-after: avoid; }
.ingredients .ing-head::before { content: ""; }
.method { padding-left: 1.2em; line-height: 1.42; }
.method li { margin-bottom: 0.7em; padding-left: 0.2em; }
.method li::marker { font-family: "Caveat", cursive; font-weight: 700; color: #8a4b1c; }
.recipe-tip {
  margin-top: auto;                    /* sits at the bottom of the page */
  padding: 0.5em 0.7em 0.6em;
  border: 2px dashed rgba(138, 75, 28, 0.45);
  border-radius: 10px;
  font-size: 0.92em;
  line-height: 1.35;
  transform: rotate(-1deg);
}
.recipe-tip span {
  display: block;
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 1.35em;
  color: #8a4b1c;
}
.to-contents {
  display: inline-block;
  margin-top: 0.6em;
  font-size: 0.8em;
  color: #8a4b1c;
  text-decoration: none;
}
.to-contents:hover { text-decoration: underline wavy; text-underline-offset: 5px; }
.folio {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  text-align: center;
  font-size: 0.75em;
  opacity: 0.6;
}
.contents-more { text-align: right; font-size: 0.8em; opacity: 0.7; margin-top: 0.4em; }

/* ============ "Click to open" on the stand ============ */
.open-hint {
  position: absolute;
  left: 520px;
  top: 494px;
  transform: translate(-50%, 0) rotate(-1.5deg);
  padding: 10px 22px 8px;
  border: 0;
  border-radius: 4px;
  background: #fbf5e6;               /* same paper as the site's other notes */
  color: #5a2a14;
  font: 700 28px/1.1 "Caveat", "Segoe Print", cursive;
  box-shadow: 0 12px 30px rgba(10, 5, 0, 0.4);
  cursor: pointer;
  animation: hint-float 3s ease-in-out infinite;
  transition: opacity 0.4s ease;
}
.open-hint::before {
  content: ""; position: absolute; top: -9px; left: 50%;
  width: 54px; height: 16px; margin-left: -27px;
  background: rgba(210, 160, 110, 0.65); transform: rotate(-3deg);
}
.open-hint .hint-tap { display: none; }
@media (hover: none) { .open-hint .hint-tap { display: inline; } .open-hint .hint-click { display: none; } }
@keyframes hint-float {
  0%, 100% { transform: translate(-50%, 0) rotate(-1.5deg); }
  50%      { transform: translate(-50%, -8px) rotate(-1.5deg); }
}
.reading .open-hint { opacity: 0; pointer-events: none; }

/* ============ The open book (flat, full screen) ============ */
.reader {
  position: fixed;
  inset: 0;
  z-index: 30;
}
.reader[hidden] { display: none; }
.reader-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(40, 26, 14, 0.55);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
}
.book-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--bw);
  height: var(--bh);
  margin-left: calc(var(--bw) / -2);
  margin-top: calc(var(--bh) / -2);
}
/* --P is one page's width in pixels, --B the cover board showing round the pages */
.book {
  position: absolute;
  inset: 0;
  perspective: 2400px;
  transform: translateX(var(--shift, 0px));
  transition: transform 0.8s cubic-bezier(.45, 0, .2, 1);
}
.board {
  position: absolute;
  top: 0;
  width: calc(var(--P) + var(--B));
  height: 100%;
  background: #5b2f1a;
  background-image: radial-gradient(ellipse at 30% 20%, rgba(255, 220, 180, 0.12), transparent 60%);
  box-shadow: 0 18px 40px rgba(20, 10, 4, 0.5);
}
.board-left  { left: 0; border-radius: 10px 2px 2px 10px; }
.board-right { right: 0; border-radius: 2px 10px 10px 2px; }
.sheet {
  position: absolute;
  top: var(--B);
  width: var(--P);
  height: calc(var(--P) * 4 / 3);
  overflow: hidden;
}
.sheet-left  { left: var(--B);  background: url(images/paper-flat-left.jpg)  center / 100% 100%; box-shadow: inset -6px 0 0 rgba(0,0,0,0.03), -3px 0 0 #efe2c8, -5px 0 0 #e2d2b4; }
.sheet-right { left: calc(var(--B) + var(--P)); background: url(images/paper-flat-right.jpg) center / 100% 100%; box-shadow: 3px 0 0 #efe2c8, 5px 0 0 #e2d2b4; }
.gutter {
  position: absolute;
  top: var(--B);
  left: calc(var(--B) + var(--P) - 40px);
  width: 80px;
  height: calc(var(--P) * 4 / 3);
  background: linear-gradient(90deg, transparent, rgba(80, 45, 20, 0.22) 45%, rgba(60, 30, 10, 0.35) 50%, rgba(80, 45, 20, 0.22) 55%, transparent);
  pointer-events: none;
  z-index: 3;
}
/* page content is laid out at 480 x 640 and scaled to the page */
.page-scale {
  position: absolute;
  left: 0;
  top: 0;
  width: 480px;
  height: 640px;
  transform-origin: 0 0;
  transform: scale(calc(var(--P) / 480px));
}
.sheet .page-inner, .leaf .page-inner, .cover-back .page-inner { inset: 46px 42px 40px 46px; }
.sheet-left .page-inner, .leaf-back .page-inner, .cover-back .page-inner { inset: 46px 50px 40px 40px; }
.sheet-right .page-inner, .leaf-front .page-inner { inset: 46px 40px 40px 50px; }

/* closed: only the front cover shows, centred */
.book.is-closed .board-left,
.book.is-closed .sheet,
.book.is-closed .gutter { opacity: 0; }

.book.opening .board-left,
.book.opening .sheet-left { opacity: 0; }

/* the front cover, hinged on the spine */
.cover {
  position: absolute;
  top: 0;
  left: calc(var(--P) + var(--B));
  width: calc(var(--P) + var(--B));
  height: 100%;
  transform-origin: 0 50%;
  transform-style: preserve-3d;
  z-index: 5;
}
.book.is-open .cover { display: none; }
.face {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
}
.cover-front {
  border-radius: 2px 10px 10px 2px;
  background: #5b2f1a;
  background-image:
    radial-gradient(ellipse at 35% 25%, rgba(255, 220, 180, 0.18), transparent 60%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.35), transparent 8%);
  box-shadow: 0 18px 40px rgba(20, 10, 4, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.cover-frame {
  width: 74%;
  height: 80%;
  border: 2px solid rgba(226, 186, 112, 0.75);
  outline: 1px solid rgba(226, 186, 112, 0.45);
  outline-offset: 6px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #e9c27a;
  text-align: center;
  font-size: calc(var(--P) / 480px * 24px);
}
.cover-small { font: italic 0.9em Georgia, serif; opacity: 0.85; }
.cover-title { font-family: "Caveat", cursive; font-weight: 700; font-size: 3.4em; line-height: 1; margin: 0.15em 0; }
.cover-flourish { font-size: 1.6em; opacity: 0.8; }
.cover-sub { font-family: "Caveat", cursive; font-weight: 700; font-size: 2em; margin-top: 0.2em; letter-spacing: 2px; }
.cover-back {
  transform: rotateY(180deg);
  border-radius: 10px 2px 2px 10px;
  background: #5b2f1a;
}
.cover-back-paper {
  position: absolute;
  top: var(--B);
  right: 0;
  width: var(--P);
  height: calc(var(--P) * 4 / 3);
  background: url(images/paper-flat-left.jpg) center / 100% 100%;
  overflow: hidden;
}

/* a page in the middle of turning: front and back faces */
.leaf {
  position: absolute;
  top: var(--B);
  width: var(--P);
  height: calc(var(--P) * 4 / 3);
  transform-style: preserve-3d;
  z-index: 6;
}
.leaf-fwd  { left: calc(var(--B) + var(--P)); transform-origin: 0 50%; }
.leaf-back-dir { left: var(--B); transform-origin: 100% 50%; }
.leaf .face { overflow: hidden; isolation: isolate; }
.leaf-front { background: url(images/paper-flat-right.jpg) center / 100% 100%; }
.leaf-back  { background: url(images/paper-flat-left.jpg)  center / 100% 100%; transform: rotateY(180deg); }
.leaf-back-dir .leaf-front { background-image: url(images/paper-flat-left.jpg); }
.leaf-back-dir .leaf-back  { background-image: url(images/paper-flat-right.jpg); }
.leaf .shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(60, 30, 10, 0.5), rgba(60, 30, 10, 0.1));
}
.leaf-back .shade, .leaf-back-dir .leaf-front .shade { background: linear-gradient(270deg, rgba(60, 30, 10, 0.5), rgba(60, 30, 10, 0.1)); }

/* click the outer edge of a page to turn it */
.edge {
  position: absolute;
  top: var(--B);
  width: 14%;
  height: calc(var(--P) * 4 / 3);
  z-index: 4;
  cursor: pointer;
}
.edge-left  { left: var(--B);  background: linear-gradient(90deg, rgba(0,0,0,0.0), transparent); }
.edge-right { right: var(--B); }
.edge:hover { background: linear-gradient(270deg, rgba(90, 50, 20, 0.12), transparent); }
.edge-left:hover { background: linear-gradient(90deg, rgba(90, 50, 20, 0.12), transparent); }
.book.is-closed .edge { display: none; }

/* the contents bookmark: a ribbon tab at the top of the book */
.ribbon {
  position: absolute;
  top: calc(var(--B) * -1.6);
  left: calc(var(--B) + var(--P) * 1.62);
  z-index: 7;
  padding: 0.5em 0.7em 1.1em;
  border: 0;
  background: #a8322a;
  color: #fbeee0;
  font: 700 calc(var(--P) / 480px * 18px) / 1 "Caveat", cursive;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}
.ribbon:hover { transform: translateY(-3px); }
.book.is-closed .ribbon { display: none; }

/* buttons */
.ctrl {
  position: fixed;
  z-index: 40;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(251, 246, 234, 0.92);
  color: #4a3320;
  font: 30px/1 Georgia, serif;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.ctrl:hover:not(:disabled) { transform: scale(1.08); }
.ctrl:disabled { opacity: 0.3; cursor: default; }
.ctrl-close { top: 16px; right: 16px; font-size: 28px; }
.ctrl-prev  { left: 14px;  top: 50%; margin-top: -23px; }
.ctrl-next  { right: 14px; top: 50%; margin-top: -23px; }
@media (max-aspect-ratio: 9/10) {
  .ctrl-prev, .ctrl-next { top: auto; bottom: 18px; margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .open-hint { animation: none; }
  .book { transition: none; }
}

.recipe-link { margin: 0.2em 0 0.6em; font-size: 0.9em; }
.recipe-link a { color: #8a4b1c; text-decoration: underline wavy rgba(138, 75, 28, 0.5); text-underline-offset: 5px; }

/* ============ Home button: always there, on the stand and in the open book ============ */
.home-btn {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 46px;
  height: 46px;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  background: rgba(251, 246, 234, 0.94);
  color: #4a3320;
  font: italic 16px/1 Georgia, serif;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.home-btn svg { width: 22px; height: 22px; flex: none; }
.home-btn:hover, .home-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  outline: none;
}

.ctrl-sound { top: 16px; right: 72px; display: flex; align-items: center; justify-content: center; }
.ctrl-sound svg { width: 22px; height: 22px; }

/* ============ Stand view from All Recipes: a scrapbook of stickers ============ */
.collage { height: 100%; display: flex; flex-direction: column; align-items: center; }
.collage-title {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 3.2em;
  line-height: 0.95;
  text-align: center;
  color: #5a2a14;
  margin: 0.2em 0 0.3em;
}
.collage-art {
  flex: 1;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 6px 10px;
}
.collage-sticker { width: 42%; height: auto; transform: rotate(var(--r)); mix-blend-mode: multiply; }
.collage-left .collage-sticker { width: 40%; }
.collage-note { font-size: 1.1em; margin: 0.3em 0 0.6em; opacity: 0.8; font-style: italic; }

/* ---------- arriving from All Recipes: dimmed pages, "Click to browse" in the middle ---------- */
.stand-dim {
  position: absolute;
  left: 236px; top: 552px; width: 570px; height: 360px;
  background: radial-gradient(ellipse 60% 62% at 50% 50%, rgba(45, 26, 12, 0.52), rgba(45, 26, 12, 0.26) 70%, transparent 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.stand-browse .stand-dim { opacity: 1; }
.stand-browse .open-hint { left: 519px; top: 712px; }

/* ---------- "Contents" tag at the foot of each recipe (same style as the stickers' flags) ---------- */
.to-contents, .to-contents:hover {
  align-self: flex-start;
  margin-top: 0.9em;
  padding: 0.28em 1em 0.3em 1.5em;
  background: #b5452b;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 4px);
  color: #fff8ec;
  font: 700 1.15em/1.1 "Caveat", "Segoe Print", cursive;
  text-decoration: none;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 14% 100%, 0 50%);   /* points back */
  transform: rotate(-1.5deg);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.to-contents:hover { background-color: #c9523a; transform: rotate(-1.5deg) translateX(-3px); }
.recipe-right .recipe-tip + .to-contents { margin-top: 0.8em; }
/* the tag does the job now, so no ribbon at the top of the book */
.ribbon { display: none; }

/* darken just the paper itself, traced to the outline of the open pages in the photo */
.stand-dim {
  display: block;
  position: absolute;
  left: 0; top: 0; width: 1536px; height: 1024px;
  background: rgb(176, 140, 110);
  mix-blend-mode: multiply;
  clip-path: polygon(253px 585px, 300px 572px, 390px 567px, 450px 570px, 492px 581px, 560px 568px, 650px 564px, 721px 572px, 739px 606px, 757px 700px, 774px 800px, 785px 865px, 700px 871px, 620px 875px, 546px 891px, 470px 879px, 380px 875px, 300px 879px, 288px 874px, 275px 760px, 261px 650px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.stand-browse .stand-dim { opacity: 1; }

/* no darkening on the book's pages */
.stand-dim, .stand-browse .stand-dim { display: none !important; }

.recipe-tip a { color: #8a4b1c; text-decoration: underline wavy rgba(138, 75, 28, 0.5); text-underline-offset: 4px; }

/* ============ Guides ============ */
.guide-page p { margin: 0 0 0.55em; font-size: 0.88em; line-height: 1.38; }
.guide-page .recipe-h.guide-big { font-size: 1.9em; margin-top: 0; }
.guide-card {
  margin: 0 0 0.5em; padding: 0.35em 0.6em 0.4em;
  border-left: 3px solid rgba(138, 75, 28, 0.45);
  background: rgba(138, 75, 28, 0.06);
  border-radius: 0 8px 8px 0;
  font-size: 0.86em; line-height: 1.3;
}
.guide-card b, .guide-card span, .guide-card i { display: block; }
.guide-card b { font-family: "Caveat", cursive; font-size: 1.35em; color: #5a2a14; line-height: 1.05; }
.guide-card i { opacity: 0.75; }
.guide-fix { margin: 0 0 0.7em; }
.guide-fix > b { display: block; font-family: "Caveat", cursive; font-size: 1.45em; color: #5a2a14; line-height: 1.05; margin-bottom: 0.15em; }
.guide-fix p { margin: 0 0 0.3em; font-size: 0.84em; }
.guide-fix p span { font-weight: 700; color: #8a4b1c; margin-right: 0.3em; }
.guide-list { margin: 0 0 0.5em; padding-left: 1.1em; font-size: 0.86em; line-height: 1.36; }
.guide-list li { margin-bottom: 0.5em; }
.guide-list li::marker { color: #8a4b1c; }
.guide-recipes { list-style: none; margin: 0 0 0.6em; padding: 0; font-size: 0.95em; line-height: 1.5; }
.guide-recipes li::before { content: "~ "; opacity: 0.5; }
.guide-recipes a, .guide-page .guide-sources a { color: #8a4b1c; text-decoration: underline wavy rgba(138, 75, 28, 0.5); text-underline-offset: 4px; }
.soon-link em { font-style: normal; font-size: 0.8em; opacity: 0.6; margin-left: 0.3em; }
.guide-page .guide-sources { margin-top: auto; font-size: 0.68em; line-height: 1.35; opacity: 0.8; }
.guide-page .recipe-tip { margin-top: auto; }

.guide-list b { font-weight: 700; color: #5a2a14; }

/* a hack inside a bigger recipe gets a light box */
.ingredients li.hack, .method li.hack {
  background: rgba(255, 249, 232, 0.7);
  padding-left: 0.4em; padding-right: 0.4em;
}
.ingredients li.hack-first { border-radius: 8px 8px 0 0; padding-top: 0.2em; }
.ingredients li.hack-last { border-radius: 0 0 8px 8px; padding-bottom: 0.25em; margin-bottom: 0.2em; }
.ingredients li.hack-first.hack-last, .method li.hack { border-radius: 8px; }
.method li.hack { padding: 0.25em 0.35em 0.3em 0.4em; margin-left: -0.2em; }
.ingredients li.hack:first-child, .ingredients li.hack { outline: none; }
.hack-tag { font: 700 0.95em "Caveat", cursive; color: #b5452b; margin-left: 0.25em; }
.guide-page p b { font-weight: 700; color: #5a2a14; }
.recipe-video a::before { content: "\25B6\FE0E  "; font-size: 0.8em; }
.guide-fix a { color: #8a4b1c; text-decoration: underline wavy rgba(138, 75, 28, 0.5); text-underline-offset: 4px; }

/* ============ Verity's own handwriting font for the cookbook headings ============ */
@font-face { font-family: "Me"; src: url(fonts/Me-Regular.otf) format("opentype"); font-display: swap; }
.book-title, .contents-title, .recipe-title, .collage-title, .cover-title {
  font-family: "Me", "Caveat", cursive;     /* Caveat fills in for numbers and & */
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.book-title { font-size: 2.1em; line-height: 1.05; }
.contents-title { font-size: 1.75em; }
.recipe-title { font-size: 1.75em; line-height: 1.08; }
.collage-title { font-size: 2.2em; line-height: 1.02; }
.cover-title { font-size: 2.4em; line-height: 1.02; }
.stage { will-change: transform; }   /* smooth sideways swiping on phones */
