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

/* 1. Light mode: rely on the site's own default (light) token values —
   no forced remap here. Only brand-specific overrides below. */
:root {
  /* 2. Typeface: Inter instead of the site's default. */
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;

  /* 1b. Brand accent: blue. Kept as its own token/class (--color-accent-blue /
     .bg-brand) rather than reusing the template's bg-accent-teal utility,
     whose name would otherwise say "teal" while rendering blue. */
  --color-accent-blue: #1a56db;

  /* 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;
}

.bg-accent-blue {
  background-color: var(--color-accent-blue);
}

/* 1c. Wordmark: the brand's actual lettering artwork (assets/img/wordmark.png,
   white made transparent, black strokes kept) used as an image everywhere
   the "moveable goods" mark appears, instead of setting the name in a
   substitute web font. */
.wordmark-img {
  height: 24px;
  width: auto;
  display: block;
}

.wordmark-img-hero {
  height: 56px;
  margin: 0 auto;
}

.wordmark-img-footer {
  height: 40px;
  /* footer is on the blue accent background — invert black strokes to white */
  filter: invert(1) brightness(2);
}

/* 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(3, 1fr);
  }
}

@media (min-width: 64rem) {
  .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);
}

/* Available pieces (not yet sold) — shown in full color, no grayscale
   treatment, and with no "Sold" badge, to visually separate them from
   the sold archive. */
.inventory-grid figure.available img {
  filter: none;
}

.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 > a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.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;
}

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

.inventory-caption .enquire-link {
  display: inline-block;
  margin-top: 4px;
  color: var(--color-white-100);
  text-decoration: underline;
  font-size: 0.75rem;
}

.inventory-caption .enquire-link:hover,
.inventory-caption .enquire-link:focus-visible {
  color: var(--color-white-60);
}

/* 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);
}

/* 9b. Lessons Worth Sharing article covers with no real photograph yet —
   a neutral weave background (matches .coming-soon-tile) instead of a
   leftover template placeholder graphic or an empty color block. */
.article-cover-placeholder {
  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);
}

/* 9c. FAQ accordion. */
.faq-accordion {
  border-top: 1px solid var(--color-primary-12);
}

.faq-item {
  border-bottom: 1px solid var(--color-primary-12);
}

.faq-question {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-sans);
  font-size: var(--type-p1-size);
  color: var(--color-primary-100);
  cursor: pointer;
}

.faq-icon {
  flex-shrink: 0;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--color-primary-60);
  transition: transform 0.2s ease-curve-a;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease-curve-a;
}

.faq-answer p {
  padding-bottom: 20px;
  color: var(--color-primary-60);
  max-width: 40rem;
}

/* 9d. Arbitrary-value grid column-start utilities beyond what the
   original template used (md:[--col-start:2/3/4]) don't exist in the
   purged original.css — only classes the template itself used survive
   the purge. Hand-written here since --col-start is only ever read at
   the md: breakpoint anyway (mobile is always col-start:1). */
@media (min-width: 48rem) {
  .md\:\[--col-start\:2\] { --col-start: 2; }
  .md\:\[--col-start\:3\] { --col-start: 3; }
  .md\:\[--col-start\:4\] { --col-start: 4; }
}

/* 9. Mobile navigation panel — the header's hamburger button had no
   JS wired to it at all; this is the dropdown panel it now opens.
   Full-width, anchored under the fixed header, closes on link click
   or outside click (see inline script). */
