/* The Gig Ledger — "buyer's ledger": newsprint paper, ink, one vermilion accent, mono figures */
:root {
  --paper: #f7f4ee;
  --paper-2: #efeae0;
  --ink: #1b1b1b;
  --ink-2: #3d3a35;
  --mute: #6b665c;
  --rule: #d9d2c3;
  --accent: #c8431f;
  --accent-ink: #9c3214;
  --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --text: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', Consolas, Menlo, monospace;
  --wrap: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.65 var(--text); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 10; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--mute); }

/* header */
.site-head { border-bottom: 2px solid var(--ink); background: var(--paper); }
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font: 800 20px/1 var(--display); letter-spacing: -0.01em; text-decoration: none; }
.brand-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; background: var(--ink); color: var(--paper); font: 600 13px/1 var(--mono); }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a { padding: 8px 12px; font: 600 15px/1 var(--text); text-decoration: none; }
.site-nav a[aria-current] { box-shadow: inset 0 -3px 0 var(--accent); }

/* crumbs + heads */
.crumbs { font: 400 13px/1.4 var(--mono); color: var(--mute); padding: 20px 0 0; }
.crumbs a { color: var(--mute); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs .sep { margin: 0 8px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.015em; }
h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; margin: 16px 0 12px; max-width: 22ch; }
h2 { font-size: 30px; font-weight: 800; margin: 56px 0 14px; padding-top: 16px; border-top: 2px solid var(--ink); }
h3 { font-size: 21px; font-weight: 800; margin: 32px 0 8px; }
.article-head, .page-head { padding: 8px 0 28px; border-bottom: 1px solid var(--rule); margin-bottom: 32px; }
.kicker { font: 600 13px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-ink); margin: 18px 0 0; }
.dek { font-size: 21px; line-height: 1.5; color: var(--ink-2); max-width: 62ch; margin: 0 0 14px; }
.meta { font: 400 14px/1.5 var(--mono); color: var(--mute); margin: 0; }
.meta a { color: var(--mute); }
.answer { margin-top: 24px; max-width: 70ch; border: 2px solid var(--ink); background: #fff; padding: 16px 20px; position: relative; }
.answer-label { position: absolute; top: -11px; left: 14px; background: var(--ink); color: var(--paper); font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; padding: 5px 8px; }
.answer p { margin: 4px 0 0; font-size: 18px; }

/* article grid */
.article-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: 20px; font-size: 14px; border-top: 2px solid var(--ink); padding-top: 10px; }
.toc p { font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 10px; color: var(--mute); }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.toc li { counter-increment: t; margin: 0 0 8px; display: flex; gap: 8px; line-height: 1.35; }
.toc li::before { content: counter(t, decimal-leading-zero); font: 400 12px/1.6 var(--mono); color: var(--accent-ink); }
.toc a { text-decoration: none; color: var(--ink-2); }
.toc a:hover { text-decoration: underline; }
.prose { max-width: 720px; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: 0 0 6px; }
.page-body .prose { max-width: 760px; }

/* figures */
figure { margin: 28px 0; }
figure img { width: 100%; border: 1px solid var(--rule); background: var(--paper); }
figcaption { font-size: 14px; color: var(--mute); margin-top: 8px; line-height: 1.5; }

