/* Ukusiza Abafundi: one Kits for Hope crate, printed in one black ink on kraft board.
   Colour lives only on phase tape and only where something is chosen. */

@font-face {
  font-family: "Saira Stencil One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/saira-stencil-one-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/lexend-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Overpass Mono";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/overpass-mono-latin.woff2") format("woff2");
}

:root {
  /* board and ink */
  --kraft: #c49a6a;
  --kraft-dk: #ad8253;
  --kraft-lt: #d6b285;
  --crate: #b48a5c;
  --ink: #1b1512;
  --ink-2: #3d2a1b;
  --label: #fbfbf8;
  --white: #ffffff;
  --err: #b3121a;

  /* phase tape, from the logo */
  --pink: #da176b;
  --blue: #4c9fd7;
  --red: #e31b23;
  --green: #70be44;
  --orange: #f3a11e;

  --f-stencil: "Saira Stencil One", "Arial Narrow", sans-serif;
  --f-body: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Overpass Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* one module: the board's flute pitch */
  --m: 8px;
  --gutter: calc(var(--m) * 3);
  --wrap: 1360px;
  --pad: clamp(16px, 4vw, 48px);
  --face-pad: clamp(64px, 8vw, 120px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
  scrollbar-color: var(--ink) var(--kraft);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--m);
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--kraft);
  /* kraft liner: faint flute ribbing and paper fibre */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9 .35' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .27 0 0 0 0 .12 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23f)' opacity='.28'/%3E%3C/svg%3E"),
    repeating-linear-gradient(90deg, rgba(110, 72, 34, 0.07) 0 1px, transparent 1px var(--m));
  caret-color: var(--ink);
  font-variant-numeric: tabular-nums;
}

::selection { background: var(--ink); color: var(--kraft-lt); }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }

a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute;
  left: var(--pad);
  top: -100px;
  z-index: 10;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--label);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 8px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.num {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums slashed-zero;
}

/* ---------- board structure ---------- */

/* a scored crease between two faces of the crate */
.crease {
  height: 0;
  border-top: 2px solid var(--kraft-dk);
  border-bottom: 1px solid var(--kraft-lt);
}

.face { padding-block: var(--face-pad); }

.title {
  font-family: var(--f-stencil);
  font-weight: 400;
  font-size: clamp(2.25rem, 1.25rem + 3vw, 4rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  text-wrap: balance;
  max-width: 18ch;
}

.textlink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  cursor: pointer;
}
.textlink:hover { text-decoration-thickness: 3.5px; }
.textlink--big { font-size: 1.125rem; }

.btn__icon { width: 18px; height: 18px; flex: none; }

/* ---------- top flap: header ---------- */

.flap { border-bottom: 2px solid var(--kraft-dk); box-shadow: 0 1px 0 var(--kraft-lt); }

.flap__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--m) calc(var(--m) * 4);
  padding-block: calc(var(--m) * 2);
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--m) * 1.5);
  text-decoration: none;
  min-height: 44px;
}

.brand__sticker {
  display: grid;
  place-items: center;
  width: 64px;
  height: 52px;
  padding: 5px 7px;
  background: var(--white);
  border-radius: 4px;
  box-shadow: 0 1px 1px rgba(60, 35, 10, 0.25), 0 6px 12px -8px rgba(60, 35, 10, 0.6);
  transform: rotate(-2deg);
}
.brand__sticker img { width: 100%; height: auto; }

.brand__name {
  display: flex;
  flex-direction: column;
  font-family: var(--f-stencil);
  font-size: 1.375rem;
  line-height: 1;
  text-transform: uppercase;
}
.brand__sub {
  margin-top: 4px;
  font-family: var(--f-body);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: none;
  color: var(--ink-2);
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 calc(var(--m) * 3);
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--f-stencil);
  font-size: 1.125rem;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--ink); }

/* ---------- face 1: printed front with the waybill ---------- */

