@font-face { font-family: "Horseman Display"; src: url("instrument-serif-400.woff2") format("woff2"); font-display: swap; }
:root {
  color-scheme: light;
  --ink: #1a1512; --muted: #6b625b; --line: rgb(26 21 18 / 0.12); --paper: #faf7f2; --card: #fff;
  --stage: hsl(32 38% 92%); --accent: #1a1512; --ok: #2f6b3a; --warn: #9a5b12;
  --display: "Horseman Display", ui-serif, Georgia, serif;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--paper); }
a { color: inherit; }
h1, h2, .brand, .brand-big { font-family: var(--display); font-weight: 400; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1; margin: 0 0 1.5rem; }
h2 { font-size: 1.75rem; margin: 0 0 1rem; }
main { max-width: 72rem; margin: 0 auto; padding: 2.5rem clamp(1rem, 4vw, 2.5rem) 4rem; }
.eyebrow { margin: 0 0 .5rem; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; padding: .9rem clamp(1rem, 4vw, 2.5rem); border-bottom: 1px solid var(--line); background: var(--card); }
.brand { font-size: 1.75rem; text-decoration: none; }
.top nav { display: flex; gap: .25rem; flex: 1; }
.top nav a { padding: .5rem .9rem; border-radius: 999px; text-decoration: none; color: var(--muted); }
.top nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.who { display: flex; align-items: center; gap: 1rem; font-size: .9rem; }
.mode { margin-left: .35rem; padding: .1rem .5rem; border-radius: 999px; background: #fff1d6; color: var(--warn); font-size: .75rem; font-weight: 600; }
.link { border: 0; background: none; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1rem; margin: 0 0 2rem; }
.stats div { padding: 1.25rem 1.5rem; border-radius: 18px; background: var(--stage); }
.stats dt { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stats dd { margin: .25rem 0 0; font-family: var(--display); font-size: 2.5rem; line-height: 1; font-variant-numeric: tabular-nums; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 1.5rem; margin-bottom: 2rem; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.checks li { padding-left: 1.75rem; position: relative; color: var(--muted); }
.checks li strong { color: var(--ink); margin-right: .35rem; }
.checks li::before { content: "○"; position: absolute; left: 0; color: var(--warn); }
.checks li[data-ok="true"]::before { content: "●"; color: var(--ok); }
.row-head { display: flex; justify-content: space-between; align-items: baseline; }
.table-wrap { container-type: inline-size; }
table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
th, td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.pill { display: inline-block; padding: .15rem .6rem; border-radius: 999px; background: #eee9e3; font-size: .8rem; text-transform: capitalize; }
.pill[data-status="paid"] { background: #dcefdf; color: var(--ok); }
.pill[data-status="pending"] { background: #fff1d6; color: var(--warn); }
@container (max-width: 40rem) {
  table, thead, tbody, tr, th, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tr { border-bottom: 1px solid var(--line); padding: .5rem 0; }
  td { border: 0; padding: .25rem 1rem; display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; }
  td::before { content: attr(data-label); color: var(--muted); font-size: .8rem; }
  .num { text-align: left; }
}
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.5rem; }
.product h2 { font-size: 1.6rem; margin: .9rem 0 .1rem; }
.stage { container-type: inline-size; position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; border-radius: 18px; background: var(--stage); overflow: hidden; isolation: isolate; }
.stage > * { grid-area: 1 / 1; }
.stage img { max-width: 72%; max-height: 64%; border-radius: 8px; mix-blend-mode: multiply; }
.stage .word { align-self: end; margin-bottom: 4cqi; font-family: var(--display); font-size: 18cqi; line-height: .8; white-space: nowrap; color: rgb(26 21 18 / .12); }
.price { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.meta, .id { margin: .2rem 0 0; color: var(--muted); font-size: .875rem; }
.empty { color: var(--muted); }
.login { max-width: 26rem; padding-top: 12vh; }
.brand-big { font-size: 3rem; margin: 0; }
.login h1 { font-size: 1.75rem; }
.login label { display: block; font-weight: 600; margin-bottom: .4rem; }
.login input { width: 100%; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 12px; font: inherit; }
.login button { margin-top: 1rem; width: 100%; padding: .85rem; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.error { color: #a32020; margin: .75rem 0 0; }
.hint { color: var(--muted); font-size: .85rem; margin: 1rem 0 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.login input[type=email] { width: 100%; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 12px; font: inherit; }
.card p:first-child { margin-top: 0; }
.store-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .75rem; }
.store-pick { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; text-align: left; }
.store-pick:hover { border-color: var(--ink); }
.login .link { width: auto; margin: 0; padding: 0; background: none; color: var(--muted); font-weight: 400; }
.has-badge { position: relative; }
/* Counter tucked into the pill's top-right corner. */
.badge {
  position: absolute; top: -.35rem; right: -.4rem;
  display: grid; place-items: center; min-width: 1.15rem; height: 1.15rem; padding: 0 .3rem;
  border-radius: 999px; background: #c2410c; color: #fff;
  box-shadow: 0 0 0 2px var(--card);
  font: 700 .68rem/1 system-ui, sans-serif; font-variant-numeric: tabular-nums;
  animation: badge-in .35s cubic-bezier(.2,.7,.1,1);
}
.top nav a[aria-current="page"] .badge { background: var(--paper); color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
@keyframes badge-in { from { transform: scale(.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .badge { animation: none; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pill.new { background: #fde6d8; color: #9a3412; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
