/* ordering.html: four steps left of the gutter, the subject-line builder right. */

.order{
  display:grid;grid-template-columns:minmax(0,1fr);
  grid-template-areas:"lead" "build" "note" "steps";
  row-gap:clamp(1.25rem,3vw,2rem);
}
.order__lead.opening{grid-area:lead;margin:0;max-width:none}
.order__steps{grid-area:steps;min-width:0}
.order__build{grid-area:build;min-width:0}
.order__note{
  grid-area:note;text-align:left;padding:0;max-width:none;margin:0;
}

/* beside the gutter: the pair stepped, the builder sunk a little below the heading */
@media (min-width:56rem){
  .order{
    grid-template-columns:minmax(0,1fr) var(--pair-gap) minmax(0,1fr);
    grid-template-areas:"lead note build" "steps note build";
    grid-template-rows:auto 1fr;
    column-gap:0;row-gap:0;align-items:start;
  }
  .order__lead.opening{margin-bottom:clamp(1.5rem,3vw,2.25rem)}
  .order__build{margin-top:clamp(1rem,4vw,3rem)}
  .order__note{
    align-self:start;text-align:center;padding:clamp(6rem,15vw,12rem) 0.2rem 0;
  }
}

/* the steps: a numbered square, then the heading and two sentences */
.steps{counter-reset:step;display:grid;gap:clamp(1.25rem,2.5vw,1.9rem);margin:0 0 clamp(1.5rem,3vw,2.25rem)}
.step{
  counter-increment:step;
  display:grid;grid-template-columns:2.5rem minmax(0,1fr);column-gap:1rem;align-items:start;
}
.step::before{
  content:counter(step);grid-row:1 / span 2;
  display:grid;place-items:center;width:2.5rem;height:2.5rem;
  background:var(--ground);color:var(--ink);
  border:var(--rule) solid var(--ink);box-shadow:var(--drop) var(--drop) 0 var(--ink);
  font-family:var(--font-display);font-weight:600;font-size:1.3rem;line-height:1;
}
.step h2{margin:0.1rem 0 0.4rem}
.step p{margin:0;max-width:34rem}
.closing{margin:0;max-width:34rem}

/* builder: the mounted print, the label, six title buttons, one send button */
.build__shot{margin-bottom:var(--drop)}
.build__shot img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}
.build__shot img.is-tall{object-fit:contain;background:var(--ground)}
.build h2{margin:1.6rem 0 0.7rem}

.label{
  margin:0 var(--drop) 1.2rem 0;max-width:none;
  padding:0.75rem 0.95rem;
  background:var(--ground);color:var(--ink);
  border:var(--rule) solid var(--ink);box-shadow:var(--drop) var(--drop) 0 var(--ink);
  font-size:var(--t-0);line-height:1.4;
}
.label__k{font-weight:700}

.titles{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(9.5rem,1fr));
  gap:0.9rem;margin:0 var(--drop) 0 0;
}
.title{width:100%}
.title[aria-pressed="true"]{background:var(--ink);color:var(--ground)}
.title:focus-visible{outline-offset:0.2rem}

.build__nojs{display:none;margin:0.9rem 0 0;font-size:var(--t--1)}
html:not(.js) .titles{display:none}
html:not(.js) .build__nojs{display:block}

.build__send{margin-top:1.5rem}
.build__to{margin:0.9rem 0 0;font-size:var(--t--1);max-width:none;overflow-wrap:anywhere}

@media (max-width:30rem){
  .titles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .build__send{display:flex;margin-right:var(--drop)}
}