.mobile-nav-panel {
  position: fixed;
  top: var(--spacing-header-h);
  left: 0;
  right: 0;
  z-index: 40;
  background-color: var(--color-secondary-100);
  border-bottom: 1px solid var(--color-primary-4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.mobile-nav-panel ul {
  display: flex;
  flex-direction: column;
  padding: 8px 24px 16px;
}

.mobile-nav-panel a {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-size: var(--type-nav-size);
  color: var(--color-primary-100);
  border-bottom: 1px solid var(--color-primary-4);
}

.mobile-nav-panel li:last-child a {
  border-bottom: none;
}

/* 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;
}

/* Touch target: the base h-8 utility is 32px tall, below the ~44px
   minimum comfortable tap size on phones/tablets. */
@media (max-width: 47.9375rem) {
  [data-lang-button] {
    height: 44px;
  }
}

.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 100%;
  overflow: hidden;
  background-color: var(--color-black-solid-100);
  border: 1px solid var(--color-white-12);
  border-radius: 6px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  z-index: 10;
}

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

.lang-option {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: none;
  border: none;
  color: var(--color-white-100);
  font-size: var(--type-cta-size);
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease-curve-a;
}

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

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

/* 8. Hero stack. On phones the two halves just flow at their natural
   content height — forcing an even split of one viewport (like the
   desktop treatment below) squeezes the banner's heading/body/button
   into too little space and leaves dead air around the wordmark.
   Desktop keeps the original "fills exactly one screen" effect, split
   evenly between text and photo. */
.hero-stack-text {
  padding: 48px 0 40px;
}

.hero-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

.hero-banner-content {
  padding-block: 40px;
}

@media (min-width: 64rem) {
  /* main has xl:pt-12 (3rem) starting at the same lg: breakpoint (64rem)
     where the header switches to its desktop nav — cancel it here so
     there's no gap between the header and the hero stack. */
  .hero-stack {
    display: flex;
    flex-direction: column;
    min-height: calc(100dvh - var(--spacing-header-h));
    margin-top: -3rem;
  }

  .hero-stack-text {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .hero-banner {
    flex: 1;
    min-height: 0;
  }

  .hero-banner-content {
    padding-block: 0;
  }
}

.hero-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.35) 45%,
    rgba(0, 0, 0, 0.15) 100%
  );
}

.hero-banner-content {
  position: relative;
  z-index: 1;
  max-width: 56rem;
  padding: 0 24px;
  text-align: center;
}

.hero-banner-content h2,
.hero-banner-content p {
  color: #fff;
}

/* 10. Product detail pages — gallery + info column, and the "Inquiries"
   callout card used to route buyers to the inquiry form. */
.product-layout {
  display: grid;
  gap: 32px;
}

@media (min-width: 64rem) {
  .product-layout {
    grid-template-columns: 0.7fr 1fr;
    gap: 56px;
    align-items: start;
  }
}

.product-gallery-main {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  max-width: 26rem;
  background-color: var(--color-primary-4);
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-designer {
  font-size: var(--type-meta-size);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary-60);
}

.product-description {
  max-width: 34rem;
  line-height: 1.6;
  color: var(--color-primary-80);
}

.product-divider {
  border-top: 1px solid var(--color-primary-12);
}

.product-spec-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 20px;
  max-width: 22rem;
}

.product-spec-list dt {
  font-size: var(--type-meta-size);
  color: var(--color-primary-44);
}

.product-spec-list dd {
  font-size: var(--type-p2-size);
  color: var(--color-primary-100);
}

.product-availability {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--color-primary-80);
}

.product-availability-dot {
  width: 8px;
  height: 8px;
  margin-top: 0.5em;
  border-radius: 50%;
  background-color: var(--color-green-80);
  flex-shrink: 0;
}

.inquiries-card {
  border: 1px solid var(--color-primary-12);
  padding: 24px;
  background-color: var(--color-primary-4);
}

.inquiries-card-title {
  font-size: var(--type-meta-size);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-primary-12);
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.inquiries-card p {
  color: var(--color-primary-60);
}

/* 11. Inquiry form — embedded directly in the Inquiries card (product
   pages) and reused as-is on the standalone inquiry.html page. Inputs
   reuse the newsletter form's exact classes (h-8, rounded-none,
   border-primary-12, bg-primary-4) so it doesn't introduce a second
   input style into the site. */
.inquiry-form-field {
  margin-top: 16px;
}

.inquiry-form-field label {
  display: block;
  margin-bottom: 4px;
  font-size: var(--type-meta-size);
  color: var(--color-primary-60);
}

.inquiry-form-field textarea {
  width: 100%;
  border: 1px solid var(--color-primary-12);
  background-color: var(--color-secondary-100);
  padding: 8px 16px;
  font-size: var(--type-p2-size);
  font-family: var(--font-sans);
  color: var(--color-primary-100);
  resize: vertical;
  min-height: 72px;
}

.inquiry-form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary-44);
}

/* 12. Instagram follow CTA. */
.instagram-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid var(--color-primary-12);
  border-bottom: 1px solid var(--color-primary-12);
}

.instagram-cta-icon {
  width: 32px;
  height: 32px;
  color: var(--color-primary-100);
}

