/* Listrank for Etsy: shared stylesheet. A galley proof: cream paper, ink type, plum proof marks in the margin,
   yellow pencil for problem counts, sage ticks for what is fixed.
   Tokens match products/listrank/extension/src/ui/tokens.css. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("/fonts/BricolageGrotesque-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/InterTight-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --paper: #FBF0D3;
  --white: #FFFAEA;
  --ink: #22303C;
  --plum: #724C7A;
  --plum-text: #724C7A;
  --plum-hover: #5B3A62;
  --plum-tint: #EFDFDB;
  --tag: #F2C14E;
  --on-tag: #22303C;
  --sage: #3F6B4C;
  --sage-tint: #E5EFE8;
  --muted: #55606A;
  --line: #D9C9A2;
  --wash: #F4E6C0;
  --danger: #9A3322;
  --rule: #B9A878;
  --shadow: 6px 6px 0 rgba(34, 48, 60, .16);
  /* names the shared component rules below use */
  --pine: var(--plum-text);
  --pine-dark: var(--plum-hover);
  --mint: var(--plum-tint);
  --head: "Bricolage Grotesque", "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #151A20;
    --white: #1D262F;
    --ink: #E7ECF0;
    --plum-text: #D2B0DA;
    --plum-hover: #E6CDEC;
    --plum-tint: #2A2030;
    --sage: #86C298;
    --sage-tint: #1B2A21;
    --muted: #A5AFB9;
    --line: #34404B;
    --wash: #1A222A;
    --danger: #EE9585;
    --rule: #4A5560;
    --shadow: 6px 6px 0 rgba(0, 0, 0, .45);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body { margin: 0; font-family: var(--text); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); }
