/* jmpa.io — follows jcleal.me design language */

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

*, *::before, *::after { box-sizing: border-box; }
a { text-decoration: none; }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

::-moz-selection { background: var(--text); color: var(--bg); text-shadow: none; }
::selection      { background: var(--text); color: var(--bg); text-shadow: none; }

:root {
  --bg:       #faf8f4;
  --bg-sub:   #f2ede6;
  --bg-card:  #ffffff;
  --border:   #e8e0d4;
  --text:     #1c1a17;
  --muted:    #8c8070;
  --subtle:   #5c5448;
  --accent:   #5c5448;
  --accent-glow: rgba(28,26,23,0.04);
  --red:      #c03030;
  --font:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display:   'Playfair Display', Georgia, serif;
  --font-display-2: 'DM Serif Display', Georgia, serif;
  --font-display-3: 'Cormorant Garamond', Georgia, serif;
  --font-display-4: 'Fraunces', Georgia, serif;
  --shadow:   0 2px 12px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 28px rgba(0,0,0,0.11);
  --radius:   10px;
}

html.dark {
  --bg:       #1e1b18;
  --bg-sub:   #272320;
  --bg-card:  #272320;
  --border:   #3a342c;
  --text:     #f5f0ea;
  --muted:    #9a8e80;
  --subtle:   #a09080;
  --accent:   #f0ebe4;
  --accent-glow: rgba(240,235,228,0.05);
  --shadow:   0 2px 12px rgba(0,0,0,0.35);
  --shadow-hover: 0 8px 28px rgba(0,0,0,0.5);
}

/* ── Palette themes — accent/accent-glow/accent-bg bridged from css/palette.css, blobs stay local ── */
html.ocean   { --blob-a: rgba(14,100,200,0.22);  --blob-b: rgba(0,180,220,0.18);  --blob-c: rgba(80,140,255,0.18); }
html.forest  { --blob-a: rgba(20,160,60,0.22);   --blob-b: rgba(80,200,80,0.18);  --blob-c: rgba(40,120,40,0.18); }
html.sunset  { --blob-a: rgba(240,80,20,0.24);   --blob-b: rgba(255,160,20,0.20); --blob-c: rgba(200,40,60,0.18); }
html.violet  { --blob-a: rgba(100,40,220,0.22);  --blob-b: rgba(160,80,240,0.18); --blob-c: rgba(60,20,160,0.18); }
html.yellow  { --blob-a: rgba(220,180,0,0.24);   --blob-b: rgba(255,210,40,0.20); --blob-c: rgba(180,120,0,0.18); }
html.grey    { --blob-a: rgba(80,100,140,0.22);  --blob-b: rgba(120,140,180,0.18); --blob-c: rgba(60,80,120,0.18); }
html.purple  { --blob-a: rgba(220,20,120,0.24);  --blob-b: rgba(180,40,200,0.18); --blob-c: rgba(240,80,160,0.18); }
html.crimson { --blob-a: rgba(190,20,50,0.22);   --blob-b: rgba(230,60,90,0.18);  --blob-c: rgba(140,10,40,0.18); }
html.teal    { --blob-a: rgba(20,140,130,0.22);  --blob-b: rgba(40,180,170,0.18); --blob-c: rgba(10,100,95,0.18); }
html.dark.ocean   { --blob-a: rgba(14,100,200,0.26);  --blob-b: rgba(0,160,220,0.22);  --blob-c: rgba(60,120,255,0.22); }
html.dark.forest  { --blob-a: rgba(20,140,50,0.26);   --blob-b: rgba(60,180,60,0.22);  --blob-c: rgba(30,100,30,0.22); }
html.dark.sunset  { --blob-a: rgba(220,60,20,0.28);   --blob-b: rgba(240,140,20,0.24); --blob-c: rgba(180,30,50,0.22); }
html.dark.violet  { --blob-a: rgba(80,30,200,0.26);   --blob-b: rgba(140,60,220,0.22); --blob-c: rgba(50,15,140,0.22); }
html.dark.yellow  { --blob-a: rgba(200,160,0,0.28);   --blob-b: rgba(240,190,30,0.24); --blob-c: rgba(160,100,0,0.22); }
html.dark.grey    { --blob-a: rgba(60,80,120,0.26);   --blob-b: rgba(100,120,160,0.22); --blob-c: rgba(40,60,100,0.22); }
html.dark.purple  { --blob-a: rgba(200,15,100,0.28);  --blob-b: rgba(160,30,180,0.22); --blob-c: rgba(220,60,140,0.22); }
html.dark.crimson { --blob-a: rgba(220,30,60,0.26);   --blob-b: rgba(255,80,110,0.22); --blob-c: rgba(180,20,60,0.22); }
html.dark.teal    { --blob-a: rgba(30,170,160,0.26);  --blob-b: rgba(50,210,200,0.22); --blob-c: rgba(20,130,125,0.22); }

