:root {
  --table: #e3e0d5;
  --paper: #faf6ea;
  --ink: #353b37;
  --muted: #666b60;
  --red: #783c43;
  --blue: #34576c;
  --rule: #c9c6b7;
  --serif: "Newsreader", Georgia, serif;
  --sans: Arial, Helvetica, sans-serif;
  --hand: "Caveat", cursive;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.print-hint { display: none; }
html { background: var(--table); }
body { margin: 0; color: var(--ink); font: 15px/1.5 var(--sans); background: radial-gradient(ellipse at 40% 5%, #f0eee5 0, transparent 65%), url("./assets/linen.svg") var(--table); }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button, a, input, textarea { touch-action: manipulation; }
button { border-radius: 0; }
a { color: var(--blue); text-underline-offset: 4px; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
button:disabled { cursor: default; opacity: .6; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 15px; top: -80px; padding: 12px 18px; z-index: 100; background: var(--blue); color: white; }
.skip-link:focus { top: 10px; }
.instruments { display: flex; gap: 18px; align-items: center; position: absolute; top: 18px; left: 32px; z-index: 5; color: #545b52; }
.quiet-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 0; background: transparent; border: 0; font-size: 12px; }
.quiet-button:hover, .text-button:hover { color: var(--red); }
.record-icon { width: 30px; height: 30px; border: 1px solid #838a7b; border-radius: 50%; display: grid; place-items: center; font-size: 18px; line-height: 1; }
.music-button[aria-pressed="true"] .record-icon { background: var(--red); color: var(--paper); border-color: var(--red); }
.kitchen-clock { display: flex; gap: 8px; align-items: center; font-size: 12px; }
.clock-caption { font-family: var(--serif); font-style: italic; font-size: 16px; }
#clock { font-variant-numeric: tabular-nums; }
.cover-toggle { position: absolute; top: 18px; right: 32px; z-index: 5; }
.cover-toggle > span:first-child { font-size: 20px; }
main { padding: 100px 40px 26px; min-height: 100svh; outline: none; overflow: clip; }
.book-scene { width: min(1120px, 100%); margin: 0 auto; position: relative; perspective: 2400px; background: var(--red); padding: 9px 10px 11px 8px; border-radius: 4px 9px 9px 4px; box-shadow: 4px 5px 0 #e4decf, 5px 6px 0 #b5afa2, 7px 9px 0 #e4decf, 8px 10px 0 #a7a296, 0 25px 36px -20px #43443a94, -6px 6px 15px #55524633; }
.book-scene::after { content: ""; position: absolute; width: 28px; height: 94px; background: linear-gradient(90deg, #70333b, #9b515a 45%, #73353e); top: -8px; right: 63px; z-index: -1; clip-path: polygon(0 0,100% 0,100% 100%,50% 86%,0 100%); }
.page-edges { position: absolute; inset: 12px 5px 5px 5px; border: 1px solid #c7c1b2; border-radius: 5px; background: repeating-linear-gradient(0deg, #c1bcaf 0 1px, #eee9dc 1px 3px); }
.book-pages { position: relative; background: var(--paper); box-shadow: 1px 0 2px #292b2733; border-radius: 2px 5px 5px 2px; }
.spread { display: grid; grid-template-columns: 1fr 1fr; position: relative; margin: 0; }
.spread::after { content: ""; width: 36px; position: absolute; left: calc(50% - 18px); top: 0; bottom: 0; background: linear-gradient(90deg, transparent, #aaa48c18 20%, #89836a2b 47%, #655f4838 50%, #b0ab941c 56%, #fff5 85%, transparent); pointer-events: none; z-index: 2; }
.leaf { position: relative; padding: 40px 48px 67px; min-width: 0; background: url("./assets/paper.svg"); }
.left-leaf { background-color: #f8f4e8; border-radius: 2px 0 0 2px; }
.right-leaf { background-color: #fbf7ec; border-radius: 0 5px 5px 0; }
.brand { display: flex; align-items: center; gap: 13px; color: var(--red); }
.brand img { width: 25px; height: 38px; }
.brand span { font-family: var(--serif); font-style: italic; font-size: 17px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(56px, 5.8vw, 82px); letter-spacing: -.055em; line-height: 1; margin: 19px 0 8px; color: var(--red); }
.title-dot { color: #87917b; }
.book-intro { font: italic 28px/1.1 var(--serif); color: #696e5e; }
.field label, .ingredient-inputs label { display: block; font-size: 12px; color: #525b50; }
input { min-width: 0; width: 100%; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; padding: 9px 0 7px; background: transparent; font: 24px/1.15 var(--serif); color: var(--blue); min-height: 46px; box-shadow: none; }
input::placeholder { color: #596350; opacity: 1; font-style: italic; }
input:focus { border-bottom-color: var(--blue); }
input[aria-invalid="true"] { border-bottom: 2px solid var(--red); }
.dish-field { margin-top: 29px; }
.dish-field input { font-size: 26px; }
.yield-fields { display: grid; grid-template-columns: 1fr 30px 1fr; align-items: end; gap: 16px; margin-top: 25px; }
.number-line { display: flex; align-items: center; border-bottom: 1px solid var(--rule); }
.number-line input { border: 0; font-size: 40px; line-height: 1; padding: 9px 0 0; height: 53px; }
.number-line span { font: italic 16px var(--serif); color: var(--muted); padding: 12px 0 0 4px; }
.yield-arrow { color: #758065; font: 32px var(--serif); align-self: center; margin-top: 14px; }
.multipliers { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin-top: 6px; font-size: 11px; }
.multipliers > span { margin-right: 4px; color: var(--muted); }
.multipliers button { min-height: 44px; padding: 5px 9px; background: none; border: 0; color: var(--blue); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #a9b3b1; }
.multipliers button:hover { background: #dae0d84f; }
.samples { margin-top: 17px; border-top: 1px solid var(--rule); padding-top: 12px; }
.samples p { font: italic 17px var(--serif); color: var(--muted); margin-bottom: 3px; }
.samples button { border: 0; border-bottom: 1px dotted #c7c6b4; background: none; display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left; min-height: 44px; padding: 8px 0; font: 18px var(--serif); }
.samples button:last-child { border-bottom: 0; }
.samples button span { font: 16px var(--sans); color: #7a836d; }
.samples button:hover { color: var(--red); }
.hand-note { font: 24px/1 var(--hand); color: #426277; transform: rotate(-3deg); margin: 18px 0 0; }
.hand-arrow { display: inline-block; margin-left: 12px; transform: rotate(8deg); }
.page-heading { padding-top: 5px; }
.section-caption { font: 11px/1.4 var(--sans); letter-spacing: .075em; color: #606859; text-transform: uppercase; }
.page-heading h2, .page-heading h3 { font-size: 38px; line-height: 1.08; letter-spacing: -.025em; margin: 12px 0 14px; }
.page-heading > p { font: 18px/1.3 var(--serif); color: var(--muted); }
.ingredient-fields { border: 0; padding: 0; margin: 30px 0 0; min-width: 0; }
.ingredient-field { display: flex; align-items: start; gap: 15px; margin-bottom: 22px; }
.ingredient-index { font: italic 23px var(--serif); color: #777e6a; padding-top: 21px; width: 26px; flex: 0 0 26px; }
.ingredient-inputs { flex: 1; min-width: 0; }
.ingredient-inputs > input { padding-top: 5px; font-size: 23px; }
.amount-field { display: flex; align-items: center; gap: 8px; }
.amount-field label { white-space: nowrap; font-size: 11px; }
.amount-field input { font-size: 22px; min-height: 44px; padding: 6px 0 3px; border-bottom: 1px dotted var(--rule); }
.amount-help { font-size: 12px; line-height: 1.5; color: #656e60; margin: 0 0 18px 41px; }
.primary-button, .outline-button { min-height: 48px; padding: 12px 20px; font-size: 13px; border: 1px solid var(--red); display: inline-flex; align-items: center; justify-content: center; gap: 20px; text-decoration: none; transition: background 160ms, box-shadow 160ms; }
.primary-button { color: #fff8ee; background: var(--red); box-shadow: 0 3px 0 #572c32; }
.primary-button:hover { background: #613039; box-shadow: 0 4px 0 #48242a; }
.outline-button { color: var(--red); background: transparent; }
.outline-button:hover { background: #783c430a; }
#scale-button { width: 100%; }
.primary-button > span { font-size: 20px; line-height: .8; }
.storage-note { font-size: 11px; text-align: center; color: #656e60; padding-top: 16px; }
.page-footer { display: flex; align-items: center; justify-content: space-between; position: absolute; bottom: 12px; left: 48px; right: 48px; border-top: 1px solid #c5c2b3; min-height: 35px; padding-top: 2px; font: italic 13px var(--serif); color: #535d49; }
.text-button { border: 0; background: none; padding: 9px 0; min-height: 44px; color: var(--blue); text-decoration: underline; text-underline-offset: 4px; font-size: 12px; }
.page-footer .text-button { font-size: 11px; min-height: 44px; }
.table-notes { max-width: 1120px; margin: 24px auto 0; display: flex; gap: 15px; justify-content: space-between; align-items: center; color: #4f5949; font-size: 11px; }
.table-notes p > span { margin: 0 8px; }
.table-notes .text-button { color: #4f5949; font-size: 11px; }
.notice { background: #fff7ec; color: #6e3036; border-left: 3px solid var(--red); padding: 12px 14px; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.error-notice { margin-bottom: 14px; }
.storage-warning { margin: 10px auto; max-width: 1120px; }
.book-cover { position: absolute; inset: 0; width: 100%; height: 100%; border: 1px solid #542b33; border-left: 18px solid #5d3036; border-radius: 3px 9px 9px 3px; background: radial-gradient(ellipse at 65% 30%, #a260642b, transparent 65%), url("./assets/cloth.svg") #783c43; color: #eddabb; z-index: 4; transform-origin: left center; transform: rotateY(0deg); backface-visibility: hidden; display: flex; align-items: center; justify-content: center; flex-direction: column; box-shadow: inset 8px 0 10px #32162066, inset -4px 0 6px #3f1b2455, 6px 8px 10px #4e3d3533; transition: transform 1300ms cubic-bezier(.22,.74,.2,1), visibility 0s; padding: 45px 26px; }
.cover-border { position: absolute; inset: 25px 26px 25px 15px; border: 1px solid #d8b78b70; outline: 1px solid #d8b78b38; outline-offset: -5px; pointer-events: none; }
.cover-topline { font: 14px var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.cover-sprig { height: 170px; width: 110px; margin: 30px 0 8px; }
.cover-title { font: 94px/.95 var(--serif); letter-spacing: -.04em; text-shadow: 0 1px 0 #331b26; }
.cover-subtitle { font: italic 25px var(--serif); margin-top: 16px; }
.cover-hint { font: 13px var(--sans); margin-top: 65px; border-bottom: 1px solid #dec29c77; padding-bottom: 6px; }
.book-scene.is-open .book-cover { transform: rotateY(-165deg); visibility: hidden; pointer-events: none; transition: transform 1300ms cubic-bezier(.22,.74,.2,1), visibility 0s 1300ms; }
.page-turn { position: absolute; z-index: 3; top: 9px; left: 50%; bottom: 11px; right: 10px; pointer-events: none; visibility: hidden; transform-origin: left center; background: linear-gradient(90deg, #d8d2bd, #f4f0e3 15%, #fcf9ed); backface-visibility: hidden; }
.page-turn.turning { visibility: visible; animation: turn 700ms cubic-bezier(.3,.6,.3,1) both; }
@keyframes turn { 0% { transform: rotateY(0); box-shadow: -8px 12px 12px #5e594933; } 100% { transform: rotateY(-180deg); box-shadow: -14px 4px 20px #514b3922; } }
.result-summary .brand { padding-bottom: 28px; }
.result-caption { display: block; margin: 5px 0 13px; }
#result-title { color: var(--red); font-size: 49px; letter-spacing: -.035em; line-height: 1.02; overflow-wrap: anywhere; }
.result-yield { display: flex; gap: 18px; align-items: center; margin: 28px 0 32px; }
.result-yield > div:not(.scale-stamp) { display: flex; flex-direction: column; align-items: start; font-size: 11px; color: var(--muted); }
.result-yield strong { font: 46px/1.2 var(--serif); color: var(--blue); overflow-wrap: anywhere; }
.result-yield .yield-arrow { margin-top: 7px; font-size: 23px; }
.scale-stamp { width: 96px; height: 96px; flex: 0 0 96px; border: 3px double #865455; border-radius: 50%; color: var(--red); transform: rotate(-9deg); display: flex; align-items: center; justify-content: center; flex-direction: column; margin-left: auto; }
.scale-stamp span { font: 10px var(--sans); }
.scale-stamp strong { overflow-wrap: anywhere; text-align: center; color: var(--red); font: 26px/1.3 var(--serif); max-width: 82px; }
.math-note { padding: 17px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-bottom: 26px; }
#math-line { font: 22px/1.35 var(--serif); color: var(--blue); margin: 10px 0; overflow-wrap: anywhere; }
.small-note { font: 12px/1.5 var(--sans); color: var(--muted); }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.result-actions .primary-button { flex: 1; }
.edit-button { margin-top: 12px; }
.recipe-reference { display: flex; align-items: center; gap: 18px; border-top: 1px dashed var(--rule); padding-top: 20px; margin: 20px 0 20px; }
.recipe-reference > div:last-child { display: flex; flex-direction: column; gap: 3px; font-size: 11px; color: #616759; }
.barcode { width: 105px; height: 43px; flex: 0 0 105px; opacity: .6; background: repeating-linear-gradient(90deg, #353b37 0 2px, transparent 2px 4px, #353b37 4px 5px, transparent 5px 8px, #353b37 8px 11px, transparent 11px 13px, #353b37 13px 14px, transparent 14px 17px, #353b37 17px 19px, transparent 19px 23px); }
.result-ingredients { list-style: none; margin: 30px 0 22px; padding: 0; }
.result-ingredient { border-top: 1px solid var(--rule); padding: 15px 0 17px; break-inside: avoid; }
.result-ingredient h4 { margin: 0 0 10px; font: 22px/1.2 var(--serif); overflow-wrap: anywhere; }
.ingredient-comparison { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 10px; }
.ingredient-comparison > div { min-width: 0; }
.ingredient-comparison dt { font-size: 10px; color: #646d5e; margin-bottom: 4px; }
.ingredient-comparison dd { font: 19px/1.2 var(--serif); color: #626b5f; margin: 0; overflow-wrap: anywhere; }
.ingredient-comparison .scaled-value dd { color: var(--red); font-weight: 600; font-size: 24px; }
.ingredient-comparison dl { margin: 0; min-width: 0; }
.note-indicator { display: block; font-size: 10px; font-family: var(--sans); color: #656e60; padding-top: 5px; }
.cooking-note { border-top: 1px solid #bbc1ac; padding-top: 15px; }
.handwritten { display: block; color: var(--blue); font: 25px/1 var(--hand); transform: rotate(-2deg); margin-bottom: 12px; }
.cooking-note > p:not(.small-note) { font: 19px/1.25 var(--serif); margin-bottom: 10px; }
.wiki-link { font-size: 11px; display: inline-flex; gap: 8px; align-items: center; min-height: 44px; margin-top: 7px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 15px); opacity: 0; visibility: hidden; transition: opacity 200ms, transform 200ms, visibility 0s 200ms; z-index: 50; background: #354b42; color: #fff; padding: 12px 20px; font-size: 13px; width: max-content; max-width: calc(100% - 28px); box-shadow: 0 5px 20px #34352a40; }
.toast.visible { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition-delay: 0s; }
dialog { border: 1px solid #aaa58f; padding: 32px; color: var(--ink); background: var(--paper); width: min(520px, calc(100% - 32px)); max-height: calc(100svh - 50px); box-shadow: 0 25px 80px #31352a55; }
dialog::backdrop { background: #303a3480; backdrop-filter: blur(3px); }
dialog h2 { font-size: 34px; line-height: 1.05; margin: 10px 0 18px; color: var(--red); }
dialog p { font-size: 14px; line-height: 1.55; margin-bottom: 18px; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 25px; }
dialog textarea { width: 100%; padding: 12px; border: 1px solid #a2aa9b; background: #fffdf6; font: 14px/1.5 var(--sans); margin-bottom: 20px; resize: vertical; }
@media (min-width: 1600px) { main { padding-top: max(100px, calc((100svh - 800px) / 2)); } }
@media (max-width: 1050px) { .number-line input { font-size: 33px; height: 48px; } .number-line span { padding-top: 8px; } main { padding-left: 25px; padding-right: 25px; } .leaf { padding-left: 32px; padding-right: 32px; } .page-footer { left: 32px; right: 32px; } .yield-fields { gap: 10px; grid-template-columns: 1fr 22px 1fr; } .number-line span { font-size: 14px; } h1 { font-size: 64px; } .result-yield { gap: 12px; } .scale-stamp { width: 80px; height: 80px; flex-basis: 80px; } .scale-stamp span { font-size: 9px; } .scale-stamp strong { font-size: 22px; max-width: 70px; } }
@media (max-width: 800px) {
  main { padding: 84px 20px 20px; }
  .instruments { left: 22px; top: 12px; gap: 14px; }
  .cover-toggle { right: 22px; top: 12px; }
  .clock-caption { display: none; }
  .leaf { padding: 30px 24px 64px; }
  .page-footer { left: 24px; right: 24px; }
  h1 { font-size: 57px; }
  .brand span { font-size: 15px; }
  .book-intro { font-size: 25px; }
  .page-heading h2, .page-heading h3 { font-size: 31px; }
  .page-heading > p { font-size: 17px; }
  .yield-fields { grid-template-columns: 1fr 1fr; gap: 12px; }
  .yield-arrow { display: none; }
  .number-line { flex-wrap: wrap; }
  .number-line input { font-size: 33px; height: 48px; }
  .number-line span { padding: 0 0 4px; }
  .multipliers { gap: 1px; }
  .multipliers button { padding-left: 5px; padding-right: 5px; }
  .multipliers > span { flex-basis: 100%; margin-top: 8px; }
  .ingredient-field { gap: 9px; }
  .ingredient-index { width: 19px; flex-basis: 19px; font-size: 20px; }
  .ingredient-inputs > input { font-size: 21px; }
  .amount-field input { font-size: 20px; }
  .amount-help { margin-left: 28px; }
  .result-yield { flex-wrap: wrap; gap: 15px; }
  .result-yield strong { font-size: 36px; }
  #result-title { font-size: 40px; }
  .ingredient-comparison { gap: 7px; }
  .ingredient-comparison dd { font-size: 17px; }
  .ingredient-comparison .scaled-value dd { font-size: 21px; }
  .scale-stamp { margin-left: 0; }
  .recipe-reference { gap: 12px; flex-wrap: wrap; }
}
@media (max-width: 620px) {
  main { padding: 80px 12px 16px; }
  .instruments { left: 15px; gap: 12px; }
  .cover-toggle { right: 15px; }
  .quiet-button { font-size: 11px; }
  .kitchen-clock { font-size: 10px; }
  .music-button { gap: 6px; }
  .record-icon { width: 26px; height: 26px; font-size: 16px; }
  .book-scene { padding: 7px 8px 9px 6px; }
  .spread { grid-template-columns: 1fr; }
  .spread::after { display: none; }
  .leaf { padding: 28px 27px 66px; }
  .left-leaf { border-radius: 3px 3px 0 0; box-shadow: inset -7px 0 10px -10px #443b23; }
  .right-leaf { border-radius: 0 0 4px 2px; border-top: 1px solid #d4d0be; background-image: linear-gradient(180deg, #bbb59c24, transparent 25px), url("./assets/paper.svg"); }
  .page-footer { left: 27px; right: 27px; }
  h1 { font-size: 74px; margin-top: 20px; }
  .book-intro { font-size: 27px; }
  .brand span { font-size: 16px; }
  .dish-field { margin-top: 28px; }
  .dish-field input { font-size: 24px; }
  .yield-fields { grid-template-columns: 1fr; gap: 6px; }
  .number-line { flex-wrap: nowrap; max-width: 280px; }
  .number-line input { font-size: 38px; }
  .number-line span { padding: 12px 0 0 2px; font-size: 14px; }
  .multipliers { gap: 1px; margin-top: 7px; }
  .multipliers > span { flex-basis: auto; margin-top: 0; }
  .multipliers button { padding: 5px 7px; }
  .samples { margin-top: 16px; }
  .hand-note { margin-bottom: 0; }
  .page-heading h2, .page-heading h3 { font-size: 35px; }
  .ingredient-fields { margin-top: 26px; }
  .ingredient-field { gap: 12px; margin-bottom: 22px; }
  .ingredient-index { flex-basis: 23px; width: 23px; font-size: 22px; }
  .ingredient-inputs > input { font-size: 24px; }
  .amount-field input { font-size: 23px; }
  .amount-help { margin-left: 35px; font-size: 12px; }
  .cover-topline { font-size: 10px; }
  .cover-title { font-size: 64px; }
  .cover-subtitle { font-size: 21px; }
  .cover-sprig { margin-top: 32px; }
  .book-cover { padding: 90px 20px 60px; justify-content: start; border-left-width: 13px; }
  .cover-border { inset: 18px 17px 18px 9px; }
  .cover-hint { margin-top: 45px; }
  .table-notes { align-items: start; flex-direction: column; gap: 0; margin-top: 24px; }
  .table-notes p { font-size: 10px; }
  .table-notes .text-button { padding-top: 12px; }
  .page-turn { left: 6px; top: 7px; bottom: 9px; right: 8px; }
  .result-summary .brand { padding-bottom: 25px; }
  #result-title { font-size: 46px; }
  .result-yield { flex-wrap: wrap; gap: 12px; }
  .scale-stamp { margin-left: auto; width: 82px; height: 82px; flex-basis: 82px; }
  .recipe-reference { flex-wrap: nowrap; margin-bottom: 5px; }
  .result-measures { padding-top: 31px; }
  .ingredient-comparison dd { font-size: 19px; }
  .ingredient-comparison .scaled-value dd { font-size: 23px; }
  .result-actions { gap: 10px; }
  .result-actions .primary-button, .result-actions .outline-button { padding-left: 14px; padding-right: 14px; }
  dialog { padding: 25px; }
}
@media (max-width: 359px) {
  #result-title { font-size: 38px; }
  .instruments { gap: 9px; }
  .music-button #music-label { max-width: 33px; line-height: 1.1; }
  .leaf { padding-left: 21px; padding-right: 21px; }
  .page-footer { left: 21px; right: 21px; }
  h1 { font-size: 64px; }
  .number-line { flex-wrap: wrap; }
  .number-line span { padding: 0 0 4px; }
  .yield-fields { gap: 6px; grid-template-columns: 1fr; }
  .multipliers > span { flex-basis: 100%; margin-top: 6px; }
  .ingredient-comparison { gap: 7px; }
  .ingredient-comparison dd { font-size: 17px; }
  .ingredient-comparison .scaled-value dd { font-size: 21px; }
  .result-yield { gap: 8px; }
  .result-yield strong { font-size: 32px; }
  .scale-stamp { width: 72px; height: 72px; flex-basis: 72px; }
  .scale-stamp strong { font-size: 22px; max-width: 64px; }
  .scale-stamp span { font-size: 8px; }
  .result-actions { flex-direction: column; }
  .recipe-reference { flex-wrap: wrap; }
  .cover-title { font-size: 55px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .book-scene.is-open .book-cover { transform: none; }
  .page-turn { display: none; }
}
@media print {
  @page { size: A4; margin: 16mm; }
  html, body { background: white !important; color: #161b17; height: auto; min-height: 0; }
  .instruments, .cover-toggle, .book-cover, .book-scene::after, .book-binding, .page-edges, .page-turn, .skip-link, .table-notes, .storage-warning, .toast, dialog, noscript, #recipe-form, .page-footer, .result-actions, #edit-button, .wiki-link { display: none !important; }
  main { padding: 0 !important; min-height: 0; overflow: visible; }
  .book-scene { padding: 0; margin: 0; width: 100%; max-width: none; box-shadow: none; background: none; border-radius: 0; perspective: none; }
  .book-pages { background: none; box-shadow: none; }
  #recipe-result:not([hidden]) { display: block !important; }
  body:not(.has-result) .print-hint { display: block; margin: 24px; font: 18px/1.5 var(--serif); }
  .spread::after { display: none; }
  .leaf { display: block; padding: 0; background: none !important; border: 0; box-shadow: none; }
  .result-summary .brand { padding: 0 0 14px; }
  .brand img { width: 20px; height: 26px; }
  .brand span { font-size: 14px; }
  .result-caption { font-size: 9px; margin: 8px 0; }
  #result-title { font-size: 33px; color: #161b17; }
  .result-yield { margin: 14px 0; gap: 20px; }
  .result-yield strong { font-size: 30px; color: #161b17; }
  .scale-stamp { width: 66px; height: 66px; flex-basis: 66px; margin-left: 0; }
  .scale-stamp strong { font-size: 19px; max-width: 59px; }
  .scale-stamp span { font-size: 8px; }
  .math-note { margin: 0 0 15px; padding: 10px 0; break-inside: avoid; }
  #math-line { font-size: 16px; margin: 5px 0; }
  .math-note .small-note { font-size: 10px; }
  .recipe-reference { border: 0; padding: 0; margin: 12px 0 18px; }
  .barcode { width: 85px; height: 25px; flex-basis: 85px; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .recipe-reference > div:last-child { font-size: 9px; flex-direction: row; flex-wrap: wrap; gap: 4px 12px; }
  .recipe-reference .small-note { font-size: 9px; }
  .result-measures .page-heading .section-caption, .result-measures .page-heading > h3 { display: none; }
  .result-measures .page-heading > p { font-size: 17px; color: #161b17; }
  .result-ingredients { margin: 14px 0; }
  .result-ingredient { padding: 10px 0; }
  .result-ingredient h4 { font-size: 18px; margin-bottom: 7px; }
  .ingredient-comparison { grid-template-columns: 1fr 1fr 1fr; }
  .ingredient-comparison dd, .ingredient-comparison .scaled-value dd { font-size: 16px; color: #161b17; }
  .ingredient-comparison dt { font-size: 9px; }
  .cooking-note { break-inside: avoid; padding-top: 9px; }
  .handwritten { font-size: 21px; margin-bottom: 7px; }
  .cooking-note > p:not(.small-note) { font-size: 15px; margin-bottom: 6px; }
  .cooking-note .small-note { font-size: 10px; }
}
.not-found { max-width: 950px; margin: 0 auto; padding-top: 18vh; }
.not-found h1 { margin-bottom: 40px; }

#result-factor.wide-factor { font-size: 13px; line-height: 1.3; white-space: nowrap; overflow-wrap: normal; }

.scale-stamp:has(.wide-factor) { width: 96px; height: 96px; flex-basis: 96px; row-gap: 12px; }
