/* x-change: a collector's binder of founder trading cards. Tokens, card anatomy and interaction rules are in DESIGN.md. */
:root {
  --ground: #14161b;
  --sheet: #1b1e25;
  --sheet-hi: #232731;
  --line: rgba(255, 255, 255, 0.1);
  --line-hi: rgba(255, 255, 255, 0.24);
  --glint: rgba(255, 255, 255, 0.05);
  --pocket: rgba(255, 255, 255, 0.028);
  --pocket-line: rgba(255, 255, 255, 0.07);
  --seam: rgba(255, 255, 255, 0.16);
  --scroll: #3b404c;
  --drop: rgba(0, 0, 0, 0.8);
  --drop-2: rgba(0, 0, 0, 0.35);
  --text: #f3f1ec;
  --muted: #a6aab4;
  --stock: #fbfaf7;
  --ink: #17191e;
  --ink-2: #5b5f69;
  --gold: #ffd03d;
  --gold-hi: #ffe07a;
  --gold-ink: #ffd03d;
  --focus: #ffd03d;
  --focus-glow: rgba(255, 208, 61, 0.25);
  --invert: #17191e;
  --invert-2: #5b5f69;
  --bad: #ff7a6b;
  --team: #8a8f99;
  --team-ink: #50545d;
  --team-on: #fff;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --wide: 1240px;
  --gutter: 24px;
  color-scheme: dark;
}

/* Day mode follows the viewer's system setting. The cards keep their white stock and team frames; the binder around
   them turns light, and anything team-colored that sits on the ground is darkened to stay readable (see the end). */
@media (prefers-color-scheme: light) {
  :root {
    --ground: #f4f2ed;
    --sheet: #e9e6df;
    --sheet-hi: #dcd8cf;
    --line: rgba(23, 25, 30, 0.12);
    --line-hi: rgba(23, 25, 30, 0.26);
    --glint: rgba(255, 255, 255, 0.6);
    --pocket: rgba(255, 255, 255, 0.4);
    --pocket-line: rgba(23, 25, 30, 0.08);
    --seam: rgba(23, 25, 30, 0.14);
    --scroll: #c4c0b6;
    --drop: rgba(48, 38, 22, 0.42);
    --drop-2: rgba(48, 38, 22, 0.16);
    --text: #17191e;
    --muted: #575b65;
    --gold-ink: #7a5a00;
    --focus: #7a5a00;
    --focus-glow: rgba(122, 90, 0, 0.22);
    --invert: #f4f2ed;
    --invert-2: #b9bcc4;
    --bad: #c8352a;
    color-scheme: light;
  }
}

