:root {
  color-scheme: dark;
  background: #111a26;
  color: #faf3e6;
  font: 1rem/1.55 system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
header, main, footer { width: min(91%, 77rem); margin-inline: auto; }
header { padding: 1.65rem 0; border-bottom: 1px solid #49515d; font-weight: 650; }
.mark { color: #ebbf69; margin-right: .45rem; }
main { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(2.5rem, 9vw, 7rem); align-items: start; }
h1 { margin: 0; max-width: 13ch; font: 500 clamp(2.75rem, 5.2vw, 5rem)/1 Georgia, serif; letter-spacing: -.045em; }
h2 { font: 500 1.5rem Georgia, serif; }
p { color: #d3d8e1; }
form { display: grid; gap: .65rem; margin-top: 2rem; }
input, button, .secondary { border-radius: .35rem; padding: .8rem 1rem; font: inherit; }
input { min-width: 0; width: 100%; background: #1d2939; border: 1px solid #838d9b; color: inherit; }
button, .secondary { cursor: pointer; font-weight: 700; }
button { border: 1px solid transparent; background: #ebbf69; color: #1b2532; }
.secondary { display: inline-block; border: 1px solid #ebbf69; color: #f5cd80; background: transparent; text-decoration: none; }
:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
button:disabled { opacity: .58; cursor: default; }
.small, footer { font-size: .9rem; }
canvas { display: block; width: 100%; height: auto; background: #fff3da; box-shadow: 0 1rem 3rem #080b1180; }
.preview { text-align: center; }
.preview button { margin-top: 1.25rem; }
#status { min-height: 1.5em; margin-bottom: 0; }
#gift { margin-top: 2rem; }
footer { border-top: 1px solid #49515d; padding-block: 1.25rem; color: #d3d8e1; }
@media (max-width: 47rem) {
  main { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  h1 { max-width: 16ch; }
}
