/* 2027 teaser. Print yellow sampled from the page-1 render. */
@font-face {
  font-family: "Libre Baskerville";
  src: url("fonts/LibreBaskerville-Italic.woff") format("woff");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  --sun: #fed727;
  --ink: #000;
  --stage: #fff;
  --surround: #fff;
}

body.teaser-page,
body.teaser-page *,
.gr-teaser-overlay,
.gr-teaser-overlay * { box-sizing: border-box; }

html:has(body.teaser-page) {
  margin: 0;
  height: 100%;
  background: var(--surround);
  overflow: hidden;
}

body.teaser-page {
  margin: 0;
  height: 100%;
  background: var(--surround);
  overflow: hidden;
}

body.teaser-page .fit {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: var(--surround);
}

.gr-teaser-overlay .fit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--surround);
}

.stage {
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--stage);
  overflow: hidden;
}

body.teaser-page .stage.is-hold { cursor: pointer; }

.lines {
  position: absolute;
  left: 0;
  top: 0;
  overflow: visible;
  pointer-events: none;
}

.lines line {
  fill: none;
  stroke-linecap: butt;
  stroke-linejoin: miter;
}

#wish, #twoB, #zero, #twoY, #seven, #word, .punct {
  position: absolute;
  opacity: 0;
  user-select: none;
  -webkit-user-drag: none;
}

.sprite {
  display: block;
  border: 0;
  outline: 0;
  box-shadow: none;
  background: none;
}

.punct {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 0;
  font-family: "Libre Baskerville", Georgia, "Palatino Linotype", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 220px;
  line-height: 0.72;
  pointer-events: none;
}

.punct span {
  display: block;
  transform: rotate(-90deg);
}

.bang { color: var(--sun); }
.que { color: var(--ink); margin-top: -58px; }

#replay {
  position: fixed;
  z-index: 2;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: #fff;
  font: 500 12px/1 "Segoe UI", sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
}

#replay:hover { color: var(--sun); }

#replay[hidden] { display: none; }

body.capture,
body.capture .fit {
  background: #fff;
}

body[data-mode="footer"] .punct { display: none; }
