/**
 * aperture theme CSS — byte-for-byte port of
 *   /Volumes/x9/claude-design/ui_kits/aperture/{index,blog,post,page}.html
 *
 * Generated by scripts/port-theme-css.py.
 *
 * NOTE: top-level `:root` and `html, body` selectors are mechanically
 * rewritten to `body[data-theme="aperture"]` so multiple theme.css
 * files can coexist in the bundle without overriding each other's
 * CSS custom properties. Other selectors (.brand, .nav-link, etc.)
 * are preserved verbatim from source — they reference var(--bg)/
 * var(--fg) which inherit from the scoped body.
 */

/* ===== aperture/index.html <style> ===== */
body[data-theme="aperture"], [data-theme="aperture"] {
    overflow-x: clip;
    --ap-bg: #0a0a0a;
    --ap-fg: #f0ece4;
    --ap-muted: rgba(240,236,228,0.6);
    --ap-subtle: rgba(240,236,228,0.4);
    --ap-hairline: rgba(255,255,255,0.08);
  }
  [data-theme="aperture"] * { box-sizing: border-box; }
  body[data-theme="aperture"], [data-theme="aperture"] {
    margin: 0; padding: 0;
    background: var(--ap-bg); color: var(--ap-fg);
    font-family: "Inter", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
  }

  /* Minimal fixed nav */
  [data-theme="aperture"] nav.site-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    padding: 20px 40px;
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(10,10,10,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ap-hairline);
  }
  [data-theme="aperture"] .nav-brand {
    font-size: 13px; font-weight: 700;
    letter-spacing: 0.25em; text-transform: uppercase;
    color: var(--ap-fg); text-decoration: none;
  }
  [data-theme="aperture"] .nav-links { display: flex; gap: 36px; }
  [data-theme="aperture"] .nav-link {
    font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
    color: #888; text-decoration: none; transition: color 200ms;
  }
  [data-theme="aperture"] .nav-link:hover { color: var(--ap-fg); }
  [data-theme="aperture"] .nav-right { display: flex; align-items: center; gap: 18px; }
  [data-theme="aperture"] .nav-member {
    font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--ap-fg); text-decoration: none;
    border: 1px solid rgba(240,236,228,0.25);
    padding: 7px 14px;
    white-space: nowrap;
  }

  /* Full-bleed hero */
  [data-theme="aperture"] .hero {
    position: relative; width: 100%;
    height: 100vh; min-height: 600px;
    overflow: hidden;
  }
  [data-theme="aperture"] .hero-image {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    background-image:
      linear-gradient(135deg, rgba(0,0,0,0.4), rgba(0,0,0,0.1)),
      linear-gradient(160deg, #1a1a1a 0%, #0a0a0a 100%);
    filter: contrast(1.05) saturate(0.85);
  }
  [data-theme="aperture"] .hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 35%, transparent 70%);
  }
  [data-theme="aperture"] .hero-vignette {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.5) 100%);
    pointer-events: none;
  }
  [data-theme="aperture"] .exif-badge {
    position: absolute; top: 110px; left: 40px;
    display: flex; align-items: center; gap: 12px;
    font-family: "Space Grotesk", monospace;
    font-size: 11px;
    color: var(--ap-subtle);
    white-space: nowrap;
  }
  [data-theme="aperture"] .exif-badge .tag {
    padding: 3px 9px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 2px;
    font-size: 10px; font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--ap-fg);
  }
  [data-theme="aperture"] .exif-badge .dot { width: 3px; height: 3px; border-radius: 999px; background: var(--ap-subtle); }

  [data-theme="aperture"] .hero-content {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 0 40px 80px;
    max-width: 1400px;
    margin: 0 auto;
  }
  [data-theme="aperture"] .hero-eyebrow {
    font-size: 11px;
    letter-spacing: 0.25em; text-transform: uppercase;
    color: rgba(240,236,228,0.8);
    margin: 0 0 14px;
  }
  [data-theme="aperture"] .hero-title {
    font-size: clamp(40px, 5.5vw, 72px);
    font-weight: 700; line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--ap-fg);
    max-width: 18ch;
    margin: 0 0 16px;
  }
  [data-theme="aperture"] .hero-excerpt {
    font-size: 18px;
    line-height: 1.5;
    color: var(--ap-muted);
    max-width: 36em;
    margin: 0 0 28px;
  }
  [data-theme="aperture"] .view-story {
    display: inline-block;
    background: var(--ap-fg); color: var(--ap-bg);
    padding: 12px 26px;
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.15em; text-transform: uppercase;
    text-decoration: none;
    transition: opacity 200ms;
  }
  [data-theme="aperture"] .view-story:hover { opacity: 0.78; }
  [data-theme="aperture"] .scroll-hint {
    position: absolute; bottom: 24px; right: 40px;
    font-size: 10px;
    letter-spacing: 0.25em; text-transform: uppercase;
    color: var(--ap-subtle);
  }

  /* Section heading */
  [data-theme="aperture"] .section-head {
    max-width: 1400px;
    margin: 0 auto;
    padding: 96px 40px 32px;
    display: flex; justify-content: space-between; align-items: end;
    flex-wrap: wrap; gap: 24px;
  }
  [data-theme="aperture"] .section-eyebrow {
    font-size: 10px;
    letter-spacing: 0.3em; text-transform: uppercase;
    color: var(--ap-subtle);
    margin: 0 0 14px;
  }
  [data-theme="aperture"] .section-title {
    font-family: "Inter", sans-serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700; letter-spacing: -0.02em;
    line-height: 1.05;
    color: var(--ap-fg); margin: 0;
  }
  [data-theme="aperture"] .section-cta {
    font-size: 11px;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--ap-fg); text-decoration: none;
    display: inline-flex; align-items: center; gap: 8px;
  }

  /* Masonry-ish post grid */
  [data-theme="aperture"] .grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 96px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 24px;
  }
  [data-theme="aperture"] .post {
    text-decoration: none; color: inherit;
    display: block; position: relative;
  }
  [data-theme="aperture"] .post-img {
    width: 100%; aspect-ratio: 4/5;
    background-size: cover; background-position: center;
    filter: grayscale(0.45) contrast(1.05);
    transition: filter 400ms;
  }
  [data-theme="aperture"] .post:hover .post-img { filter: grayscale(0) contrast(1.05); }
  [data-theme="aperture"] .post.tall .post-img { aspect-ratio: 4/6.2; }
  [data-theme="aperture"] .post.short .post-img { aspect-ratio: 4/3.6; }
  [data-theme="aperture"] .post-meta {
    font-family: "Space Grotesk", monospace;
    font-size: 10px;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--ap-subtle);
    margin: 14px 0 6px;
    display: flex; gap: 10px; align-items: center;
  }
  [data-theme="aperture"] .post-meta .dot { width: 3px; height: 3px; border-radius: 999px; background: var(--ap-subtle); }
  [data-theme="aperture"] .post-title {
    font-size: 18px; font-weight: 600;
    letter-spacing: -0.01em; line-height: 1.3;
    color: var(--ap-fg);
    margin: 0;
  }

  /* Footer */
  [data-theme="aperture"] footer.site-footer {
    border-top: 1px solid var(--ap-hairline);
    padding: 56px 40px 80px;
  }
  [data-theme="aperture"] .footer-inner {
    max-width: 1400px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 24px;
  }
  [data-theme="aperture"] .footer-brand {
    font-size: 13px; font-weight: 700;
    letter-spacing: 0.25em; text-transform: uppercase;
    color: var(--ap-fg);
  }
  [data-theme="aperture"] .footer-copy {
    font-size: 10px;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--ap-subtle);
  }
  [data-theme="aperture"] .footer-social { display: flex; gap: 28px; }
  [data-theme="aperture"] .footer-social a {
    font-size: 11px;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--ap-muted); text-decoration: none;
  }
  [data-theme="aperture"] .footer-social a:hover { color: var(--ap-fg); }

