
@font-face {
  font-family: 'Redacted';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('/assets/fonts/Redacted/Redacted-Regular.woff2') format('woff2');
}

/**
 * Shared skeleton tokens for the market content blocks.
 *
 * Every block concatenates this with its own `style.css` into
 * `makeElement({ style })` — via `./skeleton.ts`, which also prepends the
 * Redacted @font-face — so a block carries everything `[skeleton]` needs and
 * nothing has to be linked globally for the mode to work.
 *
 * The values are the wireframe's grey ramp expressed against `--text` /
 * `--background` rather than the flat hexes it was drawn with, so a skeleton
 * follows the site into dark mode instead of staying a light-mode artifact.
 */
:root {
  /* Redacted has no italic or bold cut — the fallback keeps metrics sane if the
     woff2 is missing, in which case a skeleton degrades to plain grey text. */
  --market-skeleton-font: 'Redacted', var(--font-primary, sans-serif);

  --market-skeleton-heading: color-mix(in srgb, var(--background), var(--text) 70%);
  --market-skeleton-copy: color-mix(in srgb, var(--background), var(--text) 30%);
  --market-skeleton-kicker: color-mix(in srgb, var(--background), var(--text) 24%);
  --market-skeleton-media: color-mix(in srgb, var(--background), var(--text) 38%);
  --market-skeleton-rule: color-mix(in srgb, var(--background), var(--text) 12%);
  --market-skeleton-surface: color-mix(in srgb, var(--background), var(--text) 2%);
}

market-collection-grid {
  position: relative;
  display: block;
  padding-top: 60px;
  padding-bottom: 60px;
}
@media (max-width: 768px) {
  market-collection-grid header {
    padding-bottom: 15px;
  }
}
market-collection-grid header > *:empty {
  display: none;
}

market-collection-grid header {
  text-align: center;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}

market-collection-grid header span {
  line-height: 1.25;
  font-size: 1.5rem;
  text-transform: uppercase;
  font-weight: 600;
}

market-collection-grid header h2 {
  font-weight: 700;
  font-size: 2rem;
}

market-collection-grid header p {
  font-weight: 400;
  line-height: 1.5rem;
  font-size: 16px;
  max-width: 640px;
}

@media (max-width: 768px) {
  market-collection-grid header p {
    font-size: 14px;
    line-height: 20px;
  }
}

market-collection-grid [collections] {
  display: flex;
  justify-content: center;
  margin-top: 45px;
  gap: 30px;
  padding: 0 30px;
  overflow: scroll;
}

@media (max-width: 768px) {
  market-collection-grid [collections] {
    gap: 15px;
    padding: 0 15px;
    padding-bottom: 30px;
    justify-content: flex-start;
  }
}

market-collection-grid [collections] [collection] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: 100%;
  text-decoration: none;
  max-width: 55vw;
}
@media (max-width: 768px) {
  market-collection-grid [collections] [collection] {
    min-width: 55vw;
  }
}
market-collection-grid [collections] [collection] svg-img {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1/1;
  border-radius: 10px;
  background: color-mix(in srgb, var(--background), var(--text) 8%);
  overflow: hidden;
  width: 100%;
}

market-collection-grid [collections] [collection] svg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

market-collection-grid [collections] [collection] svg-img svg {
  width: 45px;
  height: 45px;
}

market-collection-grid [collections] :is(h3, h4) {
  line-height: 22px;
  font-size: 16px;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  market-collection-grid [collections] :is(h3, h4) {
    font-size: 12px;
    line-height: 18px;
  }
}

/* ---------------- SKELETON ---------------- */

market-collection-grid[skeleton],
market-collection-grid[skeleton] * {
  font-family: var(--market-skeleton-font);
  font-weight: 400;
  letter-spacing: normal;
}

market-collection-grid[skeleton] {
  background: var(--market-skeleton-surface);
  pointer-events: none;
  user-select: none;
}

market-collection-grid[skeleton] header > *:empty {
  display: revert;
}

market-collection-grid[skeleton] [collections] [collection] svg-img {
  background: var(--market-skeleton-media);
}

market-collection-grid[skeleton] header :is([kicker], [headline]) {
  color: var(--market-skeleton-heading);
}

market-collection-grid[skeleton] header [copy] {
  color: var(--market-skeleton-copy);
}

market-collection-grid[skeleton] [kicker]:empty::before {
  content: 'Shop by';
}

market-collection-grid[skeleton] [headline]:empty::before {
  content: 'The collections';
}

market-collection-grid[skeleton] header [copy]:empty::before {
  content: 'One line saying how the collections are divided up, and why.';
}

market-collection-grid[skeleton] [collection] h3 {
  color: var(--market-skeleton-heading);
}

market-collection-grid[skeleton] [collection]:nth-child(2n + 1) h3:empty::before {
  content: 'A collection';
}

market-collection-grid[skeleton] [collection]:nth-child(2n + 2) h3:empty::before {
  content: 'Another one';
}
