/* Allied Decorations Co · decorations.css — the tickable packing slip. Desk first; narrower screens take things away in max-width queries (rem). */

/* allhx — hx: the head, text panel left and the hero cropped wide on the right; the h1 stands at the page-head size */
.allhx { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--crate-gap); flex: none; }
.allhx .allph { min-height: 21rem; }
.allhx .allhl { font-size: 2.75rem; }
.allhx .allrl { margin: 1.1rem 0; }
.allhx .alltx { margin: 0; }
/* allhp — hp: the head's text panel, its words centred in the height of the picture */
.allhp { display: flex; flex-direction: column; justify-content: center; }

/* allsi — si: the slip's intro panel; heading, then the sentence under it, then the filter row, each the full width */
.allsi { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; align-content: start; }
.allsi .alltx { margin: 0; max-width: none; }

/* allfb — fb: the filter bar, one wrapped row of double-ruled keys; allfq its lead-in; allfk one key */
.allfb { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.allfb:empty { display: none; }
.allfq { margin-right: .35rem; font: 400 .95rem/1.2 var(--packing-slip); }
.allfk {
  min-height: 2.75rem; padding: .7rem 1.1rem; border: 0; cursor: pointer;
  background: var(--crate); color: var(--chalk); font: 400 .9rem/1.2 var(--packing-slip);
  box-shadow: inset 0 0 0 .0625rem var(--brass), inset 0 0 0 .3125rem var(--crate), inset 0 0 0 .375rem var(--brass);
  transition: box-shadow .12s linear;
}
.allfk:hover, .allfk:focus-visible {
  box-shadow: inset 0 0 0 .1875rem var(--brass), inset 0 0 0 .4375rem var(--crate), inset 0 0 0 .5rem var(--brass);
}
.allfk.picked {
  color: var(--brass);
  box-shadow: inset 0 0 0 .1875rem var(--brass), inset 0 0 0 .4375rem var(--crate), inset 0 0 0 .5rem var(--brass);
}

/* allsb — sb: the slip body panel; allsl the list of rows, which fixes the one photograph column and its one ratio */
.allsl { --thumb-width: clamp(22rem, 34vw, 30rem); --thumb-ratio: 3 / 2; list-style: none; margin: 0; padding: 0; }

/* allrw — rw: one row of the slip, tick box in the left column; .stowed rows are put away by a filter, .packed rows are ticked */
.allrw {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.25rem; align-items: start;
  padding: 1.5rem 0; border-top: .25rem double var(--brass);
}
.allrw.stowed { display: none; }

/* alltk — tk: the square double-ruled tick box, a plain button with aria-pressed */
.alltk {
  position: relative; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; cursor: pointer;
  background: var(--crate);
  box-shadow: inset 0 0 0 .1875rem var(--brass), inset 0 0 0 .4375rem var(--crate), inset 0 0 0 .5rem var(--brass);
  transition: box-shadow .12s linear;
}
.alltk:hover, .alltk:focus-visible {
  box-shadow: inset 0 0 0 .0625rem var(--brass), inset 0 0 0 .3125rem var(--crate), inset 0 0 0 .5rem var(--brass);
}
.alltk.packed::after {
  content: ""; position: absolute; left: 50%; top: 46%; width: .55rem; height: 1rem;
  border: solid var(--brass); border-width: 0 .2rem .2rem 0; transform: translate(-50%, -50%) rotate(45deg);
}
html:not(.js) .alltk, html:not(.js) .allpk { display: none; }

/* allrk — rk: the row's link, number | words | photograph, the whole row pressable */
.allrk {
  grid-column: 2; display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) var(--thumb-width);
  gap: 1rem 1.5rem; align-items: start; color: var(--chalk); text-decoration: none;
}
.allrk:hover h3, .allrk:focus-visible h3 { text-decoration: underline double var(--brass); text-underline-offset: .15em; }
/* allnm — nm: the item number; a packed row writes the word under it */
.allnm { font: 800 clamp(2.5rem, 4vw, 3.5rem)/.9 var(--stencil); color: var(--brass); }
.allrw.packed .allnm::after { content: "packed"; display: block; margin-top: .4rem; font: 400 .9rem/1.2 var(--packing-slip); color: var(--chalk); }
/* allbd — bd: the words of a row; allkd what it is, allln the line, allms measured by, allar the cue */
.allbd h3 { font-size: clamp(1.375rem, 1.9vw, 1.625rem); line-height: 1.06; }
.allbd h3 b { font-weight: 800; }
.allkd { margin: .5rem 0 .75rem; color: var(--brass); font-size: .95rem; }
.allln { margin: 0 0 .75rem; font-size: 1.0625rem; line-height: 1.6; }
.allms { margin: 0; font-size: .95rem; line-height: 1.5; }
.allms span { display: block; color: var(--brass); }
.allar { display: inline-block; margin-top: .9rem; color: var(--brass); font-size: .95rem; }
.allrk .allph { box-sizing: border-box; width: 100%; min-height: 0; aspect-ratio: var(--thumb-ratio); overflow: hidden; }

/* allpk — pk: the foot of the slip, a full-width claret band under a heavy double rule; allpl the packed line, allpn its numbers */
.allpk {
  --slip: var(--claret);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem;
  margin-top: .5rem; padding: 1.75rem clamp(1rem, 2.4vw, 2rem);
  background: var(--claret); border-top: .5rem double var(--brass);
}
.allpl { margin: 0; font: 800 clamp(2rem, 3.4vw, 3rem)/1.1 var(--stencil); }
.allpn { color: var(--brass); }
.allpk .allbt { min-height: 4rem; padding: 1.1rem 2.25rem; font-size: clamp(1.625rem, 2.4vw, 2rem); }

/* allgt — gt: the 'What do I get?' label; its head at panel-head size, its plates waiting to be filled, its four steps two by two */
.allgt .allhl { align-self: center; font-size: 1.625rem; }
.allgt .allds dd {
  min-height: 2rem; padding-bottom: .35rem;
  border-bottom: .125rem dotted rgba(241, 230, 210, .6);
  font: 700 1.5rem/1.2 var(--stencil); letter-spacing: .06em; text-transform: uppercase;
  color: rgba(241, 230, 210, .78);
}
.allgt .allsp { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; }

/* allhf — hf: the hand-off panel; allbk its two equal buttons */
.allhf { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1.5rem 2.5rem; align-items: center; }
.allhf .alltx { margin-top: 1rem; }
.allbk { display: grid; gap: 1rem; }
.allbk .allbt { width: 100%; }

@media (max-width: 72rem) {
  .allrk { grid-template-columns: 4.5rem minmax(0, 1fr); }
  .allrk .allph { grid-column: 1 / -1; width: min(var(--thumb-width), 100%); }
}
@media (max-width: 56rem) {
  .allhx, .allsi, .allhf, .allgt .allsp { grid-template-columns: minmax(0, 1fr); }
  .allhx .allph { min-height: 0; aspect-ratio: 16 / 9; }
  .allhx .allhl { font-size: clamp(1.875rem, 6vw, 2.75rem); }
  .allfb { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .5rem; }
  .allfk, .allfq { flex: none; }
  .allrw { gap: .75rem; }
  .allrk { grid-template-columns: minmax(0, 1fr); }
  .allrk .allph { width: 100%; }
  .allpk { flex-direction: column; align-items: stretch; padding: 1.25rem 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .allfk, .alltk { transition: none; }
}