/* ===== aperture/blog.html <style> ===== */
/* === Inner page (blog/post/page) — inherits theme typography & color from body === */
  [data-theme="aperture"] .ip-wrap { max-width: 1200px; margin: 0 auto; padding: 64px clamp(16px, 4vw, 32px); }
  [data-theme="aperture"] .ip-narrow { max-width: 760px; margin: 0 auto; padding: 64px clamp(16px, 4vw, 32px); }
  [data-theme="aperture"] .ip-prose-wrap { max-width: 720px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
  [data-theme="aperture"] .ip-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.55; margin: 0 0 18px; }
  [data-theme="aperture"] .ip-h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; margin: 0 0 18px; text-wrap: balance; }
  [data-theme="aperture"] .ip-h1-serif { font-family: var(--vb-heading-font, var(--heading, var(--display, inherit))); font-size: clamp(40px, 5.4vw, 64px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.1; margin: 0 0 18px; text-wrap: balance; }
  [data-theme="aperture"] .ip-dek { font-size: 19px; line-height: 1.55; opacity: 0.7; margin: 0 0 28px; max-width: 640px; text-wrap: pretty; }
  [data-theme="aperture"] .ip-byline { display: flex; align-items: center; gap: 14px; margin: 0 0 40px; padding: 14px 0; border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent); border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent); }
  [data-theme="aperture"] .ip-byline > div { min-width: 0; flex: 1; }
  [data-theme="aperture"] .ip-avatar { width: 40px; height: 40px; border-radius: 9999px; background: color-mix(in srgb, currentColor 12%, transparent); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
  [data-theme="aperture"] .ip-byline .author { font-size: 14px; font-weight: 600; }
  [data-theme="aperture"] .ip-byline .meta { font-size: 13px; opacity: 0.55; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  [data-theme="aperture"] .ip-cover { width: 100%; aspect-ratio: 16/9; background-size: cover; background-position: center; margin: 0 0 40px; }
  [data-theme="aperture"] .ip-prose { font-size: 18px; line-height: 1.75; }
  [data-theme="aperture"] .ip-prose p { margin: 0 0 22px; opacity: 0.92; }
  [data-theme="aperture"] .ip-prose h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; margin: 40px 0 16px; }
  [data-theme="aperture"] .ip-prose h3 { font-size: clamp(20px, 2.4vw, 24px); font-weight: 700; margin: 32px 0 12px; }
  [data-theme="aperture"] .ip-prose blockquote { margin: 28px 0; padding: 4px 0 4px 22px; border-left: 3px solid color-mix(in srgb, currentColor 35%, transparent); font-style: italic; font-size: 21px; line-height: 1.5; opacity: 0.78; }
  [data-theme="aperture"] .ip-prose ul, [data-theme="aperture"] .ip-prose ol { margin: 0 0 22px; padding-left: 22px; }
  [data-theme="aperture"] .ip-prose li { margin: 0 0 8px; opacity: 0.92; line-height: 1.7; }
  [data-theme="aperture"] .ip-prose code:not(pre code) { font-family: 'JetBrains Mono', 'IBM Plex Mono', 'Courier New', monospace; font-size: 0.88em; background: color-mix(in srgb, currentColor 8%, transparent); padding: 1px 6px; border-radius: 4px; }
  [data-theme="aperture"] .ip-prose pre { font-family: 'JetBrains Mono', 'IBM Plex Mono', 'Courier New', monospace; background: color-mix(in srgb, currentColor 4%, transparent); border: 1px solid color-mix(in srgb, currentColor 12%, transparent); border-radius: 8px; padding: 16px 18px; overflow-x: auto; font-size: 14px; line-height: 1.65; margin: 22px 0; }
  [data-theme="aperture"] .ip-prose hr { border: none; height: 1px; background: color-mix(in srgb, currentColor 14%, transparent); margin: 36px 0; }
  [data-theme="aperture"] .ip-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 32px 0 0; }
  [data-theme="aperture"] .ip-tag { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 12px; border: 1px solid color-mix(in srgb, currentColor 22%, transparent); border-radius: 9999px; opacity: 0.7; text-decoration: none; color: inherit; white-space: nowrap; }
  [data-theme="aperture"] .ip-tag:hover { opacity: 1; }
  /* Blog index */
  [data-theme="aperture"] .ip-index-head { margin: 0 0 40px; padding-bottom: 24px; border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent); }
  [data-theme="aperture"] .ip-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 0; }
  [data-theme="aperture"] .ip-filter { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 14px; border: 1px solid color-mix(in srgb, currentColor 18%, transparent); border-radius: 9999px; text-decoration: none; color: inherit; opacity: 0.7; white-space: nowrap; }
  [data-theme="aperture"] .ip-filter:hover { opacity: 1; border-color: color-mix(in srgb, currentColor 32%, transparent); }
  [data-theme="aperture"] .ip-filter.active { background: color-mix(in srgb, currentColor 14%, transparent); border-width: 2px; padding: 5px 13px; opacity: 1; font-weight: 700; }
  [data-theme="aperture"] .ip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
  @media (max-width: 900px) { [data-theme="aperture"] .ip-grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 600px) { [data-theme="aperture"] .ip-grid { grid-template-columns: 1fr; } }
  [data-theme="aperture"] .ip-card { display: block; border: 1px solid color-mix(in srgb, currentColor 12%, transparent); border-radius: 8px; overflow: hidden; text-decoration: none; color: inherit; transition: border-color 200ms, transform 200ms; }
  [data-theme="aperture"] .ip-card:hover { border-color: color-mix(in srgb, currentColor 30%, transparent); transform: translateY(-2px); }
  [data-theme="aperture"] .ip-card .img { width: 100%; aspect-ratio: 16/10; background-size: cover; background-position: center; }
  [data-theme="aperture"] .ip-card .body { padding: 18px 20px 20px; }
  [data-theme="aperture"] .ip-card .kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.6; margin: 0 0 8px; }
  [data-theme="aperture"] .ip-card h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; margin: 0 0 8px; }
  [data-theme="aperture"] .ip-card p { font-size: 14px; line-height: 1.55; opacity: 0.7; margin: 0 0 12px; }
  [data-theme="aperture"] .ip-card .meta { font-size: 12px; opacity: 0.55; }
  [data-theme="aperture"] .ip-pag { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 56px 0 0; }
  [data-theme="aperture"] .ip-pag a, [data-theme="aperture"] .ip-pag span { min-width: 36px; height: 36px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid color-mix(in srgb, currentColor 16%, transparent); border-radius: 6px; text-decoration: none; color: inherit; font-size: 13px; font-weight: 600; }
  [data-theme="aperture"] .ip-pag .current { background: color-mix(in srgb, currentColor 12%, transparent); }
  /* Inline newsletter CTA — outline style, no blend tricks */
  [data-theme="aperture"] .ip-inline-cta { margin: 56px 0 0; padding: 36px; border: 1px solid color-mix(in srgb, currentColor 14%, transparent); border-radius: 12px; text-align: center; }
  [data-theme="aperture"] .ip-inline-cta h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 8px; }
  [data-theme="aperture"] .ip-inline-cta p { font-size: 14px; opacity: 0.7; margin: 0 0 18px; }
  [data-theme="aperture"] .ip-inline-cta form { display: flex; gap: 8px; max-width: 380px; margin: 0 auto; }
  [data-theme="aperture"] .ip-inline-cta input { flex: 1; min-width: 0; background: transparent; border: 1px solid color-mix(in srgb, currentColor 22%, transparent); border-radius: 8px; color: inherit; font-family: inherit; font-size: 14px; padding: 10px 14px; outline: none; }
  [data-theme="aperture"] .ip-inline-cta button { background: transparent; border: 2px solid currentColor; border-radius: 8px; color: inherit; font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; padding: 9px 22px; cursor: pointer; white-space: nowrap; transition: background 150ms; }
  [data-theme="aperture"] .ip-inline-cta button:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
  /* Comments */
  [data-theme="aperture"] .ip-comments { margin: 64px 0 0; padding-top: 32px; border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
  [data-theme="aperture"] .ip-comments h3 { font-size: 18px; font-weight: 700; margin: 0 0 24px; }
  [data-theme="aperture"] .ip-comment { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 8%, transparent); }
  [data-theme="aperture"] .ip-comment > div { min-width: 0; flex: 1; }
  [data-theme="aperture"] .ip-comment:last-child { border-bottom: none; }
  [data-theme="aperture"] .ip-comment .who { font-size: 13px; font-weight: 600; }
  [data-theme="aperture"] .ip-comment .when { font-size: 12px; opacity: 0.55; }
  [data-theme="aperture"] .ip-comment .text { font-size: 14px; line-height: 1.55; opacity: 0.85; margin: 6px 0 0; }
  /* Back link */
  [data-theme="aperture"] .ip-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-decoration: none; color: inherit; opacity: 0.65; margin: 0 0 24px; white-space: nowrap; }
  [data-theme="aperture"] .ip-back:hover { opacity: 1; }
  /* Static page form */
  [data-theme="aperture"] .ip-form { max-width: 520px; margin: 32px 0 0; }
  [data-theme="aperture"] .ip-form label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7; margin: 0 0 6px; }
  [data-theme="aperture"] .ip-form .row { margin: 0 0 16px; }
  [data-theme="aperture"] .ip-form input, [data-theme="aperture"] .ip-form textarea { width: 100%; background: transparent; border: 1px solid color-mix(in srgb, currentColor 20%, transparent); border-radius: 8px; color: inherit; font-family: inherit; font-size: 15px; padding: 10px 14px; outline: none; }
  [data-theme="aperture"] .ip-form textarea { min-height: 120px; resize: vertical; }
  [data-theme="aperture"] .ip-form button { background: transparent; border: 2px solid currentColor; border-radius: 8px; color: inherit; font-family: inherit; font-size: 14px; font-weight: 700; letter-spacing: 0.04em; padding: 10px 24px; cursor: pointer; white-space: nowrap; transition: background 150ms; }
  [data-theme="aperture"] .ip-form button:hover { background: color-mix(in srgb, currentColor 10%, transparent); }

