:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #382b28;
  background: #e6d3bf;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100dvh;
  background: radial-gradient(ellipse at 42% 34%, #f9eddb, #ead7c2 61%, #dbc1aa);
}
header, main { width: min(100% - 32px, 960px); margin-inline: auto; }
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  font-size: .9rem;
}
a, button { color: #603c36; }
button {
  background: #fff5e8;
  border: 1px solid #bca28f;
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  cursor: pointer;
}
.intro { text-align: center; }
h1 {
  margin: 8px 0;
  font: 500 clamp(2.15rem, 7vw, 4.65rem)/1 Georgia, serif;
  letter-spacing: -.05em;
}
p { margin: 12px 0; color: #674f46; }
canvas {
  display: block;
  width: 100%;
  height: clamp(275px, 59dvh, 570px);
  touch-action: none;
  cursor: grab;
}
canvas:active { cursor: grabbing; }
canvas:focus-visible { outline: 2px solid #753748; outline-offset: -2px; border-radius: 12px; }
.meter {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: .875rem;
}
progress { width: min(28vw, 170px); accent-color: #9f4559; }
output { min-width: 3em; font-variant-numeric: tabular-nums; }
#done { text-align: center; min-height: 1.5em; }
