:root {
  --bg: #f7f1ea;
  --paper: #f3ebdf;
  --panel: #efe0cd;
  --panel-alt: #e7d5b7;
  --ink: #1d1a17;
  --muted: #5e554d;
  --line: rgba(25, 19, 15, 0.14);
  --accent: #8c4d39;
  --accent-dark: #5c2d21;
  --cta: #d34220;
  --cta-hover: #b83518;
  --sand: #d4b48a;
  --terracotta: #a7603d;
  --shadow: rgba(20, 15, 14, 0.12);
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
}

.container {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(247, 241, 234, 0.85);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.brand small {
  display: block;
  letter-spacing: 0.14em;
  font-size: 0.52rem;
}

.brand-mark {
  display: block;
  flex-shrink: 0;
  width: 52px;
  height: 60px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.main-nav a {
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.9rem 1.5rem;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(89, 61, 45, 0.12);
}

.button-solid {
  background: var(--cta);
  border-color: var(--cta);
  color: #fff;
}

.button-solid:hover:not(:disabled) {
  background: var(--cta-hover);
  border-color: var(--cta-hover);
}

.button-solid:focus-visible {
  outline: 3px solid var(--cta);
  outline-offset: 4px;
}

.button-ghost {
  background: transparent;
  border-color: rgba(29, 26, 23, 0.2);
  color: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(248, 242, 234, 0.8), rgba(234, 213, 184, 0.7));
}

.hero-background {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(10, 9, 9, 0.26), rgba(117, 77, 52, 0.18)),
    url('/gallery-images/esperanza-hero.png') center/cover no-repeat;
  filter: saturate(0.8) contrast(1.05);
}
@supports (background-image: image-set(url('x.webp') type('image/webp'))) {
  .hero-background {
    background:
      linear-gradient(110deg, rgba(10, 9, 9, 0.26), rgba(117, 77, 52, 0.18)),
      image-set(url('https://img.tjm.art/display/esperanza-hero-aba277665d-1134.webp') type('image/webp'), url('/gallery-images/esperanza-hero.png') type('image/png')) center/cover no-repeat;
  }
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  min-height: 720px;
  gap: 48px;
}

.hero-copy {
  max-width: 720px;
  color: #fff;
  padding: 80px 0;
}

