/* The photo in three passes: warm paper, one white print card and the names of the four passes beside it, in a
   variable typeface (Roboto Flex: weight 100 to 1000, width 25 to 151). The inks are the process colours. */
:root {
  --paper: #f3f0e8;     /* the page */
  --card: #fdfcf8;      /* the print card */
  --ink: #141414;       /* the words */
  --muted: #9a958a;     /* the passes still to come or done, the small print, the clear coat's head */
  --yellow: #ecbc00;    /* the head while it lays the yellow */
  --magenta: #e2007a;   /* the head while it lays the magenta */
  --cyan: #009fe3;      /* the head while it lays the cyan */
}

* {
  box-sizing: border-box;
}

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

body {
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Roboto Flex Variable', 'Roboto Flex', system-ui, sans-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: 15px;
  font-variation-settings: 'wght' 640, 'wdth' 92;
  letter-spacing: -0.01em;
}

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

.press {
  position: absolute;
  inset: 0;
  visibility: hidden;
}

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

/* the card: the script writes its place and size; an element for GSAP, its children for the look */
.card {
  position: absolute;
  margin: 0;
  background: var(--card);
  box-shadow: 0 1px 0 rgba(20, 20, 20, 0.05), 0 18px 40px -26px rgba(40, 30, 20, 0.35);
  cursor: pointer;
}

.print {
  position: absolute;
  inset: 6%;
  background: #fff;
  isolation: isolate;
}

/* every ink is its own canvas, multiplied over the white; the script cuts each one under the head */
.ink {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: multiply;
  clip-path: inset(0 0 100% 0);
  will-change: transform, clip-path;
}

.sheen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.sheen__band {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 36%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.26) 60%, rgba(255, 255, 255, 0));
  mix-blend-mode: screen;
  opacity: 0;
}

/* the satin left by the clear coat: a soft light across one corner */
.sheen__satin {
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0.16) 52%, rgba(255, 255, 255, 0) 66%);
  opacity: 0;
}

/* the head: a line a little wider than the print, in the colour it is laying */
.head {
  position: absolute;
  left: -22px;
  right: -22px;
  top: 0;
  height: 2px;
  margin-top: -1px;
  background: var(--muted);
  opacity: 0;
  pointer-events: none;
}

/* the four passes: the one under way takes the weight */
.passes {
  position: absolute;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pass {
  --g: 300;
  --w: 118;
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--muted);
  font-variation-settings: 'wght' var(--g), 'wdth' var(--w), 'opsz' 32;
  white-space: nowrap;
}

.cap {
  position: absolute;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.cap__title {
  font-size: 17px;
  font-variation-settings: 'wght' 560, 'wdth' 96;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.cap__meta {
  font-size: 12px;
  color: var(--muted);
  font-variation-settings: 'wght' 420;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

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

  .mark {
    font-size: 14px;
  }

  .note {
    font-size: 12px;
  }

  .passes {
    flex-direction: row;
    justify-content: space-between;
    gap: 0;
  }

  .pass {
    font-size: 18px;
  }

  .head {
    left: -14px;
    right: -14px;
  }

  .cap__title {
    font-size: 15px;
  }

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