/* ===== Responsive overhaul — Sprint K Phase 3 ===== */
/* Nav: fixed nav gets sticky on mobile so it scrolls with content */
@media (max-width: 1023px) {
  [data-theme="aperture"] nav.site-nav {
    position: sticky;
    padding: 14px 16px;
  }
  /* Masonry grid → 1-col on mobile, 2-col on tablet */
  [data-theme="aperture"] .grid {
    grid-template-columns: 1fr;
    padding: 0 16px 64px;
  }
  [data-theme="aperture"] .section-head { padding: 80px 16px 24px; }
  [data-theme="aperture"] .hero-content { padding: 0 16px 64px; }
  [data-theme="aperture"] .exif-badge { top: 80px; left: 16px; }
  [data-theme="aperture"] footer.site-footer { padding: 40px 16px 60px; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  [data-theme="aperture"] .grid { grid-template-columns: 1fr 1fr; }
}

/* ===== Page-builder token bridge =====
 * Maps generic --vb-* block renderer variables to Aperture's palette.
 * Allows block-renderer blocks (CTA, heading, etc.) to inherit the theme's
 * color system instead of falling back to generic defaults.
 */
[data-theme="aperture"] main {
  --vb-color-bg:          var(--ap-bg);
  --vb-color-surface:     #1a1a1a;
  --vb-color-bg-elevated: #1a1a1a;
  --vb-color-fg:          var(--ap-fg);
  --vb-color-heading:     var(--ap-fg);
  --vb-color-muted:       var(--ap-muted);
  --vb-color-text-muted:  var(--ap-muted);
  --vb-color-border:      var(--ap-hairline);
  --vb-color-primary:     var(--ap-fg);
  --vb-color-primary-bg:  #1a1a1a;
  --vb-color-primary-fg:  var(--ap-bg);
  --vb-color-cta-btn-bg:  var(--ap-fg);
  --vb-color-cta-btn-fg:  var(--ap-bg);
  --vb-color-secondary:   var(--ap-muted);
  --vb-heading-font:      "Inter", system-ui, sans-serif;
}

/* ===== Old-30 Bespoke Parity Wave 4 — bespoke mobile drawer + storefront =====
 * ApertureMobileMenu / ApertureShopLayout / ApertureProductLayout styling
 * hooks. Hover-only rules (P-097 — CSS-only, no JS event handlers).
 */

/* Cart/nav-member link CSS-only hover (thin-outline chrome) */
[data-theme="aperture"] .ap-shop-pill {
  display: inline-flex;
  align-items: center;
  font-family: "Space Grotesk", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ap-muted);
  text-decoration: none;
  border: 1px solid var(--ap-hairline);
  border-radius: 2px;
  padding: 7px 14px;
  transition: background-color 200ms, color 200ms, border-color 200ms;
}
[data-theme="aperture"] .ap-shop-pill:hover {
  color: var(--ap-fg);
  border-color: rgba(240, 236, 228, 0.4);
}
[data-theme="aperture"] .ap-shop-pill[data-active] {
  background: var(--ap-fg);
  color: var(--ap-bg);
  border-color: var(--ap-fg);
}

