/* AgentMade Print on Demand — site styles.
   Process-print palette on cool paper. One family (Archivo) using its width axis. */
:root {
  --paper: #f2f4f5;
  --sheet: #ffffff;
  --ink: #14213d;
  --muted: #56657a;
  --rule: #c9d1d6;
  --cyan: #009fe3;
  --magenta: #e5007d;
  --yellow: #ffed00;
  --ok: #0a7b53;
  --warn: #9a5b00;
  --bad: #b3002f;
  --focus: #009fe3;
  --measure: 66ch;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: 112px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e1730; --sheet: #15203d; --ink: #e8ecef; --muted: #a3afc0; --rule: #2b3a5c;
    --ok: #4cc79a; --warn: #f0b552; --bad: #ff7a9a; color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif; font-size: 17px; line-height: 1.55;
  font-variation-settings: "wdth" 100;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--magenta); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--s5); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--s4); top: var(--s4); background: var(--sheet); padding: var(--s2) var(--s3); z-index: 10; }

/* Header and footer */
.site-head { border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; align-items: center; gap: var(--s5); min-height: 64px; flex-wrap: wrap; }
.brand { font-weight: 800; font-variation-settings: "wdth" 118; letter-spacing: -0.01em; text-decoration: none; font-size: 19px; display: flex; align-items: center; gap: var(--s2); }
.brand svg { width: 22px; height: 22px; }
.site-nav { display: flex; gap: var(--s5); margin-left: auto; flex-wrap: wrap; font-size: 15px; }
.site-nav a { text-decoration: none; color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-foot { border-top: 1px solid var(--rule); margin-top: var(--s9); padding: var(--s7) 0 var(--s8); font-size: 14px; color: var(--muted); }
.site-foot .wrap { display: grid; gap: var(--s6); grid-template-columns: 2fr 1fr 1fr; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.site-foot h2 { font-size: 14px; color: var(--ink); margin: 0 0 var(--s3); font-weight: 700; }
@media (max-width: 760px) { .site-foot .wrap { grid-template-columns: 1fr; } }

/* Type scale */
h1, h2, h3 { line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
.display { font-size: clamp(40px, 6.2vw, 76px); font-weight: 800; font-variation-settings: "wdth" 116; letter-spacing: -0.035em; line-height: 0.98; }
h2.section { font-size: clamp(28px, 3.4vw, 40px); font-weight: 750; font-variation-settings: "wdth" 112; }
h3 { font-size: 21px; font-weight: 700; }
.lede { font-size: 21px; line-height: 1.45; color: var(--muted); max-width: 38ch; }
p { max-width: var(--measure); }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Hero: the print-area drawing is the one bold element */
.hero { padding: var(--s8) 0 var(--s7); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--s7); align-items: center; }
.hero-copy > * + * { margin-top: var(--s5); }
.actions { display: flex; gap: var(--s3); flex-wrap: wrap; }
.drawing { color: var(--ink); }
.drawing .garment { fill: var(--sheet); stroke: var(--ink); stroke-width: 2; }
.drawing .area { fill: none; stroke: var(--cyan); stroke-width: 1.5; stroke-dasharray: 6 5; }
.drawing .dim { stroke: var(--ink); stroke-width: 1; }
.drawing .dim-text { font: 600 13px "Archivo", sans-serif; font-variation-settings: "wdth" 90; fill: var(--ink); }
.drawing .reg { stroke: var(--magenta); stroke-width: 1.5; fill: none; }
.drawing .art { fill: var(--ink); }
.drawing .art-accent { fill: var(--magenta); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .drawing { max-width: 420px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 48px; padding: 0 var(--s5); border-radius: 999px; font: 700 16px "Archivo", sans-serif; font-variation-settings: "wdth" 108; text-decoration: none; border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.btn-primary { background: var(--magenta); border-color: var(--magenta); color: #fff; }
.btn-primary:hover { background: #c4006b; border-color: #c4006b; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* Sections */
.band { padding: var(--s8) 0; border-top: 1px solid var(--rule); }
.band > .wrap > * + * { margin-top: var(--s5); }
.steps { list-style: none; counter-reset: step; padding: 0; margin: var(--s6) 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s5); }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: var(--s4); }
.steps li::before { content: counter(step); display: block; font-weight: 800; font-variation-settings: "wdth" 120; font-size: 28px; color: var(--cyan); margin-bottom: var(--s2); }
.steps h3 { font-size: 18px; margin-bottom: var(--s2); }
.steps p { font-size: 15px; color: var(--muted); margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s7); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
pre.code { background: var(--ink); color: #e8ecef; padding: var(--s5); border-radius: 6px; overflow-x: auto; font-size: 14px; line-height: 1.5; margin: 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) pre.code { background: #060c1c; } }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.9em; }

/* Product list: a spec table, not cards */
.specs { width: 100%; border-collapse: collapse; margin-top: var(--s5); font-size: 15px; }
.specs th, .specs td { text-align: left; padding: var(--s3) var(--s3) var(--s3) 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.specs th { font-weight: 700; color: var(--muted); font-size: 14px; }
.specs td:first-child { font-weight: 700; }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.swatch { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--rule); }
@media (max-width: 700px) { .specs .hide-sm { display: none; } }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6); margin-top: var(--s6); }
.facts h3 { margin-bottom: var(--s2); }
.facts p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr; } }

/* Legal / long text */
.doc { padding: var(--s7) 0; }
.doc h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; font-variation-settings: "wdth" 112; margin-bottom: var(--s3); }
.doc h2 { font-size: 22px; font-weight: 700; margin: var(--s6) 0 var(--s3); }
.doc li { max-width: var(--measure); margin-bottom: var(--s2); }
.doc dl { display: grid; grid-template-columns: max-content 1fr; gap: var(--s2) var(--s5); }
.doc dt { color: var(--muted); }
.doc dd { margin: 0; }

