/* Final responsive layout. Keep structural rules together, after the theme. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
button,a{touch-action:manipulation}
[hidden]{display:none!important}
.wrap{width:min(1180px,calc(100% - 48px))}
.site-header{height:auto;min-height:0}
.header-inner{height:auto;min-height:0;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:12px 0 0;gap:12px}
.top-note{position:static;grid-column:1;grid-row:1}
.brand.devotional-brand{position:static;grid-column:2;grid-row:1;transform:none;width:160px;height:140px;padding:0;overflow:hidden}
.brand.devotional-brand img{width:160px;height:160px;max-width:none;object-fit:contain;transform:none;mix-blend-mode:multiply}
#cart-toggle.cart-toggle,body:has(#cart-filled:not([hidden])) #cart-toggle.cart-toggle{position:relative;inset:auto;grid-column:3;grid-row:1;justify-self:end;background:#fffaf0;color:#704b1b;box-shadow:0 3px 12px #51371718;border-color:#b8955d}
#cart-toggle.cart-toggle:hover{background:#eee1c7;box-shadow:0 3px 12px #51371728}
#cart-toggle .cart-count{background:#855a1e;color:#fff;box-shadow:0 0 0 2px #fffaf0}
.ribbon,.js .ribbon{position:static;transform:none;grid-column:1/-1;width:100%;height:auto;display:flex;justify-content:center;align-items:center;gap:28px;padding:8px 12px;margin:0;border-bottom:0;background:transparent}
.ribbon ul{height:auto;gap:28px}.ribbon a{font-size:12px;min-height:44px}
.menu-button{display:none}
.hero{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto auto auto;gap:24px 40px;align-items:center;height:auto;min-height:0;aspect-ratio:auto;margin-top:24px;padding:40px;overflow:hidden}
.hero-copy{position:static;inset:auto;grid-column:1;grid-row:1;width:auto;max-width:none;min-width:0;padding:0;text-align:left}
.hero h1{font:400 clamp(36px,4.5vw,56px)/1.12 Georgia,serif;color:#513517;letter-spacing:-.5px;text-shadow:none;margin:0 0 20px;max-width:none}
.hero-copy p{font:400 16px/1.75 Arial,sans-serif;max-width:480px;min-height:0;color:#665643}
.button,.hero-copy .button,.purchase-controls .button{font:600 13px/1.5 Arial,sans-serif;min-height:48px;padding:12px 18px;white-space:normal;text-shadow:none;background:#855a1e;color:#fffaf0;letter-spacing:.3px;border-color:#855a1e}
.button:hover:not(:disabled){background:#694516;color:#fff}
.hero-copy .button{margin-top:24px;max-width:100%}
.hero-images{position:relative;inset:auto;grid-column:2;grid-row:1/3;justify-self:center;align-self:center;width:100%;max-width:460px;aspect-ratio:1;height:auto;min-height:0;overflow:hidden;background:#050505;border-radius:8px;z-index:0;pointer-events:auto;-webkit-mask-image:none;mask-image:none;touch-action:pan-y pinch-zoom}
.hero-images::after{display:none}
/* Preserve the centered coin crop from the existing 1400 × 642 banners. */
.hero-images .hero-image{inset:auto;left:-125.80645%;top:4.83871%;width:225.80645%;height:103.54839%;max-width:none;object-fit:fill;transform:none;mix-blend-mode:normal}
.hero-dots{position:static;inset:auto;grid-column:1;grid-row:2;transform:none;display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:12px;padding:0;margin:0;z-index:2}
.hero-dots button{flex:0 0 44px;width:44px;height:44px;font:500 14px Arial,sans-serif;box-shadow:none}
.hero-dots button[aria-current=true]{background:#855a1e;color:#fff;box-shadow:none}
.hero-arrow{position:relative;inset:auto;grid-column:2;grid-row:1/3;align-self:center;width:44px;height:44px;min-width:44px;font:32px/1 Georgia,serif;background:#24180dd9;color:#fff8e8;z-index:2}
.hero-arrow.prev{left:auto;justify-self:start;margin-left:8px;color:#fff8e8}.hero-arrow.next{right:auto;justify-self:end;margin-right:8px}
.quick-strip{position:static;inset:auto;grid-column:1/-1;grid-row:3;display:grid;grid-template-columns:1fr 1fr;width:100%;gap:24px;padding:20px 0;margin:0;min-width:0;text-align:left}
.quick-strip strong{font:600 13px/1.5 Arial,sans-serif}.quick-strip span{font:400 13px/1.7 Arial,sans-serif}
.categories{grid-template-columns:repeat(5,minmax(0,1fr));gap:24px}.categories::before,.categories::after{content:none}
.category{width:100%;min-width:0;justify-self:center;text-align:center}
.category .round-photo{display:grid;place-items:center;width:100%;aspect-ratio:1;margin-inline:auto}
/* The source artwork has unequal black margins; center the coin itself. */
.category .round-photo{position:relative}
.category .round-photo img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;translate:calc(var(--coin-x,0%) * 1.08) calc(var(--coin-y,0%) * 1.08);transform:scale(1.08)}
.category .round-photo:hover img{transform:scale(1.12)}
.category [data-category-link="sao-jorge"]{--coin-x:.52%;--coin-y:1.91%}
.category [data-category-link="santo-antonio"]{--coin-x:.24%;--coin-y:1.87%}
.category [data-category-link="sao-francisco"]{--coin-x:.28%;--coin-y:3.59%}
.category [data-category-link="sao-jose"]{--coin-x:.60%;--coin-y:1.99%}
.category [data-category-link="sao-bento"]{--coin-x:.48%;--coin-y:2.91%}.category h2{font-size:18px}.category p{font-size:13px}.category .text-link{font-size:12px}
.gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.piece:not([hidden]){display:flex;flex-direction:column;padding:18px;min-width:0}
.piece h3{font-size:21px;min-height:0;line-height:1.4}.piece p{font-size:14px;min-height:0;line-height:1.6}
.piece>.text-link{font-size:13px;margin-block:12px 18px}.piece-image{aspect-ratio:1}.piece-image img{height:100%;object-fit:contain}
.purchase-controls{margin-top:auto}.purchase-controls .purchase-price{font:500 26px/1.4 Georgia,serif;color:#805318;margin:0;min-height:0}
.gallery-filters{gap:10px}.gallery-filters button{font:600 12px/1.5 Arial,sans-serif;min-height:44px}
.gallery-filters button:hover,.gallery-filters button[aria-pressed=true]{background:#855a1e;color:#fff}
.story-grid .story-intro,.gallery-status,.contact .contact-small,.contact-result p,.modal p,.modal .detail-note{color:#665643}
.story-grid p,.journal details p,.contact p{font-size:15px;line-height:1.8}
.text-link,.kicker,.ornament,.services li::before{color:#805318}
.product-details{margin-top:24px}.product-details details{border-top:1px solid var(--rule);padding:8px 0}.product-details summary{cursor:pointer;min-height:48px;padding:12px 4px;color:#704b1b;font-size:17px}
.product-details p{white-space:pre-line;margin:12px 0;font-size:15px;line-height:1.75}.product-details a{color:#805318;text-decoration:underline;overflow-wrap:anywhere}
.product-details blockquote{margin:16px 0;padding:12px 16px;border-left:3px solid #a77b35;background:#f3e8d4}
.modal-inner>div,.cart-line>div{min-width:0}.modal{max-height:calc(100dvh - 32px);overflow:auto}.modal .detail-note{font-size:12px}
.cart-heading{grid-template-columns:minmax(0,1fr) 44px}.cart-heading h2{padding:0;text-align:left}
.cart-quantity input{border-color:#b99c6d}.cart-totals{flex-wrap:wrap}.cart-small,.cart-line p{font-size:13px}
.delivery-grid input,.delivery-grid select,.contact-form input,.contact-form textarea{font-size:16px}
.back-top{width:44px;height:44px;font-size:24px}.footer-inner{flex-wrap:wrap}.footer-identity{min-width:0}.footer-brand{font-size:22px}
:focus-visible{outline:2px solid #805318;outline-offset:4px}
@media(max-width:900px){
 .hero{padding:28px;gap:24px}.hero h1{font-size:40px}.categories{gap:16px}.category h2{font-size:16px}
 .gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.contact{gap:32px}.ribbon,.ribbon ul{gap:20px}
}
@media(max-width:700px){
 .wrap{width:calc(100% - 32px)}
 .header-inner{grid-template-columns:48px minmax(0,1fr) 48px;gap:8px;padding:8px 0;min-height:112px}
 .top-note{display:none}.brand.devotional-brand{width:150px;height:112px;justify-self:center}.brand.devotional-brand img{width:150px;height:150px}
 .menu-button{display:flex;position:static;grid-column:1;grid-row:1;width:44px;height:44px;justify-content:center;align-items:center;min-height:44px;border-radius:5px;background:#fffaf0;color:#805318}
 .ribbon,.js .ribbon{display:none;padding:12px 0 0;gap:8px;border-top:1px solid var(--rule)}
 .ribbon.open,.js .ribbon.open{display:grid;grid-template-columns:1fr;gap:4px;padding:12px 0 0}
 html:not(.js) .ribbon{display:grid}
 .ribbon ul{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;height:auto;gap:4px}.ribbon a{display:flex;justify-content:center;white-space:normal;text-align:center;font-size:12px;padding:8px 2px;min-height:44px}
 .hero{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto auto;padding:24px 16px 0;gap:24px;margin-top:16px;height:auto;min-height:0}
 .hero-copy{grid-column:1;grid-row:1;text-align:center;padding:0;width:100%;max-width:none}
 .hero h1{font-size:clamp(32px,8.5vw,44px);line-height:1.15;margin:0 auto 16px;max-width:480px}
 .hero-copy p{font-size:15px;line-height:1.75;max-width:440px;margin:auto;min-height:0}
 .hero-copy .button{width:100%;max-width:360px;margin-top:20px}
 .hero-images{grid-column:1;grid-row:2;width:100%;max-width:400px;min-height:0;height:auto;aspect-ratio:1;align-self:center}
 .hero-arrow{grid-column:1;grid-row:2;inset:auto;align-self:center}.hero-arrow.prev{left:auto}.hero-arrow.next{right:auto}
 .hero-dots{grid-column:1;grid-row:3;justify-content:center;inset:auto;transform:none;padding:0}
 .quick-strip{grid-column:1;grid-row:4;grid-template-columns:1fr;gap:16px;padding:20px 8px;text-align:center}
 .categories{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 18px;margin-top:32px}.category:last-child{grid-column:1/-1;width:calc((100% - 18px)/2);max-width:235px;justify-self:center}.category h2{font-size:18px}.category .text-link{min-height:44px;font-size:12px}
 .story-grid,.journal-grid,.contact{grid-template-columns:minmax(0,1fr);gap:24px}.story-grid>div:last-child{padding:24px 0 0;border-left:0;border-top:1px solid var(--rule)}
 .section-head{display:block}.section-head p{text-align:left;margin-top:12px;font-size:13px}
 .gallery-grid{gap:16px}.piece:not([hidden]){padding:14px}.piece h3{font-size:20px}.piece p{font-size:14px}.piece>.text-link{font-size:13px;min-height:44px}
 .purchase-controls .button{font-size:12px;min-height:48px}.gallery-filters{flex-wrap:wrap;margin-block:18px 24px}.gallery-filters button{font-size:12px;padding:10px 14px}
 .form-row,.delivery-grid{grid-template-columns:minmax(0,1fr)}.delivery-grid label{grid-column:1!important}
 .cart-drawer{width:100%;height:100dvh;max-height:100dvh;border:0}.cart-heading{padding:calc(12px + env(safe-area-inset-top)) 16px 12px}.cart-content{padding:20px 16px calc(24px + env(safe-area-inset-bottom))}
 .cart-line{grid-template-columns:56px minmax(0,1fr);gap:12px}.cart-line img{width:56px;height:72px}.cart-line h3{font-size:18px}.cart-quantity{flex-wrap:wrap;width:auto}
 .modal{width:calc(100% - 24px);max-height:calc(100dvh - 24px);padding:60px 18px 24px}.modal-inner{grid-template-columns:minmax(0,1fr)}.modal img{max-height:34dvh}.modal p{font-size:15px}
 .footer-inner{display:flex;align-items:center;text-align:center;flex-direction:column;gap:20px}.footer-links{justify-content:center}.footer-motto{padding:14px 0 0;border-left:0;border-top:1px solid var(--rule)}
 .cart-toast{bottom:calc(16px + env(safe-area-inset-bottom));font-size:14px}.back-top{right:12px;bottom:calc(12px + env(safe-area-inset-bottom))}
}
@media(max-width:480px){.gallery-grid{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}
