/* ══════════════════════════════════════════════════════════════════════════
   ERIC'S GUITARWORKS
   Design System: "The Luthier's Archive"
   Aesthetic: Modern boutique · Architectural · Editorial · Technical
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  /* ── Palette ─────────────────────────────────────────────────────────── */
  --bone:       #F2EEE5;   /* primary background — warm off-white */
  --bone-deep:  #E8E3D5;   /* secondary surface */
  --ink:        #111110;   /* primary text */
  --ink-mid:    #5C574F;   /* secondary text */
  --ink-soft:   #8A8478;   /* tertiary / annotations */
  --hairline:   #CFC8B8;   /* thin rule dividers */
  --accent:     #8B6F47;   /* burnt copper — restrained accent */
  --accent-dim: #B89877;   /* dimmed accent for hover ghosting */

  /* ── Typography ──────────────────────────────────────────────────────── */
  --font-display: 'Instrument Serif', 'Times New Roman', serif;
  --font-body:    'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'Geist Mono', 'SF Mono', Consolas, monospace;

  /* ── Spacing (baseline rhythm) ───────────────────────────────────────── */
  --s-1:  0.5rem;
  --s-2:  1rem;
  --s-3:  1.5rem;
  --s-4:  2rem;
  --s-6:  3rem;
  --s-8:  4rem;
  --s-12: 6rem;
  --s-16: 8rem;
  --s-24: 12rem;

  /* ── Layout ──────────────────────────────────────────────────────────── */
  --container-max: 1440px;
  --container-pad: 2.5rem;

  /* ── Motion ──────────────────────────────────────────────────────────── */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  color-scheme: light;
}

/* ══════════════════════════════════════════════════════════════════════════
   DARK MODE PALETTE — "Workshop, Lights Down" (Palette A, locked)
   Activated by data-theme="dark" on <html>. The toggle is wired up in
   js/theme.js; a pre-paint inline script in <head> sets the attribute
   before first paint to avoid a white-flash on dark-mode page loads.
   ══════════════════════════════════════════════════════════════════════════ */

[data-theme="dark"] {
  --bone:       #14110D;   /* near-black, warm */
  --bone-deep:  #1C1813;   /* slight lift, for cards */
  --ink:        #F2EEE5;   /* bone, pulled across */
  --ink-mid:    #A39B8A;
  --ink-soft:   #7A7367;
  --hairline:   #2D2820;
  --accent:     #B89877;   /* lifted accent for legibility on dark */
  --accent-dim: #D4B591;   /* lifted accent-dim for hover */

  color-scheme: dark;
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
img, svg { display: block; max-width: 100%; }
button { border: 0; background: none; font: inherit; cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
input, select, textarea, button { font-family: inherit; }

/* ── Grain overlay ──────────────────────────────────────────────────────── */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.9'/></svg>");
}

/* ── Container ──────────────────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ══════════════════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ══════════════════════════════════════════════════════════════════════════ */

.hero-headline,
.section-title,
.service-name,
.philosophy-text {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.0;
}

.meta-label,
.section-label,
.section-num,
.service-num,
.caption-label,
.nav-num,
.scroll-label,
.field label,
.footer-meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;      /* 11px */
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 400;
  color: var(--ink-mid);
}

/* ══════════════════════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════
   MASTHEAD (non-sticky, top of page)
   ══════════════════════════════════════════════════════════════════════════ */

.site-masthead {
  background: var(--bone);
  padding: 3.25rem 0 2.25rem;
  transition: background-color 0.3s var(--ease);
}
.masthead-inner {
  display: flex;
  justify-content: center;
  align-items: center;
}
.masthead-mark {
  display: inline-block;
  transition: opacity 0.3s var(--ease);
  line-height: 0;
}
.masthead-mark:hover { opacity: 0.78; }
.masthead-seal {
  display: block;
  width: 180px;
  height: 180px;
  user-select: none;
}

