/* Rain City Needlepoint · Market order form · "canvas & thread" */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,SOFT@0,9..144,300..700,50;1,9..144,300..700,50&family=Instrument+Sans:ital,wght@0,400..700;1,400..700&display=swap');

:root {
  --paper: #f8f4ec; --paper-deep: #efe8db; --mesh: rgba(16, 15, 13, 0.075);
  --ink: #100f0d; --ink-soft: #3b3834; --ink-mute: #7a7b7c;
  --pink: #e272c0; --pink-deep: #c9529f; --blush: #f7ceed; --blush-soft: #fbe6f5;
  --line: #d9d2c5; --ok: #2f7d4e; --bad: #b5301c;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --r: 18px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font: 17px/1.5 var(--body); padding-block: 0 56px; padding-inline: 18px;
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 120% 60% at 50% -10%, rgba(226, 114, 192, 0.22), transparent 60%),
    repeating-linear-gradient(0deg, var(--mesh) 0 1px, transparent 1px 11px),
    repeating-linear-gradient(90deg, var(--mesh) 0 1px, transparent 1px 11px);
  background-attachment: fixed;
}
.wrap { max-width: 620px; margin: 0 auto; }

/* ---------- masthead ---------- */
.mast { text-align: center; padding: 34px 0 22px; animation: rise .7s ease both; }
.mast img { width: 92px; height: 92px; display: block; margin: 0 auto 12px; filter: drop-shadow(0 6px 14px rgba(16,15,13,.12)); }
.eyebrow { font: 600 12px/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--pink-deep); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before, .eyebrow::after { content: ""; width: 26px; height: 0; border-top: 2px dashed var(--pink); }
h1 { font: 500 clamp(34px, 8vw, 46px)/1.05 var(--display); font-variation-settings: "SOFT" 50, "opsz" 144; letter-spacing: -.02em; margin: 12px 0 10px; }
h1 em { font-style: italic; font-weight: 400; color: var(--pink-deep); }
.lede { font-size: 17px; color: var(--ink-soft); max-width: 46ch; margin: 0 auto; }
.expires { display: inline-block; margin: 10px 0 2px; font: 600 12.5px/1 var(--body); letter-spacing: .04em; color: #8a5a10; background: #fff6dc; border: 1px solid #efdca8; border-radius: 999px; padding: 7px 14px; }
.policy { background: var(--ink); color: var(--paper); border-radius: var(--r); padding: 16px 18px; margin: 0 0 14px; animation: rise .7s .04s ease both; }
.policy p { margin: 0 0 7px; font-size: 14.5px; line-height: 1.5; color: #e8e3da; }
.policy p:last-child { margin-bottom: 0; }
.policy b { color: #fff; }
.required-key { text-align: center; font-size: 13px; color: var(--ink-mute); margin: 0 0 16px; }
.req { color: var(--pink-deep); font-weight: 700; }
.help.intro { margin: 0 0 14px; font-size: 14.5px; color: var(--ink-soft); }
.help.intro b { color: var(--ink); }
.late-note { margin-top: 0; margin-bottom: 16px; }
.lede b { color: var(--ink); font-weight: 600; }
/* Staff-only chrome on a customer-facing page: quiet, compact, never a black slab. */
.staff-bar { display: none; width: fit-content; margin: 18px auto 0; align-items: center; gap: 9px; padding: 4px 5px 4px 13px; border-radius: 999px; background: #fffdf9; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(16,15,13,.04); white-space: nowrap; }
.staff-bar .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 3px var(--blush-soft); flex: none; }
.staff-label { font: 600 10.5px/1 var(--body); letter-spacing: .15em; text-transform: uppercase; color: var(--ink-mute); }
.staff-bar input { width: 74px; font: 600 13.5px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; text-align: center; padding: 8px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.staff-bar input::placeholder { color: #b9b2a6; letter-spacing: .08em; font-weight: 500; }
.staff-bar input:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(226,114,192,.2); background: #fff; }
body.is-staff .staff-bar { display: flex; }
body.is-staff .staff-only { display: flex; }
.staff-only { display: none; }

/* ---------- sections ---------- */
.step { background: #fffdf9; border: 1px solid var(--line); border-radius: var(--r); padding: 22px 20px 24px; margin: 0 0 16px; position: relative; box-shadow: 0 1px 0 rgba(16,15,13,.03), 0 18px 40px -30px rgba(16,15,13,.35); animation: rise .7s ease both; }
.step:nth-of-type(1) { animation-delay: .08s } .step:nth-of-type(2) { animation-delay: .16s } .step:nth-of-type(3) { animation-delay: .24s } .step:nth-of-type(4) { animation-delay: .32s } .step:nth-of-type(5) { animation-delay: .40s }
.step-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.step-head .num { margin-top: 1px; }
.num { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 500 16px var(--display); color: var(--pink-deep); border: 2px dashed var(--pink); background: var(--blush-soft); }
.step h2 { margin: 0; font: 500 24px/1.1 var(--display); letter-spacing: -.01em; }
.step h2 small { display: block; font: 400 14px/1.4 var(--body); color: var(--ink-mute); margin-top: 3px; }

label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; letter-spacing: .01em; }
label:first-of-type { margin-top: 0; }
label .opt { font-weight: 400; color: var(--ink-mute); }
input[type=text], input[type=tel], input[type=email], input[type=number], textarea, select {
  width: 100%; font: inherit; font-size: 17px; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(226,114,192,.18); }
textarea { min-height: 92px; resize: vertical; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; min-width: 0; }
.row > .narrow { flex: 0 0 96px; }
.help { color: var(--ink-mute); font-size: 13.5px; margin: 6px 0 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; }
.chip { display: inline-flex; align-items: center; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font-weight: 500; font-size: 15px; transition: all .15s; position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked) { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateY(-1px); }
.chip:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(226,114,192,.25); }

.choices { display: grid; gap: 9px; }
.choice { display: flex; gap: 13px; align-items: flex-start; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; margin: 0; font-weight: 600; font-size: 16px; transition: all .15s; }
.choice input { margin-top: 3px; width: 20px; height: 20px; flex: none; accent-color: var(--pink-deep); }
.choice small { display: block; color: var(--ink-mute); font-weight: 400; font-size: 13.5px; margin-top: 2px; }
.choice .tag { display: inline-block; margin-left: 8px; font: 700 10.5px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--pink-deep); background: var(--blush-soft); border: 1px solid var(--blush); border-radius: 999px; padding: 4px 8px; vertical-align: middle; }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #fff; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 17px var(--body); padding: 16px 22px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer; width: 100%; transition: transform .12s, box-shadow .2s, background .2s; letter-spacing: .01em; }
.btn:hover { background: #000; box-shadow: 0 12px 28px -14px rgba(16,15,13,.6); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; }
.btn.secondary { background: #fff; color: var(--ink); }
.btn.secondary:hover { background: var(--paper); }
.btn.small { width: auto; padding: 9px 14px; font-size: 14px; }
.btn.pink { background: var(--pink); border-color: var(--pink); color: #fff; }
.btn.pink:hover { background: var(--pink-deep); border-color: var(--pink-deep); }

.dropzone { border: 2px dashed var(--pink); background: var(--blush-soft); border-radius: 14px; padding: 14px 16px; text-align: center; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; color: var(--ink); }
.dropzone:hover, .dropzone:focus-visible { background: var(--blush); outline: none; }
.dropzone.over { background: var(--blush); border-style: solid; transform: scale(1.01); }
.dz-inner svg { color: var(--pink-deep); margin-bottom: 4px; }
.dz-inner b { font-weight: 600; }
.dz-hint { color: var(--ink-mute); }
.dz-sub { font-size: 13px; color: var(--ink-mute); margin-top: 4px; }
@media (hover: none) { .dz-hint { display: none; } }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 10px; margin-top: 12px; }
.thumbs:empty { display: none; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1.5px solid var(--line); background: var(--paper-deep); animation: rise .35s ease both; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .x { position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(16,15,13,.78); color: #fff; font: 700 15px/26px var(--body); cursor: pointer; padding: 0; }
.thumb .state { position: absolute; left: 0; right: 0; bottom: 0; font: 600 11px/1 var(--body); letter-spacing: .04em; text-transform: uppercase; padding: 5px 6px; text-align: center; color: #fff; background: rgba(16,15,13,.6); }
.thumb.uploading img { opacity: .55; }
.thumb.failed { border-color: var(--bad); }
.thumb.failed .state { background: var(--bad); }

/* ---------- items ---------- */
.item { border: 1.5px solid var(--line); border-radius: 14px; padding: 16px; background: #fff; margin-bottom: 12px; animation: rise .4s ease both; }
.item-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.item-n { font: 600 11.5px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--pink-deep); }
.item-del { font: 600 13px var(--body); color: var(--ink-mute); background: none; border: 0; padding: 4px 6px; margin: -4px -6px -4px 0; cursor: pointer; border-radius: 8px; }
.item-del:hover { color: var(--bad); background: #fbe9e5; }
.item-del[hidden] { display: none; }
.row { align-items: end; }
.add-item { border-style: dashed; border-width: 2px; border-color: var(--pink); color: var(--pink-deep); background: var(--blush-soft); }
.add-item:hover:not(:disabled) { background: var(--blush); color: var(--pink-deep); }
.add-item:disabled { border-color: var(--line); background: #fff; color: var(--ink-mute); }
/* the required "if we can't get it" question, set apart so nobody scrolls past it */
.ifu-block { margin-top: 16px; padding-top: 14px; border-top: 1.5px dashed var(--pink); }
.ifu-block > label { color: var(--ink); line-height: 1.45; }

.card-placeholder { display: flex; gap: 12px; align-items: flex-start; border: 1.5px dashed var(--line); border-radius: 12px; padding: 14px 15px; background: var(--paper); color: var(--ink-mute); }
.card-placeholder svg { color: var(--pink-deep); flex: none; margin-top: 2px; }
.card-placeholder b { color: var(--ink); font-size: 15px; }
.card-placeholder small { display: block; font-size: 13.5px; margin-top: 3px; line-height: 1.45; }

/* ---------- utility ---------- */
.hidden { display: none !important; }
.error, .notice, .success { border-radius: 12px; padding: 11px 14px; margin: 12px 0; font-size: 14.5px; line-height: 1.45; }
.error { background: #fbe9e5; color: var(--bad); border: 1px solid #f2c3bb; }
.notice { background: #fff6dc; color: #7a5a12; border: 1px solid #efdca8; }
.success { background: #e7f5ec; color: #1f5d3a; border: 1px solid #bfe0cb; }
.notice a, .error a { color: inherit; }

/* ---------- confirmation ---------- */
.done { animation: rise .55s ease both; }
body.submitted .mast, body.submitted #outbox-banner { display: none; }
body.submitted { padding-top: 22px; }
.done-card { background: #fffdf9; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: 0 1px 0 rgba(16,15,13,.03), 0 24px 50px -34px rgba(16,15,13,.45); }
.done-top { text-align: center; padding: 30px 22px 24px; background: linear-gradient(180deg, var(--blush-soft), #fffdf9); border-bottom: 1px dashed var(--line); position: relative; }
.done-top img { display: block; margin: 0 auto 6px; }
.tick { width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 50%; background: var(--pink); color: #fff; font-size: 24px; line-height: 46px; box-shadow: 0 6px 16px -6px rgba(226,114,192,.9); animation: pop .45s .15s cubic-bezier(.34,1.56,.64,1) both; }
.done-top h2 { font: 500 clamp(27px, 6.5vw, 35px)/1.1 var(--display); margin: 0 0 6px; letter-spacing: -.02em; }
.done-top h2 em { font-style: italic; color: var(--pink-deep); font-weight: 400; }
.done-sub { margin: 0 0 16px; color: var(--ink-soft); font-size: 15px; }
.done-sub span { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.ref { display: inline-block; font: 500 13px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; }
.ref b { color: var(--ink); letter-spacing: .06em; }
.done-section { padding: 20px 22px; border-bottom: 1px dashed var(--line); }
.done-section h3 { margin: 0 0 12px; font: 600 11.5px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--pink-deep); }
.recap { list-style: none; margin: 0; padding: 0; }
.recap li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: start; padding: 11px 0; border-top: 1px solid var(--line); }
.recap li:first-child { border-top: 0; padding-top: 0; }
.recap .pic { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); background: var(--paper-deep); display: block; }
.recap .pic-none { width: 52px; height: 52px; border-radius: 10px; background: var(--blush-soft); display: grid; place-items: center; font-size: 19px; }
.recap .what { font-weight: 600; font-size: 15.5px; line-height: 1.35; }
.recap .sub { color: var(--ink-mute); font-size: 13.5px; margin-top: 2px; }
.recap .flag { display: inline-block; margin-top: 5px; font: 600 11px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--pink-deep); background: var(--blush-soft); border: 1px solid var(--blush); border-radius: 999px; padding: 4px 8px; }
.recap-total { margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-mute); }
.recap-total b { color: var(--ink); }
.summary { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; font-size: 15px; margin: 0; }
.summary dt { color: var(--ink-mute); }
.summary dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.summary .muted { font-weight: 400; color: var(--ink-mute); }
.next { margin: 0; padding: 0; list-style: none; counter-reset: n; }
.next li { position: relative; padding-left: 38px; margin: 0 0 11px; font-size: 15px; color: var(--ink-soft); }
.next li:last-child { margin-bottom: 0; }
.next li::before { counter-increment: n; content: counter(n); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 50%; border: 2px dashed var(--pink); background: var(--blush-soft); font: 500 13px/24px var(--display); text-align: center; color: var(--pink-deep); }
.done-foot { padding: 18px 22px 22px; border-bottom: 0; }
.done-foot .help { margin: 0 0 14px; text-align: center; }
.done-foot a { color: var(--ink); }
.done-actions { display: grid; gap: 9px; }
@media (min-width: 560px) { .done-actions { grid-template-columns: 1fr 1fr; } }
.done .notice { text-align: left; margin: 16px 0 0; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@media print {
  body { background: #fff; padding: 0; }
  .done-card { border: 0; box-shadow: none; }
  .done-top { background: #fff; }
  .done-actions, .done-foot .help, footer, #outbox-banner, .mast { display: none !important; }
  .done-section { break-inside: avoid; }
}
footer { text-align: center; color: var(--ink-mute); font-size: 13.5px; padding: 26px 0 0; line-height: 1.7; }
footer a { color: var(--ink); text-decoration: none; border-bottom: 1px dashed var(--pink); }
footer .staff-link { display: block; margin-top: 10px; font-size: 12px; opacity: .7; border: 0; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mast, .step, .submit-wrap, .done { animation: none; } }
@media (min-width: 720px) { body { padding-inline: 24px; } .step { padding: 28px 30px 30px; } }
