/* The line that fills the square: one thin line on a warm white page, the square around it, one accent. */
:root {
  --page: #f3f0e8;          /* the page */
  --ink: #141414;           /* the folding line and the name */
  --muted: #a9a397;         /* the square, the corner marks, the small label */
  --accent: #2b3dff;        /* the line that runs through at the end, and its count */
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--page);
  color: var(--ink);
  font-family: 'Archivo Variable', 'Archivo', 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;
}

.frame,
.marks,
.line,
.pack {
  fill: none;
}

.frame {
  stroke: var(--muted);
  stroke-width: 0.75;
  opacity: 0.6;
}

.marks {
  stroke: var(--muted);
  stroke-width: 1;
}

.line {
  stroke: var(--ink);
  stroke-linejoin: miter;
  stroke-linecap: square;
}

.pack {
  stroke: var(--accent);
  stroke-linejoin: miter;
  stroke-linecap: square;
}

/* ---------------------------------------------------------------- the type */
.caption {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
  -webkit-user-select: none;
}

.caption__name {
  font-size: 15px;
  font-weight: 600;
  font-stretch: 88%;
  letter-spacing: 0.01em;
}

.caption__count {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.caption__num {
  display: inline-block;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
  font-weight: 300;
  font-stretch: calc(var(--w, 125) * 1%);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  text-align: right;
}

.caption__num.is-accent {
  color: var(--accent);
}

.caption__label {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 4.6em;
}
