/* jamin labs brand (make-money/brand/brand-book.html): grey paper, ink, yellow marker, receipt object. */
@font-face { font-family: "Archivo"; src: url("/fonts/archivo-display.woff2") format("woff2"); font-weight: 800 900; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/plex-sans.woff2") format("woff2"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/plex-mono-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #E8EAE5; --fg: #1B1E23; --muted: #5A6068; --rule: #C6C9C2; --card: #F5F6F2;
  --paper: #F5F6F2; --paper-ink: #1B1E23; --paper-fade: #737980; --marker: #FFE52B;
  --stamp-red: #CF2A3A; --stamp-green: #1E7B50; --bad: #B3202F;
  --display: "Archivo", "Arial Narrow", sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #131518; --fg: #E4E6E1; --muted: #A0A6AD; --rule: #2D3137; --card: #1B1E23; --bad: #FF7A86; color-scheme: dark; }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 17px; line-height: 1.6; }
a { color: inherit; text-underline-offset: .18em; }
p { margin: 0; max-width: 62ch; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h2 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 6.4vw, 40px); line-height: 1.05; letter-spacing: -0.01em; }
h3 { font-size: 17px; font-weight: 600; }
b { font-weight: 600; }
.wrap { max-width: 1080px; margin-inline: auto; padding-inline: 20px; }
.label { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.small { font-size: 14px; color: var(--muted); }
.wm { font-family: var(--display); font-weight: 900; line-height: .9; letter-spacing: -0.005em; white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Marker highlight as a background so it survives line wraps */
.mark { color: var(--paper-ink); padding-inline: .08em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: linear-gradient(100deg, transparent .2em, var(--marker) .2em, var(--marker) calc(100% - .15em), transparent calc(100% - .15em)) 0 62% / 100% 78% no-repeat; }

/* Top bar */
.top { display: flex; align-items: center; justify-content: space-between; padding-block: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 7px; display: block; }
.brand .wm { font-size: 24px; }
.top-link { font-family: var(--mono); font-size: 13px; font-weight: 500; text-decoration: none; padding: 8px 2px; }
.top-link:hover { text-decoration: underline; }

/* Hero */
.hero { padding-block: 28px 44px; display: grid; gap: 20px; }
.hero h1 { font-family: var(--display); font-weight: 900; font-size: clamp(40px, 11vw, 92px); line-height: .96; letter-spacing: -0.01em; max-width: 15ch; }
.hero-text { display: grid; gap: 14px; }
.lede { font-size: clamp(18px, 4.6vw, 21px); line-height: 1.5; }
.cta { display: grid; gap: 10px; justify-items: start; margin-top: 6px; }
.btn { display: inline-block; font: 600 17px/1 var(--body); color: var(--paper-ink); background: var(--marker); border: 2px solid var(--paper-ink);
  padding: 16px 22px; border-radius: 10px; text-decoration: none; cursor: pointer; box-shadow: 3px 3px 0 var(--paper-ink); transition: transform .08s, box-shadow .08s; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--paper-ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--paper-ink); }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #2F6FEB; outline-offset: 2px; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
@media (prefers-color-scheme: dark) { .btn { border-color: var(--marker); box-shadow: 3px 3px 0 #000; } .btn:hover { box-shadow: 4px 4px 0 #000; } }

/* Sections: label column + body, like the brand book */
.row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding-block: 40px; border-top: 1px solid var(--rule); }
.body { display: grid; gap: 18px; min-width: 0; }
.stack { display: grid; gap: 16px; align-content: start; }
@media (min-width: 860px) {
  .row { grid-template-columns: 190px minmax(0, 1fr); gap: 32px; padding-block: 56px; }
  .row > .label { padding-top: 10px; }
  .body.two { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
}

/* Receipt object */
.receipt { position: relative; margin: 14px 4px 10px; background: var(--paper); color: var(--paper-ink); font-family: var(--mono); font-weight: 500; font-size: 13.5px;
  line-height: 1.75; padding: 24px 20px 30px; box-shadow: 0 10px 30px rgba(0, 0, 0, .16); transform: rotate(-1deg); max-width: 340px; width: 100%;
  font-variant-numeric: tabular-nums; justify-self: center; }
.receipt::before, .receipt::after { content: ""; position: absolute; left: 0; right: 0; height: 9px;
  background: linear-gradient(135deg, var(--paper) 50%, transparent 50%), linear-gradient(-135deg, var(--paper) 50%, transparent 50%); background-size: 14px 14px; }
.receipt::after { bottom: -9px; }
.receipt::before { top: -9px; transform: rotate(180deg); }
.receipt .c { text-align: center; }
.receipt .t { font-weight: 600; letter-spacing: .2em; }
.receipt .dim { color: var(--paper-fade); }
.receipt .hr { border-top: 1.5px dashed #B9BDB6; margin-block: 10px; }
.receipt .r { display: flex; justify-content: space-between; gap: 12px; }
.receipt .r span:last-child { text-align: right; white-space: nowrap; }
.receipt .real { font-weight: 600; position: relative; z-index: 0; padding-inline: 4px; margin-inline: -4px; }
.receipt .real::before { content: ""; position: absolute; z-index: -1; inset: 1px -4px -1px -4px; background: var(--marker); transform: rotate(-.8deg);
  clip-path: polygon(1% 8%, 100% 0, 98.5% 55%, 100% 100%, 0 94%, 1.5% 45%); }

/* Story */
.story { position: relative; }
.facts { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.facts li { font-family: var(--mono); font-size: 14px; background: var(--card); border: 1px solid var(--rule); border-radius: 8px; padding: 8px 12px; }
.facts b { font-family: var(--display); font-weight: 900; font-size: 22px; margin-right: 4px; }
.stamp { display: inline-block; font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 26px; color: var(--stamp-red);
  padding: .18em .5em .12em; border: .14em solid currentColor; border-radius: .14em; transform: rotate(-7deg); line-height: 1; opacity: .9; white-space: nowrap; justify-self: start; }
@media (min-width: 860px) { .story .stamp { position: absolute; right: 0; top: 4px; font-size: 34px; } .story h2 { padding-right: 170px; } }

/* Lists */
.checks, .crosses { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li, .crosses li { position: relative; padding-left: 32px; max-width: 62ch; }
.checks li::before, .crosses li::before { position: absolute; left: 0; top: .1em; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px;
  font: 700 14px/1 var(--body); }
.checks li::before { content: "✓"; background: var(--marker); color: var(--paper-ink); }
.crosses li::before { content: "×"; background: transparent; color: var(--muted); border: 1.5px solid var(--rule); font-size: 17px; }
.body h3 { margin-top: 8px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; border-top: 1px solid var(--rule); max-width: 760px; }
.steps li { counter-increment: step; position: relative; padding: 14px 0 14px 44px; border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 17px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.faq { margin: 0; border-top: 1px solid var(--rule); max-width: 760px; }
.faq > div { padding-block: 14px; border-bottom: 1px solid var(--rule); display: grid; gap: 4px; }
.faq dt { font-weight: 600; }
.faq dd { margin: 0; max-width: 62ch; }

/* Form */
.form { display: grid; gap: 20px; max-width: 640px; margin-top: 6px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, legend { font-weight: 600; font-size: 16px; line-height: 1.4; padding: 0; }
.opt { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-left: 6px; }
input[type=text], input[type=email], textarea { width: 100%; font: 16px/1.5 var(--body); color: var(--fg); background: var(--card); border: 1.5px solid var(--rule);
  border-radius: 10px; padding: 12px 14px; }
textarea { resize: vertical; min-height: 3.2em; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
input:focus, textarea:focus { border-color: var(--fg); outline: none; }
[aria-invalid=true] { border-color: var(--bad) !important; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices legend { margin-bottom: 8px; width: 100%; }
.choices label { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; background: var(--card); border: 1.5px solid var(--rule); border-radius: 999px;
  padding: 9px 14px 9px 12px; cursor: pointer; }
.choices label:has(input:checked) { border-color: var(--fg); background: var(--marker); color: var(--paper-ink); }
.choices label:has(input:focus-visible) { outline: 3px solid #2F6FEB; outline-offset: 2px; }
.choices input { accent-color: var(--paper-ink); margin: 0; width: 16px; height: 16px; }
.field-error { color: var(--bad); font-size: 14px; }
.form-error { color: var(--bad); font-weight: 600; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ts-box:empty { display: none; }
.form .btn { justify-self: start; }
.privacy { max-width: 56ch; }
.done { display: grid; gap: 12px; background: var(--paper); color: var(--paper-ink); border: 2px solid var(--paper-ink); border-radius: 12px; padding: 22px; max-width: 640px; }
.done .label { color: var(--stamp-green); }
.done:focus { outline: none; }

/* Footer */
.foot { border-top: 1px solid var(--rule); padding-block: 28px 48px; display: grid; gap: 6px; }
.foot .wm { font-size: 20px; }
