/* Customer website. Warm "gallery wall" neutrals, a serif for headings, one
   deep green accent. System fonts only (the page's security policy loads
   nothing from other sites). */
:root {
  --bg: #f6f2ec; --wall: #ece6dd; --card: #ffffff; --text: #22241f; --muted: #6d6a63; --line: #e4ddd2;
  --accent: #2f5d50; --accent-2: #3f7a69; --on-accent: #fff; --ok: #2f7a3b; --bad: #b3261e; --warn: #9a5b12;
  --ok-bg: #e3f1e4; --bad-bg: #fbe4e1; --shadow: 0 1px 2px rgba(40,30,20,.06), 0 8px 24px rgba(40,30,20,.07);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #141513; --wall: #1d1f1c; --card: #1f221f; --text: #ecebe6; --muted: #a09d95; --line: #30332f;
    --accent: #7fb8a6; --accent-2: #9ccbbb; --on-accent: #0f1a17; --ok: #7fcf8c; --bad: #f28b82; --warn: #e6b566;
    --ok-bg: #1d3322; --bad-bg: #3a1e1c; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35); }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, .brand, .section-title { font-family: var(--serif); font-weight: 600; letter-spacing: .2px; }
h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.15; margin: 0 0 14px; }
h2 { font-size: 22px; margin: 0; }
a { color: var(--accent); }
.hidden { display: none !important; }
.muted { color: var(--muted); font-weight: normal; } .small { font-size: 13.5px; }
.msg { min-height: 1.3em; margin: 8px 0 0; } .msg.bad { color: var(--bad); } .msg.ok { color: var(--ok); }
.bad-text { color: var(--bad); } .ok-text { color: var(--ok); } .warn-text { color: var(--warn); }

/* header */
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.brand { font-size: 22px; color: var(--text); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
nav { display: flex; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.nav-btn { font: inherit; font-size: 15px; background: none; border: 0; color: var(--text); padding: 8px 12px; border-radius: 8px;
  cursor: pointer; text-decoration: none; }
.nav-btn:hover { background: var(--wall); }

/* buttons & inputs */
.btn { font: inherit; font-weight: 600; font-size: 15px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; text-decoration: none; transition: transform .05s, background .15s; }
.btn:hover { border-color: var(--muted); } .btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.big { padding: 14px 22px; font-size: 17px; } .btn.wide { width: 100%; margin-top: 8px; }
.btn.round { width: 40px; height: 40px; padding: 0; border-radius: 50%; font-size: 20px; }
.btn:disabled { opacity: .45; cursor: default; }
label { display: block; margin: 12px 0; font-weight: 600; font-size: 15px; }
input, select, textarea { display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: normal; padding: 11px 13px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }

/* front page */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: center; max-width: 1080px; margin: 0 auto;
  padding: clamp(28px, 6vw, 72px) 20px; }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 22px; max-width: 34em; }
.hero-art canvas { width: 100%; height: auto; display: block; }
.band { max-width: 1080px; margin: 0 auto; padding: 24px 20px 40px; }
.band.narrow { max-width: 460px; }
.section-title { font-size: 26px; margin: 0 0 18px; }
.examples { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.example { margin: 0; }
.example canvas { width: 100%; height: auto; display: block; border-radius: 14px; }
.example figcaption { margin-top: 8px; font-size: 14.5px; color: var(--muted); text-align: center; }
.how { background: var(--wall); max-width: none; }
.how > * { max-width: 1040px; margin-left: auto; margin-right: auto; }
.steps3 { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps3 li { background: var(--card); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; }
.steps3 .icon { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center; font-size: 20px; margin-bottom: 4px; }
.steps3 span:last-child { color: var(--muted); font-size: 15px; }
.foot { text-align: center; color: var(--muted); font-size: 14px; padding: 20px 20px 40px; }

/* cards & ordering */
.card { background: var(--card); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); margin-bottom: 18px; }
.wrap { max-width: 980px; margin: 0 auto; padding: 22px 16px 60px; }
.hello { margin-top: 6px; }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.num { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid;
  place-items: center; font-weight: 700; flex: none; }
.upload { display: flex; align-items: center; gap: 14px; padding: 16px; border: 2px dashed var(--line); border-radius: 14px;
  cursor: pointer; margin: 0; font-weight: normal; }
.upload:hover { border-color: var(--accent); }
.upload-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--wall); display: grid; place-items: center; font-size: 22px; flex: none; }
.uploads { list-style: none; padding: 0; margin: 10px 0 0; font-size: 14px; }
.uploads li { padding: 3px 0; }
.bar { height: 5px; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: 3px; }
.bar > div { height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; margin-top: 14px; }
.photos button { padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--wall);
  outline: 3px solid transparent; outline-offset: 2px; transition: outline-color .15s; }
