/* Hallmark · custom · Wheelhouse Cheese · A Stockport cheesemonger with cream counter labels and a print-ready cut list. */
/* Critique: the trade sets the content and primary interaction. */
@font-face {
  font-family: "gloock";
  src: url("./fonts/gloock.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "work-sans";
  src: url("./fonts/work-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --paper: #e9e6dd;
  --ink: #2e3028;
  --line: #a8a394;
  --cta: #972d23;
  --ctaink: #fff7e2;
  --body: "work-sans", Arial, sans-serif;
  --display: "gloock", Georgia, serif;
  --weight: 400;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  overflow-x: clip;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4,
p,
figure,
dl,
dd {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  font-family: var(--display);
  min-width: 0;
  overflow-wrap: break-word;
  line-height: 1.02;
  font-weight: var(--weight, 600);
}
h1,
h2 {
  text-wrap: balance;
}
p {
  max-width: 62ch;
  text-wrap: pretty;
}
a {
  color: inherit;
  text-underline-offset: 0.22em;
}
a,
button,
select,
input {
  touch-action: manipulation;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
select,
summary {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}
button:enabled:active,
.cta:active {
  transform: translateY(1px);
}
:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
  box-shadow: 0 0 0 2px Canvas;
}
img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.skip {
  position: absolute;
  z-index: 10;
  top: -8rem;
  left: 1rem;
  background: var(--paper);
  color: var(--ink);
  padding: 0.75rem 1rem;
}
.skip:focus {
  top: 0.5rem;
}
.wrap {
  width: min(calc(100% - clamp(2rem, 8vw, 8rem)), 80rem);
  margin-inline: auto;
}
.mast {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 4.7rem;
}
.brand {
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.25vw, 2rem);
  line-height: 1;
  letter-spacing: -0.035em;
  text-decoration: none;
}
.mast nav,
footer .wrap {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.8vw, 2rem);
  flex-wrap: wrap;
}
.mast nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-size: 0.92rem;
}
.mast nav a:hover {
  text-decoration: underline;
}
.cta,
.takeaway {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.65rem 1.1rem;
  text-decoration: none;
  font-weight: 650;
  border: 1px solid var(--cta);
  background: var(--cta);
  color: var(--ctaink);
}
.cta:hover,
.takeaway:hover {
  text-decoration: underline;
}
.band {
  padding-block: clamp(3rem, 7.2vw, 7.5rem);
}
.band h2 {
  font-size: clamp(2.65rem, 5.5vw, 5.6rem);
  letter-spacing: -0.045em;
  line-height: 1;
  margin-bottom: 1rem;
}
.band h3,
#tool h3 {
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
  margin-bottom: 0.55rem;
}
.band p + p,
#tool p + p {
  margin-top: 0.7rem;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
