/* Stories: journal, 3D shelf, product explorer */
.st-hero { padding: var(--s5) 0 var(--s7); }
.st-hero .eyebrow { margin: var(--s6) 0 var(--s4); }
.st-hero .h1 { max-width: 14ch; margin-bottom: var(--s5); }
.st-jump { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s6); }

/* journal */
.st-chapters { display: grid; gap: var(--s7); }
.st-ch { display: grid; grid-template-columns: 5fr 6fr; gap: var(--s7); align-items: center; }
.st-ch:nth-child(even) .st-ch-img { order: 2; }
.st-ch-img { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: var(--bone); }
.st-ch-img img { width: 100%; height: 100%; object-fit: cover; }
.st-ch-img.pack { background: linear-gradient(180deg, var(--bone) 0 80%, var(--linen) 80%); display: flex; justify-content: center; align-items: flex-end; padding: 8% 0 12%; }
.st-ch-img.pack img { width: auto; height: 100%; object-fit: contain; filter: drop-shadow(0 14px 14px rgba(60, 40, 25, .18)); }
.st-ch-copy .eyebrow { margin-bottom: var(--s2); }
.st-ch-copy .h3 { margin-bottom: var(--s3); }
.st-ch-copy p.muted { max-width: 48ch; margin: 0 0 var(--s4); }
.st-more { margin: var(--s7) 0 0; font-size: var(--t-sm); color: var(--ink-3); }

/* 3D shelf */
.st-shelf-sec { background: #2a1e17; color: var(--bone); padding: var(--s8) 0 0; }
.st-shelf-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s5); margin-bottom: var(--s5); }
.st-shelf-head .eyebrow, .st-shelf-head .muted { color: rgba(251, 248, 242, .7); }
.st-shelf-head .h2 { margin: var(--s2) 0; }
.st-shelf-head .arrows button { background: transparent; border-color: rgba(251, 248, 242, .4); color: var(--bone); }
.shelf3d { position: relative; height: min(72vh, 640px); cursor: grab; touch-action: pan-y; outline: none; }
.shelf3d canvas { display: block; width: 100%; height: 100%; }
.shelf3d:focus-visible { box-shadow: inset 0 0 0 2px var(--bone); }
.shelf3d.shelf-off { display: none; }
.shelf-label { position: absolute; transform: translate(-50%, -150%); padding: 6px 10px; border-radius: 999px; background: var(--bone); color: var(--ink);
  font: 500 var(--t-xs)/1 var(--sans); pointer-events: none; opacity: 0; transition: opacity var(--d-fast) var(--ease); white-space: nowrap; }
.shelf-label.on { opacity: 1; }

/* explorer grid */
.st-explore .chips { margin-bottom: var(--s6); }
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: var(--s6) var(--s4); }
.ex-card { all: unset; cursor: pointer; display: flex; flex-direction: column; }
.ex-card .art { aspect-ratio: 4 / 5; }
.ex-card b { font: 500 var(--t-md)/1.3 var(--serif); margin-top: var(--s3); font-variation-settings: 'SOFT' 50; }
.ex-card small { font-size: var(--t-xs); color: var(--ink-3); margin-top: 2px; }
.ex-card:hover .pimg { transform: translateY(-5px); }
.ex-card:focus-visible .art { outline: 2px solid var(--ink); outline-offset: 3px; }

/* detail sheet */
.ex-sheet { width: min(1040px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--oat); color: var(--ink); overflow: auto; }
.ex-sheet::backdrop { background: rgba(36, 26, 20, .6); }
.ex-close { position: sticky; top: var(--s3); float: right; margin: var(--s3); z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bone); font-size: 22px; cursor: pointer; }
.ex-body { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); padding: var(--s6); }
.ex-stage { aspect-ratio: 1; display: grid; place-items: center; padding: 8%; border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--bone) 0 80%, var(--linen) 80%); }
.ex-stage img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 16px 16px rgba(60, 40, 25, .18)); }
.ex-views { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.ex-info .h2 { margin: var(--s2) 0 var(--s4); }
.ex-line { margin: 0 0 var(--s5); padding-left: var(--s4); border-left: 2px solid var(--travertine); font: 400 var(--t-lg)/1.35 var(--serif); font-style: italic; }
.ex-line small { display: block; font: 400 var(--t-xs)/1 var(--sans); font-style: normal; color: var(--ink-3); margin-top: var(--s2); }
.ex-facts { display: grid; grid-template-columns: 80px 1fr; gap: var(--s2) var(--s3); margin: 0 0 var(--s5); font-size: var(--t-sm); }
.ex-facts dt { color: var(--ink-3); } .ex-facts dd { margin: 0; color: var(--ink-2); }
.ex-buy { display: flex; align-items: center; gap: var(--s4); padding: var(--s4) 0; border-top: var(--hair); border-bottom: var(--hair); }
.ex-price { margin: 0; font-weight: 600; }
.ex-recipe { margin: var(--s5) 0 0; }
.ex-recipe img { border-radius: var(--radius); background: #fff; }
.ex-recipe figcaption { font-size: var(--t-xs); color: var(--ink-3); margin-top: var(--s2); }

@media (max-width: 900px) {
  .st-ch { grid-template-columns: 1fr; gap: var(--s4); }
  .st-ch:nth-child(even) .st-ch-img { order: 0; }
  .ex-body { grid-template-columns: 1fr; padding: var(--s4); }
  .shelf3d { height: 56vh; }
}
@media (max-width: 560px) { .ex-grid { grid-template-columns: 1fr 1fr; gap: var(--s5) var(--s3); } }