/* ══════════════════════════════════════════════════════════════════════════
   STICKY NAV BAR (below masthead)
   ══════════════════════════════════════════════════════════════════════════ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(242, 238, 229, 0.95);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid rgba(17, 17, 16, 0.15);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}

.wordmark-primary {
  font-family: var(--font-display);
  font-size: 1.625rem;
  letter-spacing: -0.01em;
  line-height: 1;
}
.wordmark-secondary {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
}

.main-nav {
  display: flex;
  gap: 2.25rem;
  grid-column: 2;
  justify-self: center;
}
.main-nav a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--ink);
  transition: color 0.25s var(--ease);
}
.main-nav a:hover { color: var(--accent); }
.nav-num {
  font-size: 0.625rem;
  color: var(--ink-soft);
  letter-spacing: 0.12em;
}

/* ── Theme toggle (segmented icon-only pill) ────────────────────────────── */
.theme-toggle {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 2px;
  gap: 0;
  transition: border-color 0.3s var(--ease);
}
.theme-toggle button {
  padding: 0.4rem 0.55rem;
  border-radius: 999px;
  color: var(--ink-soft);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.theme-toggle button:hover { color: var(--ink); }
.theme-toggle button.is-active {
  background: var(--ink);
  color: var(--bone);
}
.theme-toggle .toggle-icon {
  font-size: 0.95rem;
  letter-spacing: 0;
  line-height: 1;
}
/* Visually hide the text label but keep it for screen readers */
.theme-toggle .toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ══════════════════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════════════════ */

.hero {
  padding: 2rem 0 2.5rem;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 2rem;
  row-gap: 3rem;
  align-items: center;
  width: 100%;
}

.hero-meta {
  grid-column: 1 / span 3;
  grid-row: 1;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding-top: 0.5rem;
}
.meta-block {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  position: relative;
  padding-left: 0.875rem;
}
.meta-block::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.125rem;
  width: 1px;
  height: 0.5rem;
  background: var(--accent);
}
.meta-value {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.45;
}

.hero-headline {
  grid-column: 4 / span 5;
  grid-row: 1;
  font-size: clamp(3rem, 7.5vw, 7rem);
  display: flex;
  flex-direction: column;
}
.headline-line { display: block; }
.hero-headline em {
  font-style: italic;
  color: var(--ink-mid);
}

.hero-guitar {
  grid-column: 8 / span 5;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.hero-guitar img {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
  user-select: none;
}

.image-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bone-deep);
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-frame svg {
  width: 100%;
  height: 100%;
  display: block;
}
.image-frame.no-image::after {
  content: 'HERO / IMG / 001';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
}

/* Crosshair corner markers — technical drawing signature */
.frame-mark {
  position: absolute;
  width: 14px;
  height: 14px;
  z-index: 2;
  pointer-events: none;
}
.frame-mark::before,
.frame-mark::after {
  content: '';
  position: absolute;
  background: var(--accent);
}
.frame-mark::before { width: 14px; height: 1px; top: 50%; left: 0; }
.frame-mark::after  { width: 1px; height: 14px; left: 50%; top: 0; }
.frame-mark-tl { top: -7px;    left: -7px; }
.frame-mark-tr { top: -7px;    right: -7px; }
.frame-mark-bl { bottom: -7px; left: -7px; }
.frame-mark-br { bottom: -7px; right: -7px; }

.image-caption {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  flex-wrap: wrap;
}
.caption-label { color: var(--accent); }
.caption-text {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--ink-mid);
}

