:root {
  color-scheme: light;
  background: #f7f1e5;
  color: #182b27;
  font-family: "PingFang TC", "Microsoft JhengHei", sans-serif;
}
body { margin: 0; }
main { width: min(100% - 2rem, 32rem); margin: 3rem auto; }
header { border-top: 4px solid #17664e; padding-top: 1rem; }
h1 { font-family: Georgia, "Songti TC", serif; font-size: clamp(2rem, 8vw, 3.4rem); margin: .25em 0; }
.restaurant { color: #17664e; font-weight: 700; letter-spacing: .16em; }
.viewfinder {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #122b25;
  border-radius: .6rem;
  display: grid;
  place-items: center;
}
video { position: absolute; width: 100%; height: 100%; object-fit: contain; }
.frame {
  position: relative;
  height: 62%;
  aspect-ratio: 1;
  border: 2px solid #a7f3ca;
  border-radius: 1rem;
  box-shadow: 0 0 0 2px #122b25;
  pointer-events: none;
}
button {
  width: 100%;
  margin-top: 1rem;
  min-height: 3.25rem;
  border: 0;
  border-radius: .4rem;
  background: #17664e;
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
button:disabled { opacity: .65; cursor: wait; }
button:focus-visible { outline: 3px solid #182b27; outline-offset: 3px; }
#status { min-height: 1.5em; }
section { border-top: 1px solid #a8bab0; }
h2 { font-size: 1.1rem; }
pre { max-height: 16rem; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