legend,
label {
  font-weight: 650;
}
.controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-block: 1rem;
}
.controls label,
.form-label {
  display: grid;
  gap: 0.35rem;
  align-content: start;
  min-width: 0;
}
select,
input[type="number"],
input[type="text"],
textarea {
  min-height: 2.8rem;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 1px solid currentColor;
  border-radius: 0;
  padding: 0.55rem 0.7rem;
  color: var(--ink);
  background: var(--paper);
}
textarea {
  resize: vertical;
  min-height: 4.2rem;
}
.options,
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.7rem 0 1rem;
}
.options button,
.quiet,
.step button {
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  min-height: 2.8rem;
  padding: 0.5rem 0.8rem;
}
.options button[aria-pressed="true"] {
  color: var(--ctaink);
  background: var(--cta);
  border-color: var(--cta);
}
.options button:hover,
.quiet:hover {
  text-decoration: underline;
}
.step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.step button {
  min-width: 2.8rem;
}
.step output {
  min-width: 1.5rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.fine,
figcaption {
  font-size: 0.85rem;
  line-height: 1.45;
}
[role="status"] {
  min-height: 1.4em;
  font-size: 0.9rem;
}
details {
  border-top: 1px solid var(--line);
  margin-top: 1rem;
  padding-top: 0.65rem;
}
summary {
  font-weight: 650;
  min-height: 2.5rem;
}
details p {
  padding-bottom: 0.65rem;
}
address {
  font-style: normal;
  line-height: 1.7;
}
footer {
  padding: 1.7rem 0;
  border-top: 1px solid var(--line);
}
footer .wrap {
  justify-content: space-between;
}
footer p,
footer a {
  font-size: 0.83rem;
}
@media (max-width: 560px) {
  .mast {
    gap: 0.4rem;
    min-height: 4.25rem;
  }
  .mast nav {
    gap: 0.6rem;
  }
  .mast nav a {
    font-size: 0.8rem;
  }
  .mast .brand {
    font-size: 1.2rem;
  }
  .controls {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

:root {
  --wire: #972d23;
  --ivory: #fff7e2;
  --sage: #c7cbb6;
  --smoke: #d5d1c6;
}
header {
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 1.7rem;
}
.counter-board {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  padding-block: clamp(1.6rem, 3.8vw, 3.6rem);
  align-items: center;
}
.counter-board figure {
  position: relative;
  padding: 0.6rem;
  background: var(--ivory);
  border: 1px solid var(--line);
  transform: rotate(-2deg);
  box-shadow: 4px 5px 0 var(--smoke);
}
.counter-board img {
  height: clamp(21rem, 34vw, 34rem);
  object-position: 50% 51%;
}
.counter-board figcaption {
  padding: 0.5rem 0.3rem 0;
}
.counter-sign {
  padding: clamp(1.5rem, 3.8vw, 4rem);
  position: relative;
  z-index: 1;
}

.counter-sign h1 {
  font-size: clamp(4.4rem, 8.6vw, 8.8rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
}
.counter-sign p {
  margin: 1.4rem 0;
  max-width: 33ch;
  font-size: 1.1rem;
}
.cheese-counter {
  background: var(--sage);
}
.counter-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.7rem;
}
.counter-cards article {
  padding: 1rem;
  background: var(--ivory);
  border-top: 4px solid var(--wire);
}
.counter-cards strong {
  display: block;
  margin-top: 0.8rem;
}
.board-title {
  max-width: 64rem;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 5%;
  align-items: end;
  margin-bottom: 1.7rem;
}
.planner-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 5%;
  align-items: start;
}
.cheese-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}
.cheese-checks label {
  display: flex;
  align-items: center;
  min-height: 2.9rem;
  gap: 0.55rem;
  padding: 0.45rem;
  border: 1px solid var(--line);
  background: var(--ivory);
}
.cheese-checks input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--wire);
}
.cutting-label {
  background: var(--ivory);
  border: 1px solid var(--ink);
  padding: clamp(1rem, 2.4vw, 2.3rem);
  box-shadow: 4px 4px 0 var(--smoke);
}
.cut-row,
.cut-total {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.cut-total {
  border-top: 2px solid var(--wire);
  font-weight: bold;
  margin-top: 0.4rem;
}

.counter-room {
  background: var(--smoke);
}
.counter-room > .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 8%;
  align-items: center;
}
.counter-room img {
  height: clamp(17rem, 28vw, 26rem);
}
.counter-room address {
  margin: 1rem 0;
}
@media (max-width: 710px) {
  .counter-board,
  .board-title,
  .planner-grid,
  .counter-room > .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.35rem;
  }
  .counter-sign {
    padding: 0.35rem 0.6rem;
    grid-row: 1;
  }
  .counter-sign h1 {
    font-size: clamp(3.9rem, 14vw, 6rem);
  }
  .counter-board figure {
    width: 96%;
    margin: auto;
  }
  .counter-board img {
    height: 53vw;
  }

  .counter-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mast nav a:first-child {
    display: none;
  }
}
@media print {
  body {
    background: white;
    color: black;
  }
  header,
  footer,
  .skip,
  main > section:not(#board),
  .board-title,
  .planner-grid > div:first-child,
  .cutting-label .actions,
  [role="status"] {
    display: none !important;
  }
  .board-planner {
    width: 100%;
    padding: 0;
  }
  .planner-grid {
    display: block;
  }
  .cutting-label {
    box-shadow: none;
    border: 1px solid black;
  }
}

/* Wax paper and cutting wire */
.wire-counter {
  width: min(1380px, 94%);
  margin: 2rem auto 4rem;
  display: grid;
  grid-template-columns: 0.65fr 1.5fr;
  gap: clamp(0.9rem, 3.4vw, 4rem);
  align-items: center;
}
.wire-title h1 {
  font: clamp(4.6rem, 8.7vw, 9rem)/0.85 var(--display);
  letter-spacing: -0.055em;
}
.wire-title p {
  margin: 0.95rem 0;
  max-width: 20rem;
}
.wire-title a {
  font-weight: 800;
}
.wax-sheet {
  position: relative;
  isolation: isolate;
  background: linear-gradient(
    141deg,
    #f2e7bf 0 18%,
    #c5b486 18.2% 18.4%,
    #eee2b8 18.6% 79%,
    #d9ceaa 79.2%
  );
  padding: clamp(0.5rem, 1.2vw, 1.25rem);
  color: #393827;
  display: grid;
  grid-template-columns: 0.85fr 1.1fr;
  gap: 1rem;
  border-bottom: 5px solid #797053;
}
.wax-sheet > figure {
  margin: 0;
  align-self: stretch;
  min-width: 0;
}
.wax-sheet > figure img {
  display: block;
  width: 100%;
  height: calc(100% - 1.65rem);
  max-height: 370px;
  object-fit: cover;
}
.wax-sheet > figure figcaption {
  font-size: 0.77rem;
  margin: 0.25rem 0;
  line-height: 1.25;
}
.wire-mat {
  padding: 0.2rem 0;
}
.wire-mat header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem;
  border-bottom: 1px solid #756749;
}
.wire-mat header strong {
  font: clamp(1.55rem, 2.65vw, 3rem) var(--display);
}
.wire-mat header b {
  font: 700 0.8rem monospace;
}