.hero-scroll {
  grid-column: 1 / span 3;
  grid-row: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.scroll-arrow {
  font-family: var(--font-mono);
  color: var(--ink);
  animation: scroll-nudge 2.2s ease-in-out infinite;
}
@keyframes scroll-nudge {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

/* ══════════════════════════════════════════════════════════════════════════
   SECTION SCAFFOLDING
   ══════════════════════════════════════════════════════════════════════════ */

.section-header {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--hairline);
}
.section-num { color: var(--accent); }
.section-title {
  font-size: clamp(2.5rem, 5.5vw, 4.75rem);
  margin-bottom: 1.25rem;
}
.section-intro {
  font-size: 1.0625rem;
  color: var(--ink-mid);
  max-width: 44rem;
  margin-bottom: var(--s-6);
  line-height: 1.55;
}

/* ══════════════════════════════════════════════════════════════════════════
   PHILOSOPHY
   ══════════════════════════════════════════════════════════════════════════ */

.philosophy {
  padding: 4rem 0;
  border-top: 1px solid var(--hairline);
}
.philosophy-text {
  font-size: clamp(1.625rem, 3vw, 2.75rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
}
.philosophy-text em {
  font-style: italic;
  color: var(--ink-mid);
}

/* ══════════════════════════════════════════════════════════════════════════
   SERVICES
   ══════════════════════════════════════════════════════════════════════════ */

.services { padding: 4rem 0 4.5rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}
.service {
  background: var(--bone);
  padding: 2.75rem 2.25rem 2.25rem;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: background 0.4s var(--ease);
  position: relative;
}
.service:hover { background: var(--bone-deep); }

.service-icon {
  width: 44px;
  height: 44px;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.service-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.service-num { color: var(--accent); }
.service-name {
  font-size: 2.125rem;
  margin-bottom: 0.35rem;
  line-height: 1.05;
}
.service-desc {
  color: var(--ink-mid);
  font-size: 0.95rem;
  line-height: 1.6;
}
.service-specs {
  margin-top: auto;
  padding-top: 1.75rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
}
.service-specs li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-mid);
  letter-spacing: 0.02em;
  display: flex;
  align-items: baseline;
  gap: 2rem;
  line-height: 1.45;
  padding: 0.6rem 0;
  border-bottom: 1px dashed rgba(207, 200, 184, 0.55);
}
.service-specs li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.spec-label {
  flex: 1;
  min-width: 0;
}
.spec-price {
  flex-shrink: 0;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.services-footnote {
  margin-top: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: var(--ink-mid);
  line-height: 1.7;
  max-width: 44rem;
}
.services-footnote a {
  color: var(--ink);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 1px;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.services-footnote a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ══════════════════════════════════════════════════════════════════════════
   THE LAB (WORK)
   ══════════════════════════════════════════════════════════════════════════ */

.work { padding: 4rem 0 4.5rem; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.work-item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  padding: 0;
  margin: 0;
  border: none;
  background: var(--bone-deep);
  overflow: hidden;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.25s var(--ease);
}
.work-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.work-item:hover img,
.work-item:focus-visible img { transform: scale(1.03); }
.work-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Lightbox ──────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(17, 17, 16, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.lightbox.is-open {
  display: flex;
  opacity: 1;
}
.lightbox-stage {
  max-width: calc(100vw - 8rem);
  max-height: calc(100vh - 6rem);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 6rem);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: none;
  border: 1px solid rgba(242, 238, 229, 0.3);
  color: var(--bone);
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  line-height: 1;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 1.25rem;
  line-height: 1;
}
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(242, 238, 229, 0.1);
  border-color: var(--bone);
}
.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: rgba(242, 238, 229, 0.7);
}
.lightbox-sep { margin: 0 0.5rem; opacity: 0.5; }
body.lightbox-open { overflow: hidden; }

.view-all {
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.25rem;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), letter-spacing 0.3s var(--ease);
}
.view-all:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ══════════════════════════════════════════════════════════════════════════
   MARKETPLACE
   ══════════════════════════════════════════════════════════════════════════ */

.marketplace { padding: 4rem 0 4.5rem; }

/* ── Category cards (homepage § 03) ──────────────────────────────────────── */
.market-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.market-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  background: var(--bone-deep);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid var(--hairline);
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}
.market-card[data-market="guitars"] { background-image: url('/img/market/guitars.jpg'); }
.market-card[data-market="parts"]   { background-image: url('/img/market/parts.jpg'); }
.market-card[data-market="merch"]   { background-image: url('/img/market/merch.jpg'); }
.market-card[data-market="misc"]    { background-image: url('/img/market/misc.jpg'); }

.market-card:hover { border-color: var(--ink); }

.market-card-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.95rem 1.15rem 1.1rem;
  background: rgba(17, 17, 16, 0.8);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  z-index: 1;
}
.market-card-num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.market-card-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 1.9vw, 1.875rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--bone);
  min-height: 2.1em;     /* reserves 2 lines — aligns bottom of names across cards */
}
.market-card-desc {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(242, 238, 229, 0.78);
  min-height: 2.55em;    /* reserves 2 lines for alignment */
}

.market-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 16, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
  z-index: 2;
}
.market-card:hover .market-card-overlay,
.market-card:focus-visible .market-card-overlay { opacity: 1; }
.market-card-continue {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: gap 0.3s var(--ease);
}
.market-card:hover .market-card-continue { gap: 1.15rem; }
.market-card-arrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 1rem;
}
.market-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ── Disabled variant (pre-launch "Coming soon" state) ──────────────────── */
.market-card-disabled {
  cursor: default;
}
.market-card-disabled:hover {
  border-color: var(--hairline);
}

/* ══════════════════════════════════════════════════════════════════════════
   MARKETPLACE — CATEGORY INDEX PAGES (guitars, parts, merch, misc)
   ══════════════════════════════════════════════════════════════════════════ */

