/* Mr Prints artist portal (2026-10-22). Phone-first; large, clear text and buttons.
   Colours from the Mr Prints logo: teal lettering, black hat, CMYK cards. */
:root {
  --teal: #1d6b78; --teal-dark: #154f59; --teal-pale: #e6f1f3;
  --ink: #1f2937; --muted: #5b6472; --line: #d5dbe1; --bg: #f6f4ef; --card: #fff;
  --cyan: #1aa3c4; --magenta: #d6337a; --yellow: #f2b632; --red: #c62828; --green: #1e7d3a;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; font-size: 17px;
  line-height: 1.45; color: var(--ink); background: var(--bg); }
a { color: var(--teal); }
img { max-width: 100%; }

/* header */
.top { background: #fff; border-bottom: 4px solid var(--teal); position: sticky; top: 0; z-index: 10; }
.top-in { max-width: 1200px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { height: 52px; width: auto; }
.brand b { display: block; font-size: 1.25rem; color: var(--teal); letter-spacing: 0.02em; }
.brand small { display: block; color: var(--muted); font-size: 0.8rem; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.nav a, .nav button { font: inherit; font-size: 0.95rem; font-weight: 700; text-decoration: none; color: var(--teal-dark);
  padding: 8px 12px; border-radius: 999px; border: 2px solid transparent; background: none; cursor: pointer; }
.nav a.on { background: var(--teal-pale); border-color: var(--teal); }
.nav .basket { background: var(--teal); color: #fff; }
.nav .basket .n { background: #fff; color: var(--teal-dark); border-radius: 999px; padding: 0 8px; margin-left: 6px; font-size: 0.85rem; }
.nav form { margin: 0; }

main { max-width: 1200px; margin: 0 auto; padding: 18px 16px 60px; }
h1 { font-size: 1.6rem; margin: 6px 0 12px; }
h2 { font-size: 1.2rem; margin: 18px 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }

/* buttons + forms */
.btn { display: inline-block; font: inherit; font-weight: 700; font-size: 1rem; padding: 11px 20px; border-radius: 10px;
  border: 2px solid var(--teal); background: var(--teal); color: #fff; cursor: pointer; text-decoration: none; text-align: center; }
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn-light { background: #fff; color: var(--teal-dark); }
.btn-light:hover { background: var(--teal-pale); }
.btn-big { width: 100%; padding: 14px; font-size: 1.1rem; }
label { font-weight: 700; display: block; margin: 12px 0 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  width: 100%; font: inherit; padding: 11px 12px; border: 2px solid #9aa4b1; border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--yellow); border-color: var(--teal); }
.card { background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 18px; }
.narrow { max-width: 460px; margin: 30px auto; }
.alert { border-radius: 10px; padding: 12px 14px; margin: 10px 0; font-weight: 600; }
.alert-err { background: #fdecea; border: 2px solid var(--red); color: #8e1c1c; }
.alert-ok { background: #e8f5ec; border: 2px solid var(--green); color: #14532d; }
.alert-info { background: var(--teal-pale); border: 2px solid var(--teal); color: var(--teal-dark); }

/* gallery */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 12px; }
.tabs a { text-decoration: none; font-weight: 700; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--line);
  background: #fff; color: var(--ink); }
.tabs a.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.search { display: flex; gap: 8px; margin-bottom: 14px; }
.search input { flex: 1; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.tile { background: #fff; border: 2px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.tile.just-added { border-color: var(--green); box-shadow: 0 0 0 3px #b9e2c5; }
.tile .pic { display: block; background: #eceae4; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
.tile .pic img { max-height: 100%; max-width: 100%; object-fit: contain; }
.tile .info { padding: 10px 12px 4px; }
.tile .title { font-weight: 700; font-size: 1.02rem; }
.tile .code { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.03em; }
.tile form { padding: 8px 12px 12px; display: grid; grid-template-columns: minmax(0, 1fr) 74px; gap: 8px; margin-top: auto; }
.tile form select { grid-column: 1 / -1; }
.tile form .btn { padding: 10px 8px; }
.added-msg { color: var(--green); font-weight: 700; padding: 0 12px 10px; }

/* viewer */
.viewer { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.viewer .big { background: #2b2b2b; border-radius: 14px; overflow: hidden; display: flex; justify-content: center; }
.viewer .big img { max-height: 80vh; width: auto; cursor: zoom-in; }
.viewer .big.zoom { overflow: auto; max-height: 85vh; display: block; }
.viewer .big.zoom img { max-height: none; max-width: none; cursor: zoom-out; }
.prevnext { display: flex; justify-content: space-between; margin-top: 10px; }
@media (max-width: 860px) { .viewer { grid-template-columns: 1fr; } }

/* basket / orders */
.lines { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; border: 2px solid var(--line); }
.lines th { background: var(--teal); color: #fff; text-align: left; padding: 10px; font-size: 0.9rem; }
.lines td { padding: 10px; border-top: 1px solid var(--line); vertical-align: middle; }
.lines tr:nth-child(even) td { background: #f7f8f9; }
.lines .r { text-align: right; white-space: nowrap; }
.lines img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; display: block; }
.qty-form { display: flex; gap: 6px; align-items: center; margin: 0; }
.qty-form input { width: 76px; }
.linkbtn { background: none; border: none; color: var(--red); font: inherit; font-weight: 700; cursor: pointer; padding: 4px; }
.choice { display: flex; gap: 10px; align-items: flex-start; border: 2px solid var(--line); border-radius: 12px; padding: 12px; margin: 8px 0;
  background: #fff; cursor: pointer; font-weight: 400; }
.choice input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.choice b { display: block; }
.status { display: inline-block; padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: 0.88rem; background: var(--teal-pale);
  color: var(--teal-dark); border: 2px solid var(--teal); }
.status.sent { background: #fff7e0; color: #7a5200; border-color: var(--yellow); }
.status.done { background: #e8f5ec; color: #14532d; border-color: var(--green); }
.total-row td { font-weight: 800; font-size: 1.05rem; border-top: 3px solid var(--teal); }
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand img { height: 42px; }
  .lines .hide-sm { display: none; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .tile form { grid-template-columns: minmax(0, 1fr); }
  .tile form input[type=number] { width: 100%; }
}
footer { text-align: center; color: var(--muted); font-size: 0.85rem; padding: 20px; }
/* phone fixes: nothing may be wider than the screen */
.tile, .tile form, .search, .search input, select, input, textarea { min-width: 0; max-width: 100%; }
.tile form > * { min-width: 0; }
.nav { min-width: 0; }
@media (max-width: 640px) {
  main { padding: 12px 10px 50px; }
  .top-in { padding: 6px 10px; gap: 6px; }
  .nav { width: 100%; justify-content: space-between; gap: 2px; }
  .nav a, .nav button { padding: 6px 8px; font-size: 0.88rem; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tile .info { padding: 8px 8px 2px; }
  .tile .title { font-size: 0.95rem; }
  .tile form { padding: 6px 8px 10px; }
  .tile form select, .tile form input, .tile form .btn { font-size: 0.9rem; padding: 8px 6px; }
  .search .btn { padding: 10px 12px; }
  .lines td, .lines th { padding: 8px 6px; }
}
/* Ken's owner bar: pick which artist to view as */
.owner-bar { background: var(--yellow); border-bottom: 2px solid #c48f12; }
.owner-bar form { max-width: 1200px; margin: 0 auto; padding: 8px 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.owner-bar label { margin: 0; color: #3b2a00; }
.owner-bar select { width: auto; flex: 1; min-width: 0; max-width: 460px; padding: 7px 10px; }
/* products page */
.prod-list { background: #fff; border: 2px solid var(--line); border-radius: 14px; overflow: hidden; }
.prod { display: flex; justify-content: space-between; gap: 14px; padding: 12px 14px; border-top: 1px solid var(--line); }
.prod:first-child { border-top: none; }
.prod-price { font-weight: 800; white-space: nowrap; color: var(--teal-dark); }
.prod .muted, .prod-desc-text { white-space: pre-line; }

/* front page (2026-12-04) */
.hello { text-align: center; margin: 26px 0 24px; }
.hello h1 { font-size: clamp(1.8rem, 5vw, 2.7rem); color: var(--teal-dark); margin: 0 0 6px; line-height: 1.15; }
.hello p { font-size: 1.12rem; color: var(--muted); margin: 0; }
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; max-width: 900px; margin: 0 auto; }
.door { display: flex; flex-direction: column; background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 24px;
  text-align: center; text-decoration: none; color: var(--ink); }
.door svg { width: 100%; max-width: 260px; margin: 0 auto; }
.door h2 { font-size: 1.45rem; margin: 14px 0 4px; }
.door p { margin: 0 0 18px; color: var(--muted); }
.door .btn, .door .soon { margin-top: auto; }
.door-artist:hover, .door-artist:focus-visible { border-color: var(--teal); }
.door .soon { font-weight: 700; padding: 14px; border-radius: 10px; background: #fff7e0; color: #7a5200; }
.pick { margin: 4px 0 0; }
@media (max-width: 640px) { .doors { grid-template-columns: 1fr; gap: 14px; } .hello { margin: 14px 0 16px; } }
