@font-face {
  font-family: 'Shotation Mono';
  src: url('/fonts/signoffs/shotation-mono.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

/* Taller than the default so the corridor and the wordmark each get their
   own row: the outermost cards end well above the cap height. */
[data-signoff='shotation'] {
  --sh-page: #fff;
  --sh-paper: #f2f0ed;
  --sh-ink: #171719;
  --sh-accent: #ff4a1f;
  --b-height: clamp(300px, 31vw, 460px);
  --b-height-m: 250px;
  --b-fit: 0.104;
  --b-crop: -6%;
  --b-align: center;
}
.dark [data-signoff='shotation'] {
  --sh-page: #18181b;
  --sh-paper: #0e1417;
  --sh-ink: #f2f0ed;
}

/* The page colour turns into the site's warm paper towards the bottom, so
   the band has no top edge to see; the cards sit on it unmasked. */
[data-signoff='shotation'] .sh-paper {
  -webkit-mask-image: none;
  mask-image: none;
  background: linear-gradient(
    var(--sh-page) 30%,
    color-mix(in oklab, var(--sh-page), var(--sh-paper) 50%) 65%,
    var(--sh-paper)
  );
}
[data-signoff='shotation'] .sh-layer {
  position: absolute;
  inset: 0;
}
[data-signoff='shotation'] .sh-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-signoff='shotation'] .sh-canvas[data-ready] {
  opacity: 1;
}

[data-signoff='shotation'] .sh-name svg {
  height: 1em;
  overflow: visible;
}
[data-signoff='shotation'] .sh-letters {
  fill: var(--sh-ink);
}
[data-signoff='shotation'] .sh-period {
  fill: var(--sh-accent);
}

/* The reviewer: viewfinder corners lock onto the card, then the verdict. */
[data-signoff='shotation'] .sh-review {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  font-family: 'Shotation Mono', ui-monospace, Menlo, monospace;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  animation: sh-lock 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes sh-lock {
  from {
    opacity: 0;
    scale: 1.18;
  }
}
[data-signoff='shotation'] .sh-review > i {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--sh-accent);
}
[data-signoff='shotation'] .sh-review > i:nth-child(1) {
  top: -7px;
  left: -7px;
  border-width: 2px 0 0 2px;
  border-top-left-radius: 5px;
}
[data-signoff='shotation'] .sh-review > i:nth-child(2) {
  top: -7px;
  right: -7px;
  border-width: 2px 2px 0 0;
  border-top-right-radius: 5px;
}
[data-signoff='shotation'] .sh-review > i:nth-child(3) {
  bottom: -7px;
  left: -7px;
  border-width: 0 0 2px 2px;
  border-bottom-left-radius: 5px;
}
[data-signoff='shotation'] .sh-review > i:nth-child(4) {
  bottom: -7px;
  right: -7px;
  border-width: 0 2px 2px 0;
  border-bottom-right-radius: 5px;
}
[data-signoff='shotation'] .sh-review[data-phase='pass'] > i {
  border-color: var(--sh-ink);
  transition: border-color 0.2s;
}
[data-signoff='shotation'] .sh-review > span {
  position: absolute;
  top: 50%;
  left: calc(100% + 16px);
  translate: 0 -50%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: max-content;
  max-width: 180px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--sh-paper);
  color: var(--sh-ink);
  box-shadow:
    0 0 0 1px rgb(128 128 128 / 0.18),
    0 6px 24px rgb(0 0 0 / 0.14);
}
[data-signoff='shotation'] .sh-review[data-side='left'] > span {
  left: auto;
  right: calc(100% + 16px);
}
[data-signoff='shotation'] .sh-review b {
  font-weight: 500;
  color: var(--sh-accent);
  letter-spacing: 0.04em;
}
[data-signoff='shotation'] .sh-review[data-phase='pass'] b {
  color: var(--sh-ink);
}

@media (max-width: 640px) {
  [data-signoff='shotation'] {
    --b-fit: 0.128;
  }
}
