:root {
  font-family: system-ui, sans-serif;
  color: #302116;
  background: #f3e8d6;
}
body { margin: 0; }
main { width: min(100% - 40px, 420px); margin: 32px auto; }
.brand { color: #73452b; font-weight: 800; letter-spacing: .08em; }
h1 { margin: 6px 0 24px; font-size: clamp(32px, 8vw, 46px); letter-spacing: -.06em; }
section { border-radius: 24px; background: #fffaf1; padding: 24px; }
h2 { margin: 0 0 20px; overflow-wrap: anywhere; }
.stamps { display: flex; gap: 8px; }
.stamp { display: grid; place-items: center; flex: 1; max-width: 54px; aspect-ratio: 1; border-radius: 50%; border: 1px dashed #92694f; }
.stamp.filled { background: #723d26; border-color: #723d26; color: #fff; }
.qr { display: grid; place-items: center; min-height: 200px; margin-top: 20px; }
.qr img { max-width: 100%; height: auto; border-radius: 12px; }
.hint { text-align: center; color: #674b39; margin-bottom: 0; }

section + section { margin-top: 16px; }
form { display: grid; gap: 8px; margin: 0 0 16px; }
[hidden] { display: none !important; }
input, button { font: inherit; box-sizing: border-box; border-radius: 10px; padding: 10px 12px; }
input { width: 100%; border: 1px solid #92694f; background: #fff; }
button { border: 0; background: #723d26; color: #fff; text-align: center; cursor: pointer; }
button:disabled { opacity: .65; cursor: wait; }
.actions { display: grid; gap: 8px; margin-top: 16px; }
a { color: #723d26; }

input[type="checkbox"] { width: auto; }
.mail-preferences { margin: 12px 0; padding: 12px; border: 1px solid #d6bda7; border-radius: 12px; }
.mail-preferences legend { font-weight: 700; }
.mail-note { margin: 0 0 10px; color: #674b39; font-size: .9rem; }
.mail-choice { display: flex; align-items: baseline; gap: 8px; }
.mail-choice input { flex: none; }
.mail-preferences details { margin: 4px 0 10px 24px; font-size: .85rem; color: #674b39; }
.mail-preferences p:empty { display: none; }
.text-button { padding: 6px 0; color: #723d26; background: transparent; text-decoration: underline; }
#checkout { margin-top: 16px; }
#draft-form { margin-top: 12px; }
textarea { box-sizing: border-box; width: 100%; padding: 10px; font: inherit; border-radius: 10px; border: 1px solid #92694f; }
#copy { white-space: pre-wrap; overflow-wrap: anywhere; }
#camera-preview {
  display: block;
  width: 100%;
  max-height: 55vh;
  margin-block: 12px;
  background: #21170f;
  border-radius: 12px;
  object-fit: contain;
}
