/* The box that folds itself: a die-cut in thin lines on a warm white page, one accent for the printed name. */
:root {
  --page: #f3f0e8;          /* the page, and the outside of the board */
  --inside: #ebe7dd;        /* the inside of the board, the side you see while it lies flat */
  --shade: #dcd6c8;         /* the side of the box turned away from the light */
  --ink: #161616;           /* the cut lines, the fold lines, the title */
  --muted: #9a9488;         /* the small text */
  --accent: #ff4b1f;        /* the name printed on the box */
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

body {
  background: var(--page);
  color: var(--ink);
  font-family: 'Instrument Sans Variable', 'Instrument Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.face {
  stroke: none;
}

.cut,
.fold {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fold {
  stroke-width: 1;
}

.print {
  fill: var(--accent);
  font-family: 'Instrument Sans Variable', 'Instrument Sans', system-ui, sans-serif;
  font-weight: 640;
  font-stretch: 82%;
  letter-spacing: -0.01em;
}

/* ---------------------------------------------------------------- the type */
.caption {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  text-align: center;
  user-select: none;
  -webkit-user-select: none;
}

.caption__title {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.1;
  font-weight: 300;
  font-stretch: 78%;
  letter-spacing: -0.02em;
}

.caption__note {
  margin: 8px 0 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.ch {
  display: inline-block;
  white-space: pre;
  font-stretch: calc(var(--w, 78) * 1%);
}
