/* shop.slopped.site. Hand-written; shop/scripts/build.mjs doesn't touch it. Brand tokens and type as on slopped.site
   (slopped-brand). The header and its drawer come from /shared/header.css (world/header.mjs). */
@font-face { font-family: "Archivo Black"; src: url(/fonts/archivo-black-latin.woff2) format("woff2"); font-weight: 400 1000; font-display: swap; }
@font-face { font-family: "Archivo Black Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Helvetica-Bold"), local("Roboto Bold"), local("Roboto-Bold"), local("Noto Sans Bold"), local("NotoSans-Bold"); size-adjust: 112%; }
:root {
  color-scheme: light;
  --paper: #f4f1e8;
  --ink: #171815;
  --acid: #e3ff59;
  --orange: #ffa53d;
  --pink: #ff8cc6;
  --muted: #6b6b62;
  --line: #d4d2c9;
  --focus: #728600;
  --head: "Archivo Black", "Arial Black", "Archivo Black Fallback", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { min-width: 320px; margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; line-height: 1.5; }
a { color: inherit; }
:where(a, button, summary, [tabindex]):focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 1000; letter-spacing: -1.5px; line-height: 1.02; font-synthesis: none; }
img { max-width: 100%; }
.wrap { max-width: 1440px; margin: auto; padding: 0 5%; }
main:focus { outline: none; }
html:not(.can-install) [data-install] { display: none !important; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.intro { padding: 48px 0 40px; }
.intro h1 { max-width: 12ch; font-size: clamp(48px, 8vw, 124px); letter-spacing: -3px; }
.lede { max-width: 720px; margin: 22px 0 0; font-size: 21px; line-height: 1.4; letter-spacing: -.3px; }
section + section { padding: 32px 0; border-top: 2px solid var(--ink); }
section h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 12px; }
footer { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; padding: 40px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .brand img { width: 140px; height: auto; display: block; }

/* ---------------------------------------------------------------- the shop (shop skill) */
.muted, .note { color: var(--muted); }
.note { max-width: 720px; font-size: 15px; }
[hidden] { display: none !important; }
.sub { max-width: 640px; margin: 14px 0 0; font-size: 17px; }
.btn { min-height: 44px; padding: 10px 18px; border: 2px solid var(--ink); border-radius: 999px; background: var(--acid); color: var(--ink); font: 700 15px/1.2 Arial, Helvetica, sans-serif; cursor: pointer; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:disabled { background: transparent; color: var(--muted); border-color: var(--line); cursor: default; }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }

/* the counter: a paper hero with the Assistant behind a counter top */
.intro#counter { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); gap: 32px; align-items: end; }
.counter { position: relative; min-height: 300px; }
.counter-top { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; border: 2px solid var(--ink); border-radius: 6px 6px 0 0; background: repeating-linear-gradient(90deg, #d9cfb4 0 22px, #d2c7aa 22px 24px); }
.counter-top::before { content: ""; position: absolute; left: -8px; right: -8px; top: -10px; height: 12px; border: 2px solid var(--ink); border-radius: 4px; background: var(--ink); }
.assistant { position: absolute; bottom: 64px; width: 84px; margin: 0; left: 10%; }
.assistant[data-spot="1"] { left: 42%; }
.assistant[data-spot="2"] { left: 72%; }
.assistant svg { display: block; width: 100%; height: auto; }
.assistant figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.assistant .as-arm-card { display: none; }
.assistant[data-pose="1"] .as-arm-card { display: inline; }
.assistant[data-pose="1"] .as-arm-down { display: none; }
.shortly { position: absolute; left: 0; right: 0; bottom: 16px; margin: 0; text-align: center; font: 700 14px/1.2 Arial, sans-serif; z-index: 2; }
.ferrule { position: absolute; right: 4%; bottom: 66px; width: 96px; height: auto; image-rendering: pixelated; }

/* balances: three price stands */
.stands { display: flex; flex-wrap: wrap; gap: 14px; margin: 8px 0 16px; }
.stand { display: grid; min-width: 150px; padding: 12px 18px 14px; border: 2px solid var(--ink); border-radius: 6px; background: #fffef6; box-shadow: 4px 4px 0 var(--ink); }
.stand-n { font: 1000 44px/1 var(--head); letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.stand-c { font-weight: 700; }
.stand-how { color: var(--muted); font-size: 13px; }

/* the shelves */
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; margin: 18px 0 0; padding: 0; list-style: none; }
.item { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 2px solid var(--ink); border-radius: 8px; background: #fffef6; scroll-margin-top: 80px; }
.item.owned { background: var(--paper); }
.item h3 { margin-top: 6px; font-size: 24px; letter-spacing: -.6px; }
.item-pic { position: relative; display: grid; place-items: center; aspect-ratio: 3 / 2; overflow: hidden; border: 2px solid var(--ink); border-radius: 4px; background: var(--paper); }
.item-pic > svg { display: block; width: 100%; height: 100%; }
.pic-img { width: 60%; height: auto; image-rendering: pixelated; }
.pic-stamps { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 12px; }
.pic-stamps span { padding: 3px 9px; border: 3px solid #b0122a; border-radius: 4px; color: #b0122a; font: 900 15px/1.2 "Courier New", monospace; letter-spacing: 1px; transform: rotate(var(--r)); }
.sticker { position: absolute; right: 8px; top: 8px; padding: 3px 9px; border: 2px solid var(--ink); border-radius: 999px; background: var(--orange); font: 900 11px/1.2 Arial, sans-serif; letter-spacing: .5px; text-transform: uppercase; transform: rotate(4deg); }
.item.owned .sticker { background: var(--acid); }
.item.owned .sticker::after { content: ", yours"; }
.item-where { margin: 0; color: var(--muted); font-size: 14px; }
.item-what { margin: 0; flex: 1; }
.tag { margin: 4px 0 0; font-size: 15px; }
.tag b { font: 1000 26px/1 var(--head); }
.item-act { display: grid; gap: 6px; }
.item-line, .item-how { margin: 0; font-size: 14px; }
.item-how a { font-weight: 700; }

/* Returns */
.returns-desk { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 24px; align-items: start; }
.ledger { margin: 0; }
.ledger img { display: block; width: 140px; height: auto; image-rendering: pixelated; border: 2px solid var(--ink); border-radius: 6px; background: #fffef6; }
.ledger figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; }
.returns-body p { max-width: 680px; margin: 0 0 14px; }
.bell-line, .forget-line { display: inline-block; margin-left: 10px; font-weight: 700; }
.returnable { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; padding: 0; list-style: none; }

/* /sardines/ and /economy/ */
.intro-plain { padding-bottom: 24px; }
.rules { max-width: 760px; padding-left: 20px; }
.rules li { margin: 6px 0; }
.rules b { font-variant-numeric: tabular-nums; }
section h3 { margin: 22px 0 8px; font-size: 22px; letter-spacing: -.5px; }
table { border-collapse: collapse; width: 100%; max-width: 980px; font-size: 15px; }
th, td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { border-bottom: 2px solid var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: .4px; }
td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.currencies { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 12px 0 18px; }
.currency { padding: 16px; border: 2px solid var(--ink); border-radius: 8px; background: #fffef6; }
.currency h3 { margin: 0; }
.currency p { margin: 8px 0 0; }
.currency .role { color: var(--muted); font-weight: 700; margin-top: 2px; }
.currency .lore { color: var(--muted); font-style: italic; }
.chart { max-width: 760px; margin: 12px 0 18px; }
.chart svg { display: block; width: 100%; height: auto; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .ax { fill: var(--muted); font: 12px Arial, sans-serif; }
.chart .lab { fill: var(--ink); font: 700 13px Arial, sans-serif; }
.chart .casual, .chart .capped { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.chart .capped { stroke-dasharray: 7 5; }
.chart .stock { stroke: #c2410c; stroke-width: 2; }
.chart figcaption { color: var(--muted); font-size: 14px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; max-width: 980px; margin: 0 0 16px; }
.tile { display: grid; gap: 4px; padding: 14px; border: 2px solid var(--ink); border-radius: 6px; }
.tile b { font: 1000 34px/1 var(--head); font-variant-numeric: tabular-nums; }
.tile span { color: var(--muted); font-size: 14px; }

@media (max-width: 760px) {
  .intro#counter { grid-template-columns: minmax(0, 1fr); }
  .counter { min-height: 250px; }
  .returns-desk { grid-template-columns: minmax(0, 1fr); }
  .ledger { display: flex; gap: 12px; align-items: center; }
  .ledger img { width: 72px; }
  table.prices thead { display: none; }
  table.prices tr { display: grid; grid-template-columns: 1fr auto; padding: 8px 0; border-bottom: 1px solid var(--line); }
  table.prices th, table.prices td { border: 0; padding: 2px 0; }
  table.prices td[colspan] { grid-column: 1 / -1; }
  .stand { min-width: 0; flex: 1 1 90px; padding: 10px 12px; }
  .stand-n { font-size: 34px; }
}
@media (forced-colors: active) { .btn, .stand, .item, .item-pic { border-color: CanvasText; } .counter-top { background: Canvas; } }