/* Gallery grid — 2-3 col, generous gutters, image-forward */
[data-theme="aperture"] .ap-shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
}
@media (max-width: 900px) {
  [data-theme="aperture"] .ap-shop-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
}
@media (max-width: 600px) {
  [data-theme="aperture"] .ap-shop-grid { grid-template-columns: 1fr; }
}

[data-theme="aperture"] .ap-shop-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Subtle image scale + vignette on hover (P-097 CSS-only) */
[data-theme="aperture"] .ap-shop-img-el {
  transition: transform 400ms ease, filter 400ms ease;
  filter: grayscale(0.15) brightness(0.95);
}
[data-theme="aperture"] .ap-shop-card:hover .ap-shop-img-el {
  transform: scale(1.03);
  filter: grayscale(0) brightness(1);
}

[data-theme="aperture"] .ap-add-to-cart {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  color: var(--ap-fg);
  border: 1px solid rgba(240, 236, 228, 0.25);
  border-radius: 2px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background-color 200ms, color 200ms;
}
[data-theme="aperture"] .ap-add-to-cart:hover {
  background: var(--ap-fg);
  color: var(--ap-bg);
}

@media (max-width: 768px) {
  [data-theme="aperture"] .ap-product-grid {
    grid-template-columns: 1fr !important;
  }
}
