/* The poster shop (posters.html, written by pipeline/shop.py). On top of site.css. */
body.shop { max-width: 1240px; }
.shop header { max-width: 720px; }
.shop fieldset { border: 0; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.shop legend { float: left; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #52525b; margin-right: 6px; padding: 0; }
.shop fieldset label { cursor: pointer; }
.shop fieldset input { position: absolute; opacity: 0; }
.shop fieldset label span { display: inline-block; font-size: 14px; padding: 6px 14px; border: 1px solid #d4d4d8; border-radius: 999px; background: #fff; color: #27272a; }
.shop fieldset input:checked + span { background: #18181b; border-color: #18181b; color: #fff; }
.shop fieldset input:focus-visible + span { outline: 2px solid #c2410c; outline-offset: 2px; }

.wall { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 56px 40px; }
.wall.four { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1040px; }
.shop .text { max-width: 720px; margin-top: 72px; }
.shop .text h3 { font-size: 16px; font-weight: 600; margin: 24px 0 4px; }
.shop .text h3 + p { margin-top: 0; }
.shop .text ul { padding-left: 20px; }
@media (max-width: 720px) { .wall.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { display: block; text-decoration: none; text-align: center; }
.card b { display: block; margin-top: 20px; font-size: 16px; font-weight: 600; color: #18181b; }
.card:focus-visible .frame { outline: 2px solid #c2410c; outline-offset: 4px; }
.card:hover .frame { transform: translateY(-3px); }

/* The frame: a moulding round the poster and the shadow it throws on the wall. */
.frame { display: block; line-height: 0; border: 9px solid var(--moulding, #161616); background: var(--moulding, #161616);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 1px 1px rgba(0, 0, 0, 0.25), 0 14px 24px -8px rgba(0, 0, 0, 0.42), 0 30px 46px -24px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease; }
.frame img { width: 100%; height: auto; display: block; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5); }
[data-frame="black"] .frame { --moulding: #161616; }
[data-frame="white"] .frame { --moulding: #f7f6f2; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06), 0 1px 1px rgba(0, 0, 0, 0.2), 0 14px 24px -8px rgba(0, 0, 0, 0.36), 0 30px 46px -24px rgba(0, 0, 0, 0.3); }
[data-frame="oak"] .frame { border-image: linear-gradient(100deg, #c9a06c, #b98a52 30%, #d1ab78 55%, #b5864f 80%, #c79d68) 1; background: #b98a52; }
[data-frame="none"] .frame { border-width: 0; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 22px -8px rgba(0, 0, 0, 0.4); }

.back { margin: 0 0 28px; font-size: 14px; }
.poster { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: start; max-width: 1040px; }
.poster .frame { border-width: 14px; }
[data-frame="none"] .poster .frame { border-width: 0; }
.poster h1 { font-size: 32px; margin-bottom: 12px; }
.poster .offers { flex-direction: column; align-items: stretch; }
.poster .offers legend { float: none; margin-bottom: 4px; }
.poster .offers label { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.poster .offers label[hidden] { display: none; }
.poster .offers i { font-style: normal; font-size: 14px; color: #27272a; }
.poster .order { margin-top: 28px; width: 100%; font: inherit; font-weight: 600; padding: 13px 18px; border-radius: 10px; border: 0; background: #c2410c; color: #fff; cursor: pointer; }
.poster .order:disabled { background: #d4d4d8; color: #52525b; cursor: default; }
.poster .more { margin-top: 22px; font-size: 14.5px; }
.turn { display: flex; justify-content: space-between; max-width: 1040px; margin-top: 64px; font-size: 14.5px; }
@media (max-width: 720px) {
  .poster { grid-template-columns: 1fr; gap: 28px; }
  .poster .frame { border-width: 9px; }
  .wall { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 36px 20px; }
  .frame { border-width: 6px; }
}