.face--front { padding-block: calc(var(--m) * 3) calc(var(--m) * 12); }

.front {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  /* the waybill spans both rows; the second row takes what the name leaves */
  grid-template-rows: auto 1fr;
  column-gap: var(--gutter);
  align-items: start;
}

.front__name {
  grid-column: 1 / span 7;
  grid-row: 1;
  font-family: var(--f-stencil);
  font-weight: 400;
  font-size: clamp(3rem, 0.4rem + 6.6vw, 6rem);
  line-height: 0.88;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}
.front__line { display: block; }

.front__copy {
  grid-column: 1 / span 7;
  grid-row: 2;
  padding-top: calc(var(--m) * 4);
}

.front__meaning {
  font-size: 1.25rem;
  font-weight: 600;
}
.front__meaning q { quotes: "“" "”"; }

.front__offer {
  margin-top: calc(var(--m) * 2);
  font-size: clamp(1.1875rem, 1rem + 0.5vw, 1.4375rem);
  line-height: 1.5;
  max-width: 34ch;
}

.marks {
  margin-top: calc(var(--m) * 5);
  border: 2px solid var(--ink);
  max-width: 36rem;
}
.marks > div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: calc(var(--m) * 2);
  padding: 10px 16px;
  border-top: 1px solid var(--ink);
}
.marks > div:first-child { border-top: 0; }
.marks dt {
  font-family: var(--f-stencil);
  font-size: 1rem;
  text-transform: uppercase;
  line-height: 1.6;
}
.marks dd { font-size: 0.9375rem; line-height: 1.55; }
.marks dd.num { font-size: 0.875rem; font-weight: 600; }

/* the waybill label */
.waybill {
  /* at rest the tape is plain black ink; a picked phase floods it with that phase's colour */
  --c: var(--ink);
  --on: var(--label);
  grid-column: 8 / -1;
  grid-row: 1 / span 2;
  position: relative;
  z-index: 1;
  margin-top: calc(var(--m) * 3);
  padding: calc(var(--m) * 4) calc(var(--m) * 3) calc(var(--m) * 2.5);
  background: var(--label);
  border-radius: 3px;
  box-shadow:
    0 1px 2px rgba(60, 35, 10, 0.2),
    0 18px 32px -16px rgba(60, 35, 10, 0.55);
}

.waybill[data-kit="FP"]  { --c: var(--pink);   --on: var(--white); }
.waybill[data-kit="IP"]  { --c: var(--blue);   --on: var(--ink); }
.waybill[data-kit="SP"]  { --c: var(--red);    --on: var(--white); }
.waybill[data-kit="FET"] { --c: var(--green);  --on: var(--ink); }
.waybill[data-kit="CR"]  { --c: var(--orange); --on: var(--ink); }

.tape {
  position: absolute;
  top: -20px;
  left: -26px;
  right: -26px;
  height: 46px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--c);
  color: var(--on);
  transform: rotate(-1.2deg);
  box-shadow: 0 1px 1px rgba(27, 21, 18, 0.25);
  transition: background-color 0.2s linear, color 0.2s linear;
}
.tape::after {
  /* tape gloss: a pale band along the top edge */
  content: "";
  position: absolute;
  inset: 3px 0 auto;
  height: 9px;
  background: rgba(255, 255, 255, 0.16);
}
.tape__print {
  padding-left: 48px;
  font-family: var(--f-stencil);
  font-size: 0.9375rem;
  text-transform: uppercase;
  white-space: nowrap;
  word-spacing: 0.15em;
}
.tape.is-pulling { animation: tape-pull 0.7s var(--ease-out) both; }

