/* Duck v04 only. Natural image ratios and content-driven scene heights. */
@font-face {
  font-family: 'Salon Cover';
  src: url('/assets/fonts/story-cormorant-garamond.woff') format('woff');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Salon Book';
  src: url('/assets/fonts/duck-eb-garamond.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Salon Book';
  src: url('/assets/fonts/duck-eb-garamond-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
.page-story {
  --serif: 'Salon Book', Georgia, 'Times New Roman', serif;
  --paper: #f8efdb;
  --story-ink: #181710;
  --story-gold: #8c622c;
  --story-rule: #b08a4a;
  --story-blue: #002438;
  --story-gold-light: #d8b47c;
  --header-height: 2.875rem;
  --header-offset: calc(var(--header-height) + env(safe-area-inset-top, 0px));
  --body-size: 1.1875rem;
  --book-width: 600px;
  --gutter: 26px;
  color: var(--story-ink);
  font-family: var(--serif);
  font-synthesis: none;
  background-color: var(--paper);
  background-image: radial-gradient(ellipse at 18% 12%, #fffaf06b, transparent 68%), radial-gradient(ellipse at 85% 72%, #e9d9b126, transparent 65%);
}
.page-story.large-type { --body-size: 1.4375rem; }
/* Keep the pre-existing cover typography independent of this dish's book face. */
.page-story .salon-intro { --serif: 'Salon Cover', Georgia, 'Times New Roman', serif; }
html.has-story { scroll-padding-top: 70px; }
.page-story .masthead { background: #0b102d; color: var(--paper); border-bottom: 1px solid var(--story-rule); }
.page-story .masthead-inner { display: flex; flex-wrap: wrap; max-width: var(--book-width); min-height: var(--header-height); height: auto; padding-inline: var(--gutter); gap: 0 8px; }
.page-story .brand { width: auto; min-width: 0; flex: 1 0 auto; font-family: var(--serif); }
.page-story .brand span:first-child { display: none; }
.page-story .brand span:last-child { margin: 0; font: 400 1rem/1.2 var(--serif); letter-spacing: .018em; color: inherit; }
.page-story .header-menu { font: 400 1rem/1.2 var(--serif); gap: 7px; }
.page-story .header-menu .arrow { width: 18px; height: 18px; stroke-width: 1; }
.page-story .languages { border: 0; padding: 0; gap: 0; margin-left: auto; }
.page-story .language-link { position: relative; min-width: 44px; min-height: 44px; font: 400 .875rem/1.2 var(--serif); letter-spacing: 0; color: var(--paper); }
.page-story .language-link + .language-link::before { content: '/'; position: absolute; left: 0; color: var(--story-gold-light); }
.page-story .language-link.selected { background: transparent; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--story-gold-light); }
.page-story .reading-progress { display: none; }
/* Preserve chapter keyboard navigation without adding a second visible header. */
.story-progress:not(:focus-within) { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
.story-progress:focus-within { position: sticky; top: var(--header-offset); z-index: 59; background: #0b102d; color: var(--paper); }
.story-progress-inner { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.story-progress a { display: inline-flex; min-height: 44px; align-items: center; padding: 12px; font-size: 1rem; }
.scene-number { display: none; }
.story-page { width: 100%; max-width: var(--book-width); margin-inline: auto; }
.page-story .duck-story.reader-layout { display: block; width: 100%; margin: 0; padding: 0; min-width: 0; }
.story-scene { position: relative; scroll-margin-top: calc(var(--header-offset) + 18px); }
.story-inner { padding-inline: var(--gutter); }
.story-copy { font: 400 var(--body-size)/1.5 var(--serif); letter-spacing: -.005em; overflow-wrap: break-word; text-wrap: pretty; }
.story-copy p + p { margin-top: 1.15em; }
.page-story [data-passage] { scroll-margin-top: calc(var(--header-offset) + 22px); }
.story-kicker { color: var(--story-gold); font: 400 .8125rem/1.4 var(--serif); text-transform: uppercase; letter-spacing: .065em; }
.story-heading { margin: 13px 0 0; color: var(--story-ink); font: 400 clamp(2rem,9.4vw,2.65rem)/1.1 var(--serif); letter-spacing: -.027em; overflow-wrap: break-word; text-wrap: pretty; }
.story-motto { color: var(--story-gold); font: italic 400 clamp(2.05rem,9.6vw,2.8rem)/1.12 var(--serif); letter-spacing: -.022em; }
.story-art { position: relative; min-width: 0; opacity: 1; }
.story-art img { display: block; width: 100%; height: auto; max-width: 540px; margin-inline: auto; }
.story-ornament { display: block; width: 180px; height: 21px; margin: 28px auto 0; color: var(--story-rule); }
.story-intro-grid { padding-top: 9px; padding-bottom: 18px; }
.story-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 3px 6px; min-height: 42px; }
.story-meta .story-kicker { font-size: .73rem; letter-spacing: .035em; }
.story-meta .story-kicker span { padding-inline: 2px; }
.story-meta .story-kicker i { font-style: normal; padding-inline: 3px; }
.story-tools { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.story-readtime { font: 400 .75rem/1.4 var(--serif); white-space: nowrap; }
.page-story .type-toggle { position: relative; min-width: 38px; min-height: 44px; padding: 6px 0 6px 9px; border: 0; border-radius: 0; font: 400 1.125rem/1.2 var(--serif); }
.page-story .type-toggle::before { content: ''; position: absolute; left: 0; top: calc(50% - 7.5px); height: 15px; border-left: 1px solid var(--story-rule); }
.page-story .type-toggle[aria-pressed='true'] { background: #0b102d; color: var(--paper); }
.story-title { margin: 5px 0 0; font-weight: 400; }
.story-title-main { display: block; max-width: 7.8ch; color: var(--story-ink); font: 400 clamp(3.8rem,18.5vw,5.3rem)/.92 var(--serif); letter-spacing: -.035em; overflow-wrap: anywhere; }
.story-ornament--title { width: 94px; height: 18px; margin: 8px auto 7px; }
.story-title-detail { display: block; font: italic 400 clamp(1.3rem,6.15vw,1.8rem)/1.18 var(--serif); letter-spacing: -.015em; text-wrap: balance; overflow-wrap: break-word; }
.story-hero-art { margin: 18px calc(-1 * var(--gutter)) 5px; }
.story-opening-copy .story-motto { margin-bottom: 18px; color: var(--story-ink); }
.story-scroll { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; margin-top: 2px; color: var(--story-gold); font: 400 1rem/1.4 var(--serif); }
.story-scroll .arrow { width: 17px; height: 17px; transform: rotate(90deg); }
.story-scene--history { color: #f4ecd9; background: var(--story-blue); }
.story-history-grid { padding-top: 72px; padding-bottom: 64px; }
.story-scene--history .story-kicker { color: var(--story-gold-light); }
.story-scene--history .story-heading { color: var(--paper); font-size: clamp(2.2rem,11.2vw,3.25rem); line-height: 1.08; }
.story-ornament--history { margin: 24px 0 26px; width: 150px; color: var(--story-gold-light); }
.story-landscape-art { margin: 22px calc(-1 * var(--gutter)) 22px; }
.story-landscape-art img { mask-image: linear-gradient(to bottom,transparent,#000 4%,#000 96%,transparent); -webkit-mask-image: linear-gradient(to bottom,transparent,#000 4%,#000 96%,transparent); }
.story-history-ending .story-ornament { width: 230px; max-width: 75%; margin-top: 36px; color: var(--story-gold-light); }
.story-flavour-grid { padding-top: 42px; padding-bottom: 35px; }
.story-flavour-art { margin: 0 calc(-1 * var(--gutter)) 28px; }
.story-flavour-copy { margin-top: 21px; }
.story-frame { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--story-rule); pointer-events: none; }
.story-balance { position: relative; display: grid; place-items: center; margin-top: 30px; padding: 22px 20px 24px; text-align: center; }
.story-balance .story-motto { color: var(--story-ink); font-size: clamp(1.9rem,8.6vw,2.35rem); overflow-wrap: anywhere; max-width: 100%; }
.story-balance .story-motto span { display: block; }
.story-tasting { margin-top: 24px; }
.story-tasting > p { margin-top: 9px; font: 400 var(--body-size)/1.5 var(--serif); text-wrap: pretty; }
.story-finish-grid { padding-top: 10px; padding-bottom: 0; }
.story-potato-art { margin: 0 calc(-1 * var(--gutter)) 29px; }
.story-finish-copy { margin-top: 23px; }
.story-finish-copy .story-ornament { margin-top: 34px; margin-bottom: 22px; width: 92%; height: 20px; }
.story-next { margin-inline: -3px; }
.story-next-card { position: relative; display: grid; grid-template-columns: 38% minmax(0,1fr); align-items: center; gap: 11px; padding: 17px 15px 20px; color: var(--story-ink); transition: background-color .2s ease; }
.story-next-meta { grid-column: 1/-1; text-align: center; font: 400 .8125rem/1.4 var(--serif); }
.story-next-motto { grid-column: 1/-1; margin: 7px 0 15px; text-align: center; font: italic 400 1.0625rem/1.25 var(--serif); text-wrap: pretty; }
.story-next-art { align-self: end; }
.story-next-art img { max-width: 180px; }
.story-next-dish { font: 400 clamp(1.35rem,6.3vw,1.75rem)/1.08 var(--serif); letter-spacing: -.018em; text-wrap: pretty; overflow-wrap: anywhere; }
.story-next-action { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 12px; font: 400 1rem/1.3 var(--serif); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.story-next-action .arrow { width: 21px; height: 21px; stroke-width: 1; }
.story-menu-link { display: table; min-height: 44px; margin: 8px auto 0; padding: 8px 18px; font: 400 1.125rem/1.5 var(--serif); text-decoration: underline; text-underline-offset: 4px; }
.page-story .site-footer { display: block; position: relative; max-width: calc(var(--book-width) - 52px); margin: 0 auto; padding: 20px 26px calc(22px + env(safe-area-inset-bottom,0px)); border: 0; color: var(--story-ink); text-align: center; }
.page-story .site-footer::before { content: ''; position: absolute; width: 120px; top: 4px; left: calc(50% - 60px); border-top: 1px solid var(--story-rule); }
.page-story .site-footer > span { font: 400 .75rem/1.4 var(--serif); letter-spacing: .12em; }
.page-story .site-footer > p { margin-top: 2px; font: italic 400 .75rem/1.4 var(--serif); }
.page-story :is(a,button):focus-visible { outline: 2px solid var(--story-gold); outline-offset: 4px; }
.page-story .masthead :is(a,button):focus-visible { outline-color: var(--story-gold-light); }
.art-arrived { animation: story-ink .65s ease-out both; }
@keyframes story-ink { from { opacity: .85; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 359px) {
  .page-story { --gutter: 21px; }
  .page-story .brand span:last-child { font-size: .9rem; }
  .page-story .header-menu { font-size: .9rem; gap: 4px; }
  .story-meta .story-kicker { font-size: .6875rem; letter-spacing: 0; }
  .story-tools { gap: 5px; }
  .story-next-card { padding-inline: 12px; gap: 8px; }
  .story-next-action { font-size: .9375rem; }
}
@media (min-width: 600px) {
  .page-story { --gutter: 38px; --header-height: 3.625rem; --body-size: 1.25rem; }
  .story-intro-grid { padding-top: 14px; padding-bottom: 27px; }
  .story-hero-art { margin-top: 34px; }
  .story-title-main { font-size: 6.25rem; }
  .story-title-detail { max-width: 25ch; font-size: 1.9rem; }
  .story-motto { font-size: 2.8rem; }
  .story-history-grid { padding-top: 76px; padding-bottom: 72px; }
  .story-flavour-grid { padding-top: 56px; }
  .story-balance { padding-block: 26px; }
  .story-next-card { gap: 20px; padding: 24px; }
  .story-next-motto { font-size: 1.25rem; }
  .story-next-dish { font-size: 2rem; }
  .story-next-action { font-size: 1.125rem; }
}
@media (hover: hover) and (pointer: fine) {
  .story-next-card:hover { background-color: #b38b3d0b; }
  .story-next-card:hover .story-next-action { text-decoration-thickness: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .page-story *, .page-story *::before, .page-story *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .page-story { background: white; color: black; }
  .story-progress, .story-scroll, .story-tools, .story-next { display: none !important; }
  .story-page { max-width: 600px; }
  .story-scene { break-inside: auto; }
  .story-copy p { orphans: 3; widows: 3; }
}
