/* =========================================================================
   Taylor-made - design system. Made to measure.
   Truth: a tailor's bench - linen, graphite ink, one thread of amber,
   tape-measure ticks, a care-tag. Built system-first; nothing hand-placed.
   ========================================================================= */
:root {
  /* spacing - one 4-based ramp */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --space-9: 96px; --space-10: 128px;

  /* type scale - 1.25 */
  --ms-0: 1rem; --ms-1: 1.25rem; --ms-2: 1.563rem; --ms-3: 1.953rem;
  --ms-4: 2.441rem; --ms-5: 3.052rem; --ms-6: 3.815rem;
  --ms-dn1: 0.8rem; --ms-dn2: 0.64rem;

  /* color - warm neutrals carry the brand hue; one amber accent */
  --linen-50:  #fbf8f2;
  --linen-100: #f4efe5;
  --linen-200: #e8e0d1;
  --linen-300: #d8cdb8;
  --ink-900:   #211d18;
  --ink-700:   #3c352c;
  --ink-500:   #6b6051;
  --thread-500:#c0682f;  /* the one thread of amber */
  --thread-600:#a8551f;

  --surface: var(--linen-100);
  --surface-raised: var(--linen-50);
  --ink: var(--ink-900);
  --ink-muted: var(--ink-500);
  --accent: var(--thread-500);
  --accent-ink: #fff8ef;
  --line: color-mix(in srgb, var(--ink-900) 12%, transparent);
  --line-strong: color-mix(in srgb, var(--ink-900) 22%, transparent);
  --focus: 2px solid var(--accent);

  /* radius */
  --r-xs: 4px; --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px;
  --r-pill: 999px; --r-full: 50%;

  /* elevation - warm ink-tinted, light from above */
  --e1: 0 1px 2px color-mix(in srgb, var(--ink-900) 10%, transparent),
        0 1px 1px color-mix(in srgb, var(--ink-900) 7%, transparent);
  --e2: 0 1px 2px color-mix(in srgb, var(--ink-900) 11%, transparent),
        0 6px 14px color-mix(in srgb, var(--ink-900) 9%, transparent);
  --e3: 0 1px 2px color-mix(in srgb, var(--ink-900) 12%, transparent),
        0 18px 34px color-mix(in srgb, var(--ink-900) 12%, transparent);

  /* motion */
  --ease-standard: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-expressive: cubic-bezier(0.16, 1, 0.30, 1);
  --dur-micro: 120ms; --dur-element: 200ms; --dur-section: 320ms; --dur-cinematic: 600ms;

  --edge: clamp(1rem, 0.6rem + 1.1vw, 1.5rem);
  --shell: min(100% - 2 * var(--edge), 60rem);

  font-size: clamp(1rem, 0.94rem + 0.28vw, 1.1875rem);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--surface);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100svh;
  display: flex; flex-direction: column;
  background:
    radial-gradient(120% 80% at 50% -10%, var(--linen-50), transparent 60%),
    var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.serif { font-family: 'Fraunces', Georgia, 'Times New Roman', serif; }

::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }
:focus-visible { outline: var(--focus); outline-offset: 2px; border-radius: var(--r-xs); }

/* ---------- header ---------- */
.site-head {
  width: var(--shell); margin-inline: auto; padding: var(--space-6) var(--edge) var(--space-2);
  display: flex; flex-direction: column; align-items: center; gap: var(--space-1);
  text-align: center;
}
.wordmark {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600; font-size: var(--ms-2); letter-spacing: -0.01em;
  display: inline-flex; align-items: baseline; gap: 0.06em;
}
.wordmark .cut { color: var(--accent); font-style: italic; }
.kicker {
  font-size: var(--ms-dn1); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-muted); font-weight: 500;
}