@keyframes tape-pull {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

.waybill__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 0 calc(var(--m) * 2);
}
.waybill__title {
  font-family: var(--f-stencil);
  font-weight: 400;
  font-size: 1.875rem;
  line-height: 1;
  text-transform: uppercase;
}
.waybill__title span {
  display: block;
  margin-top: 4px;
  font-family: var(--f-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: none;
}
.waybill__label {
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.barcode {
  grid-column: 1 / -1;
  width: 100%;
  height: 30px;
  margin-top: calc(var(--m) * 2);
  fill: var(--ink);
}
.waybill__ref {
  grid-column: 1 / -1;
  margin-top: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}
.waybill__ref output { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.04em; }

.field {
  position: relative;
  min-width: 0;
  margin: calc(var(--m) * 2) 0 0;
  padding: calc(var(--m) * 1.75) 0 0;
  border: 0;
}
.field::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  border-top: 1.5px solid var(--ink);
}
.field legend {
  float: left;
  width: 100%;
  margin: 0 0 8px;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 600;
}
.field legend + * { clear: both; }
.opt { font-weight: 400; color: var(--ink-2); }

/* kit chips: a swatch of each phase tape */
.kits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--m);
}
.kit {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 6px 10px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  background: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.15s linear, color 0.15s linear;
}
.kit input,
.amt input,
.check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.kit__sw {
  display: grid;
  place-items: center;
  flex: none;
  width: 18px;
  height: 18px;
  background: var(--c);
  border: 1px solid var(--ink);
}
.kit__sw svg { width: 14px; height: 14px; opacity: 0; color: var(--ink); }
.kit__txt small {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  font-weight: 400;
}
.kit:hover { background: #f1ece3; }
.kit:has(input:checked) {
  background: var(--c);
  color: var(--on);
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.kit:has(input:checked) .kit__sw { background: var(--white); }
.kit:has(input:checked) .kit__sw svg { opacity: 1; }
.kit:has(input:focus-visible),
.amt:has(input:focus-visible),
.check:has(input:focus-visible) {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.amounts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--m);
}
.amt { cursor: pointer; position: relative; }
.amt span {
  display: grid;
  place-items: center;
  min-width: 68px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  background: var(--white);
  font-family: var(--f-mono);
  font-size: 1rem;
  font-weight: 700;
  transition: background-color 0.15s linear, color 0.15s linear;
}
.amt:hover span { background: #f1ece3; }
.amt:has(input:checked) span { background: var(--ink); color: var(--label); }

.other { margin-top: calc(var(--m) * 1.5); }
.other label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 6px; }
.other input {
  width: 11ch;
  min-height: 44px;
  padding: 8px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  background: var(--white);
  font-family: var(--f-mono);
  font-size: 1.125rem;
  font-weight: 700;
}
.other input::placeholder { color: #6b5a4c; font-weight: 500; }
.other input[aria-invalid="true"] { border-color: var(--err); box-shadow: inset 0 0 0 1px var(--err); }
.other__error { margin-top: 6px; font-size: 0.875rem; font-weight: 600; color: var(--err); }
.other__error:empty { display: none; }

/* the declared value, one digit per box */
.digits {
  display: flex;
  align-items: center;
  gap: 3px;
}
.digits__r {
  margin-right: 5px;
  font-family: var(--f-stencil);
  font-size: 1.625rem;
  line-height: 1;
}
.digits__box {
  display: grid;
  place-items: center;
  width: 28px;
  height: 38px;
  border: 1.5px solid var(--ink);
  font-family: var(--f-mono);
  font-size: 1.3125rem;
  font-weight: 700;
  line-height: 1;
}
.digits__box > span { display: block; }
.digits__box.is-stamped > span { animation: stamp 0.3s var(--ease-out) both; }

/* a rubber stamp pressed down once: travel, squash on contact, ink settles */
@keyframes stamp {
  0%   { transform: translateY(-8px) scale(1.08); opacity: 0; }
  45%  { transform: translateY(1px) scale(1.06, 0.88); opacity: 1; text-shadow: 0 0 1.5px currentColor; }
  100% { transform: none; opacity: 1; text-shadow: none; }
}


.from { margin-top: calc(var(--m) * 1.25); }
.from label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 6px; }
.from label span { font-weight: 400; color: var(--ink-2); }
.from input {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  background: var(--white);
  font: inherit;
  font-size: 1rem;
}

.check {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-top: calc(var(--m) * 1.5);
  padding-top: calc(var(--m) * 1);
  border-top: 1.5px solid var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}
.check__box {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--ink);
  background: var(--white);
}
.check__box svg { width: 16px; height: 16px; opacity: 0; }
.check:has(input:checked) .check__box { background: var(--ink); color: var(--label); }
.check:has(input:checked) .check__box svg { opacity: 1; }

