:root { color-scheme: light; font-family: Georgia, 'Times New Roman', serif; color: #171717; background: #f6f2e9; --blue: #f6f2e9; --blue-deep: #171717; --sage: #f6f2e9; --sage-deep: #171717; }
* { box-sizing: border-box; }
body { margin: 0; background: #f6f2e9; }
main { width: min(100%, 860px); margin-inline: auto; padding: 16px 16px 120px; }
header { text-align: center; margin-bottom: 8px; }
h1 { font-size: clamp(32px, 8vw, 52px); font-weight: 400; margin: 8px 0 4px; }
.sub { margin: 0; font-size: 16px; color: #171717; }
.hint { margin: 8px 0 0; font-size: 14px; color: #171717; }
.unit { margin: 20px 0 0; }
.unit h2 { font-size: 15px; font-weight: 400; font-style: italic; color: #171717; margin: 0 0 6px 4px; }
.unit-svg { display: block; width: 100%; height: auto; overflow: visible; }
.item { cursor: pointer; outline: none; }
.item .hit { fill: transparent; stroke: transparent; stroke-width: 2px; vector-effect: non-scaling-stroke; }
.item:focus-visible .hit { stroke: var(--blue-deep); fill: #f6f2e930; }
.item.in-cart .lbl::after { content: ''; }
.item.in-cart image { opacity: .55; }
@media (hover: hover) and (pointer: fine) { .item:hover .hit { fill: #f6f2e955; stroke: #17171780; } }
.shelf-directory { width: min(100%, 560px); margin: 28px auto 0; }
.shelf-directory h2 { font-size: 18px; font-weight: 400; margin: 0 0 4px; }
.shelf-directory ul { list-style: none; margin: 0; padding: 0; }
.shelf-directory li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; border-bottom: 1px solid #f6f2e9; }
.shelf-directory li a { color: inherit; font-size: 15px; text-decoration: none; flex: 1; padding: 12px 0; }
.shelf-directory li a:hover { text-decoration: underline; text-underline-offset: 4px; }
.shelf-directory li a span { color: #171717; }
.add, .btn { font: inherit; font-size: 14px; min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid var(--blue-deep); background: #f6f2e9; color: #171717; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.add[aria-pressed="true"], .btn.primary { background: var(--blue-deep); color: #f6f2e9; }
.add[aria-pressed="true"]::before { content: '✓ '; }
.btn.ghost { border-color: transparent; color: #171717; }
:focus-visible { outline: 2px solid var(--blue-deep); outline-offset: 3px; }
.sheet { position: fixed; z-index: 20; left: 12px; right: 12px; bottom: 124px; max-width: 520px; margin-inline: auto; background: #f6f2e9; border: 1px solid #f6f2e9; border-radius: 18px; padding: 14px 16px; box-shadow: 0 8px 28px #17171726; }
.sheet[hidden], .cart-panel[hidden] { display: none; }
.sheet-title { margin: 0 0 10px; font-size: 18px; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cartwrap { position: fixed; z-index: 30; left: 0; bottom: 10px; width: 120px; height: 100px; will-change: transform; }
.cart { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.cart-flip { display: block; width: 100%; height: 100%; }
.cart-flip.left { transform: scaleX(-1); }
.cart-svg { display: block; overflow: visible; }
.wheel { transform-box: fill-box; transform-origin: center; }
.rolling .wheel { animation: spin .45s linear infinite; }
.rolling .cart-body { animation: bob .22s ease-in-out infinite alternate; }
.cart-flip.left .wheel { animation-direction: reverse; }
.bump .cart-body { animation: bump .38s ease; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-2.5px); } }
@keyframes bump { 0% { transform: translateY(0); } 35% { transform: translateY(5px); } 70% { transform: translateY(-3px); } 100% { transform: translateY(0); } }
.bubble { position: absolute; right: 0; bottom: calc(100% + 6px); width: max-content; max-width: 220px; padding: 10px 16px; border-radius: 18px; background: #f6f2e9; border: 2px solid var(--blue-deep); color: #171717; font: italic 18px/1.2 Georgia, serif; opacity: 0; transform: translateY(8px) scale(.96); transform-origin: bottom right; transition: opacity .3s ease, transform .3s ease; pointer-events: none; box-shadow: 0 6px 18px #17171726; }
.bubble::after { content: ''; position: absolute; right: 36px; bottom: -10px; width: 16px; height: 16px; background: #f6f2e9; border-right: 2px solid var(--blue-deep); border-bottom: 2px solid var(--blue-deep); transform: rotate(45deg); }
.bubble.show { opacity: 1; transform: none; }
.cart-panel { position: fixed; z-index: 25; right: 12px; bottom: 120px; width: min(320px, calc(100% - 24px)); max-height: 60vh; overflow: auto; background: #f6f2e9; border: 1px solid #f6f2e9; border-radius: 18px; padding: 14px 16px; box-shadow: 0 8px 28px #17171726; }
.cart-title { margin: 0 0 8px; font-size: 18px; }
.cart-panel ul { list-style: none; margin: 0; padding: 0; }
.cart-panel li { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 44px; border-bottom: 1px solid #f6f2e9; font-size: 15px; }
.cart-panel li a { color: var(--blue-deep); text-underline-offset: 3px; }
.cart-panel li button { font: inherit; font-size: 13px; background: none; border: 0; color: #171717; cursor: pointer; min-height: 44px; padding: 0 6px; }
.cart-empty, .cart-note { margin: 8px 0 0; font-size: 13px; color: #171717; }
.fly { position: fixed; z-index: 40; pointer-events: none; object-fit: contain; }
.skip-link { position: absolute; z-index: 50; left: 12px; top: -100px; padding: 12px 16px; background: #f6f2e9; color: #171717; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) { .rolling .wheel, .rolling .cart-body, .bump .cart-body { animation: none; } .bubble { transition: none; } }
@media (forced-colors: active) { .item:focus-visible .hit { stroke: LinkText; fill: transparent; } }
.badge { position: absolute; top: -2px; left: 2px; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px; background: var(--sage-deep); color: #f6f2e9; border: 2px solid #f6f2e9; font: 600 13px/22px system-ui, sans-serif; text-align: center; pointer-events: none; }
.item.in-cart image { opacity: .6; }
/* blue and sage gingham backdrop */
body { background-color: #f6f2e9; background-image: linear-gradient(90deg, rgba(143,176,214,.30) 50%, transparent 50%), linear-gradient(rgba(183,202,171,.38) 50%, transparent 50%); background-size: 64px 64px; }
header { background: #f6f2e9d9; border-radius: 18px; padding: 12px 16px; width: fit-content; margin-inline: auto; }
.unit h2 { display: inline-block; background: #f6f2e9e6; border-radius: 12px; padding: 2px 12px; margin: 0 0 8px 4px; }
.unit-svg { filter: drop-shadow(0 4px 10px rgba(79,118,163,.18)); }
.shelf-directory { background: #f6f2e9; border-radius: 18px; padding: 14px 18px; box-shadow: 0 4px 14px rgba(79,118,163,.15); }
