/* The commissions page (commissions.html), its confirmation page, and Kristin's private inbox.
   Built on site.css: same paper, palette, fonts and buttons. */

.cm { max-width: 820px; margin: 0 auto; padding: clamp(2rem, 6vw, 4rem) var(--gutter) clamp(3rem, 8vw, 5rem); }
.cm h1, .cm h2 { text-align: center; text-transform: uppercase; letter-spacing: .06em; }
.cm h1 { font-size: clamp(1.9rem, 9.4vw, 3.6rem); } /* shrinks on small phones so the whole word fits */
.cm h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); margin-bottom: 1.2rem; }
.cm .kicker { text-align: center; }
.cm-hero { text-align: center; }
.cm-lede { color: var(--ink-soft); font-size: 1.08rem; max-width: 40rem; margin: 1.4rem auto 0; }

/* the price, front and centre, on a watercolour paint splotch */
.cm-price {
  position: relative; display: inline-flex; align-items: baseline; gap: .6rem; margin: 3rem auto 2.6rem; padding: 1rem 2rem;
  font-family: var(--display); color: var(--ink); isolation: isolate;
}
.cm-splotch {
  position: absolute; z-index: -1; left: -16%; top: -50%; width: 132%; height: 200%;
  overflow: visible; pointer-events: none; transform: rotate(var(--r, -2deg));
}
@media (max-width: 480px) { .cm-splotch { left: -6%; width: 112%; } } /* stays inside a phone screen */
@media (prefers-reduced-motion: no-preference) {
  .cm-splotch { animation: cm-soak 1.4s cubic-bezier(.2, .7, .2, 1) .15s both; } /* the paint soaks into the paper */
}
@keyframes cm-soak {
  from { opacity: 0; transform: rotate(var(--r, -2deg)) scale(.88); }
  to   { opacity: 1; transform: rotate(var(--r, -2deg)) scale(1); }
}
.cm-price span { font-family: var(--body); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-soft); }
.cm-price b { font-size: clamp(2.4rem, 7vw, 3.2rem); font-weight: 600; }
.cm-price-note { color: var(--ink-soft); font-size: .92rem; max-width: 34rem; margin: .8rem auto 0; }

/* a few framed originals, in the gallery's painted-ring circles (ring, float and name tag come from site.css .bb) */
.cm-art { margin-top: clamp(2.8rem, 7vw, 4rem); text-align: center; }
.cm-art-title { font-size: clamp(1.8rem, 4.2vw, 2.3rem); color: var(--rose); margin: 0 0 1.6rem; }
/* tumbled together: each circle (and ink blob) is centred on its own --x/--y spot, --s wide (all in % of the
   pile, so it scales), overlapping its neighbours a little. Phones use their own --px/--py/--ps layout. */