.category { padding: 2.5rem 0 5rem; }

.category-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 3rem;
}
.category-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.category-intro {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-mid);
  max-width: 36rem;
}
.category-intro strong { color: var(--ink); font-weight: 500; }

/* ── Listings grid (guitars, parts, etc) ────────────────────────────────── */
.listings-index {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.listing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bone);
  border: 1px solid var(--hairline);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), transform 0.3s var(--ease);
}
.listing-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.listing-card-image {
  aspect-ratio: 3 / 4;
  background: var(--bone-deep);
  overflow: hidden;
  position: relative;
}
.listing-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}
.listing-card:hover .listing-card-image img { transform: scale(1.04); }
.listing-card-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.listing-card-body {
  padding: 1.125rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}
.listing-card-meta {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.listing-card-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.375rem;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.listing-card-spec {
  font-size: 0.8125rem;
  color: var(--ink-mid);
  line-height: 1.45;
}
.listing-card-price {
  margin-top: auto;
  padding-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.listing-card-status {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.5rem;
}
.listing-card-status.available::before {
  content: "●";
  color: var(--accent);
  margin-right: 0.4rem;
  font-size: 0.7em;
}

/* ── Sold / On-hold card states ─────────────────────────────────────────── */
.listing-card.is-sold .listing-card-image {
  position: relative;
}
.listing-card.is-sold .listing-card-image img {
  filter: grayscale(1) brightness(0.92);
}
.listing-card.is-sold .listing-card-image::after {
  content: "SOLD";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  letter-spacing: 0.32em;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.96);
  background: rgba(17, 17, 16, 0.78);
  padding: 0.45rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  pointer-events: none;
}
.listing-card.is-sold .listing-card-name,
.listing-card.is-sold .listing-card-meta,
.listing-card.is-sold .listing-card-spec {
  color: var(--ink-soft);
}
.listing-card.is-sold .listing-card-price {
  text-decoration: line-through;
  color: var(--ink-soft);
}
.listing-card-status.sold {
  color: var(--ink-soft);
}
.listing-card-status.sold::before {
  content: "✕";
  color: var(--ink-soft);
  margin-right: 0.4rem;
  font-size: 0.85em;
}

.listing-card.is-hold .listing-card-image img {
  filter: brightness(0.96) saturate(0.85);
}
.listing-card-status.hold {
  color: #B8731F;
}
.listing-card-status.hold::before {
  content: "●";
  color: #B8731F;
  margin-right: 0.4rem;
  font-size: 0.7em;
}

/* ── Parts page intro blurb ─────────────────────────────────────────────── */
.category-blurb {
  background: var(--bone-deep);
  border: 1px solid var(--hairline);
  padding: 2.25rem 2.25rem;
  margin-bottom: 3rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
}
.category-blurb-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  padding-top: 0.35rem;
}
.category-blurb-text {
  font-family: var(--font-display);
  font-size: 1.375rem;
  line-height: 1.35;
  color: var(--ink);
  max-width: 44rem;
}
.category-blurb-text em { color: var(--ink-mid); font-style: italic; }
.category-blurb-text a {
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: color 0.25s var(--ease);
}
.category-blurb-text a:hover { color: var(--accent); }

/* ── Coming soon block (merch, misc) ────────────────────────────────────── */
.category-coming {
  border: 1px solid var(--hairline);
  background: var(--bone-deep);
  padding: 6rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
}
.category-coming-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.category-coming-text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.25vw, 2rem);
  color: var(--ink);
  max-width: 36rem;
  line-height: 1.35;
}
.category-coming-sub {
  font-size: 0.9375rem;
  color: var(--ink-mid);
  max-width: 32rem;
  line-height: 1.55;
}
.category-coming a {
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: color 0.25s var(--ease);
}
.category-coming a:hover { color: var(--accent); }

/* ══════════════════════════════════════════════════════════════════════════
   MARKETPLACE — LISTING DETAIL PAGE
   ══════════════════════════════════════════════════════════════════════════ */

.listing { padding: 2.5rem 0 4rem; }

.listing-topnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 2.5rem;
}
.listing-back {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.25rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.listing-back:hover { color: var(--accent); }
.listing-crumbs {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.listing-crumbs strong { color: var(--ink); font-weight: 400; }
.listing-crumbs a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}
.listing-crumbs a:hover { color: var(--accent); }

.listing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 4rem;
}