/* tables: ledger */
.table-wrap { overflow-x: auto; margin: 24px 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
table { border-collapse: collapse; width: 100%; font-size: 16px; min-width: 520px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px dashed var(--rule); vertical-align: top; }
thead th { font: 600 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--mute); border-bottom: 1px solid var(--ink); }
td.num, th.num { font-family: var(--mono); text-align: right; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tr.hi td { background: #fff; }
tr.hi td:first-child { box-shadow: inset 4px 0 0 var(--accent); }

/* boxes */
.box { border: 1px solid var(--ink); background: #fff; padding: 18px 22px; margin: 28px 0; }
.box h3 { margin-top: 0; }
.box.warn { border-color: var(--accent); box-shadow: 6px 6px 0 var(--accent); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 28px 0; }
.split .box { margin: 0; }
.checklist { list-style: none; padding: 0 !important; }
.checklist li { padding-left: 30px; position: relative; }
.checklist li::before { content: ''; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border: 2px solid var(--ink); }
.yes li::before { content: '+'; font: 600 18px/1 var(--mono); color: var(--accent-ink); top: 3px; }
.no li::before { content: '–'; font: 600 18px/1 var(--mono); color: var(--mute); top: 3px; }
.yes, .no { list-style: none; padding: 0 !important; }
.yes li, .no li { padding-left: 24px; position: relative; }
.yes li::before, .no li::before { position: absolute; left: 0; }

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); margin: 28px 0; }
.stats div { padding: 14px 16px; border-right: 1px dashed var(--rule); }
.stats div:last-child { border-right: 0; }
.stats b { display: block; font: 600 26px/1.1 var(--mono); color: var(--ink); }
.stats span { font-size: 13px; color: var(--mute); line-height: 1.3; display: block; margin-top: 4px; }

/* CTA */
.cta { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--paper); font: 600 17px/1 var(--text); padding: 15px 22px; text-decoration: none; border: 2px solid var(--ink); transition: background-color .15s ease, color .15s ease, transform .1s ease; }
.cta:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.cta:active { transform: translateY(1px); }
.cta-row { margin: 28px 0; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.cta-row .muted { font-size: 14px; }

/* FAQ + sources */
.faq details { border-bottom: 1px dashed var(--rule); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 600 18px/1 var(--mono); color: var(--accent-ink); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 8px 0 0; }
.sources ol { font-size: 15px; }

/* cards (home + hub) */
.cards { list-style: none; padding: 0 !important; margin: 24px 0; display: grid; gap: 18px; }
.card a { display: grid; gap: 8px; text-decoration: none; border: 2px solid var(--ink); background: #fff; padding: 20px 22px; transition: box-shadow .15s ease, transform .15s ease; }
.card a:hover { box-shadow: 6px 6px 0 var(--ink); transform: translate(-2px, -2px); color: var(--ink); }
.card-kicker { font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-ink); }
.card-title { font: 800 24px/1.2 var(--display); }
.card-stats { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px dashed var(--rule); border-bottom: 1px dashed var(--rule); }
.card-stats span { padding: 8px 16px 8px 0; margin-right: 16px; border-right: 1px dashed var(--rule); }
.card-stats span:last-child { border-right: 0; }
.card-stats em { display: block; font: normal 400 11px/1.2 var(--mono); text-transform: uppercase; color: var(--mute); }
.card-stats b { font: 600 17px/1.3 var(--mono); }
.card-desc { color: var(--ink-2); font-size: 16px; }

/* home */
.is-home main { padding-top: 0; }
.hero { padding: 56px 0 36px; border-bottom: 2px solid var(--ink); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.hero h1 { font-size: clamp(38px, 5.6vw, 68px); max-width: 14ch; margin: 0 0 18px; }
.hero p { font-size: 20px; color: var(--ink-2); max-width: 52ch; margin: 0; }
.receipt { background: #fff; border: 1px solid var(--ink); padding: 18px 20px 14px; font: 400 14px/1.6 var(--mono); position: relative; }
.receipt::after { content: ''; position: absolute; left: -1px; right: -1px; bottom: -9px; height: 9px; background: linear-gradient(-45deg, transparent 6px, #fff 0) 0 0 / 12px 12px, linear-gradient(45deg, transparent 6px, #fff 0) 0 0 / 12px 12px; }
.receipt h2 { font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; border: 0; margin: 0 0 12px; padding: 0; color: var(--mute); }
.receipt dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; margin: 0; }
.receipt dt { color: var(--ink-2); }
.receipt dd { margin: 0; text-align: right; }
.receipt .total { border-top: 1px dashed var(--ink); padding-top: 6px; margin-top: 4px; font-weight: 600; }
.receipt p { margin: 10px 0 0; font-size: 12px; color: var(--mute); }
.home-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; padding: 16px 0 40px; }
.home-cols h2 { margin-top: 40px; }

/* footer */
.site-foot { margin-top: 80px; background: var(--ink); color: #d8d3c8; padding: 40px 0; font-size: 15px; }
.site-foot a { color: #fff; }
.foot-brand { font: 800 20px/1 var(--display); color: #fff; margin: 0 0 12px; }
.foot-disc, .foot-note { max-width: 72ch; margin: 0 0 10px; }
.foot-note { color: #a8a294; font-size: 14px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; font-family: var(--mono); font-size: 13px; }

@media (max-width: 900px) {
  .article-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .toc { position: static; margin-bottom: 8px; }
  .hero, .home-cols { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(-n+2) { border-bottom: 1px dashed var(--rule); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .wrap { padding: 0 18px; }
  h2 { font-size: 25px; }
  .dek { font-size: 19px; }
  .site-nav a { padding: 8px 8px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* seller media (embedded from the gig page, credited) */
.seller-media { margin: 28px 0; padding: 16px; border: 1px dashed var(--ink); background: var(--paper-2); }
.seller-media figure { margin: 0 0 16px; }
.seller-media video { width: 100%; display: block; background: #000; aspect-ratio: 16 / 9; }
.seller-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.seller-grid figure { margin: 0; }
.seller-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--rule); background: #fff; }
.seller-media figcaption { font-size: 13px; }
.credit { display: block; font: 400 12px/1.4 var(--mono); color: var(--mute); margin-top: 2px; }
.credit-line { font: 400 12px/1.5 var(--mono); color: var(--mute); margin: 4px 0 0; }
@media (max-width: 560px) { .seller-grid { grid-template-columns: minmax(0, 1fr); } }
