html,
body {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Noto Serif SC", "Songti SC", serif;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 28%),
    #0f0f10;
  color: #161515;
}

body {
  min-height: 100vh;
}

* {
  box-sizing: border-box;
}

button,
input {
  font: inherit;
}

#app {
  min-height: 100vh;
}

.app-shell {
  padding: 24px;
}

.status-bar {
  width: min(var(--page-width, 1120px), calc(100vw - 48px));
  margin: 0 auto 16px;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  color: rgba(244, 239, 228, 0.82);
  font-size: 14px;
}

.paper-frame {
  display: flex;
  justify-content: center;
}

.paper {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.76)),
    #f4efe4;
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.text-layer {
  position: absolute;
  inset: 0;
}

.line {
  position: absolute;
  display: block;
  font-size: 19px;
  line-height: 31px;
  letter-spacing: -0.012em;
  color: #1b1918;
  white-space: nowrap;
  hyphens: auto;
  text-rendering: optimizeLegibility;
}

.line--justify {
  display: flex;
  justify-content: space-between;
  gap: 0.72ch;
}

.line__word {
  flex: 0 0 auto;
}

.drop-cap {
  position: absolute;
  left: 30px;
  top: 60px;
  font-size: 88px;
  line-height: 0.8;
  color: #111;
  opacity: 0.96;
}

.video-stage {
  position: absolute;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: transparent;
  transition:
    left 160ms ease,
    top 160ms ease,
    width 160ms ease,
    height 160ms ease;
}

.video-stage canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.22));
}

.video-stage video {
  display: none;
}