.eyebrow {
  margin: 0 0 1.4rem;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.eyebrow.dark {
  color: var(--muted);
}

.eyebrow.accent {
  color: var(--accent);
}

.hero-copy h1,
.section-heading h2,
.section-heading h1,
.about-copy h2,
.contact-copy h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  line-height: 0.96;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.hero-copy h1 {
  font-size: clamp(4rem, 7vw, 6.4rem);
  max-width: 620px;
}

.lede {
  margin-top: 1.5rem;
  max-width: 620px;
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-panel {
  display: flex;
  justify-content: center;
}

.art-card {
  width: min(420px, 100%);
  background: rgba(16, 14, 13, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 25px 45px rgba(12, 10, 10, 0.18);
}

.art-image {
  width: 100%;
  height: 540px;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
}

.art-1 {
  background-image: url('/gallery-images/warszawska-syrenka.jpeg');
  background-image: image-set(url('https://img.tjm.art/display/warszawska-syrenka-34226c70a3-960.webp') type('image/webp'), url('/gallery-images/warszawska-syrenka.jpeg') type('image/jpeg'));
}

.art-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  color: white;
  padding-top: 16px;
}

.meta-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
}

.art-meta h2 {
  margin: 0;
  font-size: 1.6rem;
  font-family: "Cormorant Garamond", serif;
}

.art-meta p {
  margin: 0;
  font-weight: 600;
}

.section {
  padding: 110px 0;
}

.section-light {
  background: rgba(255, 255, 255, 0.2);
}

.section-contrast {
  background: linear-gradient(180deg, #e7d9c5 0%, #f1e7dc 100%);
}

.section-plain {
  background: var(--bg);
}

.section-shop {
  background: rgba(202, 176, 138, 0.18);
}

.section-heading {
  margin-bottom: 2.5rem;
}

.section-heading h2,
.section-heading h1,
.about-copy h2,
.contact-copy h2 {
  font-size: clamp(2.4rem, 4vw, 4rem);
  color: var(--ink);
}

.product-grid,
.service-grid,
.mini-grid {
  display: grid;
  gap: 28px;
}

.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px rgba(28, 18, 12, 0.08);
}

.product-image {
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
}

.image-one {
  background-image: url('/gallery-images/warszawska-syrenka.jpeg');
  background-image: image-set(url('https://img.tjm.art/display/warszawska-syrenka-34226c70a3-960.webp') type('image/webp'), url('/gallery-images/warszawska-syrenka.jpeg') type('image/jpeg'));
}

.image-two {
  background-image: url('/gallery-images/honeybadger-and-cub.jpeg');
}

.image-three {
  background-image: url('/gallery-images/el-salvador-sunrise.jpeg');
}

.product-info {
  padding: 1.2rem 1.1rem 1.5rem;
}

.product-info h3 {
  margin: 0 0 0.4rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  line-height: 1;
}

.product-info p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.centered-link-row {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.narrow {
  max-width: 640px;
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(73, 54, 39, 0.12);
  border-radius: 22px;
  padding: 2rem 1.5rem;
}

.service-number {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 0.8rem;
}

.service-card h3 {
  margin: 0 0 0.8rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.2rem;
}

.service-card p {
  margin: 0 0 1.2rem;
  color: var(--muted);
}

.price {
  display: inline-flex;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent-dark);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: center;
}

.about-image {
  width: 100%;
  min-height: 560px;
  border-radius: 24px;
  background-image: url('/gallery-images/chloe.jpg');
  background-size: cover;
  background-position: center;
  box-shadow: 0 24px 44px rgba(28, 18, 12, 0.12);
}

.about-copy {
  max-width: 610px;
}

.about-copy p {
  color: var(--muted);
  font-size: 1.04rem;
}

.mini-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-card {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(30, 22, 18, 0.1);
  border-radius: 18px;
  padding: 1.4rem 1.2rem;
}

.mini-tag {
  display: inline-flex;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: rgba(140, 77, 57, 0.08);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
}

.mini-card h3 {
  margin: 1rem 0 0.4rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.1rem;
}

.mini-card p {
  margin: 0 0 0.9rem;
  color: var(--muted);
}

.mini-card strong {
  font-size: 1.1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: start;
}

.contact-copy p {
  color: var(--muted);
}

.contact-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
  color: var(--ink);
  font-weight: 600;
}

.contact-form {
  display: grid;
  gap: 1.1rem;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(30, 22, 18, 0.1);
  border-radius: 22px;
  padding: 1.5rem;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.5rem;
  color: #3f3832;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(25, 19, 15, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  padding: 0.9rem 1rem;
  color: var(--ink);
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(250, 245, 239, 0.82);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 100px;
}

.footer-brand {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .hero-grid,
  .about-grid,
  .contact-grid,
  .product-grid,
  .service-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-top: 40px;
    padding-bottom: 0;
  }

  .hero-grid {
    min-height: auto;
    padding: 50px 0 80px;
  }

  .art-card {
    max-width: 520px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
    padding: 16px 0;
  }

  .header-actions {
    width: 100%;
    justify-content: center;
  }

  .button {
    width: 100%;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: clamp(3rem, 18vw, 4.4rem);
  }

  .section {
    padding: 80px 0;
  }

  .footer-inner {
    flex-direction: column;
    justify-content: center;
    padding: 20px 0;
  }
}

