@font-face {
  font-family: Geist;
  src: url(../fonts/Geist.woff2) format("woff2");
  font-weight: 100 900;
  font-display: block;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url(../fonts/JetBrainsMono-400.woff2) format("woff2");
  font-weight: 400;
  font-display: block;
}
:root {
  --ink: #0a0a0a;
  --gray: #6b6862;
  --paper: #fbfaf8;
}
* {
  box-sizing: border-box;
  margin: 0;
}
html,
body {
  height: 100%;
  overflow: hidden;
  color: var(--ink);
  font-family: Geist, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  background:
    radial-gradient(
        ellipse 75% 70% at 50% 50%,
        #ffffff 0%,
        #fcfbf9 50%,
        #efeee9 100%
      )
      fixed,
    #f7f6f2;
}
#stage {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 1600px;
  height: 900px;
  transform-origin: 0 0;
  visibility: hidden;
}
#stage > svg {
  position: absolute;
  inset: 0;
  width: 1600px;
  height: 900px;
  overflow: visible;
}

.mono {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  fill: var(--gray);
  color: var(--gray);
}
.halo {
  paint-order: stroke;
  stroke: var(--paper);
  stroke-width: 5px;
  stroke-linejoin: round;
}
.draw {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-dasharray: 1 2;
  stroke-dashoffset: 1;
}
.rule {
  stroke: var(--ink);
  stroke-opacity: 0.14;
  stroke-width: 1;
}

#q {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 58px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.14;
  transform-origin: 0 0;
  white-space: nowrap;
}

/* one sentence at a time, key phrase in full ink */
.cap {
  position: absolute;
  left: 64px;
  opacity: 0;
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.16;
  color: rgba(10, 10, 10, 0.5);
}
.cap strong {
  font-weight: 700;
  color: var(--ink);
}

.card {
  position: absolute;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(14, 23, 38, 0.08),
    0 12px 28px rgba(14, 23, 38, 0.12);
}
.card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.note {
  position: absolute;
  right: 64px;
  bottom: 30px;
  padding: 6px 0;
  opacity: 0;
}
#hint {
  position: absolute;
  right: 64px;
  bottom: 30px;
  padding: 6px 0;
  opacity: 0;
}
#replay {
  position: absolute;
  right: 64px;
  bottom: 56px;
  padding: 6px 0;
  border: 0;
  background: none;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
}
#replay.on {
  pointer-events: auto;
}
#replay:hover,
#to-gallery:hover {
  color: var(--ink);
}
#replay:focus-visible,
#to-gallery:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 4px;
}
#to-gallery {
  position: absolute;
  right: 64px;
  top: 30px;
  padding: 6px 0;
  text-decoration: none;
}
