:root {
  color-scheme: dark;
  font-family: "Barlow", "Arial", sans-serif;
  background: #12110e;
}
* { box-sizing: border-box; }
body {
  min-height: 100svh;
  margin: 0;
  display: grid;
  place-items: center;
}
.scene {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(100vw, 100svh * 16 / 9);
  aspect-ratio: 16 / 9;
  container-type: inline-size;
  background: linear-gradient(#14120b69, #110f0c99), url("/assets/road.webp") center / cover;
  box-shadow: 0 12px 80px #0009;
  color: #211d17;
}
.upper, .lower {
  position: absolute;
  left: 0;
  width: 100%;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.upper {
  z-index: 2;
  top: 0;
  height: 44.4444%;
  background-image: url("/assets/upper.webp");
  animation: upper-in 240ms 50ms cubic-bezier(.18,.66,.46,1) both;
}
.lower {
  bottom: 0;
  height: 88.8889%;
  background-image: url("/assets/lower.webp");
  animation: lower-in 310ms cubic-bezier(.18,.66,.46,1) both;
}
@keyframes upper-in { from { transform: translateY(-101%); } }
@keyframes lower-in { from { transform: translateY(101%); } }
.portrait {
  position: absolute;
  overflow: hidden;
  inset: 3% 28% 17%;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse, #6b6b5255, #120f0b88), url("/assets/bar.webp") center / cover;
}
.portrait img {
  width: auto;
  max-width: 90%;
  height: 100%;
  object-fit: contain;
}
h1 {
  position: absolute;
  inset: 81.6% 37.4% auto;
  margin: 0;
  text-align: center;
  font-size: clamp(14px, 1.5cqw, 30px);
  line-height: 1.42;
}
.transcript, .composer {
  position: absolute;
  left: 22.5%;
  width: 55%;
  padding: clamp(5px, 1.05cqw, 20px) clamp(8px, 1.35cqw, 26px);
  font-size: clamp(16px, 1.45cqw, 28px);
}
.transcript {
  top: 37.1%;
  height: 30%;
  overflow-y: auto;
  scrollbar-color: #6a6457 #b9b4ac;
  overflow-wrap: anywhere;
}
.transcript article + article {
  margin-top: .7em;
  padding-top: .55em;
  border-top: 1px solid #62594c44;
}
.transcript h2 { font-size: .82em; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .24em; }
.transcript .visitor h2 { color: #4b4236; }
.transcript p { margin: 0; white-space: pre-wrap; line-height: 1.35; }
.composer {
  top: 70.7%;
  height: 24%;
  display: flex;
  flex-direction: column;
  gap: .4em;
}
textarea {
  min-height: 0;
  flex: 1;
  width: 100%;
  padding: .38em .55em;
  resize: none;
  color: #211d17;
  background: #e1dcd27d;
  border: 1px solid #746b58;
  border-radius: 2px;
  font: inherit;
}
textarea::placeholder { color: #544b3e; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .45em; }
button {
  min-height: 30px;
  padding: .32em .75em;
  cursor: pointer;
  border-radius: 2px;
  border: 1px solid #544c3b;
  color: #272218;
  background: linear-gradient(#d3c6a9, #9f967e);
  font: inherit;
  font-size: .85em;
}
button[type="submit"] { font-weight: bold; background: linear-gradient(#ddd2af, #b5a77d); }
button:hover:not(:disabled) { filter: brightness(1.13); }
button:disabled { cursor: wait; opacity: .65; }
.status { font-size: max(.72em, 12px); }
:focus-visible { outline: 2px solid #654509; outline-offset: 1px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-aspect-ratio: 5/4) {
  .scene { width: 100%; height: 100svh; min-height: 520px; aspect-ratio: auto; }
  .upper { height: 36%; background-size: 210% 100%; background-position: center; }
  .portrait { inset: 3% 4% 17%; }
  h1 { left: 24%; right: 24%; font-size: clamp(15px, 4cqw, 26px); }
  .lower { height: 87%; background-size: 161% 100%; background-position: center; }
  .transcript, .composer { left: 6%; width: 88%; padding: .65rem; }
  .transcript { top: 37.1%; }
  button { min-height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .upper, .lower { animation: none; }
}
