/* Layout: one column card resting on a freshly painted impressionist canvas, like a note pinned to an easel. */
:root {
  --cream: #fffaf2; --ink: #3b2f4a; --muted: #6f6283; --line: #e9dcd0; --frame: #d9b98a;
  --rose: #f2a7b8; --peach: #ffc8a2; --lilac: #c9b6ee; --sky: #a9d4f2; --mint: #bfe6cf; --butter: #fbe7a1;
  --ok: #2f7d58; --bad: #b4373f;
  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --body: "Karla", "Avenir Next", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: #eef0fa; }
body { margin: 0; min-height: 100vh; color: var(--ink); font: 16px/1.6 var(--body); background: #eef0fa;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
#painting { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
main { position: relative; z-index: 1; max-width: 580px; margin: 0 auto; padding-block: 56px 72px; display: grid; gap: 22px; }
main.wide { max-width: 1020px; }

.plaque { justify-self: start; display: inline-flex; gap: 10px; align-items: center; background: rgba(255,250,242,.82);
  border: 1px solid var(--frame); border-radius: 999px; padding: 6px 14px; box-shadow: 0 6px 20px rgba(80,60,120,.12); backdrop-filter: blur(4px); }
.eyebrow { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.badge { font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
  background: linear-gradient(100deg, var(--butter), var(--peach)); border-radius: 999px; padding: 5px 9px; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }

.title { background: rgba(255,250,242,.78); border-radius: 22px; padding: 22px 24px 20px; backdrop-filter: blur(6px);
  box-shadow: 0 10px 34px rgba(80,60,120,.14); display: grid; gap: 10px; }
h1 { font: 600 italic clamp(36px, 7.5vw, 54px)/1.02 var(--display); margin: 0; text-wrap: balance; letter-spacing: -.01em;
  background: linear-gradient(95deg, #7d5bc4 0%, #d0638a 45%, #e98a4f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: var(--muted); margin: 0; max-width: 60ch; }

/* The card is framed like a small canvas: cream ground, a gilt hairline, soft gallery shadow. */
.card { position: relative; background: var(--cream); border-radius: 18px; padding: 26px; display: grid; gap: 18px;
  border: 1px solid var(--frame); box-shadow: 0 0 0 6px rgba(255,250,242,.6), 0 0 0 7px rgba(217,185,138,.55), 0 22px 50px rgba(70,50,110,.22); }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .45 0 0 0 0 .35 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
.card > * { position: relative; }

label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; letter-spacing: .01em; }
.hint { font-weight: 400; color: var(--muted); font-size: 13px; }
input, textarea { font: inherit; font-weight: 400; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 13px; width: 100%;
  transition: border-color .15s, box-shadow .15s; }
input:hover, textarea:hover { border-color: var(--lilac); }
input:focus-visible, textarea:focus-visible { outline: none; border-color: #a58ad8; box-shadow: 0 0 0 4px rgba(201,182,238,.55); }
textarea { min-height: 150px; resize: vertical; }

.price { font: 600 italic 34px/1 var(--display); font-variant-numeric: tabular-nums; color: #b24f73; }
.count { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }

/* A button that looks loaded with paint: warm pastel blend with visible bristle streaks. */
button { font: 700 16px/1 var(--body); color: #3a2440; border: 0; border-radius: 14px; padding: 16px 20px; cursor: pointer;
  background:
    repeating-linear-gradient(100deg, rgba(255,255,255,.22) 0 3px, transparent 3px 9px),
    linear-gradient(100deg, #f7a8c0 0%, #ffbf9b 50%, #fbe08f 100%);
  box-shadow: 0 8px 22px rgba(214,110,140,.35), inset 0 -2px 0 rgba(120,60,80,.15);
  transition: transform .15s, box-shadow .15s, filter .15s; }
button:hover { transform: translateY(-1px); filter: saturate(1.15); box-shadow: 0 12px 28px rgba(214,110,140,.42), inset 0 -2px 0 rgba(120,60,80,.15); }
button:focus-visible { outline: 3px solid #a58ad8; outline-offset: 3px; }
button[disabled] { opacity: .6; cursor: progress; transform: none; }

.msg { margin: 0; font-size: 14px; }
.msg.bad { color: var(--bad); } .msg.ok { color: var(--ok); }
a { color: #7d5bc4; text-underline-offset: 3px; }

.tablewrap { overflow-x: auto; border-radius: 18px; background: var(--cream); border: 1px solid var(--frame); box-shadow: 0 22px 50px rgba(70,50,110,.18); }
table { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: rgba(201,182,238,.18); }
td.req { white-space: pre-wrap; max-width: 46ch; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sig { font: italic 15px/1.4 var(--display); color: var(--muted); text-align: center; margin: 4px 0 0; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Inline payment step */
[hidden] { display: none !important; }
h2 { font: 600 italic 30px/1.1 var(--display); margin: 0; color: #7d5bc4; }
dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14px;
  padding: 14px 16px; border-radius: 14px; background: linear-gradient(100deg, rgba(201,182,238,.22), rgba(255,200,162,.22)); }
dt { color: var(--muted); } dd { margin: 0; min-width: 0; overflow-wrap: anywhere; font-weight: 700; }
.pe { min-height: 120px; }
button.text { background: none; box-shadow: none; padding: 6px 2px; font: 700 14px/1 var(--body); color: #7d5bc4;
  text-decoration: underline; text-underline-offset: 4px; }
button.text:hover { transform: none; filter: none; box-shadow: none; color: #b24f73; }
.hint.test { text-align: center; margin: 0; }