/* ---------- main / stages ---------- */
main {
  flex: 1; width: var(--shell); margin-inline: auto; padding: var(--space-4) var(--edge) var(--space-8);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: var(--space-6);
}
.stage { display: none; width: 100%; flex-direction: column; align-items: center; gap: var(--space-5); }
.stage.active { display: flex; animation: rise var(--dur-cinematic) var(--ease-expressive) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- drop stage (the cutting table) ---------- */
.lede {
  max-width: 34ch; text-align: center; text-wrap: balance;
  font-family: 'Fraunces', Georgia, serif; font-weight: 500;
  font-size: var(--ms-3); line-height: 1.15; letter-spacing: -0.015em;
  margin-top: var(--space-4);
}
.lede em { color: var(--accent); font-style: italic; }
.sub {
  max-width: 46ch; text-align: center; color: var(--ink-muted);
  font-size: var(--ms-0); line-height: 1.55;
}

.table {
  position: relative; width: 100%; max-width: 36rem;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-xl);
  background: var(--surface-raised);
  border: 1.5px dashed var(--line-strong);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-3); cursor: pointer; text-align: center; padding: var(--space-6);
  transition: border-color var(--dur-element) var(--ease-standard),
              background var(--dur-element) var(--ease-standard),
              transform var(--dur-element) var(--ease-standard), box-shadow var(--dur-element) var(--ease-standard);
  overflow: hidden;
}
/* tape-measure tick ruler along the top edge */
.table::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 18px;
  background-image: repeating-linear-gradient(to right,
    var(--line-strong) 0 1px, transparent 1px 12px);
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.table:hover, .table.drag {
  border-color: var(--accent); background: var(--linen-50);
  transform: translateY(-2px); box-shadow: var(--e2);
}
.table.drag { border-style: solid; }
.table .needle {
  width: 56px; height: 56px; color: var(--accent);
}
.table .big {
  font-family: 'Fraunces', Georgia, serif; font-size: var(--ms-1); font-weight: 500;
}
.table .small { font-size: var(--ms-dn1); color: var(--ink-muted); letter-spacing: 0.02em; }
input[type=file] { display: none; }

.assurance {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: var(--ms-dn1); color: var(--ink-muted);
}
.assurance svg { width: 16px; height: 16px; color: var(--accent); }

/* ---------- working stage (measure · cut · finish) ---------- */
.work { gap: var(--space-6); padding-top: var(--space-8); }
.ruler {
  width: min(28rem, 86vw); height: 4px; border-radius: var(--r-pill);
  background: var(--linen-200); position: relative; overflow: hidden;
}
.ruler::after {
  content: ''; position: absolute; inset: 0; width: var(--p, 0%);
  background: var(--accent); transition: width var(--dur-section) var(--ease-standard);
}
.work .phase {
  font-family: 'Fraunces', Georgia, serif; font-size: var(--ms-2); font-weight: 500;
  letter-spacing: -0.01em;
}
.work .phase .dim { color: var(--ink-muted); }
.work .phase .on { color: var(--accent); }

/* ---------- result stage (the care-tag) ---------- */
.tag {
  width: 100%; max-width: 38rem; background: var(--surface-raised);
  border-radius: var(--r-lg); box-shadow: var(--e3);
  border: 1px solid var(--line);
  overflow: hidden;
}
.tag .canvaswrap {
  position: relative; background:
    conic-gradient(var(--linen-200) 25%, transparent 0 50%, var(--linen-200) 0 75%, transparent 0)
    0 0 / 22px 22px var(--linen-50);
  display: flex; align-items: center; justify-content: center; padding: var(--space-6);
  min-height: 14rem;
}
.tag canvas, .tag img { max-width: 100%; max-height: 22rem; display: block; image-rendering: auto;
  filter: drop-shadow(0 6px 12px color-mix(in srgb, var(--ink-900) 14%, transparent)); }