/* App */
.app { padding: var(--s7) 0; }
.app h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; font-variation-settings: "wdth" 112; }
.app-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: var(--s7); margin-top: var(--s6); align-items: start; }
@media (max-width: 960px) { .app-grid { grid-template-columns: 1fr; } }
fieldset { border: 0; border-top: 2px solid var(--ink); margin: 0 0 var(--s6); padding: var(--s4) 0 0; min-width: 0; }
legend { font-weight: 800; font-variation-settings: "wdth" 112; font-size: 21px; padding: 0 var(--s2) 0 0; }
.field { display: grid; gap: var(--s1); margin-top: var(--s4); }
.field label, .label { font-weight: 600; font-size: 15px; }
.hint { font-size: 14px; color: var(--muted); margin: 0; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s4); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--sheet); border: 1.5px solid var(--rule); border-radius: 6px; min-height: 44px; padding: var(--s2) var(--s3); width: 100%;
}
textarea { min-height: 120px; font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
input:focus, select:focus, textarea:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 30%, transparent); }
.choices { display: flex; flex-wrap: wrap; gap: var(--s2); }
.choices label { display: inline-flex; align-items: center; gap: var(--s2); border: 1.5px solid var(--rule); border-radius: 999px; padding: var(--s2) var(--s4); cursor: pointer; font-size: 15px; background: var(--sheet); }
.choices input { accent-color: var(--magenta); }
.choices label:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.check { display: flex; gap: var(--s3); align-items: flex-start; margin-top: var(--s4); font-size: 15px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--magenta); }
.drop { border: 2px dashed var(--rule); border-radius: 8px; padding: var(--s6); text-align: center; background: var(--sheet); }
.drop.over { border-color: var(--cyan); }

.panel { position: sticky; top: var(--s5); background: var(--sheet); border: 1px solid var(--rule); border-radius: 8px; padding: var(--s5); }
.panel h2 { font-size: 21px; font-weight: 800; font-variation-settings: "wdth" 112; margin-bottom: var(--s4); }
.preview { aspect-ratio: 10 / 11; background: var(--paper); border-radius: 6px; display: grid; place-items: center; overflow: hidden; }
.preview img { width: 100%; height: 100%; object-fit: contain; }
.checks { list-style: none; padding: 0; margin: var(--s4) 0 0; display: grid; gap: var(--s2); font-size: 14px; }
.checks li { display: grid; grid-template-columns: 52px 1fr; gap: var(--s2); }
.tag { font-weight: 700; font-size: 12px; border-radius: 4px; padding: 1px 6px; text-align: center; height: fit-content; }
.tag-PASS { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.tag-WARN { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.tag-FAIL { background: color-mix(in srgb, var(--bad) 15%, transparent); color: var(--bad); }
.totals { width: 100%; border-collapse: collapse; margin-top: var(--s4); font-size: 15px; }
.totals td { padding: var(--s2) 0; border-bottom: 1px solid var(--rule); }
.totals td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.totals tr.total td { font-weight: 800; font-size: 19px; border-bottom: 0; }
.notice { border-left: 3px solid var(--cyan); padding: var(--s2) var(--s4); font-size: 14px; color: var(--muted); margin-top: var(--s4); }
.error { border-left: 3px solid var(--bad); padding: var(--s2) var(--s4); color: var(--bad); font-size: 15px; margin-top: var(--s4); }
.status-line { font-size: 28px; font-weight: 800; font-variation-settings: "wdth" 112; }
.timeline { list-style: none; padding: 0; margin: var(--s5) 0 0; border-left: 2px solid var(--rule); }
.timeline li { padding: 0 0 var(--s4) var(--s5); position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); }
@media (prefers-reduced-motion: no-preference) { .btn { transition: background-color .15s ease; } }
