/* ==========================================================================
   Digital Cleanup — risograph zine styles
   Spot inks only. Overlaps use multiply, like real overprinted riso layers.
   ========================================================================== */

@font-face { font-family: "Archivo Black"; src: url(fonts/archivo-black-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url(fonts/archivo-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url(fonts/archivo-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Archivo"; src: url(fonts/archivo-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url(fonts/space-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url(fonts/space-mono-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --paper: #f3ecdd;
  --paper-2: #ebe2cd;
  --ink: #232042;          /* midnight riso */
  --ink-soft: #4a4668;
  --teal: #00a6a6;
  --teal-deep: #007c80;
  --pink: #ff4fa3;         /* fluorescent pink */
  --yellow: #ffd93b;
  --purple: #7a5bd6;
  --orange: #ff7a3d;
  --blue: #2f6fdf;

  --display: "Archivo Black", "Arial Black", Impact, sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Space Mono", ui-monospace, Consolas, monospace;

  --line: 2.5px solid var(--ink);
  --r: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.5 var(--body);
  min-height: 100vh;
  overflow-x: hidden;
}

/* paper grain over everything */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .22;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .14  0 0 0 0 .12  0 0 0 0 .26  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--teal-deep); }

:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); padding: 8px 12px; border: var(--line); z-index: 200; }
.skip:focus { left: 8px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- riso helpers ---------- */

.halftone-pink { background-image: radial-gradient(var(--pink) 32%, transparent 34%); background-size: 9px 9px; }
.halftone-teal { background-image: radial-gradient(var(--teal) 32%, transparent 34%); background-size: 9px 9px; }
.halftone-yellow { background-image: radial-gradient(var(--yellow) 40%, transparent 42%); background-size: 8px 8px; }

/* misregistered two-ink type: the element is pink, its ghost is teal multiplied on top */
.riso {
  position: relative;
  display: inline-block;
  color: var(--pink);
  font-family: var(--display);
  line-height: .9;
  letter-spacing: -.01em;
  isolation: isolate;
}
.riso::after {
  content: attr(data-text);
  position: absolute; left: 0; top: 0;
  color: var(--teal);
  z-index: -1;
  transform: translate(.055em, .05em);
  white-space: pre;
  pointer-events: none;
}
.riso.ink { color: var(--ink); }
.riso.ink::after { color: var(--pink); transform: translate(.05em, .04em); }
.riso.yellow { color: var(--yellow); }
.riso.yellow::after { color: var(--pink); }

/* ---------- masthead ---------- */

.masthead {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  padding: 10px var(--gutter);
  background: var(--paper);
  border-bottom: var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-word { font: 400 15px/0.95 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.brand-dot { position: relative; width: 30px; height: 30px; }
.brand-dot::before, .brand-dot::after { content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%; mix-blend-mode: multiply; }
.brand-dot::before { background: var(--teal); left: 0; top: 0; }
.brand-dot::after { background: var(--pink); right: 0; bottom: 0; }

.steps { display: flex; gap: 6px; margin-left: auto; overflow-x: auto; scrollbar-width: none; padding: 4px 2px; }
.steps::-webkit-scrollbar { display: none; }
.steps a {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 12px 6px 6px;
  border: 2px solid var(--ink); border-radius: 999px;
  font: 700 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .03em;
  text-decoration: none; white-space: nowrap;
  background: var(--paper);
  transition: transform .15s;
}
.steps a:hover { transform: translateY(-2px); color: var(--ink); }
.steps a .n { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 12px; }
.steps a[aria-current="step"] { background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); }
.steps a.done .n { background: var(--teal); }
@media (max-width: 760px) {
  .steps a .lbl { display: none; }
  .steps a { padding: 4px; }
  .steps a[aria-current="step"] .lbl { display: inline; }
  .steps a[aria-current="step"] { padding-right: 12px; }
}

/* ---------- layout ---------- */

main { padding: 28px var(--gutter) 150px; max-width: 1180px; margin: 0 auto; }
main:focus, main:focus-visible { outline: none; }

.page-head { position: relative; margin: 10px 0 30px; }
.kicker {
  display: inline-block;
  font: 700 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em;
  background: var(--ink); color: var(--paper);
  padding: 7px 10px 6px; transform: rotate(-1.5deg);
  margin-bottom: 14px;
}
.page-head h1 { margin: 0; font-size: clamp(44px, 9vw, 104px); font-weight: 400; line-height: 1; }
.page-head .lede { max-width: 640px; font-size: 19px; margin: 18px 0 0; }

.btn {
  --bg: var(--yellow);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 20px;
  font: 400 17px/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em;
  color: var(--ink); background: var(--bg);
  border: var(--line); border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer; text-decoration: none;
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); color: var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn.pink { --bg: var(--pink); }
.btn.teal { --bg: var(--teal); color: #fff; }
.btn.teal:hover { color: #fff; }
.btn.ghost { --bg: var(--paper); }
.btn.small { min-height: 38px; padding: 6px 14px; font-size: 14px; box-shadow: 3px 3px 0 var(--ink); }
.btn.big { min-height: 62px; padding: 14px 30px; font-size: 22px; }

.linkish { background: none; border: 0; padding: 0; font: 600 15px var(--body); color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; }
.linkish:hover { color: var(--teal-deep); }

.note { font: 400 14px/1.45 var(--mono); color: var(--ink-soft); }

/* ---------- cover ---------- */

.cover { display: grid; grid-template-columns: 1.25fr .75fr; gap: 30px; align-items: center; min-height: calc(100vh - 260px); }
.cover h1 { margin: 0; line-height: 1; font-size: clamp(58px, 10.5vw, 128px); font-weight: 400; text-transform: uppercase; }
.cover h1 .riso { display: block; }
.cover h1 .riso + .riso { margin-top: .04em; }
.cover .lede { font-size: clamp(18px, 2.2vw, 22px); max-width: 560px; margin: 26px 0 30px; }
.cover .cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.sticker {
  position: absolute;
  display: grid; place-items: center; text-align: center;
  width: 128px; height: 128px; border-radius: 50%;
  background: var(--yellow); border: var(--line);
  font: 700 13px/1.15 var(--mono); text-transform: uppercase;
  transform: rotate(12deg);
  box-shadow: 4px 4px 0 var(--ink);
}

.cover-art { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: center; }
.cover-art .blob { position: absolute; border-radius: 50%; mix-blend-mode: multiply; }
.cover-art .b1 { inset: 4% 22% 30% 4%; background: var(--teal); }
.cover-art .b2 { inset: 28% 2% 6% 30%; background: var(--pink); }
.cover-art .b3 { inset: 46% 46% 2% 8%; border-radius: 0; background: var(--yellow); transform: rotate(18deg); }
.cover-art .dots { position: absolute; inset: 12% 8% 40% 50%; border-radius: 50%; mix-blend-mode: multiply; }
.cover-art .scissors { position: absolute; inset: 22%; width: 56%; height: 56%; }
.cover-art .sticker { right: -6px; top: -10px; }
.cover-art .squiggle { position: absolute; left: -20px; bottom: 6%; width: 46%; }

.howto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px; margin: 46px 0 10px; padding: 0; list-style: none; }
.howto li { position: relative; padding: 20px 18px 18px; border: var(--line); border-radius: var(--r); background: var(--paper); }
.howto li:nth-child(1) { box-shadow: 6px 6px 0 var(--teal); }
.howto li:nth-child(2) { box-shadow: 6px 6px 0 var(--pink); }
.howto li:nth-child(3) { box-shadow: 6px 6px 0 var(--yellow); }
.howto li:nth-child(4) { box-shadow: 6px 6px 0 var(--purple); }
.howto b { display: block; font: 400 22px/1 var(--display); text-transform: uppercase; margin: 6px 0 6px; }
.howto .num { font: 700 13px var(--mono); letter-spacing: .1em; }
.howto p { margin: 0; font-size: 15px; }

.privacy {
  display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center;
  margin-top: 36px; padding: 16px 20px;
  border: 2px dashed var(--ink); border-radius: var(--r);
  font: 400 14px/1.4 var(--mono);
}
.privacy strong { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 16px; }

/* ---------- inventory ---------- */

.cat-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 26px; }
.cat-jump a { font: 700 13px/1 var(--mono); text-transform: uppercase; padding: 8px 12px; border: 2px solid var(--ink); border-radius: 999px; text-decoration: none; background: var(--paper); }
.cat-jump a:hover { background: var(--yellow); color: var(--ink); }
.cat-jump a .ct { opacity: .65; margin-left: 4px; }

.cat { margin: 0 0 56px; scroll-margin-top: 90px; }
.cat-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 18px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px dashed var(--ink); }
.cat-head h2 { margin: 0; font-size: clamp(36px, 6vw, 60px); font-weight: 400; text-transform: uppercase; }
.cat-head .sub { font: 400 14px/1.3 var(--mono); padding-bottom: 6px; }
.cat-head .actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }

.tile {
  --c: var(--teal);
  position: relative;
  display: flex; flex-direction: column; gap: 12px;
  padding: 14px;
  border: var(--line); border-radius: var(--r);
  background: var(--paper);
  box-shadow: 5px 5px 0 var(--ink);
  transition: background .15s, transform .15s, box-shadow .15s, opacity .15s;
}
.tile-top { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.mono {
  position: relative; flex-shrink: 0;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  font: 400 17px/1 var(--display); color: var(--ink);
  isolation: isolate;
}
.mono::before, .mono::after { content: ""; position: absolute; border-radius: 50%; mix-blend-mode: multiply; z-index: -1; }
.mono::before { inset: 0 6px 6px 0; background: var(--c); }
.mono::after { inset: 8px 0 0 8px; background-image: radial-gradient(var(--c) 34%, transparent 36%); background-size: 6px 6px; }
.tile-name { font: 600 17px/1.15 var(--body); }
.tile-name small { display: block; font: 400 12px/1.3 var(--mono); opacity: .7; margin-top: 3px; }

.answer { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.answer button {
  min-height: 40px; padding: 6px 6px;
  font: 700 12px/1.15 var(--mono); text-transform: uppercase; letter-spacing: .01em;
  color: var(--ink); background: transparent;
  border: 2px solid var(--ink); border-radius: 10px;
  cursor: pointer;
  transition: background .12s, transform .12s;
}
.answer button:hover { background: var(--paper-2); }
.answer button:active { transform: scale(.96); }
.answer button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.answer button.keep[aria-pressed="true"] { background: var(--teal); color: #fff; border-color: var(--ink); }
.answer button.meh[aria-pressed="true"] { background: var(--pink); color: var(--ink); }
.answer button.maybe[aria-pressed="true"] { background: var(--yellow); color: var(--ink); }
.answer button.maybe { border-style: dashed; }

.tile.is-maybe { box-shadow: 5px 5px 0 var(--yellow); }
.tile.is-maybe::after {
  content: "check later";
  position: absolute; top: -12px; right: 10px;
  font: 400 13px/1 var(--display); text-transform: uppercase;
  background: var(--yellow); border: 2px solid var(--ink);
  padding: 5px 8px 4px; transform: rotate(4deg);
}

.tile.is-no { opacity: .55; box-shadow: 2px 2px 0 var(--ink); }
.tile.is-no .tile-name { text-decoration: line-through; text-decoration-thickness: 2px; }
.tile.is-no:hover { opacity: .85; }
.tile.is-keep { box-shadow: 5px 5px 0 var(--teal); }
.tile.is-chop { box-shadow: 5px 5px 0 var(--pink); }
.tile.is-chop::after {
  content: "cancel";
  position: absolute; top: -12px; right: 10px;
  font: 400 13px/1 var(--display); text-transform: uppercase;
  background: var(--pink); border: 2px solid var(--ink);
  padding: 5px 8px 4px; transform: rotate(6deg);
}
.tile.is-cut { opacity: .7; }
.tile.is-cut::after {
  content: "cut!";
  position: absolute; top: -12px; right: 10px;
  font: 400 13px/1 var(--display); text-transform: uppercase;
  background: var(--yellow); border: 2px solid var(--ink);
  padding: 5px 8px 4px; transform: rotate(-5deg);
}

.cost { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 10px; border-top: 2px dashed var(--ink); }
.money-in { display: flex; align-items: center; border: 2px solid var(--ink); border-radius: 10px; background: #fffaf0; overflow: hidden; }
.money-in span { padding: 0 2px 0 10px; font: 700 16px var(--mono); }
.money-in input { width: 84px; border: 0; background: transparent; padding: 8px 8px 8px 2px; font: 700 16px var(--mono); color: var(--ink); }
.money-in input:focus { outline: none; }
.money-in:focus-within { outline: 3px solid var(--pink); outline-offset: 2px; }
.per { display: inline-flex; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; }
.per button { border: 0; background: transparent; font: 700 13px var(--mono); padding: 9px 10px; cursor: pointer; color: var(--ink); }
.per button + button { border-left: 2px solid var(--ink); }
.per button[aria-pressed="true"] { background: var(--yellow); }
select.via {
  font: 400 13px var(--mono); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 10px;
  background: #fffaf0; padding: 8px 6px; max-width: 100%;
}
.cost label.vl { font: 400 12px var(--mono); display: flex; align-items: center; gap: 8px; flex-basis: 100%; white-space: nowrap; }
.cost label.vl select { flex: 1; min-width: 0; }

.more-row { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.add-custom { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.add-custom input[type="text"] {
  flex: 1 1 220px; min-height: 48px;
  font: 600 17px var(--body); color: var(--ink);
  border: var(--line); border-radius: 12px; background: #fffaf0; padding: 8px 14px;
}

/* ---------- hunt checklist ---------- */

.hunt { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; max-width: 860px; }
.hunt > li {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  padding: 16px; border: var(--line); border-radius: var(--r);
  background: var(--paper);
  transition: background .15s;
}
.hunt > li.on { background: var(--paper-2); }
.hunt > li.on .h-title { text-decoration: line-through; text-decoration-color: var(--pink); text-decoration-thickness: 4px; }
.check {
  width: 40px; height: 40px; flex-shrink: 0;
  border: var(--line); border-radius: 10px; background: #fffaf0;
  display: grid; place-items: center; cursor: pointer; padding: 0;
  transition: transform .12s;
}
.check:active { transform: scale(.92); }
.check svg { width: 26px; height: 26px; opacity: 0; transform: scale(.4) rotate(-20deg); transition: .18s; }
.check[aria-pressed="true"] { background: var(--teal); }
.check[aria-pressed="true"] svg { opacity: 1; transform: none; }
.h-title { font: 600 18px/1.25 var(--body); margin: 6px 0 4px; }
.h-desc { margin: 0; font-size: 15px; color: var(--ink-soft); }
.h-link { display: inline-block; margin-top: 8px; font: 700 13px var(--mono); }
.h-tag { display: inline-block; font: 700 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: 4px 6px; margin-left: 8px; vertical-align: 3px; background: var(--yellow); border: 1.5px solid var(--ink); }

.found-box {
  max-width: 860px; margin-top: 30px; padding: 22px;
  border: var(--line); border-radius: var(--r);
  background-color: var(--paper);
  position: relative; overflow: hidden;
}
.found-box::before { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; mix-blend-mode: multiply; }
.found-box h3 { margin: 0 0 6px; font: 400 26px/1 var(--display); text-transform: uppercase; }
.found-box > * { position: relative; }

/* ---------- chopping block ---------- */

.alerts { display: grid; gap: 14px; margin: 0 0 36px; }
.alert {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center;
  padding: 14px 18px; border: var(--line); border-radius: var(--r);
  background: var(--yellow);
  box-shadow: 5px 5px 0 var(--ink);
}
.alert:nth-child(even) { transform: rotate(-.4deg); }
.alert:nth-child(odd) { transform: rotate(.3deg); }
.alert .tag { font: 400 14px/1 var(--display); text-transform: uppercase; background: var(--ink); color: var(--yellow); padding: 8px 9px 7px; border-radius: 8px; transform: rotate(-4deg); }
.alert p { margin: 0; font-size: 16px; }
.alert p b { font-weight: 800; }

.block-list { display: grid; gap: 22px; }
.chop {
  position: relative;
  display: grid; grid-template-columns: 1fr auto; gap: 14px 22px;
  padding: 20px; border: var(--line); border-radius: var(--r);
  background: var(--paper);
  box-shadow: 7px 7px 0 var(--pink);
}
.chop.is-cut { box-shadow: 7px 7px 0 var(--teal); background: var(--paper-2); }
.chop.is-cut h3 { text-decoration: line-through; text-decoration-color: var(--pink); text-decoration-thickness: 5px; }
.chop h3 { margin: 0; font: 400 clamp(24px, 4vw, 34px)/1 var(--display); text-transform: uppercase; }
.chop .yr { text-align: right; font: 700 26px/1 var(--mono); }
.chop .yr small { display: block; font-size: 12px; font-weight: 400; margin-top: 4px; }
.chop .body { grid-column: 1 / -1; display: grid; gap: 10px; }
.chop .warn { margin: 0; padding: 10px 12px; border-left: 6px solid var(--orange); background: rgba(255,122,61,.13); font-size: 15px; }
.chop .via-note { margin: 0; padding: 10px 12px; border-left: 6px solid var(--blue); background: rgba(47,111,223,.1); font-size: 15px; }
.chop .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.chop .outcome { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; padding-top: 14px; border-top: 2px dashed var(--ink); }
.chop .down-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.stamp {
  position: absolute; right: 150px; top: 50%;
  font: 400 54px/1 var(--display); text-transform: uppercase;
  color: var(--teal); border: 6px solid var(--teal); border-radius: 12px;
  padding: 6px 14px 2px;
  transform: translateY(-50%) rotate(-10deg);
  mix-blend-mode: multiply; opacity: .85;
  pointer-events: none;
  animation: stamp .35s cubic-bezier(.2,1.6,.4,1) both;
}
@keyframes stamp { from { transform: translateY(-50%) rotate(-10deg) scale(2.2); opacity: 0; } }

.keepers { margin-top: 40px; }
.keepers h2 { font: 400 28px/1 var(--display); text-transform: uppercase; margin: 0 0 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; border: 2px solid var(--ink); border-radius: 999px; font: 600 14px var(--body); background: var(--paper); }
.chip button { font: 700 11px var(--mono); text-transform: uppercase; border: 1.5px solid var(--ink); background: var(--pink); border-radius: 999px; padding: 4px 7px; cursor: pointer; color: var(--ink); }

.empty {
  max-width: 640px; padding: 30px; text-align: center;
  border: 3px dashed var(--ink); border-radius: var(--r);
  margin: 10px auto;
}
.empty p { font-size: 18px; }

/* ---------- haggle ---------- */

.haggles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.hag { --c: var(--purple); padding: 18px; border: var(--line); border-radius: var(--r); background: var(--paper); box-shadow: 6px 6px 0 var(--c); display: grid; gap: 12px; align-content: start; }
.hag h3 { margin: 0; font: 400 24px/1 var(--display); text-transform: uppercase; }
.hag p { margin: 0; font-size: 15px; }
.hag details { border: 2px solid var(--ink); border-radius: 10px; background: #fffaf0; }
.hag summary { cursor: pointer; padding: 10px 12px; font: 700 13px var(--mono); text-transform: uppercase; }
.hag blockquote { margin: 0; padding: 0 14px 14px; font: 400 14px/1.5 var(--mono); }
.hag .guard { font-size: 14px; padding: 8px 10px; border-left: 5px solid var(--orange); background: rgba(255,122,61,.12); }
.hag .nums { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hag .nums label { font: 700 12px var(--mono); text-transform: uppercase; display: grid; gap: 4px; }
.hag .delta { font: 700 15px var(--mono); }
.hag .delta.neg { color: #c2185b; }
.hag.done { background: var(--paper-2); }
.hag input.name-in { font: 400 22px var(--display); text-transform: uppercase; border: 0; border-bottom: 2px dashed var(--ink); background: transparent; color: var(--ink); width: 100%; padding: 2px 0; }

/* ---------- receipt ---------- */

.receipt-wrap { display: grid; grid-template-columns: minmax(0, 460px) 1fr; gap: 40px; align-items: start; }
.receipt {
  position: relative;
  background: #fffdf6;
  padding: 30px 26px 40px;
  font: 400 15px/1.5 var(--mono);
  box-shadow: 8px 8px 0 var(--teal);
  border: 2px solid var(--ink);
  border-bottom: 0;
  transform: rotate(-.6deg);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 14px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 20px 14px repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - 14px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 20px 14px repeat-x;
}
.receipt h2 { text-align: center; margin: 0; font: 400 34px/.95 var(--display); text-transform: uppercase; }
.receipt .c { text-align: center; }
.receipt hr { border: 0; border-top: 2px dashed var(--ink); margin: 14px 0; }
.receipt .ln { display: flex; gap: 8px; }
.receipt .ln span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.receipt .ln.total { font-weight: 700; font-size: 19px; }
.receipt .big { text-align: center; margin: 10px 0 4px; }
.receipt .big .riso { font-size: clamp(54px, 12vw, 76px); }
.receipt .muted { opacity: .7; }
.receipt .barcode { height: 46px; margin: 18px 0 6px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 7px, transparent 7px 9px, var(--ink) 9px 10px, transparent 10px 14px); }

.side { display: grid; gap: 22px; }
.side .card { padding: 20px; border: var(--line); border-radius: var(--r); background: var(--paper); }
.side .card h3 { margin: 0 0 8px; font: 400 22px/1 var(--display); text-transform: uppercase; }
.side .card p { margin: 0 0 14px; font-size: 15px; }
.side .card input[type="text"] { width: 100%; min-height: 46px; font: 600 17px var(--body); border: var(--line); border-radius: 12px; background: #fffaf0; padding: 8px 12px; color: var(--ink); margin-bottom: 12px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- money jar footer ---------- */

.jar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap;
  padding: 10px var(--gutter);
  background: var(--ink); color: var(--paper);
  border-top: 3px solid var(--ink);
}
.jar:empty { display: none; }
.jar .stat { display: grid; line-height: 1.1; }
.jar .stat b { font: 700 20px var(--mono); }
.jar .stat small { font: 400 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.jar .stat.freed b { color: var(--yellow); }
.jar .stat.block b { color: var(--pink); }
.jar .next { margin-left: auto; }
.jar .btn { box-shadow: 3px 3px 0 var(--teal); border-color: var(--paper); min-height: 44px; }
.jar .bump { animation: bump .45s; }
@keyframes bump { 40% { transform: scale(1.25) rotate(-3deg); } }
@media (max-width: 560px) {
  .jar { gap: 12px; flex-wrap: nowrap; padding-top: 8px; padding-bottom: 8px; }
  .jar .stat b { font-size: 15px; }
  .jar .stat small { font-size: 10px; letter-spacing: .04em; }
  .jar .stat.found, .jar .stat.spend { display: none; }
  .jar .btn { min-height: 40px; padding: 6px 12px; font-size: 13px; }
  .jar .btn .lbl { display: none; }
  .alert { grid-template-columns: 1fr; justify-items: start; gap: 8px; }
  .brand-word { display: none; }
}

.colophon { padding: 26px var(--gutter) 120px; text-align: center; font: 400 12px/1.6 var(--mono); color: var(--ink-soft); border-top: 2px dashed var(--ink); max-width: 1180px; margin: 0 auto; }
.colophon .np { display: block; margin-top: 4px; }

/* confetti shapes for the finish */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; overflow: hidden; }
.confetti i { position: absolute; top: -30px; width: 16px; height: 16px; mix-blend-mode: multiply; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .cover { grid-template-columns: 1fr; min-height: 0; }
  .cover-art { max-width: 240px; margin-top: 10px; }
  .cover-art .sticker { width: 96px; height: 96px; font-size: 11px; }
  .receipt-wrap { grid-template-columns: 1fr; }
  .chop { grid-template-columns: 1fr; }
  .chop .yr { text-align: left; }
  .stamp { font-size: 34px; right: 14px; top: 14px; transform: rotate(-10deg); }
  @keyframes stamp { from { transform: rotate(-10deg) scale(2.2); opacity: 0; } }
}

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

@media print {
  body::after, .masthead, .jar, .colophon, .side, .skip { display: none !important; }
  main { padding: 0; }
  .receipt-wrap { grid-template-columns: 1fr; }
  .receipt { transform: none; box-shadow: none; margin: 0 auto; max-width: 460px; }
  .page-head { display: none; }
}

/* ---------- v2 additions ---------- */

.legend { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px 22px; max-width: 1000px; }
.legend li { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; font-size: 15px; line-height: 1.35; }
.legend b { font: 700 13px/1.3 var(--mono); text-transform: uppercase; }
.legend li > :not(.sw):not(b) { grid-column: 2; }
.legend .sw { grid-row: span 2; width: 22px; height: 22px; border: 2px solid var(--ink); border-radius: 6px; margin-top: 1px; }
.legend .sw.no { background: var(--ink); }
.legend .sw.keep { background: var(--teal); }
.legend .sw.meh { background: var(--pink); }
.legend .sw.maybe { background: var(--yellow); border-style: dashed; }

.h-body { min-width: 0; }
.searches { display: grid; gap: 10px; margin-top: 12px; }
.search { border: 2px solid var(--ink); border-radius: 10px; background: #fffaf0; padding: 10px 12px; display: grid; gap: 8px; }
.s-title { font: 700 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.search code { font: 400 13px/1.45 var(--mono); background: var(--paper-2); padding: 8px 10px; border-radius: 6px; overflow-wrap: anywhere; user-select: all; }
.s-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hunt .note { margin: 10px 0 0; }

details.extra { margin-top: 12px; border: 2px solid var(--ink); border-radius: 10px; background: #fffaf0; }
details.extra summary { cursor: pointer; padding: 10px 12px; font: 700 13px var(--mono); text-transform: uppercase; }
details.extra > :not(summary) { margin: 0 14px 12px; font-size: 15px; }
.places { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; }
.places dt { font: 700 12px/1.6 var(--mono); text-transform: uppercase; }
.places dd { margin: 0; }
@media (max-width: 560px) { .places { grid-template-columns: 1fr; } .places dd { margin-bottom: 6px; } }
.howcheck { padding-left: 20px; display: grid; gap: 6px; }

.price-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.pr-lbl { font: 700 13px var(--mono); text-transform: uppercase; }
.chop .outcome { flex-direction: column; align-items: flex-start; }
.chop.is-cut .outcome { flex-direction: row; align-items: center; }
.chop .yr:empty { display: none; }
.via-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 700 13px var(--mono); text-transform: uppercase; }

h2.sec { font-size: clamp(30px, 5vw, 46px); font-weight: 400; margin: 10px 0 8px; line-height: 1.05; }
.maybes { margin-bottom: 44px; }
.maybe-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 18px; margin-top: 16px; }
.maybe-card { padding: 18px; border: 2.5px dashed var(--ink); border-radius: var(--r); background: var(--paper); box-shadow: 6px 6px 0 var(--yellow); display: grid; gap: 12px; align-content: start; }
.maybe-card h3 { margin: 0; font: 400 24px/1 var(--display); text-transform: uppercase; }
.maybe-card .note { margin: 0; }
.maybe-card .row:empty { display: none; }
.block-list + .keepers, section + .keepers { margin-top: 40px; }
.jar .stat.maybe b { color: var(--teal); filter: brightness(1.4); }
@media (max-width: 560px) { .jar .stat.maybe { display: none; } }
.jar .btn .lbl { margin-left: -8px; }