.listing-hero {
  aspect-ratio: 3 / 4;
  background: var(--bone-deep);
  overflow: hidden;
  margin-bottom: 0.5rem;
  position: relative;
}
.listing-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s var(--ease);
}
.listing-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}
.listing-thumb {
  aspect-ratio: 3 / 4;
  background: var(--bone-deep);
  cursor: pointer;
  overflow: hidden;
  border: 1px solid transparent;
  padding: 0;
  transition: border-color 0.15s var(--ease);
}
.listing-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.55;
  transition: opacity 0.15s var(--ease);
}
.listing-thumb:hover img,
.listing-thumb.is-active img { opacity: 1; }
.listing-thumb.is-active { border-color: var(--ink); }

.listing-info { padding-top: 0.25rem; }
.listing-info-meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.listing-info-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 0.3rem;
}
.listing-info-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.375rem;
  color: var(--ink-mid);
  margin: 0 0 1.5rem;
  line-height: 1.2;
}
.listing-info-price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1;
  margin: 0 0 0.35rem;
}
.listing-info-status {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2d6d4a;
  margin: 0 0 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.listing-info-status::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2d6d4a;
}
.listing-info-status.is-sold {
  color: var(--ink-soft);
}
.listing-info-status.is-sold::before {
  background: var(--ink-soft);
}
.listing-info-status.is-hold {
  color: #B8731F;
}
.listing-info-status.is-hold::before {
  background: #B8731F;
}

/* ── Sold block (replaces inquiry form on sold listings) ─────────────────── */
.listing-sold-block {
  margin-top: 2.25rem;
  padding: 1.5rem 1.75rem;
  background: var(--bone-deep);
  border-left: 3px solid var(--ink-soft);
}
.listing-sold-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.4rem;
}
.listing-sold-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  margin: 0;
  line-height: 1.5;
}
.listing-sold-text a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.listing-sold-text a:hover {
  color: var(--ink);
}

.listing-specs {
  border-top: 1px solid var(--hairline);
  padding-top: 1.25rem;
}
.listing-spec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ink);
}
.listing-spec-list li { margin: 0; }
.listing-spec-subhead {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 1.25rem 0 0.5rem;
}

.listing-desc {
  max-width: 56rem;
  margin: 0 0 4rem;
}
.listing-section-head {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--hairline);
  margin: 0 0 1.5rem;
}
.listing-desc p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  margin: 0 0 1.25rem;
  max-width: 40rem;
}
.listing-desc p:last-child { margin-bottom: 0; }

.listing-inquire {
  max-width: 44rem;
  padding-top: 2rem;
  border-top: 1px solid var(--hairline);
}
.listing-prefill-note {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 1rem;
}

@media (max-width: 620px) {
  .listing { padding: 1.5rem 0 3rem; }
  .listing-topnav { margin-bottom: 1.5rem; }
  .listing-grid { grid-template-columns: 1fr; gap: 2rem; }
  .listing-info-name { font-size: clamp(1.75rem, 8vw, 2.25rem); }
  .listing-info-subtitle { font-size: 1.125rem; }
  .listing-info-price { font-size: 2rem; }
  .listing-desc, .listing-inquire { margin-bottom: 2.5rem; }
}

/* ══════════════════════════════════════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════════════════════════════════════ */

.contact {
  padding: 4rem 0 4.5rem;
  border-top: 1px solid var(--hairline);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}
.contact-intro {
  font-size: 1.0625rem;
  color: var(--ink-mid);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 32rem;
}
.contact-details {
  display: grid;
  grid-template-columns: auto 1fr;
  row-gap: 0.95rem;
  column-gap: 1.75rem;
}
.contact-details dt { padding-top: 0.15rem; }
.contact-details dd { font-size: 0.95rem; }
.contact-details a {
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 2px;
  transition: border-color 0.25s var(--ease);
}
.contact-details a:hover { border-color: var(--accent); }

