/* Hallmark · custom · Pickle Club · mustard lunch slip pasted over a counter photograph */
/* Critique: The handwritten order-ticket structure directs each choice to a readable lunch total. */
@font-face {
  font-family: "ARCH";
  src: url("./fonts/archivo-black.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "MONO";
  src: url("./fonts/space-mono.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  --paper: #e6ef9e;
  --ink: #1c3926;
  --line: #9dac73;
  --focus: #a23418;
  --cta: #20422b;
  --cta-ink: #eef3bd;
  --display: "ARCH", Impact, sans-serif;
  --body: "MONO", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-block-start: 1.5rem;
}
html,
body {
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p,
ul,
dl,
dd,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: var(--heading-weight, 400);
  line-height: 1;
  min-width: 0;
  overflow-wrap: break-word;
}
h1,
h2 {
  text-wrap: balance;
}
p {
  max-width: 65ch;
  text-wrap: pretty;
}
a {
  color: inherit;
  text-underline-offset: 0.22em;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  background: none;
}
img {
  display: block;
  max-width: 100%;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
.skip {
  position: absolute;
  z-index: 3;
  left: 1rem;
  top: -7rem;
  background: var(--paper);
  color: var(--ink);
  padding: 0.65rem 1rem;
}
.skip:focus {
  top: 0.5rem;
}
.wrap {
  width: min(91%, 81rem);
  margin-inline: auto;
}
.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5.4rem;
}
.site-head nav {
  display: flex;
  gap: clamp(0.7rem, 2.1vw, 2.4rem);
  align-items: center;
  flex-wrap: wrap;
}
.site-head nav a {
  text-decoration: none;
  font-size: 0.9rem;
}
.site-head nav a:hover {
  text-decoration: underline;
}
.wordmark {
  color: inherit;
  font-family: var(--display);
  text-decoration: none;
  line-height: 1;
}
.site-foot {
  padding: 2.4rem 0;
  border-top: 1px solid var(--line);
  margin-top: 0;
}
.site-foot .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.site-foot p {
  font-size: 0.83rem;
}
.site-foot a {
  white-space: nowrap;
}
.jump,
.action {
  display: inline-flex;
  min-height: 2.8rem;
  padding: 0.65rem 1.15rem;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  border: 1px solid currentColor;
  color: var(--cta-ink);
  background: var(--cta);
  font-weight: 650;
}
.jump:hover,
.action:hover {
  text-decoration: underline;
  text-underline-offset: 0.24em;
}
.detail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.section {
  padding-block: clamp(3.4rem, 7vw, 7.5rem);
}
.section h2 {
  font-size: clamp(2.8rem, 5.5vw, 5.4rem);
  margin-bottom: 1rem;
}
.section h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
}
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
  margin: 1rem 0 1.2rem;
}
.choices button,
.stepper button {
  padding: 0.55rem 0.9rem;
  min-height: 2.75rem;
  border: 1px solid currentColor;
}
.choices button[aria-pressed="true"],
.stepper button:hover {
  background: var(--cta);
  color: var(--cta-ink);
}
form,
fieldset {
  min-width: 0;
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
legend,
label {
  font-weight: 650;
}
select {
  min-height: 2.75rem;
  max-width: 100%;
  padding: 0.55rem 2.2rem 0.55rem 0.75rem;
  border: 1px solid currentColor;
  background: var(--control, var(--paper));
  border-radius: 0;
}
.stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.stepper button {
  min-width: 2.75rem;
  padding-inline: 0.5rem;
}
.stepper button:disabled {
  background: var(--paper);
  color: var(--line);
  border-color: var(--line);
  cursor: not-allowed;
}
.stepper output {
  font-variant-numeric: tabular-nums;
  min-width: 1.25rem;
  text-align: center;
}
.note {
  font-size: 0.82rem;
  line-height: 1.45;
}
.section p + p {
  margin-top: 0.75rem;
}
@media (max-width: 640px) {
  .site-head {
    min-height: 4.25rem;
    gap: 0.8rem;
  }
  .site-head nav {
    gap: 0.8rem;
  }
  .site-head nav a {
    font-size: 0.825rem;
  }
  .site-foot .wrap {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

:root {
  --mustard: #e6ef9e;
  --paper: #f3f2d8;
  --green: #20422b;
  --bright: #c6dd56;
  --milk: #f3f2d8;
}
.site-head {
  background: var(--green);
  color: var(--milk);
  width: 100%;
  max-width: none;
  padding-inline: max(4.5%, calc((100% - 81rem) / 2));
  min-height: 4.6rem;
}
.wordmark {
  text-transform: uppercase;
  font-size: 1.5rem;
  letter-spacing: -0.07em;
}
.site-head nav a {
  font-size: 0.85rem;
}
.hero {
  background: var(--bright);
}
.hero .wrap {
  position: relative;
  min-height: clamp(31rem, 43vw, 43rem);
  display: flex;
  align-items: flex-end;
  padding-block: 2.6rem;
}
.hero figure {
  position: absolute;
  inset: 0 0 0 17%;
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.counter-sign {
  position: relative;
  max-width: 41rem;
  padding: clamp(1.3rem, 3vw, 3rem);
  background: var(--mustard);
  border: 3px solid var(--green);
  box-shadow: 0.55rem 0.55rem 0 var(--green);
  transform: rotate(-1.7deg);
}
.counter-sign h1 {
  font-size: clamp(3.9rem, 7.5vw, 7.8rem);
  line-height: 1;
  letter-spacing: -0.09em;
  text-transform: uppercase;
}
.counter-sign p {
  max-width: 35ch;
  font-size: 1.02rem;
  margin: 1.3rem 0 1rem;
}
.counter-sign .jump {
  font-size: 0.92rem;
  border-color: var(--green);
}
.counter-rule {
  height: 0.8rem;
  background: repeating-linear-gradient(
    115deg,
    var(--green) 0 5px,
    var(--milk) 5px 12px
  );
}
.lunch {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 7%;
}
.lunch h2,
.deli h2 {
  letter-spacing: -0.08em;
  text-transform: uppercase;
}
.order-slip {
  border: 2px solid var(--green);
  background: var(--mustard);
  padding: clamp(1rem, 2.2vw, 2.2rem);
}
.order-slip label {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.order-slip select {
  background: var(--milk);
}
.order-slip .choices button {
  background: var(--milk);
}
.order-slip .choices button[aria-pressed="true"] {
  background: var(--green);
}
.order-slip .receipt {
  border-top: 2px dashed var(--green);
  padding-top: 1rem;
}
.receipt strong {
  display: block;
  font-size: 1.08rem;
}
.order-slip .note {
  margin-top: 0.7rem;
}
.deli {
  background: var(--green);
  color: var(--milk);
}
.deli .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 8%;
  align-items: center;
}
.deli img {
  height: clamp(15rem, 24vw, 24rem);
  border: 0.5rem solid var(--milk);
}
.deli address {
  font-style: normal;
  color: var(--mustard);
  margin-top: 1rem;
}
@media (max-width: 720px) {
  .hero .wrap {
    min-height: 0;
    display: grid;
    gap: 0;
    padding: 1rem 0 1.6rem;
  }
  .hero figure {
    position: relative;
    inset: auto;
    height: 60vw;
    max-height: 22rem;
  }
  .counter-sign {
    margin: -2rem 0.7rem 0;
    transform: rotate(-1.2deg);
  }
  .counter-sign h1 {
    font-size: clamp(3.4rem, 13vw, 6rem);
  }
  .lunch,
  .deli .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.65rem;
  }
  .wordmark {
    font-size: 1.25rem;
  }
  .site-head nav a {
    font-size: 0.78rem;
  }
}

button,
a {
  touch-action: manipulation;
}
button:enabled:active,
.jump:active {
  transform: translateY(1px);
}
.choices button:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.order-slip label {
  grid-template-columns: minmax(0, 1fr);
}
.order-slip select {
  width: 100%;
  min-width: 0;
}

:where(img) {
  height: auto;
}

.chapter {
  padding-block: clamp(3.5rem, 7.5vw, 7.5rem);
}
.chapter .chapter-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.chapter-intro h2 {
  font-size: clamp(3rem, 5.5vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  margin: 0 0 1.15rem;
}
.chapter-intro > p {
  max-width: 39ch;
}
.chapter-tool {
  min-width: 0;
}
.chapter-tool h3 {
  font-size: clamp(1.65rem, 3.1vw, 3rem);
  margin-bottom: 0.6rem;
}
.chapter-tool h4 {
  font-size: 1.12rem;
  line-height: 1.2;
  margin: 0 0 0.35rem;
}
.chapter-tool .small {
  font-size: 0.88rem;
}
.chapter-tool button,
.chapter-tool input,
.chapter-tool select {
  max-width: 100%;
}
.chapter-tool .work-button {
  min-height: 2.85rem;
  padding: 0.65rem 1rem;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
}
.chapter-tool .work-button:hover {
  text-decoration: underline;
}
.chapter-tool .work-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.chapter-tool .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-block: 1rem;
}
.chapter-link {
  display: inline-block;
  font-size: 0.95rem;
  text-underline-offset: 0.3em;
  padding: 0.7rem 0.4rem;
  margin-left: 0.6rem;
}
.chapter-intro details {
  border-block-start: 1px solid currentColor;
  margin-top: 1.3rem;
  padding-block: 0.8rem;
}
.chapter-intro summary {
  cursor: pointer;
  font-weight: 650;
  min-height: 2.3rem;
}
.chapter-intro details p {
  max-width: 40ch;
}
@media (max-width: 730px) {
  .chapter .chapter-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.8rem;
  }
  .chapter-link {
    margin-left: 0.15rem;
  }
  .chapter-intro h2 {
    max-width: 16ch;
  }
}

.stack-bench-chapter {
  background: var(--bright);
  border-top: 0.7rem solid var(--green);
}
.stack-bench-chapter h2 {
  text-transform: uppercase;
  letter-spacing: -0.075em;
}
.paper-stack {
  position: relative;
  background: var(--milk);
  border: 2px solid var(--green);
  padding: clamp(1rem, 2vw, 1.8rem);
  box-shadow: 0.35rem 0.35rem 0 var(--green);
}
.cross-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
  border-bottom: 1px dashed var(--green);
  padding-bottom: 0.6rem;
}
.cross-head span {
  font-size: 0.78rem;
}

.paper-stack > p {
  font-size: 0.9rem;
}
.stack-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.15rem 0;
}
.stack-options label {
  display: grid;
  min-width: 0;
  gap: 0.4rem;
}
.stack-options select {
  min-width: 0;
  width: 100%;
  background: var(--milk);
}
.kitchen-line {
  border-block: 1px dashed var(--green);
  padding: 0.65rem 0;
}
.kitchen-line span {
  display: block;
  font-size: 0.9rem;
}
.stack-bench-chapter .actions {
  align-items: center;
}
.stack-bench-chapter .actions .work-button {
  color: var(--milk);
  background: var(--green);
}
.stack-bench-chapter [role="status"] {
  min-height: 1.5rem;
  font-size: 0.88rem;
}
@media (max-width: 390px) {
  .stack-options {
    grid-template-columns: minmax(0, 1fr);
  }
}

