/* The picture engraved in lines: warm paper, one plate of black lines in the middle and its title under it, in a
   variable serif (Fraunces: weight 100 to 900, optical size 9 to 144) that takes its weight with the lines. */
:root {
  --paper: #f3f0e8;    /* the page */
  --ink: #141414;      /* the lines and the title */
  --muted: #8d887e;    /* the small print */
  --accent: #e2432a;   /* the one line under the pointer */
}

* {
  box-sizing: border-box;
}

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

body {
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Fraunces Variable', 'Fraunces', Georgia, serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.top {
  position: absolute;
  top: 26px;
  left: 32px;
  right: 32px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.top p {
  margin: 0;
}

.mark {
  font-size: 17px;
  font-variation-settings: 'wght' 620, 'opsz' 18;
  letter-spacing: -0.01em;
}

.note {
  font-size: 13px;
  color: var(--muted);
  font-variation-settings: 'wght' 400, 'opsz' 12;
}

/* the script writes left, top, width and height */
.plate {
  position: absolute;
  margin: 0;
  visibility: hidden;
  cursor: crosshair;
  touch-action: pan-y;
}

.plate.is-ready {
  visibility: visible;
}

.lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cap {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

/* the title: the script moves its weight with the lines */
.cap__title {
  --g: 100;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.015em;
  white-space: nowrap;
  font-variation-settings: 'wght' var(--g), 'opsz' 72;
}

.cap__meta {
  font-size: 13px;
  color: var(--muted);
  font-variation-settings: 'wght' 400, 'opsz' 12;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .top {
    top: 20px;
    left: 20px;
    right: 20px;
  }

  .mark {
    font-size: 16px;
  }

  .note {
    font-size: 12px;
  }

  .cap {
    margin-top: 14px;
  }

  .cap__title {
    font-size: 24px;
  }

  .cap__meta {
    font-size: 12px;
  }
}
