/* Name Badge Works — warm light studio. Colour lives in the badges. */
:root {
  --bg: #faf7f2; --surface: #ffffff; --ink: #1f2328; --ink-2: #555b63; --line: #e6e0d6;
  --accent: #0f766e; --accent-ink: #ffffff; --accent-soft: #e3f1ef;
  --warn: #9a3412; --warn-soft: #fff1e6;
  --r-lg: 18px; --r: 12px; --r-sm: 8px;
  --shadow: 0 1px 2px rgba(31,35,40,.06), 0 8px 24px rgba(31,35,40,.06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@font-face { font-family: "Inter"; src: url(/fonts/tag/Inter-400.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/fonts/tag/Inter-700.woff) format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/fonts/tag/Inter-900.woff) format("woff"); font-weight: 900; font-display: swap; }

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
img, canvas { max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px; z-index: 10; }

/* header */
.hdr { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.hdr .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 900; letter-spacing: -.01em; font-size: 18px; }
.brand-mark { width: 30px; height: 18px; border-radius: 5px; background: var(--accent); position: relative; }
.brand-mark::after { content: ""; position: absolute; left: 6px; right: 6px; top: 7px; height: 3px; border-radius: 2px; background: #fff; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: var(--r-sm); font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a[aria-current] { background: var(--accent-soft); color: var(--accent); }
@media (max-width: 640px) { .nav a.hide-sm { display: none; } .nav a { padding: 8px; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: var(--r); font: 700 16px var(--font); text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #0b5f59; }
.btn-primary[disabled] { background: #9fb8b5; cursor: not-allowed; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-2); }

/* home */
.hero { padding: 40px 0 24px; }
.hero .wrap { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 880px) { .hero .wrap { grid-template-columns: 1.05fr 1fr; } .hero { padding: 64px 0 40px; } }
.hero h1 { font-size: clamp(34px, 6vw, 54px); line-height: 1.05; letter-spacing: -.025em; margin: 0 0 14px; font-weight: 900; }
.hero p.lead { font-size: 18px; color: var(--ink-2); margin: 0 0 22px; max-width: 34em; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hero .team-link { display: inline-block; margin-top: 14px; font-weight: 600; }
.badge-stack { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.badge-stack canvas, .card canvas, .badge-img { width: 100%; height: auto; display: block; border-radius: 10px;
  filter: drop-shadow(0 6px 14px rgba(31,35,40,.18)); }
.badge-stack .big { grid-column: 1 / -1; }

.section { padding: 28px 0; }
.section h2 { font-size: 26px; letter-spacing: -.015em; margin: 0 0 16px; }
.paths { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .paths { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow);
  text-decoration: none; color: var(--ink); display: block; }
a.card:hover { border-color: var(--accent); }
.card h3 { margin: 12px 0 4px; font-size: 18px; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.card .soon { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); background: #f1ede6; padding: 2px 8px; border-radius: 99px; }
.season { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 880px) { .season { grid-template-columns: repeat(4, 1fr); } }
.season .card { padding: 14px; }
.season .card h3 { font-size: 16px; margin-top: 10px; }
.badge-stack canvas, .card canvas { aspect-ratio: 3.5 / 1.7; }
@media (max-width: 879px) { .hero .badge-stack { order: -1; } .hero { padding-top: 20px; } }
.hero .eyebrow { display: inline-block; margin: 0 0 12px; padding: 4px 12px; border-radius: 99px; background: #fbe7e7;
  color: #9b1c1c; font-weight: 800; font-size: 14px; letter-spacing: .02em; }
.occasions-bar { padding: 4px 0 0; position: sticky; top: 61px; z-index: 4; background: var(--bg); }
.occasions { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 10px; scrollbar-width: none; }
.occasions::-webkit-scrollbar { display: none; }
.occasions a { flex: none; padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface);
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; }
.occasions a:hover { border-color: var(--accent); color: var(--accent); }
.occasion { scroll-margin-top: 120px; padding: 22px 0; }
.occasion h2 { margin: 0 0 2px; }
.occasion-h p { margin: 0 0 14px; color: var(--ink-2); }
.season .card .use { display: inline-block; margin-top: 2px; font-size: 14px; font-weight: 700; color: var(--accent); }

.ftr { border-top: 1px solid var(--line); margin-top: 40px; padding: 28px 0 40px; color: var(--ink-2); font-size: 14px; }
.ftr .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.ftr a { color: var(--ink-2); }

/* builder */
.builder { display: grid; gap: 20px; grid-template-columns: 1fr; padding: 16px 16px 120px; }
@media (min-width: 900px) { .builder { grid-template-columns: 1fr 1.1fr; padding-bottom: 40px; } .builder .preview-col { order: 2; } }
.preview-col { position: sticky; top: 60px; z-index: 3; background: var(--bg); padding: 10px 0; align-self: start; }
@media (max-width: 899px) { .preview-col { margin: 0 -16px; padding: 10px 16px; border-bottom: 1px solid var(--line); } }
.preview-box { background: radial-gradient(ellipse at 50% 40%, #fff 0%, #efe9df 100%); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(14px, 4vw, 36px); display: flex; align-items: center; justify-content: center; }
.preview-box canvas { width: 100%; max-width: 520px; filter: drop-shadow(0 8px 16px rgba(31,35,40,.22)); border-radius: 10px; }
.preview-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--ink-2); margin-top: 8px; flex-wrap: wrap; }
.warn { background: var(--warn-soft); color: var(--warn); border-radius: var(--r-sm); padding: 8px 12px; font-size: 14px; margin-top: 8px; }
.warn:empty { display: none; }

.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 12px; overflow: hidden; }
.step > button.step-h { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; font-weight: 700; font-size: 17px; }
.step > button.step-h:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.step-n { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 14px; flex: none; }
.step-sum { margin-left: auto; font-weight: 400; color: var(--ink-2); font-size: 14px; text-align: right; }
.step-b { padding: 0 18px 18px; display: none; }
.step.open .step-b { display: block; }
.field { margin-bottom: 14px; }
.field label, .field .lbl { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--ink-2); }
.field input[type=text], .field select { width: 100%; min-height: 48px; padding: 0 14px; font: 17px var(--font); border: 1px solid var(--line); border-radius: var(--r); background: #fff; color: var(--ink); }
.field input[type=text]:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; font: 600 15px var(--font); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.swatch { width: 22px; height: 22px; border-radius: 6px; display: inline-grid; place-items: center; font: 900 12px var(--font); }
.layouts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 520px) { .layouts { grid-template-columns: repeat(3, 1fr); } }
.layout-btn { border: 1px solid var(--line); background: #fff; border-radius: var(--r); padding: 8px; cursor: pointer; text-align: center; font: 600 14px var(--font); color: var(--ink); }
.layout-btn canvas { width: 100%; display: block; border-radius: 6px; margin-bottom: 6px; }
.layout-btn[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; max-height: 260px; overflow: auto; padding: 2px; }
.icon-btn { aspect-ratio: 1; border: 1px solid var(--line); background: #fff; border-radius: var(--r-sm); cursor: pointer; padding: 8px; display: grid; place-items: center; }
.icon-btn img { width: 100%; height: 100%; object-fit: contain; }
.icon-btn[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.qty button { width: 48px; height: 48px; border: 0; background: #fff; font: 700 20px var(--font); cursor: pointer; color: var(--ink); }
.qty output { min-width: 44px; text-align: center; font-weight: 700; }
.review dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 14px; font-size: 15px; }
.review dt { color: var(--ink-2); } .review dd { margin: 0; font-weight: 600; word-break: break-word; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin: 10px 0 14px; }
.check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--accent); }
.notice { background: #f1ede6; border-radius: var(--r-sm); padding: 10px 12px; font-size: 14px; color: var(--ink-2); }

.bar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); z-index: 6;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; }
.bar .price { font-weight: 900; font-size: 20px; } .bar .price small { display: block; font-weight: 400; font-size: 12px; color: var(--ink-2); }
.bar .btn { margin-left: auto; }
@media (min-width: 900px) { .bar { position: static; border: 1px solid var(--line); border-radius: var(--r-lg); margin-top: 12px; padding: 12px 16px; } }

/* help */
.prose { max-width: 760px; padding-top: 24px; padding-bottom: 24px; }   /* keep .wrap's 16px sides (help page sat on the screen edge) */
.prose h1 { font-size: 34px; letter-spacing: -.02em; margin: 0 0 12px; }
.prose h2 { font-size: 22px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; margin-bottom: 8px; }
.prose summary { font-weight: 700; cursor: pointer; color: var(--ink); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* phone: one-line header, compact sticky preview so the inputs stay in view */
@media (max-width: 640px) {
  /* the name may break onto two lines rather than push Cart off a narrow phone (WebKit fonts run wider) */
  .brand { font-size: 16px; line-height: 1.1; min-width: 0; }
  .nav { flex-shrink: 0; }
  .nav a { font-size: 14px; white-space: nowrap; }
  .nav .long { display: none; }
  .preview-col { padding: 6px 16px; }
  .preview-box { padding: 10px; }
  .preview-box canvas { max-height: 24vh; width: auto; max-width: 100%; }
  .preview-meta { margin-top: 4px; font-size: 13px; }
  .preview-meta .chip { min-height: 36px; padding: 0 10px; }
}
.path-icon { aspect-ratio: 3.5 / 1.7; border: 2px dashed var(--line); border-radius: 10px; display: grid; place-items: center; color: var(--ink-2); font-weight: 700; }

/* badges in this order + names list */
.badges-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; margin-bottom: 12px; }
.badges-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-bottom: 10px; }
.badges-head span { color: var(--ink-2); font-size: 14px; }
.badge-list { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x proximity; }
.badge-list:empty { display: none; }
.badge-item { flex: none; width: 128px; scroll-snap-align: start; border: 1px solid var(--line); background: #fff; border-radius: var(--r); padding: 6px; cursor: pointer;
  font: 600 13px var(--font); color: var(--ink); text-align: left; }
.badge-item canvas { width: 100%; display: block; border-radius: 5px; margin-bottom: 4px; }
.badge-item span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge-item small { color: var(--ink-2); font-weight: 400; }
.badge-item[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.badge-item.bad { border-color: var(--warn); }
.badge-item.bad span { color: var(--warn); }
.add-row .chip { font-size: 14px; }
.roster { margin-top: 12px; padding: 12px; background: #f6f2ec; border-radius: var(--r); }
.roster p { margin: 0 0 10px; font-size: 14px; color: var(--ink-2); }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.linkish { all: unset; cursor: pointer; color: var(--accent); font-weight: 600; font-size: 14px; text-decoration: underline; margin: 8px 0 0 4px; display: inline-block; }
[hidden], .linkish[hidden] { display: none !important; }
.linkish:focus-visible { outline: 3px solid var(--accent); }
.linkish.danger { color: var(--warn); }
.roster-msg { margin: 8px 0 0; font-size: 14px; color: var(--accent); }
.roster-msg:empty { display: none; }
.roster-msg.bad { color: var(--warn); }
#controls, .preview-col { min-width: 0; }

/* Add to cart message, cart link count */
.bar { flex-wrap: wrap; }
.bar-msg { flex-basis: 100%; margin: 0; font-size: 14px; font-weight: 600; color: var(--warn); }
.bar-msg:empty { display: none; }
.check.attn { outline: 3px solid var(--warn); outline-offset: 4px; border-radius: var(--r-sm); }
.cart-n { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; line-height: 20px; text-align: center; }
.cart-n[hidden] { display: none; }

/* Cart + checkout page */
.cart-page { padding: 20px 16px 60px; }
.cart-page h1 { font-size: 28px; margin: 0 0 14px; }
.cart-grid { display: grid; gap: 18px; }
@media (min-width: 900px) { .cart-grid { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; }
.card h2 { font-size: 19px; margin: 0 0 12px; }
.line { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.line:first-of-type { border-top: 0; padding-top: 0; }
.line img { width: 112px; height: auto; border-radius: 8px; display: block; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.line .nm { font-weight: 800; font-size: 17px; overflow-wrap: anywhere; }
.line .sub { color: var(--ink-2); font-size: 14px; overflow-wrap: anywhere; }
.line .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.line .lt { margin-left: auto; font-weight: 800; }
.qbtn { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.qbtn button { all: unset; cursor: pointer; width: 44px; height: 44px; text-align: center; font-size: 22px; font-weight: 700; }
.qbtn output { min-width: 32px; text-align: center; font-weight: 800; }
.rm { all: unset; cursor: pointer; color: var(--warn); font-weight: 700; font-size: 14px; text-decoration: underline; padding: 10px 4px; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 16px; margin: 4px 0 0; }
.totals dt { color: var(--ink-2); } .totals dd { margin: 0; text-align: right; font-weight: 700; }
.totals .grand { font-size: 20px; font-weight: 900; color: var(--ink); }
.form label { display: block; font-weight: 700; font-size: 15px; margin: 12px 0 6px; }
.form label small { font-weight: 400; color: var(--ink-2); }
.form input, .form select, .form textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 17px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form .two label { margin-top: 12px; }
.pay { width: 100%; margin-top: 16px; font-size: 18px; padding: 16px; }
.err { color: var(--warn); font-weight: 600; margin: 10px 0 0; }
.err:empty { display: none; }
.empty { text-align: center; padding: 30px 10px; }
.fine { font-size: 13px; color: var(--ink-2); margin: 10px 0 0; }

/* small phones: Design · Help · Cart must fit next to the name (iPhone SE = 375px) */
@media (max-width: 430px) {
  .hdr .wrap { gap: 8px; }
  .brand { font-size: 15px; gap: 7px; }
  .brand-mark { width: 22px; height: 14px; }
  .brand-mark::after { left: 4px; right: 4px; top: 5px; height: 3px; }
  .nav { gap: 0; }
  .nav a { padding: 8px 6px; }
  .cart-n { min-width: 18px; padding: 0 5px; margin-left: 3px; line-height: 18px; }
}

/* "Use your logo" (Art step) */
.logo-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.logo-pick { width: 72px; flex: none; }
.logo-tip { font-size: 13px; color: var(--ink-2); margin: 0; }
.logo-field .check { margin: 10px 0 6px; }
/* Contact form (/contact) */
.cform { margin-top: 18px; }
.cform .topics { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.cform legend { font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.cform .topic { display: grid; grid-template-columns: 24px 1fr; column-gap: 10px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; cursor: pointer; }
.cform .topic input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); grid-row: span 2; }
.cform .topic b { color: var(--ink); }
.cform .topic span { font-size: 14px; color: var(--ink-2); }
.cform .topic:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.cform input[type=email], .cform textarea { width: 100%; padding: 12px 14px; font: 17px var(--font); border: 1px solid var(--line); border-radius: var(--r); background: #fff; color: var(--ink); }
.cform input[type=email] { min-height: 48px; }
.cform input[type=email]:focus, .cform textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.cform input[type=file] { max-width: 100%; font-size: 15px; }
.cform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform .btn { width: 100%; max-width: 360px; }
.cmsg { margin-top: 12px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--warn-soft); color: var(--warn); }
.cmsg.ok { background: var(--accent-soft); color: var(--accent); }

/* "From our other shops" on the cart (2026-10-20): one cart on every site. */
.othershops { margin-top: 18px; }
.othershops h2 { margin: 0 0 4px; font-size: 18px; }
.othershops a { display: block; padding: 10px 0; border-top: 1px solid var(--line); font-weight: 600; text-decoration: none; }