.tag .body { padding: var(--space-5) var(--space-5) var(--space-6); display: flex; flex-direction: column; align-items: center; gap: var(--space-4); text-align: center; }
.verdict {
  font-family: 'Fraunces', Georgia, serif; font-size: var(--ms-1); font-weight: 500;
  line-height: 1.25; max-width: 32ch; text-wrap: balance;
}
.swatches { display: flex; gap: var(--space-2); align-items: center; justify-content: center; flex-wrap: wrap; }
.swatch { width: 22px; height: 22px; border-radius: var(--r-full); border: 1px solid var(--line-strong); box-shadow: var(--e1); }
.meta { font-size: var(--ms-dn1); color: var(--ink-muted); letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums; }

/* primary actions */
.actions { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); width: 100%; }
.row { display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: center; justify-content: center; }
.btn {
  appearance: none; border: 1px solid var(--line-strong); background: var(--surface-raised);
  color: var(--ink); font: inherit; font-size: var(--ms-0); font-weight: 500;
  padding: var(--space-3) var(--space-5); border-radius: var(--r-pill); cursor: pointer;
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 48px;
  transition: transform var(--dur-micro) var(--ease-standard), box-shadow var(--dur-element) var(--ease-standard),
              background var(--dur-micro) var(--ease-standard), border-color var(--dur-micro) var(--ease-standard);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--e2); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }
.btn.primary {
  background: var(--accent); color: var(--accent-ink); border-color: transparent;
  padding-inline: var(--space-6); font-size: var(--ms-1);
}
.btn.primary:hover { background: var(--thread-600); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-muted); min-height: 40px; }
.btn.ghost:hover { color: var(--ink); box-shadow: none; transform: none; }

/* format chips */
.formats { display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: center; justify-content: center; }
.chip {
  appearance: none; border: 1px solid var(--line); background: transparent; color: var(--ink-700);
  font: inherit; font-size: var(--ms-dn1); font-weight: 600; letter-spacing: 0.04em;
  padding: var(--space-2) var(--space-4); border-radius: var(--r-pill); cursor: pointer;
  min-height: 40px; display: inline-flex; align-items: center; gap: var(--space-2);
  transition: border-color var(--dur-micro) var(--ease-standard), color var(--dur-micro) var(--ease-standard),
              background var(--dur-micro) var(--ease-standard);
}
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip .ext { text-transform: uppercase; }
.chip .star { color: var(--accent); font-size: 0.7em; }

.formats-label { font-size: var(--ms-dn1); color: var(--ink-muted); letter-spacing: 0.08em; text-transform: uppercase; }

/* honest note (embroidery on complex art) */
.note {
  display: flex; gap: var(--space-3); align-items: flex-start; text-align: left;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface-raised));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: var(--r-md); padding: var(--space-3) var(--space-4);
  max-width: 34rem; font-size: var(--ms-dn1); line-height: 1.5; color: var(--ink-700);
}
.note svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 2px; }
.note.hidden { display: none; }

/* ---------- make-changes panel ---------- */
details.tweaks { width: 100%; max-width: 38rem; }
details.tweaks > summary {
  list-style: none; cursor: pointer; text-align: center; color: var(--ink-muted);
  font-size: var(--ms-dn1); letter-spacing: 0.06em; text-transform: uppercase;
  padding: var(--space-3); border-radius: var(--r-pill);
}
details.tweaks > summary::-webkit-details-marker { display: none; }
details.tweaks > summary:hover { color: var(--ink); }
.panel {
  margin-top: var(--space-3); background: var(--surface-raised); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-5);
}
.segmented { display: flex; gap: var(--space-1); background: var(--linen-200); padding: var(--space-1);
  border-radius: var(--r-pill); width: fit-content; margin-inline: auto; }
.segmented button {
  appearance: none; border: 0; background: transparent; font: inherit; font-size: var(--ms-dn1); font-weight: 600;
  color: var(--ink-muted); padding: var(--space-2) var(--space-4); border-radius: var(--r-pill); cursor: pointer;
  min-height: 40px; transition: background var(--dur-micro) var(--ease-standard), color var(--dur-micro) var(--ease-standard);
}
.segmented button[aria-selected=true] { background: var(--surface-raised); color: var(--ink); box-shadow: var(--e1); }