.waybill__actions {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--m) * 1.5);
  margin-top: calc(var(--m) * 1.5);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 20px;
  border-radius: 2px;
  text-decoration: none;
  transition: transform 0.12s var(--ease-out), background-color 0.15s linear;
}
.btn--send {
  flex: 1 1 auto;
  background: var(--ink);
  color: var(--label);
  font-family: var(--f-stencil);
  font-size: 1.1875rem;
  text-transform: uppercase;
  border: 1.5px solid var(--ink);
}
.btn--send:hover { background: #000; }
.btn--send:hover .btn__icon { transform: translateX(3px); }
.btn--send .btn__icon { transition: transform 0.2s var(--ease-out); }
.btn--send:active { transform: translateY(1px); }
.btn--send[aria-disabled="true"] { background: #6b5a4c; border-color: #6b5a4c; cursor: not-allowed; }
.waybill__copy { flex: none; font-size: 0.9375rem; }

.waybill__note {
  margin-top: calc(var(--m) * 1.5);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.waybill__status { display: block; font-weight: 600; color: var(--ink); }
.waybill__status:empty { display: none; }

/* ---------- face 2: the kits manifest ---------- */

.kits-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: calc(var(--m) * 3);
  align-items: end;
}
.kits-head .title { grid-column: 1 / span 7; }
.kits-head__intro { grid-column: 8 / -1; max-width: 42ch; }

.manifest {
  --cols: 16;
  margin-top: calc(var(--m) * 7);
}
.row,
.ruler {
  display: grid;
  grid-template-columns: minmax(260px, 25rem) minmax(0, 1fr);
  column-gap: calc(var(--m) * 5);
  align-items: center;
}
.row {
  padding-block: 20px;
  border-top: 1.5px solid var(--ink);
}
.row:last-child { border-bottom: 1.5px solid var(--ink); }

.row__phase {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}
.row__text p { margin-top: 4px; max-width: 40ch; }

.pick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: none;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.pick:hover { text-decoration-thickness: 3.5px; }

.row__track {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  height: 100%;
  min-height: 96px;
  align-items: center;
  /* grade guides, one per column */
  background-image: linear-gradient(to right, rgba(27, 21, 18, 0.16) 1px, transparent 1px);
  background-size: calc(100% / var(--cols)) 100%;
}

.crate {
  grid-column: var(--from) / var(--to);
  position: relative;
  display: grid;
  place-items: end start;
  height: 88px;
  padding: 8px 10px;
  container-type: inline-size;
  background: var(--crate);
  border: 2px solid var(--ink);
  box-shadow: 0 10px 14px -12px rgba(60, 35, 10, 0.8);
}
.crate__tape {
  position: absolute;
  left: -2px;
  right: -2px;
  top: 14px;
  height: 20px;
  /* clear packing tape at rest */
  background: rgba(255, 244, 222, 0.32);
  border-block: 1px solid rgba(27, 21, 18, 0.35);
}
.crate__grades {
  font-family: var(--f-stencil);
  text-transform: uppercase;
  font-size: max(0.875rem, min(2.75rem, calc(100cqi / var(--ch, 3) * 1.2)));
  line-height: 1;
  white-space: nowrap;
}

.row.is-packed .crate__tape {
  background: var(--c);
  border-color: var(--ink);
  animation: tape-pull 0.7s var(--ease-out) both;
}
.row.is-packed .crate { border-width: 3px; }
.row.is-packed .row__phase::after {
  content: "On your waybill";
  display: inline-block;
  margin-left: 12px;
  padding: 1px 8px;
  border: 1.5px solid var(--ink);
  font-family: var(--f-stencil);
  font-size: 0.8125rem;
  font-weight: 400;
  text-transform: uppercase;
  vertical-align: 3px;
  transform: rotate(-3deg);
}

.ruler { padding-bottom: calc(var(--m) * 1.5); }
.ruler__scale {
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
  font-family: var(--f-mono);
  font-size: 0.875rem;
  font-weight: 700;
  /* ruler ticks: a long tick per grade, a short one between */
  background-image:
    linear-gradient(to right, var(--ink) 2px, transparent 2px),
    linear-gradient(to right, transparent calc(50% - 1px), var(--ink) calc(50% - 1px), var(--ink) calc(50% + 1px), transparent calc(50% + 1px));
  background-size: calc(100% / 16) 12px, calc(100% / 16) 6px;
  background-position: left bottom, left bottom;
  background-repeat: repeat-x;
}
.ruler__scale span { padding-left: 6px; }
.ruler__own {
  grid-column: span 3;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.8125rem;
}

.kits-note {
  margin-top: calc(var(--m) * 3);
  font-weight: 600;
}

/* ---------- face 3: the route ---------- */

.track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: calc(var(--m) * 4) var(--gutter);
  margin-top: calc(var(--m) * 7);
}
.track::before {
  /* the route line through every checkpoint */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(5.5rem * 0.82 + 22px);
  border-top: 2.5px dashed var(--ink);
}
.stop { position: relative; padding-top: 0; }
.stop__n {
  display: block;
  font-family: var(--f-stencil);
  font-size: 5.5rem;
  line-height: 0.82;
}
.stop__word {
  position: relative;
  margin-top: 44px;
  font-family: var(--f-stencil);
  font-weight: 400;
  font-size: 1.625rem;
  line-height: 1;
  text-transform: uppercase;
}
.stop__word::before {
  /* checkpoint square on the route line */
  content: "";
  position: absolute;
  left: 0;
  top: -30px;
  width: 16px;
  height: 16px;
  background: var(--ink);
}
.stop p { margin-top: 10px; max-width: 30ch; }

.alongside {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  margin-top: calc(var(--m) * 9);
  padding-top: calc(var(--m) * 3);
  border-top: 1.5px solid var(--ink);
}
.alongside__title {
  grid-column: 1 / span 3;
  font-family: var(--f-stencil);
  font-weight: 400;
  font-size: 1.625rem;
  line-height: 1.05;
  text-transform: uppercase;
}
.alongside ul {
  grid-column: 4 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(var(--m) * 2) var(--gutter);
}
.alongside strong { display: block; font-weight: 600; }

/* ---------- prints: photos in the board's one ink ---------- */

.print img { width: 100%; }

/* ---------- face 4: why ---------- */

.why {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: calc(var(--m) * 5);
  align-items: center;
}
.print--classroom { grid-column: 1 / span 7; }
.why__text { grid-column: 8 / -1; }
.why__text p { margin-top: calc(var(--m) * 2.5); max-width: 46ch; }
.why__text .title { margin-bottom: calc(var(--m) * 1); }
.why__sdg {
  padding-top: calc(var(--m) * 2);
  border-top: 1.5px solid var(--ink);
}

/* ---------- face 5: the learners ---------- */

.print--learners { margin-inline: calc(var(--pad) * -0.5); }

.learners {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: calc(var(--m) * 4);
  margin-top: calc(var(--m) * 6);
}
.learners .title { grid-column: 1 / span 6; max-width: 14ch; }
.learners__vision {
  grid-column: 7 / -1;
  font-size: clamp(1.1875rem, 1rem + 0.5vw, 1.4375rem);
  line-height: 1.5;
  max-width: 36ch;
}
.values {
  grid-column: 7 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(var(--m) * 2.5) var(--gutter);
}
.values li { padding-top: 10px; border-top: 1.5px solid var(--ink); }
.values strong {
  display: block;
  font-family: var(--f-stencil);
  font-weight: 400;
  font-size: 1.375rem;
  line-height: 1.1;
  text-transform: uppercase;
}

/* ---------- face 6: giving ---------- */

.give {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(var(--m) * 4) var(--gutter);
  margin-top: calc(var(--m) * 6);
}
.give__col { padding-top: calc(var(--m) * 2); border-top: 2px solid var(--ink); }
.give__col h3 { font-size: 1.25rem; font-weight: 600; }
.give__col p { margin-top: 8px; max-width: 40ch; }
.give__col .textlink { margin-top: 6px; }
.give__links { display: flex; flex-direction: column; align-items: flex-start; }
.give__status { font-size: 0.875rem; font-weight: 600; }
.give__status:empty { display: none; }

.award {
  display: inline-block;
  max-width: 30rem;
  margin-top: calc(var(--m) * 8);
  padding: calc(var(--m) * 2) calc(var(--m) * 2.5);
  border: 4px double var(--ink);
  transform: rotate(-1.5deg);
}
.award__head {
  font-family: var(--f-stencil);
  font-size: 1.125rem;
  line-height: 1.1;
  text-transform: uppercase;
}
.award__body { margin-top: 6px; font-weight: 600; line-height: 1.4; }

/* ---------- face 7: the shipper label ---------- */

.shipper {
  background: var(--label);
  border-radius: 3px;
  box-shadow:
    0 1px 2px rgba(60, 35, 10, 0.2),
    0 18px 32px -16px rgba(60, 35, 10, 0.55);
  overflow: hidden;
}
.shipper__title {
  padding: 14px calc(var(--m) * 3);
  background: var(--ink);
  color: var(--label);
  font-family: var(--f-stencil);
  font-weight: 400;
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
  line-height: 1;
  text-transform: uppercase;
}
.shipper__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.shipper__cell {
  padding: calc(var(--m) * 2.5) calc(var(--m) * 3) calc(var(--m) * 3);
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}
.shipper__cell:nth-child(3n) { border-right: 0; }
.shipper__cell--reg { grid-column: span 2; }
.shipper__cell--social { border-right: 0; }
.shipper__cell--reg,
.shipper__cell--social { border-bottom: 0; }
.shipper__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-2);
}
.shipper__label ~ .shipper__label { margin-top: calc(var(--m) * 2); }
.shipper__org {
  font-family: var(--f-stencil);
  font-size: 1.75rem;
  line-height: 1.05;
  text-transform: uppercase;
  margin: 4px 0 6px;
}
.reg {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  gap: 10px var(--gutter);
  margin-top: 8px;
}
.reg dt { font-size: 0.8125rem; font-weight: 500; }
.reg dd { font-size: 1.0625rem; font-weight: 700; }
.social { display: flex; flex-wrap: wrap; gap: 0 calc(var(--m) * 3); }