/* One team color per set. --team-ink is the shade that reads on white card stock; --team-on is text on the team color. */
.t-food-drink { --team: #e5482f; --team-ink: #b93a26; --team-on: var(--ink); }
.t-health { --team: #1baf6c; --team-ink: #137a4c; --team-on: var(--ink); }
.t-apparel { --team: #2f6bff; --team-ink: #295ee0; --team-on: #fff; }
.t-body-care { --team: #f0649b; --team-ink: #aa476e; --team-on: var(--ink); }
.t-home { --team: #e9a81c; --team-ink: #8e6611; --team-on: var(--ink); }
.t-gear { --team: #0e9faa; --team-ink: #0a767e; --team-on: var(--ink); }
.t-art-gifts { --team: #8b5cf6; --team-ink: #764ed1; --team-on: #fff; }
.t-pets { --team: #b9784a; --team-ink: #905e3a; --team-on: var(--ink); }
.t-services { --team: #7d8cff; --team-ink: #5964b6; --team-on: var(--ink); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--scroll) var(--ground); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 0.07em; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.gone { visibility: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--gold); color: var(--ink); font-weight: 700; padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { left: 8px; }
svg { flex: none; }

/* Header and footer */
.top { max-width: var(--wide); margin: 0 auto; padding: 18px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { font-stretch: 125%; font-weight: 900; font-size: 24px; letter-spacing: -0.01em; line-height: 1; text-decoration: none; }
.foot { max-width: var(--wide); margin: 0 auto; padding: 32px var(--gutter) 64px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot p { max-width: 70ch; margin: 0 0 10px; }
.foot a { color: var(--text); }
.foot .fine { font-size: 13px; }

/* Buttons: gold is the one primary action on a page */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px; line-height: 1.2; padding: 12px 18px;
  border-radius: 10px; border: 1px solid transparent; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease-out);
}
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--gold); color: var(--ink); }
.btn.primary:hover { background: var(--gold-hi); }
.btn.ghost { background: transparent; border-color: var(--line-hi); color: var(--text); }
.btn.ghost:hover { border-color: var(--text); }
.btn.big { font-size: 16px; padding: 15px 22px; border-radius: 12px; }
.btn.small { font-size: 13.5px; padding: 8px 12px; border-radius: 8px; }
.btn.round { width: 46px; height: 46px; padding: 0; border-radius: 50%; }
.btn.round svg { width: 18px; height: 18px; }

/* ---------- The card ---------- */
/* The card's own box never moves, so the pointer can't slip off it while the card turns or lifts in the hero hand.
   .lift is what the hand raises; .tcard-inner is what turns. */
.tcard { position: relative; aspect-ratio: 5 / 7; perspective: 1400px; container-type: inline-size; }
.lift, .tcard-inner { position: absolute; inset: 0; transform-style: preserve-3d; }
/* The easing is symmetric, so the card is edge-on at half time. app.js swaps the faces there. */
.tcard-inner { transition: transform 0.5s cubic-bezier(0.45, 0, 0.55, 1); }
.tcard.flipped .tcard-inner { transform: rotateY(180deg); }
/* While a card turns it ignores the pointer, so a tap can't land on the face that's on its way out or in. */
.tcard.turning .lift { pointer-events: none; }
/* Only the face in front is visible. backface-visibility alone isn't enough: WebKit still draws a face's positioned
   children (the flip button, the logo, the handles) mirrored through the other side, and still lets them catch taps.
   So app.js gives the face turning away visibility: hidden (.show-back) as the card passes edge-on. */
.face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: clamp(8px, 4cqi, 14px); background: var(--team); padding: 3.2cqi;
  box-shadow: 0 22px 40px -22px var(--drop), 0 3px 8px var(--drop-2);
}
/* The back only renders once a card is first pointed at or flipped, so a binder of idle cards stays flat. */
.back { transform: rotateY(180deg); display: none; visibility: hidden; }
.armed .back { display: block; }
.show-back .front { visibility: hidden; }
.show-back .back { visibility: visible; }
/* Not positioned, so a stretched link inside measures from the face and covers the frame too. */
.stock {
  height: 100%; overflow: hidden; display: flex; flex-direction: column;
  border-radius: clamp(5px, 2.6cqi, 9px); background: var(--stock); color: var(--ink);
}

.topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 2cqi; padding: 3.4cqi 4cqi 2.6cqi; }
.name {
  margin: 0; font-stretch: 70%; font-weight: 850; font-size: max(13px, 7.2cqi); line-height: 1.02; letter-spacing: -0.005em;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere;
}
.name a { text-decoration: none; }
/* The card name on the front and "See the listing" on the back stretch over the whole face, so a click anywhere on
   the card opens the listing. The real controls (handles, product and shop links, the flip button) sit above it. */
.stretch::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: clamp(8px, 4cqi, 14px); }
.set { display: inline-flex; align-items: center; gap: 1.6cqi; flex: none; margin-top: 0.8cqi; font-size: max(10px, 3.8cqi); font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.set i { width: max(7px, 2.6cqi); height: max(7px, 2.6cqi); border-radius: 50%; background: var(--team); flex: none; }
.chip i, .set-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--team); flex: none; }

.window {
  position: relative; flex: 1; min-height: 0; margin: 0 3.2cqi; border-radius: clamp(4px, 1.8cqi, 6px); overflow: hidden;
  background: #eceae4; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--team) 70%, #000);
}
.window img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.window-empty, .window.no-photo::after {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: color-mix(in srgb, var(--team) 16%, var(--stock)); color: color-mix(in srgb, var(--team) 55%, #fff);
  font-stretch: 125%; font-weight: 900; font-size: 30cqi; line-height: 1;
}
.window.no-photo::after { content: attr(data-letter); }

/* The logo gets its own grid column and only rises into the photo, so it can never sit on the tagline. */
.plate { display: grid; grid-template-columns: 17cqi minmax(0, 1fr); column-gap: 3cqi; row-gap: 1.8cqi; align-items: start; padding: 2.6cqi 4cqi 4cqi; }
.plate .logo { grid-column: 1; grid-row: 1; margin-top: -9.5cqi; position: relative; z-index: 2; pointer-events: none; }
.plate .handles, .plate .badges { grid-column: 1 / -1; }
.logo {
  width: 17cqi; height: 17cqi; border-radius: 50%; overflow: hidden; flex: none; display: block;
  background: #fff; border: 1.4cqi solid var(--stock); box-shadow: 0 0 0 0.9cqi var(--team);
}
.logo img { width: 100%; height: 100%; object-fit: cover; }
.logo.letter { display: grid; place-items: center; background: var(--team); color: var(--team-on); font-stretch: 80%; font-weight: 850; font-size: 7.6cqi; line-height: 1; }
.tagline {
  grid-column: 2; margin: 0; min-height: 2.6em; font-size: max(11.5px, 4.6cqi); line-height: 1.3; color: var(--ink-2);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.handles { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.8cqi; }
.hrow { display: flex; align-items: center; gap: 2cqi; min-width: 0; }
.hrow + .hrow.brand { padding-left: 8cqi; }
.mini { width: 6cqi; height: 6cqi; min-width: 14px; min-height: 14px; border-radius: 50%; object-fit: cover; flex: none; background: #dcdad3; }
.h { position: relative; z-index: 2; font-weight: 700; color: var(--team-ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h:hover { text-decoration: underline; }
/* Handles reach past their text (padding offset by negative margin), so they're easy to tap without taking room. */
.hrow .h, .back-head .h { padding: 8px 4px; margin: -8px -4px; }
.hrow .h { font-size: max(11px, 5cqi); }
.role { font-size: max(10px, 3.8cqi); color: var(--ink-2); flex: none; }
.badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.6cqi; }
.badges li {
  font-size: max(10px, 3.6cqi); font-weight: 700; line-height: 1.3; padding: 0.6cqi 2cqi; border-radius: 99px;
  background: color-mix(in srgb, var(--team) 14%, #fff); color: var(--team-ink);
}

.flip {
  position: absolute; right: 2.6cqi; top: 2.6cqi; z-index: 3; width: 11cqi; height: 11cqi; min-width: 32px; min-height: 32px;
  display: none; place-items: center; padding: 0; border: 0; border-radius: 50%; cursor: pointer; touch-action: manipulation;
  background: rgba(23, 25, 30, 0.8); color: #fff; opacity: 0; transition: opacity 0.2s, background-color 0.2s;
}
/* The button's tap target reaches 8px past the button you see, on every side the photo doesn't clip. */
.flip::before { content: ''; position: absolute; inset: -8px; }
.js .flip { display: grid; }
.flip svg { width: 55%; height: 55%; }
.flip:hover { background: var(--ink); }
.tcard:hover .flip, .tcard:focus-within .flip, .flip:focus-visible { opacity: 1; }
.back .flip { top: 6.4cqi; right: 6.4cqi; }

/* The photo leans in a little under a mouse; never on touch */
@media (hover: hover) and (pointer: fine) {
  .tcard:hover .window img { transform: scale(1.04); }
}
@media (hover: none) {
  .flip { opacity: 1; }
  /* In the hero hand only the card in front shows its button */
  .hand .tcard:not(.active):not(:focus-within) .flip { opacity: 0; pointer-events: none; }
}

/* The back: the quick rundown */
.back .stock { padding: 5cqi; gap: 3cqi; }
.back-head { display: flex; gap: 3cqi; align-items: center; padding-right: max(13cqi, 36px); min-width: 0; }
.back-head .logo { width: 13cqi; height: 13cqi; border-width: 1cqi; font-size: 6cqi; }
.back-head > div { min-width: 0; display: flex; flex-direction: column; }
.back-name { margin: 0; font-stretch: 72%; font-weight: 850; font-size: max(13px, 7cqi); line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.back-head .h { font-size: max(10.5px, 4.2cqi); }
.rundown { margin: 0; font-size: max(11.5px, 4.8cqi); line-height: 1.35; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden; }
.source { margin: -1.6cqi 0 0; font-size: max(10px, 3.6cqi); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.source a { position: relative; z-index: 2; }
.source a:not(.h) { text-decoration: none; }
.source a:not(.h):hover { text-decoration: underline; }
.stats { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-direction: column; gap: 1.6cqi; }
.stats a {
  position: relative; z-index: 2; display: grid; grid-template-columns: 11cqi minmax(0, 1fr) auto; gap: 2.6cqi; align-items: center;
  font-size: max(11px, 4.3cqi); text-decoration: none; border-radius: 4px; padding-block: 0.8cqi; margin-block: -0.8cqi;
}
.stats a:hover .pt { text-decoration: underline; }
.thumb { width: 11cqi; height: 11cqi; border-radius: 4px; overflow: hidden; background: #ebe9e3; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.pt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp { font-variant-numeric: tabular-nums; font-weight: 700; }
.back-actions { display: flex; flex-direction: column; gap: 1.6cqi; }
.shop {
  position: relative; z-index: 2; display: flex; justify-content: center; align-items: center; gap: 2cqi;
  background: var(--ink); color: #fff; font-weight: 700; font-size: max(11px, 4.4cqi); padding: 3cqi; border-radius: clamp(5px, 2.2cqi, 8px); text-decoration: none;
}
.shop span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop svg { width: max(11px, 4.4cqi); height: max(11px, 4.4cqi); }
.shop::before { content: ''; position: absolute; inset: -1.6cqi -1cqi; }
.shop:hover { background: color-mix(in srgb, var(--team) 72%, #000); }
.more { text-align: center; font-size: max(11px, 4.2cqi); font-weight: 600; color: var(--ink-2); }

/* Small cards (two to a row on a phone) keep what they can show legibly */
@container (max-width: 220px) {
  .set { display: none; }
  .hrow + .hrow, .badges, .role { display: none; }
  .back .stock { gap: 2.4cqi; }
  .rundown { -webkit-line-clamp: 4; line-clamp: 4; }
  .source { display: none; }
  .stats li:nth-child(3) { display: none; }
}

/* ---------- Homepage ---------- */
.hero-wrap { overflow: hidden; overflow: clip; }
.hero { max-width: var(--wide); margin: 0 auto; padding: 24px var(--gutter) 72px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 24px; align-items: center; min-height: 620px; }
.line {
  margin: 0; min-height: 4.2em; font-weight: 800; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.04; letter-spacing: -0.025em;
  transition: opacity 0.35s ease, filter 0.35s ease, transform 0.35s var(--ease-out);
}
.line.out { opacity: 0; filter: blur(6px); transform: translateY(10px); }
.line a { color: var(--team); text-decoration: none; }
.line a:hover { text-decoration: underline; text-decoration-thickness: 0.06em; }
.sub { color: var(--muted); font-size: 18px; max-width: 36ch; margin: 22px 0 28px; }
.actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pause { display: none; }
.js .pause { display: inline-flex; }
.pause .i-play, .pause[aria-pressed='true'] .i-pause { display: none; }
.pause[aria-pressed='true'] .i-play { display: block; }

.hand { position: relative; height: 560px; }
.hand .tcard {
  --fan: calc(var(--n) * 10deg);
  position: absolute; left: 50%; top: 70px; width: 250px; margin-left: -125px; z-index: var(--z);
  transform-origin: 50% 150%; transform: rotate(var(--fan));
}
/* The card in front rises, but only its .lift moves: its box stays put under the pointer. */
.hand .lift { transform: translateY(var(--lift, 0px)); transition: transform 0.5s var(--ease-out); }
.hand .tcard.active { --lift: -40px; z-index: 10; }
@media (prefers-reduced-motion: no-preference) {
  .hand .tcard { animation: deal 0.9s var(--ease-out) both; animation-delay: calc(var(--i) * 90ms + 150ms); }
  @keyframes deal { from { transform: rotate(0deg) translateY(120%); opacity: 0; } }
}

/* Seen on X, on a brand page */
.posts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.post { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 14px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--line); }
.post blockquote { margin: 0; flex: 1; }
.post blockquote p { margin: 0; font-size: 16px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.post-by { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 14px; color: var(--muted); }
.post .h, .on-dark .h { color: color-mix(in srgb, var(--team) 50%, #fff); }
.post-tag { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--sheet-hi); color: var(--text); }
.post-meta { display: flex; align-items: center; gap: 14px; font-size: 13.5px; color: var(--muted); }
.post-meta a { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; color: var(--text); text-decoration: none; font-weight: 600; }
.post-meta a:hover { text-decoration: underline; }
.post-meta svg { width: 14px; height: 14px; }
.likes { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.likes svg { color: #f4677f; }

/* The binder: a toolbar, then one sheet of pockets per set */
.binder { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter) 88px; }
.toolbar {
  position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center;
  margin: 0 calc(var(--gutter) * -1) 24px; padding: 14px var(--gutter); background: var(--ground);
}
.search { position: relative; flex: 0 1 360px; }
.search svg { position: absolute; left: 13px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; font-size: 16px; color: var(--text); background: var(--sheet); border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px 11px 40px;
  transition: border-color 0.2s;
}
.search input::placeholder { color: var(--muted); }
.search input:hover { border-color: var(--line-hi); }
.search input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px var(--focus-glow); }
.search input::-webkit-search-cancel-button { filter: invert(1) brightness(0.8); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text); background: transparent;
  border: 1px solid var(--line-hi); border-radius: 99px; padding: 7px 12px; cursor: pointer; white-space: nowrap; transition: border-color 0.2s, background-color 0.2s;
}
.chip:hover { border-color: var(--text); }
.chip i { width: 9px; height: 9px; }
.chip .n { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.chip[aria-pressed='true'] { background: var(--text); color: var(--invert); border-color: var(--text); }
.chip[aria-pressed='true'] .n { color: var(--invert-2); }

.binder-set { margin-bottom: 56px; scroll-margin-top: 90px; }
.set-head { display: flex; align-items: baseline; gap: 14px; margin: 0 0 18px; }
.set-head h2 { font-stretch: 72%; font-weight: 850; font-size: 34px; letter-spacing: -0.01em; color: var(--team); }
.set-head .count { color: var(--muted); font-variant-numeric: tabular-nums; }
.sheet { list-style: none; margin: 0; padding: 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; border-radius: 20px; background: var(--sheet); box-shadow: inset 0 1px 0 var(--glint); }
.pocket { position: relative; padding: 12px; border-radius: 16px; background: var(--pocket); box-shadow: inset 0 0 0 1px var(--pocket-line); }
.pocket::before { content: ''; position: absolute; left: 14px; right: 14px; top: 9px; height: 1px; background: var(--seam); }
.empty { font-size: 18px; color: var(--muted); margin: 8px 0 64px; }
.empty a { color: var(--text); }

/* ---------- Brand page ---------- */
.listing { max-width: var(--wide); margin: 0 auto; padding: 4px var(--gutter) 88px; }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 28px; font-size: 14.5px; color: var(--muted); }
.crumb a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--text); }
.crumb svg { width: 16px; height: 16px; }
.listing-grid { display: grid; grid-template-columns: minmax(280px, 400px) minmax(0, 1fr); gap: 64px; align-items: start; }
.listing-card { position: sticky; top: 24px; }
.listing-body { min-width: 0; max-width: 720px; }
.listing-head h1 { font-stretch: 72%; font-weight: 850; font-size: clamp(40px, 5vw, 64px); letter-spacing: -0.015em; line-height: 0.98; }
.listing-tagline { margin: 12px 0 0; font-size: 20px; line-height: 1.4; color: var(--muted); max-width: 46ch; }
.listing-shop { margin: 24px 0 0; }
.chips-row { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.handle-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 99px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--line); font-size: 14.5px; }
.handle-chip img, .handle-chip .chip-letter { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: var(--sheet-hi); }
.handle-chip .chip-letter { display: grid; place-items: center; background: var(--team); color: var(--team-on); font-weight: 850; font-size: 13px; }
.handle-chip .h { position: static; }
.handle-chip .role { color: var(--muted); font-size: 13px; }
.badges.big { margin-top: 14px; gap: 8px; }
.badges.big li { font-size: 13.5px; padding: 5px 12px; }

.block { margin-top: 48px; }
.block h2 { font-stretch: 72%; font-weight: 850; font-size: 28px; letter-spacing: -0.005em; margin-bottom: 16px; }
.block .prose { margin: 0; font-size: 18px; line-height: 1.6; max-width: 66ch; }
.block .src { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }
.block .src a { color: var(--text); }
.prose .h, .lede .h, .form-note .h { position: static; color: color-mix(in srgb, var(--team) 50%, #fff); }

.founder-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.founder { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px; border-radius: 16px; background: var(--sheet); }
.founder-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--sheet-hi); }
.founder-photo.letter { display: grid; place-items: center; background: var(--team); color: var(--team-on); font-weight: 850; font-size: 26px; }
.founder-name { margin: 0; font-weight: 700; font-size: 18px; line-height: 1.25; }
.founder-meta { margin: 2px 0 0; color: var(--muted); font-size: 14.5px; display: flex; flex-wrap: wrap; gap: 2px 8px; }
.founder-meta .h { position: static; }
.founder-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin: 0; }

.product-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 18px; }
.product { position: relative; display: flex; flex-direction: column; }
.product-link { display: flex; flex-direction: column; text-decoration: none; border-radius: 12px; }
.product-photo { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--stock); box-shadow: 0 14px 30px -18px var(--drop); }
.product-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.product-title { margin-top: 12px; font-weight: 700; font-size: 15.5px; line-height: 1.3; }
.product-price { margin-top: 2px; color: var(--muted); font-size: 14.5px; font-variant-numeric: tabular-nums; }
.product-link:hover .product-title { text-decoration: underline; }
.product-desc { margin: 6px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
/* With a mouse, the description is a rundown over the photo instead */
@media (hover: hover) and (pointer: fine) {
  .product-desc {
    position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 1; margin: 0; padding: 16px; border-radius: 12px;
    display: flex; align-items: flex-end; -webkit-line-clamp: unset; line-clamp: none; pointer-events: none;
    color: #f3f1ec; font-size: 14px; line-height: 1.45;
    background: linear-gradient(to top, rgba(14, 16, 20, 0.94) 55%, rgba(14, 16, 20, 0.55));
    opacity: 0; transition: opacity 0.25s ease;
  }
  .product-desc span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 7; line-clamp: 7; overflow: hidden; }
  .product:hover .product-desc, .product:focus-within .product-desc { opacity: 1; }
  .product:hover .product-photo img { transform: scale(1.04); }
}
.see-all { margin: 22px 0 0; }
.see-all a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.see-all a:hover { text-decoration: underline; }
.see-all svg { width: 15px; height: 15px; }

.claim { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 24px; align-items: center; padding: 22px 24px; border-radius: 16px; border: 1.5px dashed var(--line-hi); }
.claim h2 { font-stretch: 72%; font-weight: 850; font-size: 24px; margin-bottom: 6px; }
.claim p { margin: 0; color: var(--muted); max-width: 58ch; }
.claim.signed { border-style: solid; border-color: color-mix(in srgb, var(--gold) 45%, transparent); background: color-mix(in srgb, var(--gold) 6%, transparent); }
.claim .h { position: static; color: var(--gold-ink); }

/* ---------- Submit, thanks and not found ---------- */
.page { max-width: var(--wide); margin: 0 auto; padding: 16px var(--gutter) 88px; }
.page h1, .message h1 { font-stretch: 72%; font-weight: 850; font-size: clamp(40px, 5vw, 60px); letter-spacing: -0.015em; }
.lede { font-size: 18px; color: var(--muted); margin: 14px 0 32px; max-width: 58ch; }
.submit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); gap: 72px; align-items: start; }
.submit-card { position: sticky; top: 24px; }
.submit-card .tcard { max-width: 320px; }
.submit-card > p { margin: 16px 0 0; color: var(--muted); font-size: 14px; text-align: center; }
.form { display: flex; flex-direction: column; gap: 22px; max-width: 640px; }
.field { display: flex; flex-direction: column; gap: 7px; flex: 1; }
.field-row { display: flex; gap: 16px; flex-wrap: wrap; }
.field-row .field { min-width: 220px; }
.field label { font-weight: 700; font-size: 15px; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: 14px; margin-top: 2px; }
.field input, .field select, .field textarea {
  font-size: 16px; color: var(--text); background: var(--sheet); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; transition: border-color 0.2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-hi); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px var(--focus-glow); }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: var(--bad); }
.field.check label { font-weight: 500; display: flex; gap: 10px; align-items: center; }
.field.check input { width: 20px; height: 20px; accent-color: var(--gold); }
fieldset.tags { border: 0; margin: 0; padding: 0; min-inline-size: 0; width: 100%; }
fieldset.tags legend { font-weight: 700; font-size: 15px; padding: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.checks label { font-weight: 500; display: flex; gap: 10px; align-items: center; }
fieldset.tags .checks input {
  width: 20px; height: 20px; margin: 0; accent-color: var(--gold);
  padding: 0; border: 0; border-radius: 4px; background: transparent; box-shadow: none;
}
fieldset.tags .checks input:hover, fieldset.tags .checks input:focus { border-color: transparent; box-shadow: none; }
.honeypot { position: absolute; left: -9999px; }
.form .btn { align-self: flex-start; }
.form-note { margin: 0; max-width: 52ch; color: var(--muted); font-size: 14px; }

.message { max-width: 640px; margin: 0 auto; padding: 32px var(--gutter) 104px; text-align: center; }
.message .lede { margin-left: auto; margin-right: auto; }
.message .actions { justify-content: center; }
.empty-pocket, .card-down { width: 168px; aspect-ratio: 5 / 7; margin: 0 auto 36px; border-radius: 14px; }
.empty-pocket { position: relative; border: 2px dashed var(--line-hi); background: var(--pocket); }
.empty-pocket::before { content: ''; position: absolute; left: 12px; right: 12px; top: 10px; height: 1px; background: var(--seam); }
.card-down {
  display: grid; place-items: center; padding: 12px; background: var(--gold); transform: rotate(-6deg);
  box-shadow: 0 22px 40px -22px var(--drop), 0 3px 8px var(--drop-2);
}
.card-down span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 8px; background: var(--ink); color: var(--gold); font-stretch: 125%; font-weight: 900; font-size: 22px; }
.verify { display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 0 auto 28px; }
.verify-brand { margin: 0; font-stretch: 72%; font-weight: 850; font-size: 28px; letter-spacing: -0.015em; }
.verify-code { margin: 0; max-width: 100%; padding: 12px 22px; border-radius: 14px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--line); }
.verify-code code {
  font-family: inherit; font-stretch: 72%; font-weight: 850; font-size: clamp(26px, 8vw, 44px);
  letter-spacing: 0.08em; color: var(--gold-ink); font-variant-numeric: tabular-nums;
}
.verify .actions { justify-content: center; }
.verify-status { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- Narrow screens ---------- */
@media (max-width: 1000px) {
  .listing-grid { grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: 40px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .founder { grid-template-columns: 56px minmax(0, 1fr); padding: 10px 12px; column-gap: 12px; row-gap: 8px; }
  .founder-photo { width: 56px; height: 56px; }
  .founder-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 8px; padding-bottom: 8px; }
  .line { min-height: 0; }
  .hand { height: 380px; }
  .hand .tcard { --fan: calc(var(--n) * 7deg); width: 180px; margin-left: -90px; top: 52px; }
  .sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px; gap: 10px; border-radius: 16px; }
  .pocket { padding: 6px; border-radius: 12px; }
  .pocket::before { left: 9px; right: 9px; top: 4px; }
  .listing-grid { grid-template-columns: 1fr; gap: 36px; }
  .listing-card { position: static; width: min(320px, 82%); margin: 0 auto; }
  .submit-grid { grid-template-columns: 1fr; gap: 40px; }
  .submit-card { position: static; order: -1; }
  .submit-card .tcard { width: min(240px, 66%); margin: 0 auto; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .top { padding-top: 14px; padding-bottom: 14px; }
  .wordmark { font-size: 21px; }
  .top .btn { padding: 10px 14px; font-size: 14px; }
  .sub { font-size: 16.5px; }
  .block h2 { font-size: 26px; }
  .toolbar { padding-top: 12px; padding-bottom: 12px; gap: 10px; }
  .search { flex: 1 1 100%; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter); width: calc(100% + var(--gutter) * 2); }
  .chips::-webkit-scrollbar { display: none; }
  .binder-set { margin-bottom: 40px; scroll-margin-top: 120px; }
  .set-head h2 { font-size: 28px; }
  .sheet { padding: 8px; gap: 8px; }
  .pocket { padding: 5px; }
  .listing-head h1 { font-size: 42px; }
  .listing-tagline { font-size: 18px; }
  .listing-shop .btn { width: 100%; }
  .product-grid { gap: 22px 12px; }
  .claim { grid-template-columns: 1fr; padding: 20px; }
  .claim .btn { justify-self: start; }
  .verify { width: 100%; }
  .verify .actions { width: 100%; }
  .verify .actions .btn { width: 100%; white-space: normal; }
  .founder-list { gap: 10px; }
  .founder { grid-template-columns: 44px minmax(0, 1fr); padding: 8px 10px; column-gap: 10px; row-gap: 6px; }
  .founder-photo { width: 44px; height: 44px; }
  .founder-photo.letter { font-size: 18px; }
}
/* Day mode: team colors that sit on the light ground (not on card stock) use --team-ink darkened 20% with black,
   which reads at 5.7:1 or better on the ground and on sheets. */
@media (prefers-color-scheme: light) {
  .line a, .set-head h2, .post .h, .on-dark .h, .prose .h, .lede .h, .form-note .h { color: color-mix(in srgb, var(--team-ink) 80%, #000); }
  .claim .h { color: var(--gold-ink); }
  .search input::-webkit-search-cancel-button { filter: none; }
  .btn.primary { box-shadow: inset 0 0 0 1px rgba(23, 25, 30, 0.14); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lift, .tcard-inner, .line, .window img, .product-photo img { transition: none; }
}
