/* Overrides layered on top of the site's real stylesheet (original.css).
   Everything else — spacing, grid, buttons, layout — is untouched. */

/* 1. Force dark theme: same variable remap the site itself ships for
   prefers-color-scheme:dark, applied unconditionally. */
:root {
  --color-background: #000;
  --color-primary-100: var(--color-white-100);
  --color-primary-80: var(--color-white-80);
  --color-primary-60: var(--color-white-60);
  --color-primary-44: var(--color-white-44);
  --color-primary-12: var(--color-white-20);
  --color-primary-4: var(--color-white-12);
  --color-primary-2: var(--color-white-8);
  --color-primary-solid-100: var(--color-white-solid-100);
  --color-primary-solid-80: var(--color-white-solid-80);
  --color-primary-solid-60: var(--color-white-solid-60);
  --color-primary-solid-44: var(--color-white-solid-44);
  --color-primary-solid-12: var(--color-white-solid-12);
  --color-primary-solid-4: var(--color-white-solid-4);
  --color-secondary-100: var(--color-black-100);
  --color-secondary-80: var(--color-black-80);
  --color-secondary-60: var(--color-black-60);
  --color-secondary-44: var(--color-black-44);
  --color-secondary-12: var(--color-black-12);
  --color-secondary-4: var(--color-black-4);
  --color-secondary-2: var(--color-black-2);
  --color-tertiary-100: var(--color-dark-gray-100);
  --color-tertiary-80: var(--color-dark-gray-80);
  --color-tertiary-60: var(--color-dark-gray-60);

  /* 2. Typeface: Inter instead of the site's default. */
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;

  /* 1b. Brand accent: red instead of the template's default teal/green.
     Overriding the token (not just one class) so every bg-accent-teal /
     text-accent-teal usage across both pages picks it up automatically. */
  --color-accent-teal: #b3261e;

  /* 3. No bold text anywhere: cap weight tokens at regular (one step
     thinner than medium). */
  --font-weight-medium: 400;
  --font-weight-semibold: 400;
  --font-weight-bold: 400;
}

body {
  font-weight: 400;
}

/* These utility classes hardcode font-weight:500 rather than reading the
   --font-weight-* tokens, so they need a direct override too. */
.text-h2,
.text-h4,
.text-cta,
.text-meta,
.text-nav {
  font-weight: 400;
}

/* 4. Inventory grid — the base stylesheet is a purged Tailwind build
   with no unprefixed grid-cols / col-span-2 / col-span-4 utilities
   (the original page never used them), so this section gets its own
   scoped rules instead of relying on utility classes that don't
   exist in the file. Edge-to-edge, no gap, no inset — matches the
   foundobjectsonline.com/world reference. */
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 48rem) {
  .inventory-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.inventory-grid figure {
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  background-color: var(--color-primary-4);
}

.inventory-grid figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(0.9) brightness(0.85);
}

.inventory-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 12px 16px 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
  text-align: left;
  line-height: 1.3;
}

.inventory-caption .piece-name {
  display: block;
  color: var(--color-white-100);
}

.inventory-caption .piece-designer {
  display: block;
  color: var(--color-white-60);
}

.sold-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 8px;
  border: 1px solid var(--color-white-60);
  background-color: rgba(0, 0, 0, 0.55);
  border-radius: 2px;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-white-100);
  z-index: 1;
}

/* 6. Coming Soon teaser tiles — same grid, deliberately withholding
   detail: no image, no name, just a badge on a faint diagonal weave
   background so it reads as "not yet revealed" rather than "empty." */
.coming-soon-tile {
  background-image: repeating-linear-gradient(
    45deg,
    var(--color-primary-4) 0,
    var(--color-primary-4) 1px,
    transparent 1px,
    transparent 12px
  );
  background-color: var(--color-secondary-100);
}

.coming-soon-tile .sold-badge {
  position: static;
  border-color: var(--color-primary-44);
  background-color: transparent;
  color: var(--color-primary-60);
}

/* 5. Language switcher dropdown — original.css has no unprefixed
   z-index/positioning utilities beyond what the template itself used
   (no z-10, top-full, mt-2, right-0), so this gets scoped rules too. */
.lang-switcher {
  position: relative;
}

.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 100%;
  background-color: var(--color-black-solid-100);
  border: 1px solid var(--color-white-60);
  z-index: 10;
}

.lang-switcher.lang-open .lang-menu {
  display: block;
}

.lang-option {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: none;
  border: none;
  color: var(--color-white-100);
  font-size: var(--type-cta-size);
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
}

.lang-option:hover,
.lang-option:focus-visible {
  background-color: var(--color-white-12);
}

.lang-option[aria-current="true"] {
  color: var(--color-white-60);
}
