* { box-sizing: border-box }
html { font: 100%/1.35 system-ui,sans-serif; background: #ede7da }
body { margin: 0; color: #fffaf0 }
main { max-width: 46rem; margin: auto }
article { margin: 0 0 4px }
article img { display: block; width: 100%; height: auto }
footer { position: sticky; bottom: 0; display: flex; justify-content: center; align-items: center; gap: .75rem; background: #27251f; padding: .35rem .75rem max(.35rem,env(safe-area-inset-bottom)) }
select,button { min-height: 44px; padding: .4rem .65rem; background: #39362e; color: inherit; border: 1px solid #797363; border-radius: .4rem; font: inherit }
select { width: min(60vw,16rem) }
button { display: none; cursor: pointer }
output { font-variant-numeric: tabular-nums }
:focus-visible { outline: 2px solid #bc892f }
@media (min-width:720px) and (min-height:500px) {
 main { max-width: 94rem }
 .spread { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px }
 button { display: block }
 body.sideways main { display: flex; overflow-x: auto; max-width: none; height: calc(100dvh - 4rem); scroll-snap-type: x mandatory }
 body.sideways .spread { flex: 0 0 100%; display: flex; justify-content: center; align-items: center; scroll-snap-align: start }
 body.sideways article { margin: 0; max-width: calc(50% - 2px); height: 100%; display: grid; place-items: center }
 body.sideways img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain }
}