.wire-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.wire-switch :is(button, .front-key) {
  border: 1px solid #73674a;
  border-radius: 0;
  background: #f7edcf;
  color: #343525;
  padding: 0.36rem 0.48rem;
  font-size: 0.78rem;
  font-weight: bold;
  cursor: pointer;
}
.wire-switch :is(button, .front-key):is([aria-pressed="true"], [data-default]) {
  background: #3f4836;
  color: #fff3cd;
}
.wire-switch button:focus-visible {
  outline: 3px dashed #3f4633;
  outline-offset: 2px;
}
.counter-board figure,
.board-planner .paper {
  transform: none;
}
@media (max-width: 830px) {
  .wire-counter {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
  }
  .wire-title h1 {
    font-size: clamp(3rem, 11vw, 6rem);
  }
  .wire-title h1 br {
    display: none;
  }
  .wire-title p {
    margin: 0.6rem 0;
  }
  .wax-sheet {
    grid-template-columns: 0.7fr 1.15fr;
    gap: 0.5rem;
  }

  .wax-sheet > figure img {
    height: calc(100% - 2.3rem);
  }
  .wax-sheet > figure figcaption {
    font-size: 0.67rem;
  }
}

.wire-title h1 {
  clear: none;
}
@media (max-width: 830px) {
}

@media (min-width: 831px) {
  .wire-title {
    position: relative;
  }
  .wire-title h1 {
    font-size: clamp(3.9rem, 6.95vw, 7.7rem);
    line-height: 0.89;
  }

  .wire-title p {
    max-width: calc(100% - 57px);
  }
}

/* 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;
}

.wire-title p {
  max-width: 29rem;
}
.wax-sheet {
  background: #efe6c9;
  border: 0;
  border-block: 2px solid #746a4b;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.wax-sheet > figure img {
  height: clamp(215px, 28vw, 390px);
  max-height: none;
}
.cheese-weights {
  margin: 0.8rem 0;
}
.cheese-weights > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid #a99d7d;
}
.cheese-weights dd {
  font-weight: bold;
  font-variant-numeric: tabular-nums;
}
.wire-title {
  position: static;
}
@media (max-width: 830px) {
  .wax-sheet {
    grid-template-columns: 1fr;
  }
  .wax-sheet > figure img {
    height: clamp(155px, 41vw, 240px);
  }
  .wire-mat {
    padding: 0.3rem 0;
  }
  .wire-counter .wire-title p {
    max-width: 100%;
  }
}