.cm-circles { list-style: none; margin: 0 auto; padding: 0; position: relative; width: min(100%, 800px); aspect-ratio: 780 / 480; }
.cm-circles > li { position: absolute; left: var(--x); top: var(--y); width: var(--s); aspect-ratio: 1; margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); }
.cm-circles .bb { z-index: var(--z, 1); }
.cm-circles .bb.on { z-index: 10; }
.cm-circles .bb img { transform: scale(var(--zoom, 1.3)); } /* closer in on the painting than the wall */
/* soft watercolour dabs underneath, like the New work palette's: paler in the middle, pooled at the edge, slowly wobbling */
.cm-blob {
  z-index: 0; pointer-events: none; mix-blend-mode: multiply; opacity: .5; border-radius: var(--br1, 50%);
  background: radial-gradient(circle at 38% 34%, color-mix(in srgb, var(--paint) 35%, #fff) 0%, color-mix(in srgb, var(--paint) 70%, #fff) 62%, var(--paint) 100%);
  animation: nw-wobble var(--wobt, 11s) ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .cm-blob { animation: none; } }
@media (max-width: 640px) {
  .cm-circles { aspect-ratio: 360 / 580; width: min(100%, 420px); }
  .cm-circles > li { left: var(--px); top: var(--py); width: var(--ps); margin: calc(var(--ps) / -2) 0 0 calc(var(--ps) / -2); }
}
.cm-how { margin-top: clamp(3rem, 8vw, 4.5rem); }
.cm-steps { list-style: none; counter-reset: step; padding: 0; margin: 0 auto; max-width: 36rem; display: grid; gap: 1rem; }
.cm-steps li { counter-increment: step; position: relative; padding-left: 3.4rem; color: var(--ink-soft); line-height: 1.55; }
.cm-steps li b { color: var(--ink); }
.cm-steps li::before {
  content: counter(step); position: absolute; left: 0; top: -.15rem; width: 2.4rem; height: 2.4rem; display: grid; place-items: center;
  border-radius: 50% 47% 52% 49% / 48% 52% 47% 51%; font-family: var(--display); font-weight: 600; color: var(--ink);
  background: color-mix(in srgb, var(--c, var(--rose)) 38%, #fff); border: 2px solid var(--c, var(--rose));
}
.cm-steps li:nth-child(2)::before { --c: var(--apricot); --i: 1; }
.cm-steps li:nth-child(3)::before { --c: var(--butter); --i: 2; }
.cm-steps li:nth-child(4)::before { --c: var(--sage); --i: 3; }
.cm-steps li:nth-child(5)::before { --c: var(--sky); --i: 4; }
.cm-steps li:nth-child(6)::before { --c: var(--lilac); --i: 5; }
/* a small wave: every few seconds a ripple runs down the numbers, 1 to 6, then they rest
   (it also hints they're alive; rolling over one lets paint out, see js/splash.js) */
@media (prefers-reduced-motion: no-preference) {
  .cm-steps li::before { animation: cm-wave 7s ease-in-out calc(1.2s + var(--i, 0) * .14s) infinite; }
}
@keyframes cm-wave {
  0%, 13%, 100% { transform: none; }
  4%  { transform: translateY(-5px) rotate(-6deg); }
  8%  { transform: translateY(1.5px) rotate(3deg); }
  11% { transform: translateY(-.5px) rotate(-1deg); }
}

.cm-request { margin-top: clamp(3rem, 8vw, 4.5rem); }
.cm-note { text-align: center; color: var(--ink-soft); font-size: .92rem; margin: -.4rem auto 1.4rem; }
.cm-form, .cm-sent {
  background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow);
  padding: clamp(1.4rem, 4vw, 2.4rem);
}
.cm-progress { list-style: none; display: flex; justify-content: center; gap: .5rem; padding: 0; margin: 0 0 1.2rem; }
.cm-progress li { width: 2.2rem; height: 6px; border-radius: 99px; background: var(--line); transition: background .3s; }
.cm-progress li.on { background: var(--rose); }
.cm-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.cm-step legend { font-family: var(--display); font-size: 1.35rem; font-weight: 600; color: var(--heading); margin-bottom: 1rem; outline: none; }
.cm-check, .cm-pick {
  display: flex; gap: .8rem; align-items: flex-start; padding: .9rem 1rem; margin-bottom: .7rem; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 16px; color: var(--ink-soft); line-height: 1.5; transition: border-color .2s, background .2s;
}
.cm-check:hover, .cm-pick:hover { border-color: var(--ink-soft); }
.cm-check:has(input:checked), .cm-pick:has(input:checked) { border-color: var(--sage); background: color-mix(in srgb, var(--sage) 12%, #fff); }
.cm-check input, .cm-pick input { width: 1.2rem; height: 1.2rem; margin-top: .15rem; flex: none; accent-color: var(--ink); }
.cm-check b { color: var(--ink); }
.cm-q { font-family: var(--display); font-style: italic; font-size: 1.15rem; color: var(--ink); margin: 0 0 1rem; }
.cm-quiz { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .6rem; }
.cm-quiz .cm-pick { margin: 0; align-items: center; }
.cm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem 1.2rem; }
.cm-form label:not(.cm-check):not(.cm-pick) { display: flex; flex-direction: column; gap: .35rem; font-size: .85rem; font-weight: 600; color: var(--ink); }
.cm-wide { margin-top: 1rem; }
.cm-medium { margin-top: 1.2rem; }
.cm-label { font-size: .85rem; font-weight: 600; color: var(--ink); margin: 0 0 .45rem; }
.cm-opt { font-weight: 400; color: var(--ink-soft); }
.cm-form input[type="text"], .cm-form input[type="email"], .cm-form input[type="url"], .cm-form select, .cm-form textarea {
  font: inherit; font-size: 1rem; font-weight: 400; color: var(--ink); background: #fff;
  padding: .75rem 1rem; border: 1.5px solid var(--line); border-radius: 14px; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.cm-form textarea { resize: vertical; min-height: 8rem; line-height: 1.55; }
.cm-form input:focus, .cm-form select:focus, .cm-form textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(94, 171, 201, .18); }
.cm-count { font-weight: 400 !important; font-size: .8rem !important; color: var(--ink-soft) !important; }
.cm-count.ok { color: #6d8a3c !important; }
.cm-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.4rem; }
.cm-nav:has(> :only-child) { justify-content: flex-end; }
.cm-back { font: inherit; font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); background: none; border: 0; padding: .6rem .2rem; cursor: pointer; }
.cm-back:hover { color: var(--ink); }
.cm-form .btn[disabled] { opacity: .6; cursor: progress; }
.cm-msg { min-height: 1.5em; margin: 1rem 0 0; text-align: center; color: var(--ink-soft); }
.cm-msg.oops { color: #b4546e; font-weight: 600; }
.cm-sent { text-align: center; outline: none; }
.cm-sent .script { font-size: 2rem; color: var(--rose); margin: 0; }
.cm-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* the page you land on from the confirmation email */
.cm-done { max-width: 34rem; margin: 18vh auto 0; padding: 0 var(--gutter); text-align: center; color: var(--ink-soft); }
.cm-done .script { font-size: 2.2rem; color: var(--rose); margin: 0 0 .6rem; }

/* ---------- Kristin's private inbox ---------- */
.inbox { background: var(--paper-2); }
.ib { max-width: 860px; margin: 0 auto; padding: 2rem var(--gutter) 4rem; }
.ib h1 { font-size: 2rem; text-transform: uppercase; letter-spacing: .06em; }
.ib .script { font-size: 1.6rem; color: var(--rose); }
.ib-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.ib-top button, .ib-actions button { font: inherit; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; padding: .55rem 1rem; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.ib-top button:hover, .ib-actions button:hover { border-color: var(--ink-soft); }
.ib-actions .ib-delete { color: #b4546e; }
.ib-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.ib-tab { text-decoration: none; font-size: .85rem; font-weight: 600; padding: .5rem .9rem; border-radius: 99px; background: #fff; border: 1.5px solid var(--line); color: var(--ink-soft); }
.ib-tab.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.ib-tab b { margin-left: .2rem; }
.ib-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 1.4rem 1.6rem; margin-bottom: 1rem; }
.ib-card header h2 { font-size: 1.4rem; margin: 0; text-transform: none; letter-spacing: 0; }
.ib-card header p { margin: .2rem 0 0; font-size: .85rem; color: var(--ink-soft); }
.ib-ok, .ib-wait, .ib-flag { display: inline-block; margin-left: .4rem; padding: .1rem .6rem; border-radius: 99px; font-size: .72rem; font-weight: 600; }
.ib-ok { background: color-mix(in srgb, var(--sage) 25%, #fff); color: #4e6b27; }
.ib-wait { background: color-mix(in srgb, var(--butter) 35%, #fff); color: #8a6a12; }
.ib-flag { background: color-mix(in srgb, var(--rose) 22%, #fff); color: #8e3552; }
.ib-card dl { display: grid; grid-template-columns: 8rem 1fr; gap: .35rem 1rem; margin: 1rem 0; font-size: .92rem; }
.ib-card dt { font-weight: 600; color: var(--ink-soft); }
.ib-card dd { margin: 0; overflow-wrap: anywhere; }
.ib-idea { white-space: normal; background: var(--paper-2); border-radius: 14px; padding: 1rem 1.2rem; line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; }
.ib-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: 1rem; }
.ib-actions form { margin: 0; }
.ib-login { max-width: 24rem; display: grid; gap: 1rem; }
.ib-login label, .ib-pw label { display: grid; gap: .35rem; font-weight: 600; font-size: .9rem; }
.ib-login input, .ib-pw input { font: inherit; padding: .7rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; }
.ib-pw form { display: grid; gap: .8rem; margin-top: 1rem; max-width: 24rem; }
.ib-pw summary { cursor: pointer; font-weight: 600; }
.ib-notice, .ib-error, .ib-hint, .ib-empty { padding: .8rem 1rem; border-radius: 14px; }
.ib-notice { background: color-mix(in srgb, var(--sage) 20%, #fff); }
.ib-undo { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.ib-undo form { margin: 0; }
.ib-undo button { font: inherit; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; padding: .45rem 1rem;
  border-radius: 99px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; }
.ib-error { background: color-mix(in srgb, var(--rose) 18%, #fff); color: #8e3552; }
.ib-hint { background: color-mix(in srgb, var(--butter) 25%, #fff); color: var(--ink-soft); font-size: .9rem; }
.ib-empty { text-align: center; color: var(--ink-soft); }
@media (max-width: 560px) { .ib-card dl { grid-template-columns: 1fr; } .ib-card dt { margin-top: .4rem; } }
