:root {
  color: #172f4e;
  background: #edf2f8;
  font: 16px/1.5 system-ui, sans-serif;
}
* { box-sizing: border-box }
body { margin: 0 }
main {
  width: min(100% - 2rem, 44rem);
  margin: clamp(2rem, 11vh, 8rem) auto;
}
h1 {
  margin: 0;
  font: 400 clamp(2.35rem, 7vw, 4rem)/1.1 Georgia, serif;
  letter-spacing: -.035em;
}
p { color: #385472 }
.paper {
  background: #fff;
  border: 1px solid #9db0c8;
  margin: 1.5rem 0 1rem;
  border-radius: .6rem;
  overflow: hidden;
}
canvas {
  width: 100%;
  aspect-ratio: 3;
  display: block;
  touch-action: none;
  cursor: crosshair;
}
.actions { display: flex; flex-wrap: wrap; gap: .65rem; justify-content: space-between }
button {
  padding: .7rem 1rem;
  border: 1px solid #28568c;
  border-radius: .45rem;
  background: #234a78;
  color: #fff;
  font: inherit;
  cursor: pointer;
}
button.secondary { color: #172f4e; background: transparent }
button:disabled { opacity: .55; cursor: default }
button:focus-visible { outline: 3px solid #497cb5; outline-offset: 3px }
