@font-face { font-family: Bricolage; src: url('assets/bricolage-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('assets/dm-sans-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('assets/dm-sans-600.woff2') format('woff2'); font-weight: 600 800; font-display: swap; }

:root {
  color-scheme: light;
  --cream: #fff9ea;
  --ink: #35223d;
  --ink-strong: #211227;
  --tomato: #e94b35;
  --red: #a72d20;
  --lilac: #c5adeb;
  --mint: #c6ddcf;
  --butter: #ffd35c;
  --violet: #7952af;
  --surface-input: #fffdf6;
  --surface-result: #fffaf0;
  --text-secondary: #625069;
  --placeholder: #6f6073;
  --line: #35223d35;
  --shadow-paper: 0 16px 38px #35223d18;
  --display: Bricolage, 'Arial Black', sans-serif;
  --body: 'DM Sans', 'Segoe UI', sans-serif;
  --radius: 14px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 16px/1.6 var(--body); }
::selection { color: var(--cream); background: var(--ink); }
body, .dialog-scroll, .original-scroll { scrollbar-color: var(--violet) var(--cream); scrollbar-width: thin; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; }
button, input { font: inherit; color: inherit; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: .25em; }
img { display: block; max-width: 100%; }
svg { display: block; }
[hidden] { display: none !important; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.wrap { width: min(1280px, calc(100% - 80px)); margin-inline: auto; }
:is(a, button, input, [tabindex]):focus-visible { outline: 3px solid var(--ink-strong); outline-offset: 4px; box-shadow: 0 0 0 4px var(--cream); }
.button:focus-visible { box-shadow: 0 0 0 4px var(--cream); }
.skip-link { position: fixed; top: 12px; left: 16px; z-index: 30; padding: 12px 20px; background: var(--ink); color: var(--cream); transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.js-only { display: none !important; }
.enhanced .js-only { display: revert !important; }
.enhanced .button.js-only, .enhanced .text-link.js-only { display: inline-flex !important; }

.button { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 24px; border: 0; border-radius: 9px; padding: 14px 22px; font-size: 15px; font-weight: 600; line-height: 1.4; text-decoration: none; transition: background-color 180ms, color 180ms; }
.button .icon { width: 22px; height: 22px; }
.button-ink { background: var(--ink); color: var(--cream); }
.button-ink:hover { background: var(--ink-strong); }
.button-red { background: var(--red); color: var(--cream); }
.button-red:hover { background: var(--ink); }
.button-paper { background: var(--cream); color: var(--ink); }
.button-paper:hover { background: var(--butter); }
.button:active { background: var(--ink-strong); color: var(--cream); }
.button-small { min-height: 46px; padding: 10px 18px; font-size: 14px; gap: 18px; }
.text-link { display: inline-flex; align-items: center; justify-content: flex-start; gap: 12px; min-height: 44px; padding: 8px 0; border: 0; background: transparent; font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 5px; }
.text-link .icon { width: 20px; height: 20px; }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 84px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-family: var(--display); font-size: 26px; letter-spacing: -.03em; text-decoration: none; white-space: nowrap; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; background: var(--tomato); color: var(--cream); border-radius: 11px; transform: rotate(-7deg); }
.brand-mark .icon { width: 29px; height: 29px; }
.brand-dot { color: var(--tomato); margin-left: -7px; }
.site-header nav { display: flex; gap: 32px; font-size: 14px; font-weight: 600; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }

/* The single paper is gathered here, then travels into the real result below. */
.opening { position: relative; isolation: isolate; overflow: clip; }
.opening-pin { display: grid; grid-template-columns: 1fr 1.03fr; gap: 24px; align-items: center; min-height: 700px; padding-block: 40px; }
.enhanced .opening { height: calc(100svh + 400px); }
.enhanced .opening-pin { position: sticky; top: 0; height: max(640px, calc(100svh - 84px)); min-height: 0; }
.hero-copy { position: relative; z-index: 2; padding-bottom: 12px; }
h1 { font-size: clamp(64px, 6.5vw, 94px); line-height: .98; letter-spacing: -.035em; }
h1 > span { display: inline-block; position: relative; color: var(--tomato); padding-bottom: 14px; }
h1 > span::after { content: ''; position: absolute; bottom: 0; left: 2%; width: 94%; height: 8px; border-top: 3px solid currentColor; border-bottom: 1px solid currentColor; border-radius: 50%; transform: rotate(-1deg); }
.hero-description { font-size: 18px; line-height: 1.65; max-width: 395px; margin: 29px 0 25px; }
.hero-description strong { font-weight: 600; }
.availability { font-size: 13px; margin-top: 13px; color: var(--text-secondary); }
.scroll-cue { display: flex; align-items: center; gap: 18px; font-size: 13px; margin-top: 44px; }
.scroll-cue span { color: var(--red); font-size: 25px; }
.hero-stage { min-width: 0; }
.kitchen-stage { position: relative; height: 540px; isolation: isolate; }
.scene-disc { position: absolute; inset: 4% 0 4% 0; border-radius: 48% 52% 43% 57%; background: var(--butter); z-index: -1; }
.kitchen-illustration { position: absolute; width: 112%; max-width: none; height: 100%; object-fit: contain; left: -6%; top: 0; }
.source-note { position: absolute; top: 65px; left: -10px; width: 126px; padding: 7px 7px 10px; background: var(--cream); transform: rotate(-13deg); box-shadow: var(--shadow-paper); z-index: 2; }
.source-note img { width: 100%; height: 144px; object-fit: cover; object-position: top; }
.source-note span { display: block; font-size: 10px; line-height: 1.4; text-align: center; padding-top: 7px; }
.source-slip { position: absolute; display: flex; gap: 9px; padding: 15px; border-radius: 7px; font-size: 12px; line-height: 1.5; box-shadow: var(--shadow-paper); z-index: 2; }
.source-slip .icon { width: 22px; height: 22px; }
.source-roll { background: var(--lilac); right: -8px; top: 0; transform: rotate(9deg); }
.source-ebook { background: var(--mint); right: -6px; bottom: 25px; transform: rotate(-7deg); }
.paper-origin { position: absolute; left: 50%; top: 0; width: 340px; max-width: 90%; transform: translateX(-50%); z-index: 3; }
.story-paper { visibility: hidden; }
.enhanced .story-paper { visibility: visible; opacity: 0; transform-origin: center; }
.enhanced .journey-progress { display: flex !important; align-items: center; justify-content: center; gap: 9px; margin-top: 8px; }
.journey-progress button { display: flex; gap: 7px; align-items: center; min-height: 44px; border: 0; padding: 7px 3px; background: none; font-size: 12px; }
.journey-progress button > span { width: 23px; height: 23px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font-variant-numeric: tabular-nums; }
.journey-progress button[aria-pressed=true] { font-weight: 600; }
.journey-progress button[aria-pressed=true] > span { background: var(--ink); color: var(--cream); }
.journey-progress i { width: 22px; height: 1px; background: var(--ink); opacity: .4; }
.scene-caption { min-height: 40px; max-width: 370px; margin: 8px auto 0; text-align: center; font-size: 13px; line-height: 1.5; }

.recipe-paper { padding: 24px; background: var(--surface-result); border-radius: var(--radius); color: var(--ink); box-shadow: var(--shadow-paper); }
.paper-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.paper-top > span:first-child { display: flex; align-items: center; gap: 7px; font-weight: 600; }
.paper-top .icon { width: 21px; height: 21px; }
.paper-top > span:last-child { background: var(--butter); padding: 3px 9px; border-radius: 20px; }
.recipe-paper h3 { font-size: 42px; line-height: 1.02; margin: 22px 0 15px; }
.paper-time { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.paper-time .icon { width: 16px; height: 16px; }
.paper-time > span { margin-left: auto; }
.paper-ingredients { display: grid; gap: 8px; border-block: 1px solid var(--line); padding: 16px 0; margin: 18px 0 14px; }
.paper-ingredients p { display: flex; justify-content: space-between; gap: 9px; font-size: 12px; }
.paper-ingredients strong { font-weight: 600; white-space: nowrap; }
.result-tags { display: flex; flex-wrap: wrap; gap: 7px; font-size: 12px; }
.result-tags > span { background: var(--mint); border-radius: 20px; padding: 3px 9px; }
.paper-source { display: flex; align-items: center; gap: 9px; font-size: 12px; line-height: 1.4; margin: 17px 0; }
.paper-source img { width: 30px; height: 40px; border-radius: 2px; object-fit: cover; }
.source-link { margin-left: auto; align-self: center; background: none; border: 0; font-size: 12px; padding: 8px 0 8px 8px; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }
.open-recipe, .paper-action { display: flex; width: 100%; justify-content: space-between; }
.paper-action { border-top: 1px solid var(--line); padding: 14px 0 0; font-size: 12px; min-height: 44px; justify-content: center; align-items: center; }
.flight-paper { position: fixed; top: 0; left: 0; z-index: 8; pointer-events: none; transform-origin: top left; margin: 0; }

/* The operative area stays still while the surrounding paper arrives. */
.demo-section { position: relative; background: var(--lilac); padding: 88px 0 80px; }
.demo-layout { display: grid; grid-template-columns: 1fr 400px; align-items: start; gap: clamp(40px, 8vw, 140px); }
.demo-controls { min-width: 0; max-width: 560px; }
.demo-controls h2 { font-size: clamp(44px, 4.6vw, 64px); }
.demo-intro { font-size: 17px; line-height: 1.6; max-width: 390px; margin: 20px 0 28px; }
#recipe-search-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 9px; }
.search-input-wrap { display: flex; align-items: center; position: relative; gap: 12px; background: var(--surface-input); border: 1.5px solid var(--ink); border-radius: 9px; padding: 0 55px 0 17px; min-height: 58px; }
.search-input-wrap input { background: none; width: 100%; min-width: 0; padding: 12px 0; height: 56px; font-size: 16px; border: 0; caret-color: var(--red); }
.search-input-wrap input::placeholder { color: var(--placeholder); opacity: 1; }
.search-input-wrap input:focus-visible { outline: none; box-shadow: none; }
.search-input-wrap:focus-within { outline: 3px solid var(--ink-strong); outline-offset: 3px; box-shadow: 0 0 0 3px var(--cream); }
.search-input-wrap input::-webkit-search-cancel-button { appearance: none; }
.clear-search { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; border-radius: 6px; }
.clear-search:hover { background: var(--lilac); }
.enhanced .search-suggestions { display: flex !important; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; font-size: 13px; }
.search-suggestions button { min-height: 44px; padding: 8px 13px; background: transparent; border: 1px solid var(--ink); border-radius: 25px; font-size: 13px; transition: background 160ms; }
.search-suggestions button:hover, .search-suggestions button[aria-pressed=true] { background: var(--cream); }
.results-status { min-height: 25px; font-size: 14px; margin-top: 14px; }
.enhanced .category-controls { display: flex !important; gap: 5px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 13px; }
.category-controls button { border: 0; min-height: 44px; border-radius: 7px; padding: 9px 13px; background: none; font-size: 13px; }
.category-controls button[aria-pressed=true] { background: var(--cream); font-weight: 600; }
.category-controls button > span { margin-left: 10px; }
.demo-scope { font-size: 13px; line-height: 1.7; max-width: 430px; margin-top: 25px; }
.demo-scope strong { display: block; }
.result-dock { min-width: 0; position: relative; }
.search-result { transition: background-color 180ms; }
.search-result.has-match { background: var(--surface-input); }
.dock-caption { font-size: 12px; text-align: center; margin-top: 17px; }
mark { background: var(--butter); color: var(--ink-strong); padding: 0 2px; border-radius: 3px; }
.search-result.match-feedback { animation: match-ink 220ms var(--ease); }
@keyframes match-ink { from { background-color: var(--butter); } to { background-color: var(--surface-input); } }
.empty-results { background: var(--cream); border-radius: var(--radius); padding: 36px 28px; min-height: 460px; }
.empty-results h3 { font-size: 39px; margin: 28px 0 20px; }
.empty-results p { font-size: 16px; }
.empty-results .text-link { margin-top: 24px; }
.empty-mark .icon { width: 38px; height: 38px; }

.sharing { background: var(--tomato); color: var(--ink-strong); padding: 88px 0 90px; overflow: clip; }
.sharing-layout { display: grid; grid-template-columns: .95fr 1.05fr; gap: 45px; align-items: center; }
.share-copy h2 { font-size: clamp(46px, 4.5vw, 64px); }
.share-lead { font-size: 22px; line-height: 1.6; margin: 26px 0 18px; }
.share-description { font-size: 16px; max-width: 365px; line-height: 1.7; margin-bottom: 27px; }
.share-scope { font-size: 13px; max-width: 330px; line-height: 1.6; margin-top: 14px; }
.share-stage { position: relative; height: 460px; isolation: isolate; }
.sharing-books { position: absolute; left: -4%; bottom: 14px; width: 108%; max-width: none; height: auto; }
.share-arc { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; fill: none; stroke: var(--ink-strong); stroke-width: 1.5px; }
.share-path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.travelling-recipe { position: absolute; top: 0; left: 0; width: 180px; padding: 20px; background: var(--cream); border-radius: 10px; box-shadow: var(--shadow-paper); color: var(--ink); transform: translate(150px, 40px) rotate(-5deg); }
.travelling-recipe > span { display: flex; align-items: center; gap: 6px; font-size: 12px; border-bottom: 1px solid var(--line); padding-bottom: 11px; }
.travelling-recipe .icon { width: 18px; height: 18px; }
.travelling-recipe h3 { font-size: 27px; margin: 17px 0 13px; }
.travelling-recipe p { font-size: 11px; line-height: 1.5; }
.book-label { position: absolute; bottom: -8px; font-size: 12px; font-weight: 600; text-align: center; width: 50%; }
.book-from-label { left: 0; }
.book-to-label { right: 0; }
.closing { padding: 80px 0 85px; background: var(--butter); }
.closing-layout { display: flex; justify-content: space-between; align-items: center; gap: 45px; }
.closing h2 { font-size: clamp(54px, 6.6vw, 92px); line-height: .99; }
.closing h2 span { color: var(--red); }
.closing-layout > div > p { font-size: 17px; line-height: 1.7; margin-bottom: 25px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 22px; padding-block: 32px; }
.site-footer > p { font-size: 13px; }
.site-footer .brand { font-size: 23px; }
.site-footer .text-link .icon { transform: rotate(-90deg); }

/* Modal chrome never scrolls: reading, sharing, and source inspection retain an exit. */
dialog { width: 1040px; max-width: calc(100% - 32px); max-height: calc(100svh - 32px); height: min(900px, calc(100svh - 48px)); border: 0; border-radius: var(--radius); padding: 0; background: var(--cream); color: var(--ink); overflow: hidden; box-shadow: 0 24px 100px #21122740; }
dialog[open] { display: flex; flex-direction: column; }
dialog::backdrop { background: #211227ad; }
body.dialog-open { overflow: hidden; }
.dialog-toolbar { flex-shrink: 0; min-height: 66px; padding: 10px 16px 10px 26px; display: flex; align-items: center; justify-content: space-between; gap: 15px; background: var(--cream); border-bottom: 1px solid var(--line); }
.dialog-toolbar > span { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; }
.dialog-close { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: var(--lilac); border-radius: 50%; flex-shrink: 0; }
.dialog-close:hover { background: var(--butter); }
.dialog-scroll { overflow-y: auto; min-height: 0; padding: 30px 36px 40px; overscroll-behavior: contain; }
.dialog-scroll:focus-visible, .original-scroll:focus-visible { outline-offset: -4px; box-shadow: none; }
.recipe-heading { padding-bottom: 28px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.recipe-heading h2 { font-size: 50px; margin-bottom: 18px; }
.recipe-heading h2 > span { color: var(--red); }
.dialog-timing { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; margin-block: 16px 22px; }
.dialog-timing > span { margin-left: 12px; }
.dialog-timing .icon { width: 18px; height: 18px; }
.recipe-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 23px; }
.recipe-actions .button { min-height: 46px; font-size: 14px; }
.full-recipe { display: grid; grid-template-columns: .9fr 1.15fr; gap: 35px; align-items: start; }
.full-recipe h3 { font-size: 29px; margin: 30px 0 15px; }
.full-recipe h3:first-child { margin-top: 0; }
.full-recipe ul { list-style: none; padding: 0; margin: 0; }
.full-recipe ul > li { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.full-recipe ul strong { max-width: 48%; text-align: right; font-size: 15px; font-weight: 600; }
.recipe-qualification { font-size: 13px; line-height: 1.7; color: var(--text-secondary); margin-top: 14px; }
.recipe-method ol { list-style: none; padding: 0; margin: 0; counter-reset: method; }
.recipe-method li { position: relative; counter-increment: method; font-size: 16px; line-height: 1.8; padding: 0 0 23px 38px; }
.recipe-method li::before { content: counter(method); position: absolute; left: 0; top: 1px; width: 27px; height: 27px; display: grid; place-items: center; font-size: 13px; font-weight: 600; background: var(--lilac); border-radius: 50%; }
.source-proof { display: flex; gap: 22px; align-items: center; padding: 24px; margin-top: 28px; background: var(--mint); border-radius: 12px; }
.source-proof > img { width: 75px; height: 100px; object-fit: cover; flex-shrink: 0; }
.source-proof h3 { font-size: 25px; margin-bottom: 10px; }
.source-proof p { font-size: 14px; line-height: 1.65; max-width: 550px; }
.source-proof .text-link { margin-top: 8px; }
.recipient-note { font-size: 13px; margin-bottom: 20px; }
.save-note { font-size: 13px; margin-top: 10px; }
.shared-save-status { background: var(--mint); border-radius: 8px; font-size: 14px; padding: 14px; margin-top: 20px; }
.original-dialog { width: 1080px; }
.original-tools { flex-shrink: 0; display: flex; justify-content: space-between; gap: 15px; padding: 16px 26px; border-bottom: 1px solid var(--line); align-items: center; }
.original-tools h2 { font-size: 25px; }
.original-tools > div { display: flex; gap: 22px; flex-wrap: wrap; }
.original-scroll { overflow: auto; min-height: 0; padding: 24px; overscroll-behavior: contain; background: var(--lilac); }
.original-scroll img { width: min(100%, 680px); height: auto; margin: auto; }
.original-scroll.zoomed img { max-width: none; width: max(1086px, 150%); }
.noscript-recipe { padding-block: 40px; }
.noscript-recipe summary { padding: 15px 0; font-size: 20px; font-weight: 600; cursor: pointer; }
.noscript-recipe .full-recipe { margin-top: 25px; }

@media (max-width: 1100px) and (min-width: 761px) {
  .wrap { width: calc(100% - 56px); }
  h1 { font-size: clamp(53px, 6.4vw, 70px); }
  .kitchen-stage { height: 450px; }
  .paper-origin { width: 310px; top: 0; }
  .story-paper { padding: 18px; }
  .story-paper h3 { font-size: 34px; margin-block: 15px 12px; }
  .story-paper .paper-ingredients { margin: 12px 0; padding: 11px 0; gap: 6px; }
  .story-paper .paper-source { margin-block: 10px; }
  .story-paper .paper-action { min-height: 42px; padding: 10px 0 0; font-size: 12px; }
  .source-note { left: -5px; width: 103px; top: 50px; }
  .source-note img { height: 120px; }
  .source-roll { right: -12px; padding: 11px; }
  .hero-description { font-size: 16px; }
  .scene-caption { font-size: 12px; }
  .journey-progress { gap: 4px; }
  .journey-progress i { width: 12px; }
  .journey-progress button { font-size: 11px; }
  .demo-layout { grid-template-columns: 1fr 360px; gap: 38px; }
  .sharing-layout { gap: 24px; }
  .share-stage { height: 410px; }
  .share-lead { font-size: 20px; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { height: 76px; gap: 15px; }
  .brand { font-size: 23px; gap: 6px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
  .brand-mark .icon { width: 25px; height: 25px; }
  .site-header nav { display: none; }
  .button-small { font-size: 12px; padding: 10px 13px; gap: 10px; }
  .button-small .icon { width: 18px; height: 18px; }
  .opening-pin, .enhanced .opening-pin { position: relative; height: auto; display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding-top: 32px; padding-bottom: 32px; min-height: 0; }
  .enhanced .opening { height: auto; }
  h1 { font-size: clamp(46px, 10.3vw, 72px); line-height: 1; letter-spacing: -.03em; }
  h1 > span { padding-bottom: 12px; }
  .hero-description { font-size: 16px; line-height: 1.65; max-width: 450px; margin: 20px 0 19px; }
  .hero-copy .button { min-height: 50px; }
  .availability { font-size: 12px; margin-top: 11px; }
  .scroll-cue { display: none; }
  .hero-stage { width: min(540px, 100%); align-self: center; }
  .kitchen-stage { height: 420px; margin-top: 20px; }
  .kitchen-illustration { width: 110%; left: -5%; }
  .source-note { width: 105px; top: 42px; left: -6px; }
  .source-note img { height: 125px; }
  .source-note span { font-size: 9px; }
  .source-roll { right: 0; top: 0; font-size: 11px; padding: 11px; }
  .source-ebook { bottom: 10px; right: 2px; padding: 11px; font-size: 11px; }
  .source-slip .icon { width: 19px; height: 19px; }
  .paper-origin { width: 300px; top: 0; max-width: 90%; }
  .story-paper { padding: 20px; }
  .story-paper h3 { font-size: 36px; margin-top: 17px; }
  .story-paper .paper-ingredients { padding: 12px 0; margin-top: 14px; }
  .story-paper .paper-source { margin-block: 12px; }
  .story-paper .paper-ingredients, .story-paper .paper-source { display: none; }
  .story-paper .result-tags { margin-block: 18px; }
  .story-paper .paper-action { min-height: 42px; padding: 10px 0 0; font-size: 12px; }
  .journey-progress { max-width: 370px; margin-inline: auto; }
  .journey-progress button { font-size: 11px; gap: 5px; }
  .journey-progress i { width: 15px; }
  .scene-caption { font-size: 12px; min-height: 36px; margin-top: 3px; }
  .demo-section { padding: 35px 0 38px; }
  .demo-layout { display: flex; flex-direction: column; align-items: stretch; gap: 0; max-width: 540px; }
  .demo-controls { display: contents; }
  .demo-controls h2 { order: 0; font-size: clamp(32px, 7vw, 42px); margin-bottom: 21px; }
  .demo-intro { display: none; }
  #recipe-search-form { order: 1; }
  #recipe-search-form label { font-size: 13px; margin-bottom: 8px; }
  .search-input-wrap { min-height: 56px; padding-left: 13px; gap: 9px; }
  .search-input-wrap > .icon { width: 20px; height: 20px; }
  .search-input-wrap input { height: 54px; }
  .search-suggestions { order: 2; margin-top: 11px !important; gap: 7px !important; }
  .search-suggestions button { padding: 8px 11px; font-size: 12px; }
  .results-status { order: 3; font-size: 13px; min-height: 23px; margin-top: 12px; }
  .category-controls { order: 4; border-top: 0 !important; padding-top: 0 !important; margin-top: 5px !important; margin-bottom: 14px; }
  .result-dock { order: 5; }
  .demo-scope { order: 6; margin-top: 22px; font-size: 12px; }
  .search-result { display: grid; grid-template-columns: 66px 1fr; gap: 0 15px; padding: 19px; box-shadow: 0 9px 22px #35223d12; }
  .search-result .paper-top { grid-column: 1 / -1; margin-bottom: 17px; padding-bottom: 12px; font-size: 11px; }
  .search-result h3 { grid-column: 2; font-size: 28px; margin: 0 0 10px; }
  .search-result h3 br { display: none; }
  .search-result .paper-time { grid-column: 2; font-size: 11px; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
  .search-result .paper-time > span { margin-left: 0; }
  .search-result .paper-time .icon { width: 14px; height: 14px; }
  .search-result .paper-ingredients { display: none; }
  .search-result .result-tags { grid-column: 2; font-size: 11px; gap: 5px; }
  .search-result .result-tags > span { padding: 3px 7px; }
  .search-result .paper-source { grid-column: 1; grid-row: 2 / 5; align-self: start; margin: 2px 0 0; }
  .search-result .paper-source img { width: 66px; height: 93px; }
  .search-result .paper-source > span, .search-result .source-link { display: none !important; }
  .search-result .open-recipe { grid-column: 1 / -1; min-height: 48px; margin-top: 19px; font-size: 14px; }
  .dock-caption { display: none; }
  .empty-results { min-height: 260px; padding: 25px; }
  .empty-results h3 { font-size: 32px; margin-block: 15px; }
  .empty-results h3 br { display: none; }
  .empty-results .empty-mark { display: none; }
  .sharing { padding: 45px 0 44px; }
  .sharing-layout { grid-template-columns: 1fr; gap: 25px; max-width: 540px; }
  .share-copy h2 { font-size: clamp(40px, 9vw, 52px); }
  .share-lead { font-size: 19px; margin: 20px 0 13px; }
  .share-description { font-size: 15px; margin-bottom: 22px; max-width: 440px; }
  .share-copy .button { min-height: 50px; }
  .share-scope { font-size: 12px; }
  .share-stage { height: 330px; }
  .travelling-recipe { width: 136px; padding: 15px; }
  .travelling-recipe > span { font-size: 10px; gap: 5px; padding-bottom: 9px; }
  .travelling-recipe .icon { width: 15px; height: 15px; }
  .travelling-recipe h3 { font-size: 22px; margin: 13px 0 10px; }
  .travelling-recipe p { font-size: 10px; }
  .book-label { font-size: 11px; bottom: -3px; }
  .sharing-books { bottom: 8px; }
  .closing { padding: 46px 0 45px; }
  .closing-layout { display: block; }
  .closing h2 { font-size: clamp(47px, 11vw, 69px); }
  .closing-layout > div { margin-top: 25px; }
  .closing-layout > div > p { font-size: 15px; margin-bottom: 20px; }
  .site-footer { padding-block: 25px; gap: 15px; }
  .site-footer > p { display: none; }
  dialog { max-width: calc(100% - 20px); max-height: calc(100svh - 20px); height: calc(100svh - 20px); border-radius: 12px; }
  .dialog-toolbar { min-height: 64px; padding: 10px 12px 10px 20px; }
  .dialog-scroll { padding: 24px 20px 28px; }
  .recipe-heading { padding-bottom: 23px; margin-bottom: 25px; }
  .recipe-heading h2 { font-size: 36px; line-height: 1.06; }
  .recipe-heading h2 > span { display: block; }
  .dialog-timing { font-size: 13px; gap: 7px; }
  .dialog-timing > span { margin-left: 0; }
  .recipe-actions { align-items: flex-start; flex-direction: column; gap: 9px; }
  .recipe-actions .text-link { font-size: 13px; }
  .full-recipe { grid-template-columns: 1fr; gap: 30px; }
  .full-recipe h3 { font-size: 28px; }
  .full-recipe ul > li { font-size: 16px; }
  .full-recipe ul strong { font-size: 15px; }
  .recipe-method li { font-size: 16px; padding-bottom: 24px; line-height: 1.8; }
  .source-proof { padding: 20px 15px; gap: 14px; align-items: flex-start; }
  .source-proof > img { width: 55px; height: 74px; }
  .source-proof h3 { font-size: 22px; }
  .source-proof p { font-size: 13px; }
  .source-proof .text-link { font-size: 13px; }
  .original-tools { display: block; padding: 16px 20px 10px; }
  .original-tools h2 { font-size: 24px; }
  .original-tools > div { gap: 12px; margin-top: 5px; }
  .original-tools .text-link { font-size: 12px; }
  .original-scroll { padding: 15px; }
}

@media (max-width: 370px) {
  .wrap { width: calc(100% - 32px); }
  .brand { font-size: 20px; }
  .brand-mark { width: 30px; height: 32px; }
  .button-small { font-size: 11px; gap: 7px; padding-inline: 10px; }
  .site-header { gap: 9px; }
  h1 { font-size: 44px; }
  .kitchen-stage { height: 390px; }
  .paper-origin { width: 280px; }
  .story-paper { padding: 16px; }
  .story-paper h3 { font-size: 33px; }
  .story-paper .paper-time, .story-paper .paper-ingredients p { font-size: 11px; }
  .journey-progress button { font-size: 10px; gap: 4px; }
  .journey-progress i { width: 8px; }
  .source-note { width: 87px; }
  .source-note img { height: 105px; }
  .source-roll, .source-ebook { font-size: 10px; }
  .search-suggestions > span { font-size: 12px; }
  .search-suggestions button { font-size: 11px; padding-inline: 9px; }
  .search-result { grid-template-columns: 55px 1fr; gap: 0 12px; padding: 16px; }
  .search-result h3 { font-size: 26px; }
  .search-result .paper-source img { width: 55px; height: 80px; }
  .share-stage { height: 295px; }
  .travelling-recipe { width: 120px; padding: 12px; }
  .travelling-recipe h3 { font-size: 20px; }
  .travelling-recipe > span { font-size: 9px; }
  .travelling-recipe p { font-size: 9px; }
  .recipe-heading h2 { font-size: 32px; }
  .dialog-scroll { padding-inline: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .enhanced .opening { height: auto; }
  .enhanced .opening-pin { position: relative; height: auto; padding-block: 45px; }
  .kitchen-illustration { opacity: .14; }
  .source-note, .source-slip { display: none; }
  .scene-disc { background: var(--lilac); }
  .enhanced .story-paper { opacity: 1; transform: none; }
  .enhanced .journey-progress { display: none !important; }
  .scene-caption { margin-top: 12px; }
  .flight-paper { display: none; }
  .scroll-cue { display: none; }
  .search-result.match-feedback { animation: none; }
}