html.ocean, html.forest, html.sunset, html.violet, html.yellow, html.grey, html.purple, html.crimson, html.teal,
html.dark.ocean, html.dark.forest, html.dark.sunset, html.dark.violet, html.dark.yellow, html.dark.grey, html.dark.purple, html.dark.crimson, html.dark.teal {
  --accent:      var(--pal-accent);
  --accent-glow: var(--pal-subtle);
  --accent-bg:   var(--pal-subtle);
}

@keyframes blob-a {
  0%   { transform: translate(0,    0)    scale(1); }
  33%  { transform: translate(6%,  -4%)   scale(1.08); }
  66%  { transform: translate(-4%,  6%)   scale(0.95); }
  100% { transform: translate(0,    0)    scale(1); }
}
@keyframes blob-b {
  0%   { transform: translate(0,    0)    scale(1); }
  33%  { transform: translate(-5%,  5%)   scale(0.94); }
  66%  { transform: translate(5%,  -3%)   scale(1.07); }
  100% { transform: translate(0,    0)    scale(1); }
}
@keyframes blob-c {
  0%   { transform: translate(0,    0)    scale(1); }
  50%  { transform: translate(4%,   4%)   scale(1.05); }
  100% { transform: translate(0,    0)    scale(1); }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.8em;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.4s, color 0.2s;
  position: relative;
  overflow-x: hidden;
}

/* blobs sit fixed behind everything */
.jmpa-blob {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
  z-index: 0;
  filter: blur(100px);
  opacity: 1;
}
.jmpa-blob-a {
  width: 50vw; height: 50vw;
  top: -10%; left: -10%;
  background: var(--blob-a, rgba(230, 90, 60, 0.22));
  animation: blob-a 9s ease-in-out infinite;
  transition: background 1s ease;
}
.jmpa-blob-b {
  width: 40vw; height: 40vw;
  bottom: -20%; right: -8%;
  background: var(--blob-b, rgba(40, 140, 200, 0.18));
  animation: blob-b 12s ease-in-out infinite;
  transition: background 1s ease;
}
.jmpa-blob-c {
  width: 32vw; height: 32vw;
  top: 30%; left: 50%;
  background: var(--blob-c, rgba(210, 170, 20, 0.18));
  animation: blob-c 15s ease-in-out infinite;
  filter: blur(120px);
  transition: background 1s ease;
}
.jmpa-blob-d {
  width: 44vw; height: 44vw;
  bottom: -15%; left: -8%;
  background: var(--blob-a, rgba(230, 90, 60, 0.16));
  animation: blob-a 11s ease-in-out infinite reverse;
  transition: background 1s ease;
}
html.dark .jmpa-blob-a { background: var(--blob-a, rgba(200, 70, 40, 0.22)); }
html.dark .jmpa-blob-b { background: var(--blob-b, rgba(30, 100, 180, 0.22)); }
html.dark .jmpa-blob-c { background: var(--blob-c, rgba(170, 130, 10, 0.18)); }
html.dark .jmpa-blob-d { background: var(--blob-a, rgba(200, 70, 40, 0.18)); }

/* everything sits above the blobs */
.jmpa-nav,
.jmpa-content-gradient,
.jmpa-footer {
  position: relative;
  z-index: 1;
}