.photos img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.photos .sel { outline-color: var(--accent); }

.kind-tabs { display: inline-flex; background: var(--wall); border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 12px; }
.tab { font: inherit; font-weight: 600; border: 0; background: none; color: var(--muted); padding: 8px 16px; border-radius: 9px; cursor: pointer; }
.tab.active { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; margin-bottom: 18px; }
.tile { font: inherit; text-align: left; border: 1.5px solid var(--line); background: var(--card); color: var(--text); border-radius: 12px;
  padding: 10px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.tile:hover { border-color: var(--muted); }
.tile.sel { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.tile .sz { font-weight: 700; } .tile .sec { font-size: 12.5px; color: var(--muted); } .tile .pr { color: var(--accent); font-weight: 700; }

.builder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.sub { font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin-bottom: 8px; font-weight: 700; }
.stage { position: relative; display: inline-block; max-width: 100%; touch-action: none; user-select: none; -webkit-user-select: none;
  border-radius: 6px; overflow: hidden; /* keeps the crop box's dark surround on the photo, not the page */ }
.stage img { display: block; max-width: 100%; max-height: 58vh; border-radius: 6px; }
.rect { position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(20,18,15,.55); cursor: move; border-radius: 2px; }
.guide { position: absolute; border: 1.5px dashed rgba(255,255,255,.85); pointer-events: none; }
.h { position: absolute; width: 26px; height: 26px; background: #fff; border-radius: 50%; border: 3px solid var(--accent); }
/* corner handles sit just inside the box, so the photo's edge never clips them */
.h.nw { left: -3px; top: -3px; cursor: nwse-resize; } .h.ne { right: -3px; top: -3px; cursor: nesw-resize; }
.h.sw { left: -3px; bottom: -3px; cursor: nesw-resize; } .h.se { right: -3px; bottom: -3px; cursor: nwse-resize; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 10px 0; } .between { justify-content: space-between; }
.mock { width: 100%; height: auto; border-radius: 14px; display: block; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 0; }
.pill { font: inherit; font-size: 14px; border: 1.5px solid var(--line); background: var(--card); color: var(--text); border-radius: 999px;
  padding: 6px 12px; cursor: pointer; }
.pill.sel { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.buy { margin-top: 14px; } .qty { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 18px; }
.price { font-size: 22px; font-family: var(--serif); }

.basket-item { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.basket-item:first-child { border-top: none; }
.basket-item canvas { width: 84px; height: auto; flex: none; border-radius: 8px; }
.basket-item .grow { flex: 1; min-width: 0; }
.remove { font: inherit; background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; padding: 6px; }
.total { font-size: 20px; text-align: right; margin: 12px 0 4px; font-family: var(--serif); }
.status { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--wall); font-size: 13px; font-weight: 700; }
.status.ready { background: var(--ok-bg); color: var(--ok); } .status.cancelled { background: var(--bad-bg); color: var(--bad); }
.order { padding: 14px 0; border-top: 1px solid var(--line); } .order:first-child { border-top: none; }
.order ul { margin: 6px 0 0; padding-left: 18px; font-size: 14.5px; }
.order-photos { display: flex; gap: 6px; margin-top: 8px; } .order-photos img { width: 54px; height: 54px; object-fit: cover; border-radius: 6px; }

@media (max-width: 760px) {
  .top { padding: 10px 12px; } .brand { font-size: 19px; } .nav-btn { padding: 7px 8px; font-size: 14px; }
  nav { flex-wrap: nowrap; }
  .hero { grid-template-columns: 1fr; gap: 10px; padding-top: 24px; }
  .hero-art { order: -1; }
  .steps3 { grid-template-columns: 1fr; }
  .builder-grid { grid-template-columns: 1fr; }
  .card { padding: 18px; border-radius: 14px; }
}
