@font-face {
  font-family: DM;
  src: url(/fonts/dm-sans-latin.woff2?v=0b60cb970d494871);
}
@font-face {
  font-family: Instrument;
  src: url(/fonts/instrument-serif-italic-latin.woff2?v=0b60cb970d494871);
  font-style: italic;
}
* {
  box-sizing: border-box;
}
body {
  --paper: #f7f4ed;
  --ink: #221f1d;
  --accent: #f14828;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px DM,
    Arial,
    sans-serif;
}
.chromafile {
  --paper: #eff2df;
  --ink: #192619;
  --accent: #78952b;
}
.proofsheet {
  --paper: #e8edf4;
  --ink: #182333;
  --accent: #4868a1;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
header,
main,
footer {
  width: min(1440px, 92%);
  margin: auto;
}
header,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid #9997;
}
header a,
footer a {
  text-decoration: none;
  font-size: 14px;
}
.brand {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.09em;
  font-style: italic;
}
.brand span {
  font-size: 13px;
  letter-spacing: -0.03em;
  font-style: normal;
}
.mast {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: clamp(30px, 5vw, 68px) 0 32px;
}
.mast h1 {
  font-weight: 550;
  font-size: clamp(54px, 8vw, 125px);
  line-height: 0.95;
  letter-spacing: -0.085em;
  margin: 10px 0 0;
}
.mast h1 i {
  color: var(--accent);
}
.chromafile h1 {
  font-family: Instrument, Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.045em;
}
.proofsheet h1 {
  font-family: Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.07em;
}
.kicker {
  text-transform: uppercase;
  font: 11px monospace;
  letter-spacing: 0.1em;
}
.mast > p {
  max-width: 36ch;
  font-size: 17px;
  line-height: 1.5;
  margin: 0;
}
.bench {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(255px, 0.68fr);
  gap: clamp(20px, 4vw, 70px);
  border-top: 1px solid #9997;
  padding-top: 24px;
}
.stage {
  background: #dedbd2;
  padding: clamp(16px, 3vw, 45px);
  display: grid;
  place-items: center;
  min-height: 350px;
}
.proofsheet .stage {
  background: #bfc9d7;
}
.chromafile .stage {
  background: #d9dfc5;
}
.visual {
  margin: 0;
  width: 100%;
  display: grid;
  place-items: center;
}
canvas {
  max-height: 570px;
  max-width: 100%;
  width: auto;
  height: auto;
  box-shadow: 1px 8px 20px #15151521;
}
.controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.controls h2 {
  font-size: 24px;
  letter-spacing: -0.04em;
  margin: 0;
}
.controls label {
  font-size: 14px;
  font-weight: 600;
  display: grid;
  gap: 8px;
}
.controls :is(input, textarea, select) {
  font:
    16px DM,
    Arial,
    sans-serif;
  width: 100%;
  padding: 12px;
  border: 1px solid #8889;
  background: transparent;
  color: inherit;
  border-radius: 4px;
}
.controls input[type="file"] {
  font-size: 13px;
}
.controls textarea {
  resize: vertical;
}
.controls button {
  align-self: flex-start;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  padding: 14px 24px;
  border-radius: 99px;
  font: inherit;
  cursor: pointer;
}
.controls button:disabled {
  opacity: 0.4;
  cursor: wait;
}
.hint,
#status {
  font-size: 13px;
  line-height: 1.5;
  margin: -8px 0 0;
}
.colour-output {
  width: 100%;
}
.colour-output img {
  width: 100%;
  height: clamp(190px, 26vw, 420px);
  object-fit: contain;
  background: #151815;
}
.swatches {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.swatches span {
  display: flex;
  flex-direction: column;
  font: 11px monospace;
  background: #fafaf2;
  padding-bottom: 8px;
  gap: 8px;
  text-align: center;
}
.swatches i {
  height: 58px;
}
footer {
  margin-top: 46px;
  border-top: 1px solid #9997;
  border-bottom: 0;
  font-size: 13px;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 5px;
  background: white;
  padding: 10px;
}
:focus-visible {
  outline: 3px solid #b5472c;
  outline-offset: 3px;
}
@media (max-width: 710px) {
  .mast {
    display: block;
  }
  .mast > p {
    margin-top: 18px;
  }
  .bench {
    grid-template-columns: 1fr;
  }
  .stage {
    min-height: 220px;
  }
  .visual canvas {
    max-height: 370px;
  }
  .controls {
    gap: 14px;
  }
  .controls button {
    min-height: 46px;
  }
}