.site-head nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Open butcher-paper wrap */
.wrap-shop {
  width: min(1360px, 94%);
  margin: 1.8rem auto 3.3rem;
}
.wrap-mast {
  display: flex;
  align-items: end;
  gap: clamp(1rem, 3vw, 3.3rem);
  color: #223a24;
  margin-bottom: 1.2rem;
}
.wrap-mast h1 {
  font-size: clamp(4.6rem, 10vw, 10rem);
  line-height: 0.86;
  letter-spacing: -0.075em;
  white-space: nowrap;
}
.wrap-mast p {
  max-width: 22rem;
  line-height: 1.35;
}
.wrap-mast a {
  margin-left: auto;
  font-weight: 800;
  color: #1c3824;
}
.wrap-sheet {
  display: grid;
  grid-template-columns: 1.1fr 0.98fr;
  gap: clamp(1rem, 2vw, 2.4rem);
  background:
    linear-gradient(
      41deg,
      #dbc8a3 0 13%,
      transparent 13.2% 80%,
      #c3b08f 80.2% 80.4%,
      #eddfc3 80.6%
    ),
    linear-gradient(132deg, #eee5cd 0 25%, #b7a887 25.2% 25.4%, #faf2d8 25.6%);
  border-block: 2px solid #61583b;
  padding: clamp(0.9rem, 2.5vw, 2.5rem);
}
.wrap-sheet figure {
  min-width: 0;
  clip-path: polygon(0 6%, 94% 0, 100% 92%, 6% 100%);
  margin: 0;
}
.wrap-sheet img {
  display: block;
  object-fit: cover;
  width: 100%;
  height: 100%;
  max-height: 370px;
}
.deli-cut {
  padding: 0.6rem;
  color: #203223;
}
.deli-cut > span,
.knife-cuts {
  font-size: 0.83rem;
  font-weight: 750;
}
.deli-cut h2 {
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 0.96;
  margin: 0.3rem 0 0.65rem;
}

.knife-cuts {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}
.knife-cuts :is(button, .front-key) {
  padding: 0.45rem 0.55rem;
  border: 1px solid #375037;
  border-radius: 0;
  background: #faf1d7;
  color: #283d27;
  cursor: pointer;
}
.knife-cuts :is(button, .front-key):is([aria-pressed="true"], [data-default]) {
  background: #284b32;
  color: #fff7de;
}

.knife-cuts button:focus-visible {
  outline: 3px dashed #171f17;
  outline-offset: 2px;
}
@media (max-width: 760px) {
  .wrap-mast {
    display: grid;
    gap: 0.65rem;
  }
  .wrap-mast h1 {
    font-size: clamp(4rem, 17vw, 8rem);
  }
  .wrap-mast a {
    margin: 0;
  }
  .wrap-sheet {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
  .wrap-sheet figure {
    height: clamp(130px, 39vw, 230px);
  }
  .deli-cut {
    padding: 0.6rem 0.2rem;
  }
}

.wrap-mast h1 {
  font-size: clamp(4rem, 8.2vw, 9rem);
}
@media (max-width: 760px) {
  .wrap-mast {
    grid-template-columns: minmax(0, 1fr) 58px;
  }
  .wrap-mast h1 {
    grid-area: 1/1/2/2;
    white-space: normal;
    font-size: clamp(2.9rem, 13vw, 6rem);
  }

  .wrap-mast p,
  .wrap-mast a {
    grid-column: 1/-1;
  }
  .wrap-sheet,
  .wrap-sheet > * {
    min-width: 0;
  }
}

@media (min-width: 761px) {
  .wrap-mast {
    display: grid;
    grid-template-columns:
      clamp(56px, 7.2vw, 100px) max-content minmax(150px, 1fr)
      minmax(100px, 150px);
    gap: clamp(0.65rem, 1.8vw, 1.8rem);
  }
  .wrap-mast h1 {
    font-size: clamp(3.15rem, 6.9vw, 7.3rem);
    white-space: nowrap;
  }
  .wrap-mast a {
    margin: 0;
  }
}

@media (min-width: 681px) and (max-width: 960px) {
  .stack-bench-chapter .chapter-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .stack-bench-chapter .chapter-intro {
    max-width: 43rem;
  }
  .stack-bench-chapter .chapter-intro h2 {
    font-size: clamp(2.9rem, 6.5vw, 4rem);
    overflow-wrap: normal;
  }
}

/* The printed panel is available before the interactive controls load. */
#front-panel [data-front-preview] .front-key {
  cursor: default;
}
#front-panel [data-front-preview] a.front-key {
  cursor: pointer;
}
:where(.front-key, .front-value) {
  display: inline-block;
  box-sizing: border-box;
  font: inherit;
  line-height: inherit;
  text-align: center;
}