html.dark body { color: #c8c8c8; }
html.dark h1, html.dark h2, html.dark h3,
html.dark h4, html.dark h5, html.dark h6 { color: #f0f0f0; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }
* { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
html.dark ::-webkit-scrollbar-thumb { background: #3a3630; }
html.dark ::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ── Nav ── */
.jmpa-nav {
  height: 54px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.jmpa-nav-inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 8px;
}
.jmpa-nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1em;
  font-weight: 700;
  color: #000;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}
.jmpa-nav-logo:hover { color: #000; }
html.dark .jmpa-nav-logo { color: #fff; }
html.dark .jmpa-nav-logo:hover { color: #fff; }
.jmpa-brand-tld { color: inherit; }
.jmpa-nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
  padding-left: 20px;
}
.jmpa-nav-links a {
  font-size: 0.82em;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  font-weight: 400;
}
.jmpa-nav-links a:hover {
  color: var(--text);
  border-color: var(--border);
  background: var(--accent-bg, var(--bg-sub));
}
.jmpa-nav-links a.active {
  color: var(--accent);
  font-weight: 500;
  border-color: var(--accent);
  background: var(--accent-bg, var(--bg-sub));
}
html.dark .jmpa-nav-links a:hover { border-color: #484848; background: var(--bg-sub); }
html.dark .jmpa-nav-links a.active { border-color: var(--accent); background: var(--accent-bg, var(--bg-sub)); }

/* theme toggle */
.jmpa-theme-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.jmpa-theme-btn:hover {
  border-color: var(--subtle);
  color: var(--text);
  background: var(--bg-sub);
}
html.dark .jmpa-theme-btn { border-color: #484848; color: #909090; }
html.dark .jmpa-theme-btn:hover {
  border-color: var(--subtle);
  color: var(--text);
  background: var(--bg-sub);
}
.jmpa-theme-btn svg { width: 14px; height: 14px; }

/* nav button tooltips — theme and cart only, not palette (has its own popup) */
.jmpa-theme-btn,
.jmpa-cart-btn {
  position: relative;
}
.jmpa-theme-btn::after,
.jmpa-cart-btn::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  font-size: 0.68em;
  font-weight: 500;
  white-space: nowrap;
  padding: 3px 8px;
  border-radius: 3px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s;
  z-index: 150;
}
.jmpa-theme-btn:hover::after,
.jmpa-cart-btn:hover::after {
  opacity: 1;
}

/* cart button */
.jmpa-cart-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  height: 28px;
  padding: 0 10px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82em;
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.jmpa-cart-btn:hover {
  border-color: var(--subtle);
  color: var(--text);
  background: var(--bg-sub);
}
html.dark .jmpa-cart-btn { border-color: #484848; color: #909090; }
html.dark .jmpa-cart-btn:hover {
  border-color: var(--subtle);
  color: var(--text);
  background: var(--bg-sub);
}
.jmpa-cart-btn svg { width: 14px; height: 14px; }
.jmpa-cart-count { color: var(--text); }
html.dark .jmpa-cart-count { color: #c8c8c8; }

/* ── Palette picker ── */
.jmpa-palette-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.jmpa-palette-trigger {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, background 0.15s;
}
html.ocean .jmpa-palette-trigger,
html.forest .jmpa-palette-trigger,
html.sunset .jmpa-palette-trigger,
html.violet .jmpa-palette-trigger,
html.yellow .jmpa-palette-trigger,
html.grey .jmpa-palette-trigger,
html.purple .jmpa-palette-trigger,
html.crimson .jmpa-palette-trigger,
html.teal .jmpa-palette-trigger {
  border-color: var(--accent);
  color: var(--accent);
}
html.ocean .jmpa-palette-trigger circle,
html.forest .jmpa-palette-trigger circle,
html.sunset .jmpa-palette-trigger circle,
html.violet .jmpa-palette-trigger circle,
html.yellow .jmpa-palette-trigger circle,
html.grey .jmpa-palette-trigger circle,
html.purple .jmpa-palette-trigger circle,
html.crimson .jmpa-palette-trigger circle,
html.teal .jmpa-palette-trigger circle {
  fill: var(--accent);
}
.jmpa-palette-trigger:hover {
  border-color: var(--subtle);
  background: var(--bg-sub);
}
html.dark .jmpa-palette-trigger { border-color: #484848; }
html.dark .jmpa-palette-trigger:hover {
  border-color: var(--subtle);
  background: var(--bg-sub);
}
.jmpa-palette-popup {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px;
  gap: 6px;
  flex-direction: row;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  z-index: 500;
  white-space: nowrap;
}
.jmpa-palette-popup.open { display: flex; }
html.dark .jmpa-palette-popup { box-shadow: 0 4px 14px rgba(0,0,0,0.5); }
.jmpa-palette-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.1s, transform 0.1s;
  padding: 0;
  background: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.jmpa-palette-btn:hover { border-color: #aaa; transform: scale(1.15); }
.jmpa-palette-btn.active { border-color: #333; }
html.dark .jmpa-palette-btn.active { border-color: #eee; }

/* hide legacy season stuff */
.jmpa-season-wrap { display: none; }
.jmpa-nav-sep { display: none; }

.jmpa-nav-logo-img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  /* remove sky background in light mode */
  mix-blend-mode: multiply;
}
html.dark .jmpa-nav-logo-img {
  mix-blend-mode: normal;
}

/* ── Cart drawer ── */
.jmpa-cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
}
.jmpa-cart-overlay.open { display: block; }
.jmpa-cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 340px;
  max-width: 100vw;
  height: 100vh;
  background: var(--bg);
  border-left: 1px solid var(--border);
  box-shadow: -4px 0 24px rgba(0,0,0,0.1);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.2s ease;
}
.jmpa-cart-drawer.open { transform: translateX(0); }
.jmpa-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.jmpa-cart-header-left { display: flex; align-items: center; gap: 8px; }
.jmpa-cart-header-icon svg { width: 14px; height: 14px; color: var(--muted); stroke: var(--muted); }
.jmpa-cart-header h2 { margin: 0; font-size: 0.82em; font-weight: 600; color: var(--text); letter-spacing: 0.04em; }
.jmpa-cart-header-count {
  font-size: 0.72em; color: #fff; background: var(--accent);
  border-radius: 10px; padding: 1px 7px; font-weight: 600;
  min-width: 18px; text-align: center;
}
html.dark .jmpa-cart-header-count { color: var(--bg); }
.jmpa-cart-close {
  background: none; border: 1px solid var(--border); color: var(--muted);
  width: 28px; height: 28px; border-radius: 4px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.15s, color 0.15s;
}
.jmpa-cart-close:hover { border-color: var(--accent); color: var(--accent); }
.jmpa-cart-close svg { width: 12px; height: 12px; }
.jmpa-cart-items { flex: 1; overflow-y: auto; }
.jmpa-cart-item {
  display: flex; align-items: center;
  padding: 14px 20px; gap: 12px;
  border-bottom: 1px solid var(--border); font-size: 0.84em;
}
.jmpa-cart-item-info { flex: 1; min-width: 0; }
.jmpa-cart-item-title { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; margin-bottom: 3px; font-weight: 500; }
.jmpa-cart-item-price { color: var(--muted); font-size: 0.9em; }
.jmpa-cart-item-remove {
  background: none; border: none; color: var(--border);
  cursor: pointer; padding: 4px; display: flex; align-items: center;
  transition: color 0.1s;
}
.jmpa-cart-item-remove:hover { color: var(--red); }
.jmpa-cart-item-remove svg { width: 12px; height: 12px; }
.jmpa-cart-empty {
  color: var(--muted); font-size: 0.82em; text-align: center;
  padding: 48px 24px; line-height: 1.8;
}
.jmpa-cart-footer {
  padding: 18px 20px;
  border-top: 1px solid var(--border);
}
.jmpa-cart-total {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.jmpa-cart-total-label { font-size: 0.76em; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.jmpa-cart-total-value { font-size: 1em; color: var(--text); font-weight: 600; }
.jmpa-checkout-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; background: var(--accent); color: #fff;
  border: none; padding: 11px; font-family: var(--font); font-size: 0.82em;
  letter-spacing: 0.04em; cursor: pointer; border-radius: 4px;
  transition: opacity 0.15s; font-weight: 500;
}
.jmpa-checkout-btn:hover { opacity: 0.85; }
html.dark .jmpa-checkout-btn { color: var(--bg); }
.jmpa-checkout-icon svg { width: 13px; height: 13px; }
.jmpa-checkout-note { font-size: 0.7em; color: var(--muted); text-align: center; margin-top: 10px; line-height: 1.5; }

/* ── Page wrapper ── */
.jmpa-content-gradient {
  background: transparent;
  padding: 0;
  min-height: 100vh;
}

/* ── Homepage ── */
.jmpa-home {
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
/* hero — editorial single column */
.jmpa-hero {
  padding: 80px 0 64px;
}
.jmpa-hero-eyebrow {
  font-size: 0.72em;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 24px;
}
.jmpa-hero h1 {
  font-family: var(--font-display-4);
  font-size: 3.6em;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 24px;
}
html.dark .jmpa-hero h1 { color: #f0ebe4; }
.jmpa-hero-sub {
  font-size: 1.05em;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 40px;
  max-width: 480px;
}
.jmpa-hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.jmpa-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9em;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1.5px solid var(--text);
  padding-bottom: 2px;
  transition: opacity 0.15s;
}
.jmpa-hero-cta:hover { opacity: 0.5; }
html.dark .jmpa-hero-cta { color: #f0ebe4; border-color: #f0ebe4; }
.jmpa-hero-cta-icon { display: inline-flex; align-items: center; gap: 6px; }
.jmpa-hero-cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9em;
  font-weight: 400;
  color: var(--muted);
  transition: color 0.12s;
}
.jmpa-hero-cta-ghost:hover { color: var(--text); }

/* secondary nav links */
.jmpa-home-links {
  display: flex;
  flex-direction: column;
}
.jmpa-home-link {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  transition: color 0.12s;
}
.jmpa-home-link:first-child { border-top: 1px solid var(--border); }
.jmpa-home-link:hover { color: var(--accent); }
.jmpa-home-link:hover .jmpa-home-link-desc { color: var(--accent); opacity: 0.7; }
.jmpa-home-link:hover .jmpa-home-link-arrow { color: var(--accent); }
.jmpa-home-link-name {
  font-size: 0.88em;
  font-weight: 500;
  flex-shrink: 0;
  width: 120px;
  color: inherit;
}
.jmpa-home-link-desc {
  font-size: 0.84em;
  color: var(--muted);
  flex: 1;
  line-height: 1.5;
  transition: color 0.12s;
}
.jmpa-home-link-arrow {
  font-size: 0.84em;
  color: var(--border);
  flex-shrink: 0;
  transition: color 0.12s;
}

@media (max-width: 640px) {
  .jmpa-hero { padding: 40px 0 40px; }
  .jmpa-hero h1 { font-size: 2.2em; }
  .jmpa-home-link-name { width: 90px; }
}

/* ── Homepage: recently sold ── */
.jmpa-sold-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 88px;
}
.jmpa-sold-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 40px;
  margin-bottom: 32px;
}
.jmpa-sold-eyebrow {
  font-size: 0.72em;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
.jmpa-sold-heading {
  font-family: var(--font-display);
  font-size: 1.7em;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}
html.dark .jmpa-sold-heading { color: #f0ebe4; }

@media (max-width: 640px) {
  .jmpa-sold-cards { grid-template-columns: 1fr; }
}

/* ── Art cards ── */
.art-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.art-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: default;
  transition: box-shadow 0.2s, transform 0.2s;
}
.art-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.art-card-img-wrap {
  position: relative;
  background: var(--bg-sub);
  overflow: hidden;
}
.art-card-img-count {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,0.45); color: #fff;
  font-size: 0.68em; padding: 2px 7px; border-radius: 10px;
  pointer-events: none;
}
.art-card-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}
.art-card:hover .art-card-img { transform: scale(1.03); }
.art-card-img-placeholder {
  width: 100%; aspect-ratio: 1;
  background: var(--bg-sub);
  display: flex; align-items: center; justify-content: center;
  color: var(--border); font-size: 0.76em; font-style: italic;
}
.art-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}
.art-card-tag {
  font-size: 0.68em;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.art-card-title {
  font-size: 0.88em;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}
html.dark .art-card-title { color: #f0ebe4; }
.art-card-medium { font-size: 0.75em; color: var(--muted); margin-bottom: 4px; }
.art-card-price {
  font-size: 0.9em;
  color: var(--text);
  font-weight: 600;
  margin: 6px 0 10px;
}
html.dark .art-card-price { color: #f0ebe4; }
.art-add-cart-btn {
  display: block; width: 100%;
  padding: 9px; font-family: var(--font); font-size: 0.77em;
  letter-spacing: 0.03em; text-align: center;
  color: var(--subtle); background: transparent;
  border: 1px solid var(--muted); border-radius: 6px; cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s; font-weight: 500;
  margin-top: auto;
}
.art-add-cart-btn:hover {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}
.art-sold-badge {
  display: block; width: 100%;
  padding: 9px; font-family: var(--font); font-size: 0.77em;
  letter-spacing: 0.03em; text-align: center;
  background: transparent; color: var(--muted);
  border: 1px solid var(--border); border-radius: 6px;
  font-weight: 400; font-style: italic;
  margin-top: auto;
}

/* lightbox */
.jmpa-lightbox {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.92); align-items: center; justify-content: center;
}
.jmpa-lightbox.open { display: flex; }
.jmpa-lightbox img { max-width: 88vw; max-height: 88vh; object-fit: contain; border-radius: 2px; }
.jmpa-lightbox-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; color: white; font-size: 1.8rem; line-height: 1;
  cursor: pointer; opacity: 0.7; padding: 4px 8px; z-index: 1001;
}
.jmpa-lightbox-close:hover { opacity: 1; }
.jmpa-lightbox-prev, .jmpa-lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.08); border: none; color: white;
  font-size: 1.6rem; padding: 14px 12px; cursor: pointer; border-radius: 4px;
  opacity: 0.7; z-index: 1001; line-height: 1;
}
.jmpa-lightbox-prev:hover, .jmpa-lightbox-next:hover { opacity: 1; }
.jmpa-lightbox-prev { left: 12px; }
.jmpa-lightbox-next { right: 12px; }
.jmpa-lightbox-prev.hidden, .jmpa-lightbox-next.hidden { display: none; }

/* ── Footer ── */
.jmpa-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78em;
  margin-top: auto;
}
.jmpa-footer-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 36px 24px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
.jmpa-footer-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.jmpa-footer-brand {
  font-size: 1.1em;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.jmpa-footer-tagline {
  color: var(--muted);
  line-height: 1.5;
  max-width: 220px;
}
.jmpa-footer-right {
  display: flex;
  flex-wrap: wrap;
  flex: 1;
  gap: 10px 20px;
  justify-content: flex-end;
  align-items: center;
}
.jmpa-footer-instagram {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text);
  font-weight: 500;
  opacity: 0.85;
  transition: color 0.15s, opacity 0.15s;
}
.jmpa-footer-instagram:hover { color: var(--accent); opacity: 1; }
.jmpa-footer-link { color: var(--muted); transition: color 0.15s; }
.jmpa-footer-link:hover { color: var(--accent); }
.jmpa-footer-link-icon { display: inline-flex; align-items: center; gap: 5px; }
.jmpa-footer-bottom {
  max-width: 800px;
  margin: 0 auto;
  padding: 14px 24px 22px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.jmpa-back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.jmpa-back-to-top:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

/* ── Page container — all inner pages ── */
.page {
  max-width: 800px;
  margin: 0 auto;
  padding: 56px 24px 88px;
}

/* ── Page header ── */
.page-header {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 44px;
}
.page-eyebrow {
  font-size: 0.72em;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}
.page-header h1 {
  font-family: var(--font-display-2);
  font-size: 2.4em;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 14px;
}
html.dark .page-header h1 { color: #f0ebe4; }
.page-lead {
  font-size: 0.95em;
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

/* ── Page sections ── */
.page-section {
  margin-bottom: 36px;
}
.page-section:last-child { margin-bottom: 0; }
.page-section h2 {
  font-size: 0.72em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 10px;
}
.page-section p {
  color: var(--subtle);
  line-height: 1.9;
  margin: 0 0 12px;
}
html.dark .page-section p { color: #c0bab0; }
.page-section ul {
  padding-left: 1.4em;
  margin: 0 0 12px;
}
.page-section li {
  color: var(--subtle);
  line-height: 1.9;
}
html.dark .page-section li { color: #c0bab0; }
.page-section a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-section a.page-cta {
  color: #fff;
  text-decoration: none;
}

/* ── Page CTA ── */
.page-cta {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.85em;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 10px 22px;
  border-radius: 6px;
  transition: opacity 0.15s;
}
.page-cta:hover { opacity: 0.85; }
html.dark .page-cta { color: var(--bg); }
.page-cta-icon { display: inline-flex; align-items: center; gap: 7px; }

/* ── Page inline links ── */
.page-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.page-link {
  font-size: 0.82em;
  color: var(--muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 7px 16px;
  border-radius: 4px;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.page-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.page-link-icon {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ── About profile ── */
.about-profile {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}
.about-photo {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  margin-top: 4px;
}
.about-bio h1 {
  font-family: var(--font-display-3);
  font-size: 2em;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 6px;
}
html.dark .about-bio h1 { color: #f0ebe4; }
.about-tagline {
  font-size: 0.84em;
  color: var(--muted);
  margin: 0 0 16px;
}
.about-bio p {
  font-size: 0.93em;
  color: var(--subtle);
  line-height: 1.85;
  margin: 0 0 10px;
}
html.dark .about-bio p { color: #c0bab0; }

/* ── Art page header ── */
.art-grid {
  max-width: 800px;
  margin: 0 auto;
  padding: 56px 24px 88px;
}
.art-grid-header {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}
.art-grid-header .page-eyebrow {
  text-align: left;
  margin-bottom: 12px;
}
.art-grid-header h1 {
  font-family: var(--font-display);
  font-size: 2.4em;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 14px;
  text-align: left;
}
html.dark .art-grid-header h1 { color: #f0ebe4; }
.art-divider { display: none; }
.art-grid-header p {
  font-size: 0.95em;
  color: var(--muted);
  margin: 0;
  line-height: 1.75;
  text-align: left;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .art-cards { grid-template-columns: repeat(3, 1fr); }
  .jmpa-nav-links a { font-size: 0.78em; }
}

/* ── Hamburger button ── */
.jmpa-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.jmpa-hamburger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--muted);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.jmpa-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.jmpa-hamburger.open span:nth-child(2) { opacity: 0; }
.jmpa-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile menu drawer ── */
.jmpa-mobile-menu {
  display: none;
  position: fixed;
  top: 52px;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 998;
  padding: 12px 24px 16px;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.jmpa-mobile-menu.open { display: flex; }
.jmpa-mobile-menu a {
  font-size: 1em;
  font-weight: 500;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: color 0.15s, background 0.15s;
}
.jmpa-mobile-menu a:hover { color: var(--text); background: var(--bg-sub); }
.jmpa-mobile-menu a.active { color: var(--accent); background: var(--accent-bg, var(--bg-sub)); border-color: var(--accent); }

@media (max-width: 640px) {
  .art-cards { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .jmpa-nav-links { display: none; }
  .jmpa-hamburger { display: flex; }
  .jmpa-cart-drawer { width: 100vw; }
  .about-profile { flex-direction: column; gap: 20px; }
  .about-photo { width: 88px; height: 88px; }
  .page-header h1, .about-bio h1, .art-grid-header h1 { font-size: 1.9em; }

  /* footer: stack vertically on mobile */
  .jmpa-footer-inner { flex-direction: column; gap: 20px; align-items: flex-start; }
  .jmpa-footer-right { justify-content: flex-start; }
  .jmpa-footer-bottom { flex-direction: row; }
}

@media (max-width: 400px) {
  .art-cards { grid-template-columns: 1fr; }
}

/* ── Back to top — more visible ── */
.jmpa-back-to-top {
  border-color: #555 !important;
  color: #999 !important;
}
.jmpa-back-to-top:hover {
  border-color: #aaa !important;
  color: #eee !important;
}