/* ── Form ───────────────────────────────────────────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.field input,
.field select,
.field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  padding: 0.65rem 0;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.25s var(--ease);
  border-radius: 0;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.field textarea { resize: vertical; min-height: 8rem; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%23111110' fill='none' stroke-width='1.2'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.25rem center;
  padding-right: 2rem;
}
.field-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.btn-submit,
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--ink);
  color: var(--bone);
  padding: 1.05rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: background 0.3s var(--ease), gap 0.3s var(--ease), padding 0.3s var(--ease);
}
.btn-submit {
  align-self: flex-start;
  margin-top: 0.75rem;
}
.btn-cta {
  margin-top: 2.75rem;
  margin-bottom: 1.75rem;
}
.btn-submit:hover,
.btn-cta:hover {
  background: var(--accent);
  gap: 1.5rem;
  padding-right: 2rem;
}
.btn-submit[disabled] { opacity: 0.5; cursor: wait; }
.btn-arrow { display: inline-block; }

.form-status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  min-height: 1.25rem;
}
.form-status.success { color: var(--accent); }
.form-status.error   { color: #9A3B2E; }

/* ══════════════════════════════════════════════════════════════════════════
   AUTHORIZED RESELLER STRIP
   ══════════════════════════════════════════════════════════════════════════ */

.reseller {
  border-top: 1px solid var(--hairline);
  padding: 3rem 0 3.5rem;
}
.reseller-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-mid);
  text-align: center;
  margin: 0 0 2.5rem;
}
.reseller-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.75rem 1.25rem;
  align-items: center;
  justify-items: center;
}
.reseller-logo {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.65;
  transition: opacity 0.25s var(--ease);
}
.reseller-logo:hover { opacity: 1; }
.reseller-logo span {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-align: center;
  line-height: 1;
  white-space: nowrap;
}
.reseller-logo img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
}

/* ══════════════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════════════ */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 2.5rem 0 2rem;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
}
.footer-mark {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.footer-tagline {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  color: var(--ink-mid);
}
.footer-tagline em { font-style: italic; }
.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  text-align: right;
  font-size: 0.7rem;
}
.footer-admin-link {
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.5;
  transition: opacity 0.2s, color 0.2s;
  text-decoration: none;
}
.footer-admin-link:hover { opacity: 1; color: var(--accent); }

