:root {
  --bg: #fff;
  --text: #000;
  --muted: #555;
}

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Copperplate", "Times New Roman", serif;
  overflow: hidden;
}

.wrap {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  height: 100%;
  padding: 10px 8px 70px 8px;
}

.pane {
  position: relative;
  overflow: auto;
  padding: 0 4px;
}

.left .center-line,
.left .line,
.right .center-line,
.right .line {
  font-size: clamp(18px, 4vw, 26px);
  line-height: 0.95;
  max-width: 90ch;
  white-space: pre-wrap;
  text-align: left;
}

.right {
  direction: ltr;
  text-align: left;
}

.hero {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 24px;
  border-radius: 0;
  object-fit: cover;
}

.cursor {
  display: inline-block;
  width: 0.6ch;
  border-right: 2px solid var(--text);
  animation: blink 1s steps(1, end) infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background: linear-gradient(to top, white 60%, rgba(255,255,255,0));
}

.input-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 10px 8px;
}

.slot {
  pointer-events: auto;
}

.input {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--muted);
  background: transparent;
  color: var(--text);
  font-size: 18px;
  padding: 8px 0;
  outline: none;
}