/* ---------- footer ---------- */

.foot {
  border-top: 2px solid var(--kraft-dk);
  box-shadow: inset 0 1px 0 var(--kraft-lt);
}
.foot__inner {
  display: grid;
  gap: 4px;
  padding-block: calc(var(--m) * 5) calc(var(--m) * 6);
  font-size: 0.875rem;
}
.foot__slogan {
  font-family: var(--f-stencil);
  font-size: 1.75rem;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  .front__name,
  .front__copy { grid-column: 1 / span 6; }
  .waybill { grid-column: 7 / -1; }
  .track { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .track::before { display: none; }
  .stop__word::before { display: none; }
  .stop__word { margin-top: 12px; }
  .alongside__title { grid-column: 1 / -1; margin-bottom: calc(var(--m) * 2); }
  .alongside ul { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .front { grid-template-rows: none; }
  .front__name { grid-column: 1 / -1; grid-row: auto; white-space: normal; }
  /* phones and tablets read name, offer, waybill; the crate marks follow the waybill */
  .front__copy { display: contents; }
  .front__meaning,
  .front__offer,
  .marks { grid-column: 1 / -1; }
  .front__meaning { padding-top: calc(var(--m) * 3); }
  .waybill { grid-column: 1 / -1; grid-row: auto; margin-top: calc(var(--m) * 7); }
  .marks { order: 1; margin-top: calc(var(--m) * 5); max-width: none; }
  .kits-head .title,
  .kits-head__intro { grid-column: 1 / -1; }
  .print--classroom,
  .why__text { grid-column: 1 / -1; }
  .learners .title,
  .learners__vision,
  .values { grid-column: 1 / -1; }
  .give { grid-template-columns: 1fr; }
  .shipper__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shipper__cell:nth-child(3n) { border-right: 1.5px solid var(--ink); }
  .shipper__cell:nth-child(2n) { border-right: 0; }
  .shipper__cell--reg { grid-column: 1 / -1; border-right: 0; border-bottom: 1.5px solid var(--ink); }
  .shipper__cell--social { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .row,
  .ruler { grid-template-columns: minmax(0, 1fr); row-gap: calc(var(--m) * 1.5); }
  .ruler__spacer { display: none; }
  .row__track { min-height: 72px; }
  .crate { height: 66px; padding: 6px; }
  .crate__tape { top: 10px; height: 16px; }
  .ruler__own { font-size: 0.6875rem; }
  .ruler__scale { font-size: 0.75rem; }
  .ruler__scale span { padding-left: 2px; }
}

@media (max-width: 640px) {
  .flap__inner { padding-block: calc(var(--m) * 1.5); }
  .brand__sticker { width: 52px; height: 42px; }
  .brand__name { font-size: 1.125rem; }
  .nav { width: 100%; }
  .nav ul { display: grid; grid-template-columns: repeat(2, max-content); gap: 0 calc(var(--m) * 4); }
  .nav a { font-size: 1rem; min-height: 40px; }
  .front__meaning { font-size: 1.125rem; }
  .front__offer { font-size: 1.0625rem; }
  .face--front { padding-top: calc(var(--m) * 4); }
  .waybill { padding: calc(var(--m) * 5) calc(var(--m) * 2) calc(var(--m) * 2.5); margin-inline: calc(var(--m) * -0.5); }
  .tape { left: -10px; right: -10px; }
  .kits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .amounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .amt span { min-width: 0; }
  .kit { min-height: 52px; }
  .waybill__head { grid-template-columns: minmax(0, 1fr); row-gap: calc(var(--m) * 1.5); }
  .digits__box { width: 30px; height: 40px; }
  .btn--send { width: 100%; }
  .marks > div { grid-template-columns: 1fr; gap: 0; }
  .track { grid-template-columns: minmax(0, 1fr); }
  .stop { display: grid; grid-template-columns: 4.25rem minmax(0, 1fr); column-gap: calc(var(--m) * 2); }
  .stop__n { grid-row: 1 / span 2; font-size: 4.25rem; }
  .stop__word { margin-top: 4px; }
  .alongside ul { grid-template-columns: minmax(0, 1fr); }
  .values { grid-template-columns: minmax(0, 1fr); }
  .shipper__grid { grid-template-columns: minmax(0, 1fr); }
  .shipper__cell { border-right: 0 !important; border-bottom: 1.5px solid var(--ink); }
  .shipper__cell--social { border-bottom: 0; }
  .award { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
.ruler + .row { border-top: 0; }