/* ══════════════════════════════════════════════════════════════════════════
   SCROLL REVEAL
   ══════════════════════════════════════════════════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  :root { --container-pad: 2rem; }
  .hero-headline { font-size: clamp(3rem, 8vw, 6rem); }
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1.4fr 1fr;
    row-gap: 2rem;
    align-items: center;
  }
  .hero-meta {
    grid-column: 1 / -1;
    grid-row: 1;
    align-self: auto;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.25rem 2rem;
  }
  .hero-headline {
    grid-column: 1;
    grid-row: 2;
    font-size: clamp(2.5rem, 9vw, 4.5rem);
  }
  .hero-guitar {
    grid-column: 2;
    grid-row: 2;
    justify-content: center;
  }
  .hero-guitar img { max-width: 220px; }
  .hero-scroll {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .services-grid { grid-template-columns: 1fr; }
  .work-grid     { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .market-grid   { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }

  .contact-grid { grid-template-columns: 1fr; gap: 3.5rem; }

  .category-header { grid-template-columns: 1fr; gap: 1.25rem; align-items: start; }
  .category-blurb { grid-template-columns: 1fr; gap: 1rem; padding: 1.75rem; }

  .masthead-seal { width: 156px; height: 156px; }
}

@media (max-width: 620px) {
  :root { --container-pad: 1.25rem; }

  /* Sticky header strip stays visible at mobile so the theme toggle is
     always reachable. Nav links hide; toggle right-aligns. */
  .header-inner {
    grid-template-columns: 1fr;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
  .main-nav { display: none; }
  .theme-toggle {
    grid-column: 1;
    justify-self: end;
  }
  .wordmark-secondary { display: none; }

  .site-masthead { padding: 2.25rem 0 1.5rem; }
  .masthead-seal { width: 130px; height: 130px; }

  .hero { padding: 1.5rem 0 3.5rem; }
  .hero-grid {
    grid-template-columns: 1fr auto;
    column-gap: 1.25rem;
    row-gap: 1.5rem;
  }
  .hero-headline { font-size: clamp(1.5rem, 8.5vw, 3rem); }
  .hero-guitar { justify-content: flex-end; }
  .hero-guitar img {
    width: clamp(110px, 32vw, 150px);
    max-width: none;
    max-height: 240px;
    height: auto;
  }

  .section-title { font-size: clamp(2rem, 9vw, 3.25rem); }

  .philosophy { padding: 3rem 0; }
  .philosophy-text { font-size: 1.5rem; }

  .lightbox-stage { max-width: calc(100vw - 1rem); max-height: calc(100vh - 5rem); }
  .lightbox-img   { max-height: calc(100vh - 5rem); }
  .lightbox-close { top: 0.75rem; right: 0.75rem; width: 40px; height: 40px; }
  .lightbox-nav   { width: 40px; height: 40px; }
  .lightbox-prev  { left: 0.5rem; }
  .lightbox-next  { right: 0.5rem; }
  .lightbox-counter { bottom: 1rem; }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .footer-meta { text-align: left; }

  .reseller { padding: 2.5rem 0 2.75rem; }
  .reseller-label { margin-bottom: 1.75rem; }
  .reseller-grid {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 1.25rem 1rem;
  }
  .reseller-logo span { font-size: 0.8rem; }

  .market-card-caption { padding: 0.7rem 0.85rem 0.85rem; gap: 0.25rem; }
  .market-card-num { font-size: 0.625rem; }
  .market-card-name { font-size: 1.1rem; min-height: 2.1em; }
  .market-card-desc { font-size: 0.75rem; min-height: 2.55em; }

  .category { padding: 1.5rem 0 3.5rem; }
  .category-title { font-size: clamp(2.5rem, 12vw, 4rem); }
  .category-coming { padding: 3.5rem 1.25rem; }
  .category-blurb { padding: 1.5rem; }
  .category-blurb-text { font-size: 1.15rem; }
  .listings-index { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .listing-card-body { padding: 0.9rem 0.9rem 1.1rem; }
  .listing-card-name { font-size: 1.05rem; }
  .listing-card-spec { font-size: 0.75rem; }
}

/* ── Reduced motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ══════════════════════════════════════════════════════════════════════════
   DARK MODE — granular overrides
   The palette block at the top of this file flips the CSS variables, which
   handles ~90% of the site. The rules below cover the remaining cases —
   selectors that hardcode color/rgba values and can't be reached by var
   substitution alone.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Grain overlay: invert blend mode so the noise lifts the dark bg ────── */
[data-theme="dark"] .grain {
  mix-blend-mode: screen;
  opacity: 0.04;
}

/* ── Sticky nav: dark warm-black backdrop with translucent bone hairline ── */
[data-theme="dark"] .site-header {
  background: rgba(20, 17, 13, 0.92);
  border-bottom-color: rgba(242, 238, 229, 0.10);
}

/* ── SVG asset color flips: swap the rendered file via CSS content ──────── */
[data-theme="dark"] .masthead-seal { content: url('/img/logo-dark.svg'); }
[data-theme="dark"] .hero-guitar img { content: url('/img/rhoads-dark.svg'); }

/* ── Dashed dividers in service-spec lists: hairline-tinted dashes ──────── */
[data-theme="dark"] .service-specs li {
  border-bottom-color: rgba(163, 155, 138, 0.30);
}

/* ── Form select chevron: re-encode SVG with bone stroke ────────────────── */
[data-theme="dark"] .field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%23F2EEE5' fill='none' stroke-width='1.2'/></svg>");
}

/* ── Form status colors: warm-leaning to match dark palette ─────────────── */
[data-theme="dark"] .form-status.error { color: #D45A4F; }

/* ── Sold ribbon: keep the dark-veil look but use bone instead of pure white
       so it sits in the Workshop palette rather than feeling out-of-system ── */
[data-theme="dark"] .listing-card.is-sold .listing-card-image::after {
  color: rgba(242, 238, 229, 0.96);
  background: rgba(20, 17, 13, 0.82);
  border-color: rgba(242, 238, 229, 0.40);
}

/* ── Listing-card hold pill: lighten the amber for legibility on dark ──── */
[data-theme="dark"] .listing-card-status.hold,
[data-theme="dark"] .listing-card-status.hold::before {
  color: #D89E48;
}

/* ── Marketplace category card: caption strip & hover overlay are intentionally
       dark in BOTH modes (they sit over photographs, not the page bg). The
       small color-shift below just nudges them into the warm-dark palette so
       they don't read as a different shade of black on a Workshop background. */
[data-theme="dark"] .market-card-caption {
  background: rgba(20, 17, 13, 0.85);
}
[data-theme="dark"] .market-card-overlay {
  background: rgba(20, 17, 13, 0.94);
}

/* ── Lightbox: also intentionally always-dark; no override needed. The bone
       border on the close/nav buttons (rgba 242,238,229,0.3) already reads as
       expected in both modes. ───────────────────────────────────────────── */