.control { display: flex; flex-direction: column; gap: var(--space-2); }
.control > label { font-size: var(--ms-dn1); font-weight: 600; letter-spacing: 0.04em; color: var(--ink-700);
  display: flex; justify-content: space-between; align-items: center; }
.control .val { color: var(--accent); font-variant-numeric: tabular-nums; }
.control input[type=range] { width: 100%; accent-color: var(--accent); height: 28px; }
.control .sizes { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.control .sizes button {
  appearance: none; border: 1px solid var(--line); background: transparent; color: var(--ink-700);
  font: inherit; font-size: var(--ms-dn1); padding: var(--space-2) var(--space-3); border-radius: var(--r-sm);
  cursor: pointer; min-height: 40px;
}
.control .sizes button[aria-selected=true] { border-color: var(--accent); color: var(--ink); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.toggle input { width: 44px; height: 26px; accent-color: var(--accent); }

.restart { margin-top: var(--space-2); }

/* spinner dots in chips while building */
.chip.busy { opacity: 0.6; pointer-events: none; }

/* ---------- footer ---------- */
.site-foot {
  width: var(--shell); margin-inline: auto; padding: var(--space-6) var(--edge) var(--space-7);
  text-align: center; font-size: var(--ms-dn1); color: var(--ink-muted); letter-spacing: 0.02em;
}
.site-foot a { color: var(--ink-700); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.site-foot a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- help overlay ---------- */
.help-btn {
  position: fixed; top: var(--space-4); right: var(--space-4); z-index: 20;
  width: 44px; height: 44px; border-radius: var(--r-full); border: 1px solid var(--line-strong);
  background: var(--surface-raised); color: var(--ink-700); font: inherit; font-weight: 600; cursor: pointer;
  box-shadow: var(--e1); transition: transform var(--dur-micro) var(--ease-standard), color var(--dur-micro) var(--ease-standard);
}
.help-btn:hover { transform: translateY(-1px); color: var(--accent); }
dialog.help {
  border: 0; border-radius: var(--r-lg); padding: 0; max-width: 32rem; width: calc(100% - 2 * var(--edge));
  box-shadow: var(--e3); color: var(--ink); background: var(--surface-raised);
}
dialog.help::backdrop { background: color-mix(in srgb, var(--ink-900) 38%, transparent); backdrop-filter: blur(2px); }
dialog.help .inner { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); }
dialog.help h2 { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: var(--ms-2); }
dialog.help p { font-size: var(--ms-0); line-height: 1.55; color: var(--ink-700); }
dialog.help p strong { color: var(--ink); }
dialog.help .close { align-self: center; margin-top: var(--space-2); }

.toast {
  position: fixed; left: 50%; bottom: var(--space-6); transform: translateX(-50%) translateY(20px);
  background: var(--ink-900); color: var(--linen-50); padding: var(--space-3) var(--space-5);
  border-radius: var(--r-pill); font-size: var(--ms-dn1); box-shadow: var(--e3); opacity: 0;
  pointer-events: none; transition: opacity var(--dur-element) var(--ease-standard), transform var(--dur-element) var(--ease-expressive);
  z-index: 30; max-width: calc(100% - 2 * var(--edge)); text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (min-width: 48rem) {
  .control .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
}

/* =========================================================================
   THE POLISH - made to measure, taken to the bar
   ========================================================================= */

/* ---- wordmark: the dot is a thread knot ---- */
.wordmark .cut, .tag-label .cut { position: relative; }

/* ---- the bench (tailoring choreography) ---- */
.bench { width: 100%; max-width: 32rem; display: flex; flex-direction: column; align-items: center; gap: var(--space-4); opacity: 0; transition: opacity var(--dur-section) var(--ease-expressive); }
.bench-frame {
  position: relative; width: 100%; border-radius: var(--r-lg); overflow: hidden;
  background:
    conic-gradient(var(--linen-200) 25%, transparent 0 50%, var(--linen-200) 0 75%, transparent 0) 0 0 / 20px 20px var(--linen-50);
  box-shadow: var(--e2); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; min-height: 12rem;
}
.bench-frame canvas { max-width: 100%; max-height: 20rem; display: block; }
.bench-frame #benchCut { position: absolute; inset: 0; margin: auto; opacity: 0; transition: opacity var(--dur-cinematic) var(--ease-expressive); }
.bench-frame.cut #benchCut { opacity: 1; }
/* the cut/measure sweep: a bright amber line that travels across */
.sweep {
  position: absolute; top: 0; bottom: 0; left: 0; width: 2px; pointer-events: none; opacity: 0;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  box-shadow: 0 0 14px 2px color-mix(in srgb, var(--accent) 60%, transparent);
}
.sweep.run { animation: sweep 900ms var(--ease-expressive) forwards; }
@keyframes sweep { 0% { left: -2%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
/* tape-measure ticks framing the cloth */
.tick-row { position: absolute; pointer-events: none; opacity: 0.55;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); }
.tick-top { top: 0; left: 0; right: 0; height: 14px;
  background-image: repeating-linear-gradient(to right, var(--ink-500) 0 1px, transparent 1px 14px); }
.readout {
  font-size: var(--ms-dn1); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted);
  font-variant-numeric: tabular-nums; min-height: 1.2em;
}
.readout .num { color: var(--accent); font-weight: 600; }

/* ---- the result as a sewn garment tag ---- */
.tag { position: relative; padding-top: var(--space-2); }
/* running-stitch border, just inside the edge */
.tag::after {
  content: ''; position: absolute; inset: 10px; border-radius: calc(var(--r-lg) - 6px);
  border: 1.5px dashed color-mix(in srgb, var(--accent) 55%, transparent);
  pointer-events: none;
}
.tag-label {
  position: relative; z-index: 1; width: fit-content; margin: var(--space-3) auto 0;
  background: var(--accent); color: var(--accent-ink);
  font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: var(--ms-dn1);
  letter-spacing: 0.04em; padding: var(--space-1) var(--space-4); border-radius: var(--r-pill);
  box-shadow: var(--e1);
}
.tag-label .cut { color: var(--accent-ink); }
.tag .canvaswrap { margin: var(--space-3) 10px 0; border-radius: var(--r-md); }

/* care-label meta line */
.meta {
  display: inline-flex; align-items: center; gap: var(--space-2);
  text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600;
}
.meta::before {
  content: ''; width: 14px; height: 14px; flex: none;
  background: var(--accent);
  -webkit-mask: center/contain no-repeat url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2"><path d="M3 12h18M3 12l3-3M3 12l3 3M21 12l-3-3M21 12l-3 3"/></svg>');
          mask: center/contain no-repeat url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2"><path d="M3 12h18M3 12l3-3M3 12l3 3M21 12l-3-3M21 12l-3 3"/></svg>');
}

/* swatches as thread/ink chips with a soft sheen */
.swatch {
  position: relative; width: 26px; height: 26px;
  box-shadow: var(--e1), inset 0 2px 3px rgba(255,255,255,0.4), inset 0 -2px 3px rgba(0,0,0,0.12);
}

/* ---- magnetic primary button ---- */
.btn.primary { will-change: transform; }
.btn.primary .lift { display: inline-flex; align-items: center; gap: var(--space-2); }

/* ---- verdict reads warmer ---- */
.verdict { color: var(--ink); }

/* =========================================================================
   THE BRAIN - AI read, color names, heads-up flags, mockup, generate
   ========================================================================= */

/* describe-a-design path on the drop screen */
.idea-toggle {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: var(--ms-dn1); color: var(--ink-muted);
  display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-3) var(--space-4);
  min-height: 44px; letter-spacing: 0.02em; transition: color var(--dur-micro) var(--ease-standard);
}
.idea-toggle:hover { color: var(--accent); }
.idea-toggle svg { width: 17px; height: 17px; color: var(--accent); }
.idea-box { display: flex; gap: var(--space-2); width: 100%; max-width: 32rem; flex-wrap: wrap; justify-content: center; }
.idea-box input {
  flex: 1 1 16rem; min-width: 0; font: inherit; font-size: var(--ms-0);
  padding: var(--space-3) var(--space-4); border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: var(--surface-raised); color: var(--ink); min-height: 48px;
}
.idea-box input:focus-visible { outline: var(--focus); outline-offset: 2px; }
.idea-box .btn.primary { font-size: var(--ms-0); }

/* the AI read (a name + a style tag) */
.brain { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); animation: rise var(--dur-section) var(--ease-expressive) both; }
.brain-title {
  font-size: var(--ms-2); font-weight: 500; letter-spacing: -0.01em; line-height: 1.1; color: var(--ink);
}
.brain-style {
  font-size: var(--ms-dn2); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
  color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  padding: 2px var(--space-2); border-radius: var(--r-pill);
}
.brain + .verdict { font-size: var(--ms-0); color: var(--ink-muted); font-family: 'Inter', system-ui, sans-serif; max-width: 36ch; }

/* color chips that NAME her thread / ink */
.swatches { gap: var(--space-2) var(--space-3); }
.swatch-chip { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--ms-dn1); color: var(--ink-700); }
.swatch-chip .swatch { width: 18px; height: 18px; }
.swatch-name { font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }

/* heads-up flags */
.flags { display: flex; flex-direction: column; gap: var(--space-2); width: 100%; }
.flag {
  display: flex; gap: var(--space-3); align-items: flex-start; text-align: left;
  border-radius: var(--r-md); padding: var(--space-3) var(--space-4);
  font-size: var(--ms-dn1); line-height: 1.5;
}
.flag svg { width: 17px; height: 17px; flex: none; margin-top: 2px; }
.flag-strong { background: color-mix(in srgb, var(--accent) 9%, var(--surface-raised));
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent); color: var(--ink-700); }
.flag-strong svg { color: var(--accent); }
.flag-soft { background: color-mix(in srgb, var(--ink-900) 4%, transparent);
  border: 1px solid var(--line); color: var(--ink-muted); }
.flag-soft svg { color: var(--ink-muted); }

/* see-it-on-a-shirt */
.see-shirt { margin-top: var(--space-1); }
.mockup { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); width: 100%;
  animation: rise var(--dur-section) var(--ease-expressive) both; }
.mockup canvas { width: 100%; max-width: 22rem; height: auto;
  filter: drop-shadow(0 10px 20px color-mix(in srgb, var(--ink-900) 16%, transparent)); }
.shade-toggle { display: flex; gap: var(--space-1); background: var(--linen-200); padding: var(--space-1); border-radius: var(--r-pill); }
.shade-toggle button {
  appearance: none; border: 0; background: transparent; font: inherit; font-size: var(--ms-dn1); font-weight: 600;
  color: var(--ink-muted); padding: var(--space-2) var(--space-4); border-radius: var(--r-pill); cursor: pointer; min-height: 40px;
  transition: background var(--dur-micro) var(--ease-standard), color var(--dur-micro) var(--ease-standard);
}
.shade-toggle button[aria-selected=true] { background: var(--surface-raised); color: var(--ink); box-shadow: var(--e1); }
.mockup-note { font-size: var(--ms-dn1); color: var(--ink-muted); max-width: 30ch; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .stage.active { animation: none; }
  .bench-frame #benchCut { transition: none; }
}