/* Product links and detail pages */
a.product-image, a.art-image { display: block; }
.product-title-link:hover { text-decoration: underline; text-underline-offset: 0.15em; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.product-detail { padding-top: 2rem; padding-bottom: 5rem; }
.product-breadcrumb { display: flex; flex-wrap: wrap; gap: 0.6rem; font-size: 0.875rem; color: var(--muted); margin-bottom: 2.5rem; }
.product-breadcrumb a, .product-back { text-decoration: underline; text-underline-offset: 0.2em; }
.product-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.product-figure { margin: 0; padding: clamp(1rem, 3vw, 2rem); background: var(--paper); border: 1px solid var(--line); }
.product-figure img { width: 100%; height: auto; max-height: 75vh; object-fit: contain; }
.product-figure figcaption { margin-top: 1rem; font-size: 0.875rem; color: var(--muted); }
.product-summary { padding-top: 1rem; min-width: 0; }
.product-summary .eyebrow { font-size: 0.875rem; }
.product-summary h1 { font: 600 clamp(2.6rem, 4.5vw, 4.5rem)/1.05 "Cormorant Garamond", serif; margin: 0; overflow-wrap: break-word; }
.product-detail-price { font-size: 1.5rem; color: var(--accent-dark); margin: 1.5rem 0; }
.product-description { font-size: 1.125rem; max-width: 40rem; }
.product-inquiry { border-top: 1px solid var(--line); padding-top: 1.5rem; margin-top: 2rem; margin-bottom: 2rem; }
.product-inquiry .button { font-size: 0.875rem; }
.product-inquiry p { color: var(--muted); max-width: 35rem; }
.product-layout-text { display: block; max-width: 780px; margin: 0 auto; border-top: 2px solid var(--accent); padding: 2rem 0; }
.product-page .page-shell { display: flex; flex-direction: column; }
.product-page main { flex: 1; }
#contact { scroll-margin-top: 10rem; }
@media (max-width: 800px) {
  .product-layout { grid-template-columns: 1fr; }
  .product-figure img { max-height: 65vh; }
  .product-detail { padding-top: 1.5rem; padding-bottom: 3rem; }
  .product-page .header-actions .button { padding: 0.75rem 1rem; }
}

/* Finished mural navigation */
.mural-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:28px 0 48px}.mural-links a{display:block;border:1px solid #d6c9bc;border-radius:16px;overflow:hidden;color:#1d1a17;text-decoration:none;background:#fffaf4}.mural-links img{display:block;width:100%;height:260px;object-fit:cover}.mural-links a:nth-child(2) img{object-fit:contain;background:#e8dfd3}.mural-links span,.mural-links small{display:block;padding:12px 18px 0}.mural-links span{font:26px/1.2 Georgia,serif}.mural-links small{padding-bottom:18px;color:#65574d}.mural-links a:hover{box-shadow:0 8px 24px #1d1a1720}.mural-links a:focus-visible{outline:3px solid #8c4d39;outline-offset:4px}.mural-story{scroll-margin-top:24px}.mural-story .project-title{font:normal 44px/1.15 Georgia,serif}.mural-story .garden-hero{max-height:650px;object-fit:contain}.mural-story+.mural-story{border-top:1px solid #d6c9bc;margin-top:60px;padding-top:40px}@media(max-width:600px){.mural-links{grid-template-columns:1fr}.mural-links img{height:230px}.mural-story .project-title{font-size:34px}}

.gallery-product-image{display:block;aspect-ratio:4/5;background:#e8dfd3;overflow:hidden}.gallery-product-image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .3s ease}.product-card:hover .gallery-product-image img{transform:scale(1.03)}.gallery-detail-image{display:block;width:100%;max-height:760px;object-fit:contain;background:#e8dfd3;border-radius:16px;margin:28px 0 32px}.product-availability{font-weight:600;color:#8c4d39}
.book-tile{padding:2rem;display:flex;flex-direction:column;align-items:flex-start;gap:1rem;min-height:260px}.book-tile h3,.book-tile p{margin:0}.book-tile .button{margin-top:auto}

/* Exhibition archive and homepage carousel */
#exhibitions { scroll-margin-top: 100px; }
.ex-track { position:relative; display:flex; overflow-x:auto; gap:28px; padding:5px 0 20px; }
.ex-slide { flex:0 0 calc((100% - 56px)/3); min-width:0; }
.ex-slide a { display:block; height:100%; }
.ex-slide img { width:100%; aspect-ratio:4/3; object-fit:cover; background:var(--paper); }
.ex-slide-caption h3 { margin:0 0 .6rem; font:600 2rem/1.1 "Cormorant Garamond",serif; }
.ex-slide-caption p { font-size:.9rem; }
.ex-controls { display:flex; justify-content:flex-end; align-items:center; gap:24px; margin-top:18px; }
.ex-controls[hidden] { display:none; }
.ex-controls button { border:1px solid var(--line); background:var(--paper); color:var(--ink); border-radius:50%; width:48px; height:48px; cursor:pointer; font-size:24px; }
.ex-controls .ex-autoplay { width:auto; border-radius:999px; padding:0 20px; font-size:.85rem; margin-right:auto; }
.ex-controls p { margin:0; font-variant-numeric:tabular-nums; }
@media(max-width:980px) { .ex-slide { flex-basis:calc((100% - 28px)/2); } }
@media(max-width:600px) { .ex-slide { flex-basis:85%; } }
.exhibition-page { padding-top:32px; padding-bottom:80px; }
.exhibition-page h1 { font:600 clamp(3rem,7vw,6rem)/1.05 "Cormorant Garamond",serif; margin:0 0 30px; }
.exhibition-hero { width:100%; max-height:720px; object-fit:contain; background:var(--paper); border-radius:16px; margin-bottom:64px; }
.exhibition-grid { columns:3; column-gap:20px; }
.ex-photo,.ex-video { display:block; break-inside:avoid; margin:0 0 20px; background:var(--paper); border-radius:10px; overflow:hidden; }
.ex-photo img { width:100%; height:auto; min-height:100px; }
.ex-photo:hover { box-shadow:0 8px 24px var(--shadow); }
.ex-video video { width:100%; min-height:220px; background:#171513; }
.ex-video figcaption { padding:12px; text-decoration:underline; }
.exhibition-nav { display:flex; flex-wrap:wrap; gap:20px; margin-top:50px; padding-top:24px; border-top:1px solid var(--line); }
.exhibition-nav a { text-decoration:underline; text-underline-offset:4px; }
.exhibition-nav [aria-current] { font-weight:700; color:var(--accent); }
.ex-lightbox { border:0; padding:60px 60px 42px; width:96vw; max-width:1400px; height:94vh; max-height:94vh; background:#151311; color:#fff; }
.ex-lightbox::backdrop { background:rgba(0,0,0,.85); }
.ex-lightbox img { width:100%; height:100%; object-fit:contain; }
.ex-lightbox button { position:absolute; background:#302b27; color:white; border:1px solid #8d8074; border-radius:8px; padding:10px 14px; cursor:pointer; min-height:44px; }
.ex-close { right:14px; top:10px; }.ex-prev { left:8px; top:50%; }.ex-next { right:8px; top:50%; }
.ex-lightbox p { position:absolute; bottom:6px; left:0; right:0; text-align:center; margin:0; }
button:focus-visible { outline:3px solid var(--accent); outline-offset:4px; }
@media(max-width:800px) { .exhibition-grid { columns:2; } }
@media(max-width:520px) { .exhibition-grid { columns:1; }.ex-lightbox { padding:60px 48px 42px; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }

/* Keep painting cards in their existing portrait format. */
.painting-carousel .ex-slide a { height:auto; }
.painting-carousel .ex-slide img { height:100%; aspect-ratio:auto; }
.painting-carousel .product-info { min-height:140px; }

/* Homepage documentary */
#film { scroll-margin-top:100px; }
.home-film-card { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); align-items:center; overflow:hidden; border:1px solid var(--line); border-radius:20px; background:rgba(255,255,255,.4); }
.home-film-video { aspect-ratio:16/9; width:100%; background:#171513; }
.home-film-video iframe { display:block; width:100%; height:100%; border:0; }
.home-film-copy { padding:28px; }
.home-film-copy .eyebrow { margin:0 0 12px; }
.home-film-copy h3 { margin:0 0 16px; font:600 2rem/1.1 "Cormorant Garamond",serif; }
.home-film-copy p { color:var(--muted); font-size:.95rem; line-height:1.6; }
@media(min-width:981px) { .main-nav { flex-wrap:wrap; gap:12px 18px; justify-content:center; } }
@media(max-width:800px) { .home-film-card { grid-template-columns:1fr; }.home-film-copy { padding:24px; } }


.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}


/* Existing-painting purchase inquiries use a distinct, simplified form. */
.contact-form.purchase-mode .commission-only {
  display: none !important;
}

.contact-form.purchase-mode .purchase-summary {
  display: block;
}

/* Book tiles follow their portrait covers rather than the painting card width. */
.book-carousel .ex-slide { flex-basis:min(260px, 82vw); }
.book-carousel .ex-slide a { height:auto; }
.book-carousel .book-tile { padding:1.25rem; }


.service-terms {
  margin: 0.65rem 0 1rem;
  font-size: 0.82rem;
  color: var(--ink);
  line-height: 1.45;
}
.service-cta {
  display: inline-flex;
  margin-top: 0.25rem;
}

/* Sized commission packages (Landscape): size selector on the package card. */
.service-size { display:flex; flex-direction:column; gap:6px; margin:4px 0 10px; font-size:.78rem; letter-spacing:.08em; text-transform:uppercase; color:var(--muted, #5e554d); }
.service-size select { font:inherit; font-size:.95rem; letter-spacing:0; text-transform:none; color:var(--ink, #1d1a17); padding:.65rem .8rem; border:1px solid var(--line, rgba(25,19,15,.14)); border-radius:10px; background:#fffaf4; }
.portrait-preview-group { margin:0 0 14px; }
.portrait-preview-group figcaption { font-size:.72rem; letter-spacing:.1em; text-transform:uppercase; color:var(--muted, #5e554d); margin:0 0 6px; }

/* One-line invitation to the testimonials page (homepage collectors section, About). */
.testimonial-cta { margin: 1.25rem 0 0; text-align: center; font-size: 1rem; }
.testimonial-cta a { color: var(--accent-dark, #5c2d21); font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; }
.testimonial-cta a:hover { color: var(--cta-hover, #b83518); }
.testimonial-cta a:focus-visible { outline: 3px solid var(--cta, #d34220); outline-offset: 3px; }

/* Audit 4: the footer brand block never shrinks, so all four social icons stay on one row. */
.site-footer .footer-brand-block { flex-shrink: 0; }
.site-footer .footer-brand-block .footer-socials { flex-wrap: nowrap; }
/* Screen-reader-only text (headings that keep the outline in order without changing the look). */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Card commerce cues: the whole tile links to the painting's page (stretched title link); "Buy" is a visual cue, not a nested control. */
.card-tile{position:relative}
.card-tile .product-title-link::after{content:"";position:absolute;inset:0;z-index:1}
.card-tile:has(.product-title-link:focus-visible){outline:3px solid var(--cta);outline-offset:2px}
.card-tile .product-title-link:focus-visible{outline:none}
/* Last line of a painting card: its text (prints-from line, or the price line) with a compact Buy pill right-aligned and centered on that line. */
.card-buy-row{display:flex;align-items:center;gap:10px}
.card-buy-row>:first-child{flex:1 1 auto;min-width:0;margin:0}
.product-info .card-buy-row{margin:.2rem 0 0}
.product-info .card-buy-row .card-prints-from{font-size:inherit}
.card-prints-from{font-size:.85rem;color:var(--muted)}
.card-buy{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-height:28px;margin-left:auto;padding:0 12px;border-radius:999px;background:var(--cta);color:#fff;font:600 .68rem/1 Inter,system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap;pointer-events:none}
.card-buy[hidden]{display:none}
.card-tile:hover .card-buy{background:var(--cta-hover)}
/* Carousel painting cards: equal height per row, last row (Prints from $X · Buy) pinned to the bottom so Buy pills line up bottom-right across cards. */
.painting-carousel .ex-track{align-items:stretch}
.painting-carousel .card-tile{display:flex;flex-direction:column}
.painting-carousel .card-tile>.gallery-product-image{flex:0 0 auto}
.painting-carousel .card-tile .product-info{flex:1 1 auto;display:flex;flex-direction:column}
.painting-carousel .card-tile .card-buy-row{margin-top:auto;padding-top:.2rem}
.card-buy-row .card-buy{align-self:flex-end}