img { max-width: 100%; display: block; height: auto; }
a { color: var(--plum-text); text-underline-offset: 3px; }
a:hover { color: var(--plum-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--plum);
  outline-offset: 2px;
}
:root[data-theme="dark"] a:focus-visible { outline-color: var(--plum-text); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) a:focus-visible, :root:not([data-theme="light"]) button:focus-visible { outline-color: var(--plum-text); } }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header: the slug line of a proof, closed by a double rule */
.site-header { background: var(--paper); border-bottom: 3px double var(--ink); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 14px 20px 12px; }
.brand { font-family: var(--head); font-weight: 800; font-stretch: 88%; font-size: 26px; letter-spacing: -0.02em; text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; gap: 10px; }
.brand::before { content: ""; width: 30px; height: 30px; background: url("/img/icon-128.png") center / contain no-repeat; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 4px 0; }
.nav a:hover { color: var(--plum-text); text-decoration: underline; text-decoration-color: var(--plum); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* buttons */
.btn { display: inline-block; background: var(--plum); color: #fff; text-decoration: none; font-weight: 700; padding: 12px 20px; border-radius: 2px; border: 2px solid var(--plum); font: inherit; font-weight: 700; cursor: pointer; line-height: 1.2; }
.btn:hover { background: var(--plum-hover); border-color: var(--plum-hover); color: #fff; }
:root[data-theme="dark"] .btn:hover { color: #151A20; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn:hover { color: #151A20; } }
.btn.quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.quiet:hover { background: var(--plum-tint); border-color: var(--plum); color: var(--ink); }
.btn.small { padding: 6px 12px; font-size: 14px; margin: 0; flex: none; }
.text-link { color: var(--plum-text); font-weight: 600; text-decoration: underline; }

h1, h2, h3 { font-family: var(--head); font-weight: 800; font-stretch: 90%; letter-spacing: -0.02em; line-height: 1.08; }
h1 { font-size: 52px; margin: 0 0 18px; }
h2 { font-size: 38px; margin: 0 0 12px; }
h3 { font-size: 24px; margin: 0 0 10px; letter-spacing: -0.01em; }
.lede { font-size: 21px; line-height: 1.5; color: var(--muted); max-width: 50ch; margin: 0 0 26px; }
.sub { color: var(--muted); max-width: 65ch; margin: 0 0 32px; font-size: 19px; }
.cta-row { display: flex; gap: 14px 18px; flex-wrap: wrap; align-items: center; }
.cta-note { font-size: 15px; color: var(--muted); margin: 14px 0 0; }

/* the yellow pencil: a stroke of highlighter over a problem count or a label. Sage with a tick once fixed. */
.tag { display: inline-block; background: linear-gradient(176deg, transparent 6%, var(--tag) 6% 94%, transparent 94%); color: var(--on-tag); font-family: var(--text); font-weight: 700; font-size: 14px; line-height: 1.2; padding: 5px 12px; border-radius: 2px; }
.tag.fixed { background: var(--sage-tint); color: var(--sage); }
.tag.fixed::before { content: ""; display: inline-block; width: 4px; height: 9px; margin: 0 8px 1px 1px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(40deg); }

/* the galley line: printed text left, the fix written in the margin, plum. The strike draws once (200 ms), then the fix writes in. */
.proof { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); margin: 0 0 30px; max-width: 880px; background: var(--white); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); box-shadow: var(--shadow); }
.proof-line { margin: 0; padding: 18px 22px 18px 16px; font-size: 19px; line-height: 2.1; overflow-wrap: anywhere; }
.proof-del { position: relative; display: inline-block; color: var(--muted); }
.proof-del::after { content: ""; position: absolute; left: -2px; right: -2px; top: 54%; height: 3px; border-radius: 2px; background: var(--plum); transform-origin: left center; animation: proof-strike .2s ease-out .5s both; }
.proof-caret { display: inline-block; position: relative; width: 0; }
.proof-caret svg { position: absolute; left: -9px; top: .3em; width: 18px; height: 18px; color: var(--plum-text); }
.proof-margin { margin: 0; padding: 18px 20px 18px 22px; border-left: 3px solid var(--plum); color: var(--plum-text); font: 700 21px/1.45 var(--head); font-stretch: 88%; animation: proof-write .4s ease-out .7s both; }
.proof-margin small { display: block; margin-top: 6px; font: 500 14px/1.4 var(--text); color: var(--muted); }
@keyframes proof-strike { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes proof-write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { .proof-del::after, .proof-margin { animation: none; } }
@media (max-width: 640px) { .proof { grid-template-columns: minmax(0, 1fr); } .proof-margin { border-left: 0; border-top: 3px solid var(--plum); } .proof-line { font-size: 17px; } }

/* hero: the shop first. Headline across the top, the shop bench beneath it */
.hero { padding: 48px 0 0; text-align: left; }
.hero-head > * { max-width: 860px; }
.hero-head > .tag { max-width: none; }
.hero h1 { font-size: clamp(36px, 5.6vw, 68px); font-stretch: 88%; margin-top: 16px; }
.hero h1 mark { background: none; color: inherit; padding: 0; text-decoration: underline dotted var(--plum); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.bench { margin-top: 44px; background: var(--wash); border-top: 3px double var(--ink); padding: 36px 0 56px; position: relative; }
.bench figure { margin: 0; }
.bench .frame { background: var(--white); border: 1px solid var(--ink); border-radius: 2px; box-shadow: var(--shadow); overflow: hidden; }
.bench figcaption { padding: 12px 4px 0; color: var(--muted); font-size: 15px; }

.shot-card { background: var(--white); border: 1px solid var(--ink); border-radius: 2px; box-shadow: var(--shadow); overflow: hidden; margin: 0; }
.shot-card img { width: 100%; height: auto; display: block; }

/* sections */
section { padding: 64px 0; border-top: 1px solid var(--line); }
section.ground { background: var(--wash); }
.kicker { display: table; margin: 0 0 14px; }

/* the four real steps of Fix my shop, as a strip of tags */
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 0; margin: 28px 0 0; border-top: 3px double var(--ink); }
.steps li { counter-increment: s; padding: 18px 18px 6px 0; position: relative; }
.steps li::before { content: counter(s); display: block; font-family: var(--head); font-weight: 800; font-size: 34px; line-height: 1; color: var(--plum-text); margin-bottom: 6px; }
.steps b { display: block; font-family: var(--head); font-size: 22px; font-weight: 800; line-height: 1.15; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 15px; display: block; max-width: 28ch; }

.pair { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.pair.flip { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.pair.flip > :first-child { order: 2; }
.pair p { color: var(--muted); max-width: 52ch; margin: 0 0 14px; }
.change { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; max-width: 52ch; }
.change li { display: grid; grid-template-columns: 74px 1fr; gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); }
.change b { font-family: var(--head); font-weight: 800; }
.change span { color: var(--muted); }
.two-shots { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 360px); gap: 28px; align-items: start; justify-content: start; }
.two-shots figcaption { color: var(--muted); font-size: 14px; padding: 8px 2px 0; }
.two-shots figure { margin: 0; }

.tool-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tool-card { background: var(--white); border: 1px solid var(--line); border-radius: 2px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.tool-card h3 { font-size: 20px; margin: 0; }
.tool-card p { margin: 0 0 8px; color: var(--muted); flex: 1; font-size: 16px; }
.tool-card .btn { align-self: flex-start; }

/* pricing table */
.price-table { width: 100%; max-width: 860px; border-collapse: collapse; table-layout: fixed; }
.price-table th, .price-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table th:first-child, .price-table td:first-child { padding-left: 0; width: 34%; }
.price-table th { font-size: 15px; color: var(--muted); font-weight: 600; }
.price-table thead th:last-child { color: var(--plum-text); }
.price-table .price { font-family: var(--head); font-size: 32px; font-weight: 800; font-variant-numeric: tabular-nums; margin: 0 0 4px; }
.price-table .price small { font-family: var(--text); font-size: 14px; font-weight: 600; color: var(--muted); }
.price-table td.yes { color: var(--plum-text); font-weight: 700; }
.price-table tfoot td { border-bottom: 0; padding-top: 20px; }
.price-table tfoot .btn { margin: 4px 8px 0 0; }
.price-table tfoot .cta-note { margin: 0 0 12px; }

.faq dt { font-family: var(--head); font-weight: 800; margin-top: 22px; font-size: 20px; }
.faq dd { margin: 6px 0 0; color: var(--muted); max-width: 68ch; }

/* footer */
.site-footer { background: var(--wash); padding: 40px 0 0; border-top: 3px double var(--ink); position: relative; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.4fr 1fr 1fr; gap: 28px; padding-bottom: 28px; }
.footer-col h2 { font-family: var(--head); font-size: 17px; font-weight: 800; margin: 0 0 10px; color: var(--ink); }
.footer-col a { display: block; color: var(--ink); text-decoration: none; font-size: 15px; padding: 3px 0; }
.footer-col a:hover { color: var(--plum-text); text-decoration: underline; }
.site-footer .trademark { border-top: 1px solid var(--line); padding: 18px 0 40px; color: var(--muted); font-size: 14px; margin: 0; }

/* article / guide layout */
/* article / guide layout */
main.doc { padding-top: 40px; padding-bottom: 64px; max-width: 780px; }
main.doc .wrap { max-width: none; padding: 0; }
.doc h1 { font-size: 40px; }
.doc .lede { font-size: 19px; }
.doc .updated { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.doc h2 { font-size: 24px; margin: 34px 0 10px; }
.doc h3 { font-size: 19px; margin: 24px 0 8px; }
.doc p { margin: 0 0 16px; max-width: 72ch; }
.doc ul, .doc ol { padding-left: 20px; margin: 0 0 16px; max-width: 72ch; }
.doc li { margin: 6px 0; }
.doc .cta, .article-body .cta {
  background: var(--mint);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 24px;
  margin: 32px 0;
}
.doc .cta h2, .article-body .cta h2 { margin-top: 0; }
.doc .cta .note, .article-body .cta .note { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.doc .cta .btn, .article-body .cta .btn { margin: 4px 12px 4px 0; }

/* tool pages */
main.tool-page { padding: 40px 0 64px; }
main.tool-page .lede { max-width: 62ch; margin-bottom: 28px; }
.tool {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 24px;
  margin: 0 0 40px;
}
.tool label { display: block; font-size: 15px; font-weight: 600; margin: 16px 0 6px; }
.tool label:first-child { margin-top: 0; }
.tool input[type=text], .tool input[type=number], .tool select, .tool textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 2px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
}
.tool textarea { min-height: 110px; resize: vertical; font-family: inherit; }
.tool input:focus, .tool select:focus, .tool textarea:focus { outline: 2px solid var(--pine); border-color: var(--pine); }
.tool .hint { font-size: 14px; color: var(--muted); margin: 4px 0 0; }
.tool .check-row { display: flex; align-items: flex-start; gap: 8px; margin: 16px 0 0; }
.tool .check-row input { width: auto; margin-top: 3px; }
.tool .check-row label { margin: 0; font-weight: 600; }
.tool .sub-field { margin: 8px 0 0 26px; }
.tool .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 400px) { .tool .grid2 { grid-template-columns: 1fr; } }

.article-body { padding-top: 8px; }
.article-body h2 { font-size: 24px; margin: 34px 0 10px; }
.article-body h2:first-child { margin-top: 0; }

.check-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 32px;
  margin: 16px 0 18px;
  max-width: 72ch;
}
.check-groups .group-wide { grid-column: 1 / -1; }
.check-groups h3 { font-size: 16px; margin: 0 0 8px; font-weight: 800; }
.check-groups ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.check-groups li { margin: 4px 0; }
@media (max-width: 640px) {
  .check-groups { grid-template-columns: 1fr; }
}

.results { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.results .row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.results .row b { font-weight: 700; font-variant-numeric: tabular-nums; }
.results .row.total { font-size: 19px; padding-top: 14px; border-bottom: none; }
/* display:flex above would otherwise show rows the script marks hidden (fees that do not apply). */
.results .row[hidden] { display: none; }
.next-step { margin-top: 24px; }
.results .fee-note { font-size: 13px; color: var(--muted); margin: -4px 0 8px; }

.checks { margin-top: 22px; }
.check { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.check .mark { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; }
.check .mark.pass { background: var(--pine); }
.check .mark.warn { background: #B08A1F; }
.check .mark.fail { background: var(--danger); }
.check .text b { display: block; }
.check .text span { color: var(--muted); font-size: 14px; }
.count { font-size: 13px; color: var(--muted); text-align: right; margin-top: -12px; font-variant-numeric: tabular-nums; }

.cleaned { margin-top: 20px; background: var(--mint); border-radius: 2px; padding: 16px 18px; font-size: 15px; }
.cleaned .list { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.cleaned .list span { background: var(--white); border: 1px solid var(--line); border-radius: 2px; padding: 3px 8px; font-size: 13px; }

.sources { margin-top: 30px; padding: 16px 18px; background: var(--mint); border-radius: 2px; font-size: 14px; color: var(--muted); }
.sources h2 { font-size: 15px; font-weight: 600; margin: 0 0 10px; color: var(--ink); }
.sources ol { margin: 0; padding-left: 18px; }
.sources li { margin: 5px 0; }

/* shop-audit tool specifics */
.dropzone {
  border: 2px dashed var(--line);
  border-radius: 2px;
  padding: 32px 16px;
  text-align: center;
  transition: border-color .15s, background .15s;
}
.dropzone.over { border-color: var(--pine); background: var(--mint); }
.dropzone p { margin: 0 0 10px; }
.file-btn { display: inline-block; background: var(--pine); color: var(--white); border-radius: 2px; padding: 9px 18px; cursor: pointer; font-weight: 600; font-size: 14px; }
.file-btn:hover { background: var(--pine-dark); }
.file-btn input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.file-name { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.err { color: var(--danger); font-weight: 600; }

.summary { display: flex; flex-wrap: wrap; gap: 28px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 24px 0; }
.summary .stat { display: flex; flex-direction: column; min-width: 96px; }
.summary .stat b { font-size: 28px; font-variant-numeric: tabular-nums; }
.summary .stat span { color: var(--muted); font-size: 14px; }
.summary .estimate { width: 100%; margin: 4px 0 0; color: var(--muted); font-size: 15px; }

.listings { margin-top: 4px; }
.listing { border: 1px solid var(--line); border-radius: 2px; padding: 18px 20px; margin-bottom: 16px; background: var(--white); }
.listing h3 { font-size: 17px; margin: 0 0 10px; }
.listing .issues { margin: 0 0 12px; padding-left: 18px; color: var(--muted); font-size: 15px; }
.listing .issues li { margin: 4px 0; }
.fixes { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.fix { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; }
.fix .fix-label { font-weight: 700; min-width: 70px; }
.fix code { background: var(--mint); border: 1px solid var(--line); border-radius: 2px; padding: 3px 8px; font-size: 13px; word-break: break-word; flex: 1 1 auto; }

.listing h3 .pick { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.listing h3 .pick input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--plum-text); }
.listing h3 .pick span { min-width: 0; overflow-wrap: anywhere; }
.fix-group { display: flex; flex-direction: column; gap: 6px; }
.tool .fix-now { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.batch-panel { background: var(--mint); border: 1px solid var(--plum-text); border-radius: 2px; padding: 20px 22px; margin: 6px 0 16px; }
.batch-panel h3 { font-size: 17px; margin: 0 0 6px; }
.batch-panel .hint { margin: 0 0 14px; }
.batch-panel .batch-count { font-weight: 700; margin: 0 0 12px; }
.batch-panel .btn:disabled { opacity: .5; cursor: not-allowed; }
.batch-panel .note { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.more-cta { background: var(--mint); border: 1px solid var(--line); border-radius: 2px; padding: 22px; text-align: center; margin-top: 6px; }
.more-cta p { margin: 0 0 14px; }
.more-cta .note { margin-top: 14px; }

/* 404 */
.notfound { padding: 80px 0; text-align: left; }


/* responsive */
@media (max-width: 900px) {
  .pair, .pair.flip { grid-template-columns: 1fr; gap: 28px; }
  .pair.flip > :first-child { order: 0; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  h1 { font-size: 40px; }
  h2 { font-size: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  h1 { font-size: 32px; }
  .lede { font-size: 19px; }
  h2 { font-size: 27px; }
  h3 { font-size: 22px; }
  .steps { grid-template-columns: 1fr; }
  .two-shots, .tool-links { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .change li { grid-template-columns: 1fr; gap: 2px; }
  .price-table th, .price-table td { padding: 10px 6px; font-size: 15px; overflow-wrap: anywhere; }
  .price-table th:first-child, .price-table td:first-child { width: 30%; padding-right: 6px; }
  .price-table .price { font-size: 24px; }
  .price-table .price small { display: block; }
  .price-table tfoot .btn { display: block; margin: 8px 0 0; padding: 10px 8px; text-align: center; }
}
@media (max-width: 400px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  h1 { font-size: 29px; }
}
@media (max-width: 760px) {
  .bench .frame { overflow-x: auto; }
  .bench .frame img { width: 860px; max-width: none; }
}

/* changelog: one article per release, version and date on one line */

.checkout-close { padding: 6px 14px; background: var(--white); color: var(--ink); border-color: var(--ink); }