/* Keep printed labels on the same lines as their interactive counterparts. */
#front-panel [data-setting-width] {
  display: inline-grid;
  justify-items: center;
  align-items: center;
}
#front-panel [data-setting-width]::before,
#front-panel [data-setting-width] > span {
  grid-area: 1/1;
}
#front-panel [data-setting-width]::before {
  content: attr(data-setting-width);
  visibility: hidden;
}

.wrap-mast {
  display: grid;
  grid-template-columns: max-content minmax(12rem, 1fr) auto;
  gap: clamp(0.7rem, 2.4vw, 2.4rem);
}
.wrap-sheet {
  background: #f1e9ce;
  border: 0;
  border-block: 2px solid #435b38;
}
.wrap-sheet figure {
  clip-path: none;
}
.deli-cut .filling-note {
  margin: 0.75rem 0;
  line-height: 1.45;
  max-width: 43ch;
}
.ingredients-on-slip {
  list-style: disc;
  padding-left: 1.15rem;
  columns: 2;
  column-gap: 1.5rem;
  margin: 0.85rem 0;
}
.ingredients-on-slip li {
  break-inside: avoid;
  padding-bottom: 0.18rem;
}
.paper-stack {
  background: #f7edd0;
  box-shadow: none;
}
.wrap-mast h1 {
  font-size: clamp(3.35rem, 8vw, 8.5rem);
}
@media (max-width: 760px) {
  .wrap-mast {
    display: block;
  }
  .wrap-mast h1 {
    font-size: clamp(3.3rem, 14vw, 7rem);
  }
  .wrap-mast p {
    margin: 0.6rem 0;
  }
  .ingredients-on-slip {
    columns: 1;
  }
}
