﻿/* Generated from Styles/shop by ShopCart.Web.csproj. Do not edit. */
/* Layer order. Unlayered host CSS always beats every rule below, so hosts never need to raise specificity. */
@layer shop.reset, shop.base, shop.components, shop.utilities;
/* Design tokens (spec §9.2). Brand tokens are overridden per site (Phase 2 emits them from settings);
structural tokens are overridable with host CSS, e.g. .shop-root { --shop-radius: 0; } */
@layer shop.base {
:where(.shop-root) {
/* Brand */
--shop-color-primary: #1f4e79;
--shop-color-secondary: #4a6fa5;
--shop-color-accent: #d9822b;
--shop-color-text: #1f2328;
--shop-color-bg: #ffffff;
--shop-font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
--shop-font-heading: var(--shop-font-body);
--shop-radius: 6px;
/* Semantic */
--shop-color-success: #1a7f37;
--shop-color-warning: #9a6700;
--shop-color-danger: #cf222e;
--shop-color-info: var(--shop-color-primary);
/* Derived from brand tokens, so admins set 5 colours, not 20 */
--shop-color-primary-hover: color-mix(in oklch, var(--shop-color-primary) 85%, black);
--shop-color-on-primary: #ffffff;
--shop-color-border: color-mix(in oklch, var(--shop-color-text) 15%, var(--shop-color-bg));
--shop-color-muted: color-mix(in oklch, var(--shop-color-text) 65%, var(--shop-color-bg));
--shop-color-surface: color-mix(in oklch, var(--shop-color-text) 4%, var(--shop-color-bg));
--shop-color-success-bg: color-mix(in oklch, var(--shop-color-success) 10%, var(--shop-color-bg));
--shop-color-warning-bg: color-mix(in oklch, var(--shop-color-warning) 10%, var(--shop-color-bg));
--shop-color-danger-bg: color-mix(in oklch, var(--shop-color-danger) 10%, var(--shop-color-bg));
--shop-color-info-bg: color-mix(in oklch, var(--shop-color-info) 10%, var(--shop-color-bg));
/* Structural */
--shop-space-1: 0.25rem;
--shop-space-2: 0.5rem;
--shop-space-3: 0.75rem;
--shop-space-4: 1rem;
--shop-space-5: 1.5rem;
--shop-space-6: 3rem;
--shop-font-size-sm: 0.875rem;
--shop-font-size-base: 1rem;
--shop-font-size-lg: 1.25rem;
--shop-font-size-xl: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
--shop-line-height: 1.5;
--shop-card-min: 14rem;
--shop-btn-padding: 0.625rem 1.25rem;
--shop-shadow: 0 1px 3px rgb(0 0 0 / 0.12);
--shop-border: 1px solid var(--shop-color-border);
--shop-container-max: 75rem;
--shop-focus-ring: 2px solid var(--shop-color-primary);
--shop-touch-min: 44px;
/* Gallery layout (Lighthouse redesign): headings, labels, the "wall" panel behind artworks, section rhythm. */
--shop-color-heading: var(--shop-color-text);
--shop-color-panel: var(--shop-color-surface);
--shop-color-meta: var(--shop-color-muted);
--shop-color-rule: var(--shop-color-border);
--shop-heading-weight: 700;
--shop-display-weight: 400;
--shop-body-weight: 400;
--shop-label-size: 0.8125rem;
--shop-label-tracking: 0.12em;
--shop-label-transform: uppercase;
--shop-gutter: clamp(1rem, 2.5vw, 1.5rem);
--shop-section-space: clamp(3rem, 6vw, 5.5rem);
--shop-wall-padding: clamp(1.5rem, 4vw, 3.5rem);
--shop-tile-frame: 10%;   /* the even border round a framed tile's picture (a % of the tile's width) */
--shop-color-hover: #c40962;   /* a tile's name on hover (section page) */
--shop-tile-hover-lighten: 55%;   /* how far a hovered tile's panel moves towards white */
--shop-tile-hover-brightness: 1.04;   /* a hovered tile's picture, slightly lighter */
--shop-shadow-artwork: 0 8px 24px rgb(0 0 0 / 0.12);
--shop-header-gap: 1.75rem;
/* Aion Atelier's panel under the footer (_platform.css): the platform's brand, the same on every site. */
--shop-platform-bg: #1f1e1c;      /* the brand's "ivory on charcoal" scheme */
--shop-platform-ink: #f7f4ee;
--shop-platform-soft: #c9c3b8;
--shop-platform-accent: #c9c3b8;  /* the rules: soft ivory (terracotta is too dim on charcoal) */
--shop-font-platform: "Aion Cormorant Garamond", "Cormorant Garamond", Georgia, serif;
/* View in a room (_room.css): swatches for the rendered wall colours, as measured in the renders (tools/rooms). */
--shop-room-wall-white: #d8d3d0;
--shop-room-wall-charcoal: #232325;
--shop-room-wall-green: #4e6145;
}
}
/* Reset scoped to .shop-root: ShopCart never restyles the host page. */
@layer shop.reset {
:where(.shop-root),
:where(.shop-root) *,
:where(.shop-root) *::before,
:where(.shop-root) *::after {
box-sizing: border-box;
}
:where(.shop-root) :where(h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd) {
margin: 0;
}
:where(.shop-root) :where(ul, ol)[class] {
margin: 0;
padding: 0;
list-style: none;
}
:where(.shop-root) :where(img, svg, video) {
display: block;
max-width: 100%;
height: auto;
}
:where(.shop-root) :where(input, button, textarea, select) {
font: inherit;
color: inherit;
}
}
@layer shop.base {
:where(.shop-root) {
color: var(--shop-color-text);
background-color: var(--shop-color-bg);
font-family: var(--shop-font-body);
font-size: var(--shop-font-size-base);
font-weight: var(--shop-body-weight);
line-height: var(--shop-line-height);
}
:where(.shop-root) :where(h1, h2, h3, h4) {
font-family: var(--shop-font-heading);
font-weight: var(--shop-heading-weight);
line-height: 1.2;
color: var(--shop-color-heading);
}
:where(.shop-root) :where(h1) {
font-size: var(--shop-font-size-xl);
}
:where(.shop-root) :where(h2) {
font-size: var(--shop-font-size-lg);
}
:where(.shop-root) :where(a) {
color: var(--shop-color-primary);
text-underline-offset: 0.15em;
}
:where(.shop-root) :where(a:hover) {
color: var(--shop-color-primary-hover);
}
:where(.shop-root) :focus-visible {
outline: var(--shop-focus-ring);
outline-offset: 2px;
}
:where(.shop-container) {
width: 100%;
max-width: var(--shop-container-max);
margin-inline: auto;
padding-inline: var(--shop-gutter);
padding-block: var(--shop-space-5);
}
@media (prefers-reduced-motion: reduce) {
:where(.shop-root) *,
:where(.shop-root) *::before,
:where(.shop-root) *::after {
animation-duration: 0.01ms;
animation-iteration-count: 1;
transition-duration: 0.01ms;
scroll-behavior: auto;
}
}
}
/* Layout helpers (spec §9.1: mobile first, breakpoints 640 / 960 / 1200). */
@layer shop.components {
:where(.shop-grid) {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(var(--shop-card-min), 1fr));
gap: var(--shop-space-5);
margin: 0;
padding: 0;
list-style: none;
}
:where(.shop-cluster) {
display: flex;
flex-wrap: wrap;
gap: var(--shop-space-2);
align-items: center;
margin: 0;
padding: 0;
list-style: none;
}
:where(.shop-split) {
display: grid;
gap: var(--shop-space-5);
}
@media (min-width: 960px) {
:where(.shop-split) {
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
gap: var(--shop-space-6);
}
}
/* The standalone header, skip link and footer are in _site.css. */
:where(.shop-category-list) {
grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
gap: var(--shop-space-3);
}
:where(.shop-category-tile) {
display: flex;
align-items: center;
min-height: var(--shop-touch-min);
padding: var(--shop-space-3) var(--shop-space-4);
border: var(--shop-border);
border-radius: var(--shop-radius);
background-color: var(--shop-color-surface);
color: var(--shop-color-text);
font-weight: 600;
text-decoration: none;
}
:where(.shop-category-tile:hover) {
border-color: var(--shop-color-primary);
color: var(--shop-color-primary);
}
/* Tile with a picture: a square, framed shop-tile above the name and an arrow (see _gallery.css; never enlarged). */
:where(.shop-category-tile--image) {
display: flex;
flex-direction: column;
align-items: stretch;
gap: 0.875rem;
padding: 0;
border: 0;
background: none;
font-weight: inherit;
}
:where(.shop-category-tile__footer) {
display: flex;
justify-content: space-between;
align-items: baseline;
gap: var(--shop-space-3);
}
:where(.shop-category-tile__name) {
font-family: var(--shop-font-heading);
font-size: 1.5rem;
font-weight: var(--shop-display-weight);
color: var(--shop-color-heading);
}
:where(.shop-category-tile__arrow) {
font-size: 1.125rem;
}
:where(.shop-category-tile__note) {
font-size: var(--shop-font-size-sm);
color: var(--shop-color-meta);
}
:where(.shop-listing-controls) {
display: flex;
flex-wrap: wrap;
align-items: end;
gap: var(--shop-space-3) var(--shop-space-4);
}
:where(.shop-listing-controls__count) {
margin-inline-start: auto;
}
}
@layer shop.components {
:where(.shop-btn) {
display: inline-flex;
align-items: center;
justify-content: center;
gap: var(--shop-space-2);
min-height: var(--shop-touch-min);
padding: var(--shop-btn-padding);
border: 1px solid var(--shop-color-primary);
border-radius: var(--shop-radius);
background-color: var(--shop-color-bg);
color: var(--shop-color-primary);
font-weight: 600;
line-height: 1.2;
text-decoration: none;
cursor: pointer;
transition: background-color 0.15s ease, color 0.15s ease;
}
:where(.shop-btn:hover) {
background-color: var(--shop-color-surface);
}
:where(.shop-btn--primary) {
background-color: var(--shop-color-primary);
color: var(--shop-color-on-primary);
}
:where(.shop-btn--primary:hover) {
background-color: var(--shop-color-primary-hover);
border-color: var(--shop-color-primary-hover);
}
:where(.shop-btn--danger) {
border-color: var(--shop-color-danger);
background-color: var(--shop-color-danger);
color: var(--shop-color-on-primary);
}
:where(.shop-btn--secondary) {
border-color: var(--shop-color-border);
color: var(--shop-color-text);
}
:where(.shop-btn--link) {
border-color: transparent;
background-color: transparent;
text-decoration: underline;
}
:where(.shop-btn:disabled, .shop-btn[aria-disabled="true"]) {
opacity: 0.55;
cursor: not-allowed;
}
:where(.shop-icon) {
width: 1.25em;
height: 1.25em;
flex: none;
}
}
@layer shop.components {
:where(.shop-field) {
display: grid;
gap: var(--shop-space-1);
}
:where(.shop-field__label) {
font-weight: 600;
}
:where(.shop-input, .shop-select) {
min-height: var(--shop-touch-min);
padding: var(--shop-space-2) var(--shop-space-3);
border: var(--shop-border);
border-radius: var(--shop-radius);
background-color: var(--shop-color-bg);
color: var(--shop-color-text);
}
:where(.shop-check) {
display: inline-flex;
align-items: center;
gap: var(--shop-space-2);
min-height: var(--shop-touch-min);
cursor: pointer;
}
:where(.shop-check input) {
width: 1.25rem;
height: 1.25rem;
accent-color: var(--shop-color-primary);
}
/* Option radios styled as chips; the native input stays focusable and visible to assistive tech. */
:where(.shop-radio-group) {
margin: 0;
padding: 0;
border: 0;
min-inline-size: 0;
}
:where(.shop-radio-group legend) {
margin-block-end: var(--shop-space-2);
padding: 0;
}
:where(.shop-option) {
position: relative;
}
:where(.shop-option input) {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
margin: 0;
opacity: 0;
cursor: pointer;
}
:where(.shop-option label) {
display: inline-flex;
align-items: center;
gap: var(--shop-space-1);
min-height: var(--shop-touch-min);
padding: var(--shop-space-2) var(--shop-space-4);
border: var(--shop-border);
border-radius: var(--shop-radius);
background-color: var(--shop-color-bg);
}
:where(.shop-option input:checked + label) {
border-color: var(--shop-color-primary);
box-shadow: inset 0 0 0 1px var(--shop-color-primary);
font-weight: 600;
}
:where(.shop-option input:focus-visible + label) {
outline: var(--shop-focus-ring);
outline-offset: 2px;
}
:where(.shop-option__note) {
color: var(--shop-color-muted);
font-size: var(--shop-font-size-sm);
font-weight: 400;
}
:where(.shop-options) {
display: grid;
gap: var(--shop-space-4);
}
}
@layer shop.components {
:where(.shop-breadcrumbs ol) {
display: flex;
flex-wrap: wrap;
gap: var(--shop-space-1) var(--shop-space-2);
margin: 0;
padding: 0;
list-style: none;
font-size: var(--shop-font-size-sm);
color: var(--shop-color-muted);
}
:where(.shop-breadcrumbs li + li)::before {
content: "/";
margin-inline-end: var(--shop-space-2);
color: var(--shop-color-border);
}
:where(.shop-pagination ul) {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: var(--shop-space-2);
margin: 0;
padding: 0;
list-style: none;
}
:where(.shop-pagination a, .shop-pagination [aria-current="page"]) {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: var(--shop-touch-min);
min-height: var(--shop-touch-min);
padding: 0 var(--shop-space-3);
border: var(--shop-border);
border-radius: var(--shop-radius);
text-decoration: none;
}
:where(.shop-pagination [aria-current="page"]) {
background-color: var(--shop-color-primary);
border-color: var(--shop-color-primary);
color: var(--shop-color-on-primary);
font-weight: 600;
}
:where(.shop-search) {
display: flex;
gap: var(--shop-space-2);
max-width: 32rem;
width: 100%;
}
:where(.shop-search__input) {
flex: 1 1 auto;
min-width: 0;
}
}
@layer shop.components {
/* Product cards */
:where(.shop-card) {
display: grid;
gap: var(--shop-space-2);
height: 100%;
}
:where(.shop-card__link) {
display: grid;
gap: var(--shop-space-2);
color: var(--shop-color-text);
text-decoration: none;
}
:where(.shop-card__link:hover .shop-card__title) {
color: var(--shop-color-primary);
text-decoration: underline;
}
:where(.shop-card__media) {
display: flex;
align-items: center;
justify-content: center;
aspect-ratio: 1 / 1;
overflow: hidden;
border-radius: var(--shop-radius);
background-color: var(--shop-color-surface);
}
/* Shown whole and never enlarged: the image shrinks to the square but is never stretched to it (redesign R1). */
:where(.shop-card__media, .shop-gallery__figure) :where(picture) {
display: contents;
}
:where(.shop-card__media img, .shop-gallery__figure img) {
width: auto;
height: auto;
max-width: 100%;
max-height: 100%;
}
:where(.shop-card__placeholder, .shop-gallery__placeholder) {
display: block;
width: 100%;
height: 100%;
aspect-ratio: 1 / 1;
border-radius: var(--shop-radius);
background-color: var(--shop-color-surface);
}
:where(.shop-card__title) {
margin: 0;
font-size: var(--shop-font-size-base);
font-weight: 600;
}
/* Prices and stock */
:where(.shop-price) {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: var(--shop-space-2);
margin: 0;
}
:where(.shop-price__now) {
font-weight: 700;
}
:where(.shop-price--large .shop-price__now) {
font-size: var(--shop-font-size-xl);
}
:where(.shop-price__was) {
color: var(--shop-color-muted);
}
:where(.shop-stock) {
margin: 0;
font-size: var(--shop-font-size-sm);
font-weight: 600;
}
:where(.shop-stock--in) {
color: var(--shop-color-success);
}
:where(.shop-stock--low, .shop-stock--backorder) {
color: var(--shop-color-warning);
}
:where(.shop-stock--out) {
color: var(--shop-color-danger);
}
/* Product page */
:where(.shop-product) {
display: grid;
gap: var(--shop-space-5);
}
@media (min-width: 960px) {
:where(.shop-product) {
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
gap: var(--shop-space-6);
align-items: start;
}
}
:where(.shop-product__title) {
margin: 0;
}
:where(.shop-gallery) {
display: grid;
gap: var(--shop-space-3);
}
:where(.shop-gallery__figure) {
display: flex;
align-items: center;
justify-content: center;
margin: 0;
aspect-ratio: 1 / 1;
overflow: hidden;
border-radius: var(--shop-radius);
background-color: var(--shop-color-surface);
}
/* With JavaScript the main image opens the zoom view. */
:where(.shop-gallery__figure--zoom) {
cursor: zoom-in;
}
:where(.shop-gallery__zoom) {
justify-self: start;
}
:where(.shop-gallery__thumbs) {
display: flex;
flex-wrap: wrap;
gap: var(--shop-space-2);
margin: 0;
padding: 0;
list-style: none;
}
:where(.shop-gallery__thumb) {
display: block;
border: 2px solid transparent;
border-radius: var(--shop-radius);
overflow: hidden;
}
:where(.shop-gallery__thumb[aria-current="true"]) {
border-color: var(--shop-color-primary);
}
:where(.shop-gallery__thumb img) {
width: 80px;
height: 80px;
object-fit: cover;
}
/* Sanitised rich text from the admin */
:where(.shop-prose) > * + * {
margin-block-start: var(--shop-space-3);
}
:where(.shop-prose) :where(ul, ol) {
padding-inline-start: var(--shop-space-5);
}
:where(.shop-prose) :where(blockquote) {
margin-inline: 0;
padding-inline-start: var(--shop-space-4);
border-inline-start: 3px solid var(--shop-color-border);
color: var(--shop-color-muted);
}
}
/* Gallery (Phase 2b): artist line, price on application, availability markers, details list, delivery, enquiry form,
listing filter chips. */
@layer shop.components {
:where(.shop-card__artist, .shop-product__artist) {
margin: 0;
color: var(--shop-color-muted);
}
:where(.shop-product__artist) {
font-size: var(--shop-font-size-lg);
}
/* The artist link is never underlined; it changes colour on hover and keyboard focus. */
:where(.shop-product__artist a) {
text-decoration: none;
}
:where(.shop-product__artist a:hover, .shop-product__artist a:focus-visible) {
color: var(--shop-color-hover);
text-decoration: none;
}
/* Size, medium, framed, signed, year: directly under the artist's name. */
:where(.shop-product__facts) {
margin: 0;
padding: 0;
list-style: none;
color: var(--shop-color-muted);
}
:where(.shop-price__poa) {
font-style: italic;
}
/* Reserved / NFS / Sold. Text always carries the meaning; the dot is decoration. */
:where(.shop-availability) {
display: inline-flex;
align-items: center;
gap: var(--shop-space-2);
margin: 0;
font-size: var(--shop-font-size-sm);
font-weight: 600;
}
:where(.shop-availability)::before {
content: "";
width: 0.625rem;
height: 0.625rem;
border-radius: 50%;
background-color: var(--shop-color-muted);
}
:where(.shop-availability--sold)::before {
background-color: var(--shop-color-danger);
}
:where(.shop-availability--reserved)::before {
background-color: var(--shop-color-warning);
}
:where(.shop-availability abbr, .shop-stock abbr) {
text-decoration: none;
}
:where(.shop-stock--reserved) {
color: var(--shop-color-warning);
}
:where(.shop-stock--nfs) {
color: var(--shop-color-muted);
}
:where(.shop-details) {
display: grid;
gap: var(--shop-space-2);
margin: 0;
padding: var(--shop-space-4) 0;
border-block: var(--shop-border);
}
:where(.shop-details__row) {
display: grid;
grid-template-columns: minmax(7rem, 35%) 1fr;
gap: var(--shop-space-3);
}
:where(.shop-details dt) {
color: var(--shop-color-muted);
}
:where(.shop-details dd) {
margin: 0;
}
:where(.shop-product__delivery) {
margin: 0;
font-size: var(--shop-font-size-sm);
}
:where(.shop-enquiry) {
display: grid;
gap: var(--shop-space-4);
padding: var(--shop-space-5);
border: var(--shop-border);
border-radius: var(--shop-radius);
background-color: var(--shop-color-surface);
}
:where(.shop-enquiry__title) {
margin: 0;
font-size: var(--shop-font-size-lg);
}
/* Honeypot: off-screen rather than display:none, so simple bots still fill it in. */
:where(.shop-enquiry__trap) {
position: absolute;
left: -10000px;
width: 1px;
height: 1px;
overflow: hidden;
}
:where(.shop-chips) {
margin: 0;
padding: 0;
list-style: none;
}
:where(.shop-chip) {
display: inline-flex;
align-items: center;
gap: var(--shop-space-2);
min-height: var(--shop-touch-min);
padding: 0 var(--shop-space-3);
border: var(--shop-border);
border-radius: 999px;
color: var(--shop-color-text);
text-decoration: none;
}
:where(.shop-chip:hover) {
border-color: var(--shop-color-primary);
}
:where(.shop-chip__remove) {
font-weight: 700;
}
}
/* Postage window on an artwork page: a native dialog styled with the shop's tokens. */
@layer shop.components {
:where(.shop-dialog) {
width: min(36rem, calc(100vw - 2 * var(--shop-space-4)));
max-height: calc(100vh - 2 * var(--shop-space-4));
padding: 0;
border: 1px solid var(--shop-color-border);
border-radius: var(--shop-radius);
background-color: var(--shop-color-bg);
color: var(--shop-color-text);
overflow: hidden;
}
:where(.shop-dialog)[open] {
display: flex;
flex-direction: column;
}
:where(.shop-dialog)::backdrop {
background: rgb(0 0 0 / 0.5);
}
:where(.shop-dialog__header) {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--shop-space-3);
padding: var(--shop-space-3) var(--shop-space-4);
border-block-end: 1px solid var(--shop-color-border);
}
:where(.shop-dialog__title) {
margin: 0;
font-size: var(--shop-font-size-lg);
}
:where(.shop-dialog__close) {
min-width: var(--shop-touch-min, 44px);
min-height: var(--shop-touch-min, 44px);
border: 0;
background: transparent;
color: inherit;
font-size: 1.5rem;
line-height: 1;
cursor: pointer;
}
:where(.shop-dialog__close):focus-visible {
outline: 2px solid var(--shop-color-primary);
outline-offset: 2px;
}
:where(.shop-dialog__body) {
padding: var(--shop-space-4);
overflow-y: auto;
}
:where(.shop-postage__zone) {
margin-block-start: var(--shop-space-4);
padding-block-start: var(--shop-space-3);
border-block-start: 1px solid var(--shop-color-border);
}
:where(.shop-postage__option) {
margin-block: var(--shop-space-2);
}
}
/*
Zoom view on a product page: the same dialog, nearly full screen. The large image is fitted to the screen (shrunk only, never
enlarged); "Actual size" shows it at its own pixels and the stage scrolls to pan.
*/
@layer shop.components {
:where(.shop-zoom) {
width: calc(100vw - 2 * var(--shop-space-3));
max-width: none;
height: calc(100vh - 2 * var(--shop-space-3));
max-height: none;
}
:where(.shop-zoom__count) {
color: var(--shop-color-muted);
font-weight: 400;
}
:where(.shop-zoom__tools) {
display: flex;
align-items: center;
gap: var(--shop-space-2);
}
:where(.shop-zoom__stage) {
position: relative;
display: flex;
flex: 1 1 auto;
min-height: 0;
overflow: auto;
background-color: var(--shop-color-surface);
overscroll-behavior: contain;
}
:where(.shop-zoom__stage):focus-visible {
outline: 2px solid var(--shop-color-primary);
outline-offset: -2px;
}
:where(.shop-zoom__figure) {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
margin: 0;
padding: var(--shop-space-3);
}
:where(.shop-zoom__figure) :where(picture) {
display: contents;
}
:where(.shop-zoom__img) {
width: auto;
height: auto;
max-width: 100%;
max-height: 100%;
cursor: zoom-in;
}
:where(.shop-zoom__nav) {
display: flex;
justify-content: space-between;
gap: var(--shop-space-3);
padding: var(--shop-space-3) var(--shop-space-4);
border-block-start: 1px solid var(--shop-color-border);
}
/* Actual size: the figure grows to the image and centres itself while smaller than the stage (margin: auto keeps every edge
reachable by scrolling, which centring with justify-content would not). */
:where(.shop-zoom--actual) :where(.shop-zoom__figure) {
width: auto;
height: auto;
margin: auto;
}
:where(.shop-zoom--actual) :where(.shop-zoom__img) {
max-width: none;
max-height: none;
cursor: zoom-out;
}
}
/* Artists: the artist card grid (section pages, /artists). The artist page itself is in _gallery.css. */
@layer shop.components {
:where(.shop-artist-grid) {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr));
gap: 3rem 2rem;
margin: 0;
padding: 0;
list-style: none;
}
:where(.shop-artist-card) {
display: flex;
flex-direction: column;
gap: 0.875rem;
color: var(--shop-color-text);
text-decoration: none;
}
:where(.shop-artist-card__footer) {
display: flex;
justify-content: space-between;
align-items: baseline;
gap: var(--shop-space-3);
}
:where(.shop-artist-card__name) {
font-family: var(--shop-font-heading);
font-size: 1.5rem;
font-weight: var(--shop-display-weight);
line-height: 1.2;
color: var(--shop-color-heading);
}
:where(.shop-artist-card__view) {
flex: none;
font-size: 0.75rem;
letter-spacing: var(--shop-label-tracking);
text-transform: var(--shop-label-transform);
color: var(--shop-color-meta);
}
:where(.shop-artist-card:hover .shop-artist-card__name, .shop-artist-card:focus-visible .shop-artist-card__name) {
text-decoration: underline;
text-underline-offset: 0.15em;
}
}
/* Basket (Phase 3): lines stack on narrow screens and become rows from 640 px; header basket link; shared totals.
Also: multi-line input, field errors, small/full-width buttons used by the checkout and the 2b enquiry form. */
@layer shop.components {
:where(.shop-textarea) {
min-height: calc(var(--shop-touch-min) * 2);
padding: var(--shop-space-2) var(--shop-space-3);
border: var(--shop-border);
border-radius: var(--shop-radius);
background-color: var(--shop-color-bg);
color: var(--shop-color-text);
font: inherit;
resize: vertical;
}
:where(.shop-input[aria-invalid="true"], .shop-select[aria-invalid="true"], .shop-textarea[aria-invalid="true"]) {
border-color: var(--shop-color-danger);
}
:where(.shop-field__error) {
color: var(--shop-color-danger);
font-size: var(--shop-font-size-sm);
font-weight: 600;
}
:where(.shop-input--quantity) {
width: 6rem;
}
:where(.shop-btn--small) {
min-height: 2.25rem;
padding: var(--shop-space-1) var(--shop-space-3);
font-size: var(--shop-font-size-sm);
}
:where(.shop-btn--block) {
width: 100%;
justify-content: center;
}
:where(.shop-preserve-lines) {
white-space: pre-line;
overflow-wrap: anywhere;
}
:where(.shop-cart-link) {
display: inline-flex;
align-items: center;
gap: var(--shop-space-2);
min-height: var(--shop-touch-min);
color: var(--shop-color-text);
text-decoration: none;
}
:where(.shop-cart-link__count) {
min-width: 1.75rem;
padding: 0 var(--shop-space-2);
border-radius: 999px;
background-color: var(--shop-color-primary);
color: var(--shop-color-on-primary);
font-size: var(--shop-font-size-sm);
font-weight: 700;
text-align: center;
}
:where(.shop-add) {
display: flex;
flex-wrap: wrap;
align-items: flex-end;
gap: var(--shop-space-3);
}
:where(.shop-add .shop-alert) {
flex-basis: 100%;
}
:where(.shop-cart) {
display: grid;
gap: var(--shop-space-5);
}
@media (min-width: 960px) {
:where(.shop-cart) {
grid-template-columns: 1fr minmax(16rem, 22rem);
align-items: start;
}
}
:where(.shop-cart__lines) {
display: grid;
gap: var(--shop-space-4);
margin: 0;
padding: 0;
list-style: none;
}
:where(.shop-cart__line) {
display: grid;
grid-template-columns: 5rem 1fr;
gap: var(--shop-space-2) var(--shop-space-4);
padding-block-end: var(--shop-space-4);
border-block-end: var(--shop-border);
}
:where(.shop-cart__media) {
display: flex;
align-items: center;
justify-content: center;
grid-row: span 3;
width: 5rem;
aspect-ratio: 1 / 1;
overflow: hidden;
border-radius: var(--shop-radius);
background-color: var(--shop-color-surface);
}
:where(.shop-cart__media) :where(picture) {
display: contents;
}
:where(.shop-cart__media img) {
width: auto;
height: auto;
max-width: 100%;
max-height: 100%;
}
:where(.shop-cart__info) {
display: grid;
gap: var(--shop-space-1);
}
:where(.shop-cart__name) {
color: var(--shop-color-text);
font-weight: 600;
}
:where(.shop-cart__meta) {
color: var(--shop-color-muted);
font-size: var(--shop-font-size-sm);
}
:where(.shop-cart__problem) {
color: var(--shop-color-danger);
font-size: var(--shop-font-size-sm);
font-weight: 600;
}
:where(.shop-cart__quantity) {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--shop-space-2);
}
:where(.shop-cart__total) {
margin: 0;
font-weight: 700;
}
@media (min-width: 640px) {
:where(.shop-cart__line) {
grid-template-columns: 5rem 1fr auto auto;
align-items: center;
}
:where(.shop-cart__media) {
grid-row: auto;
}
:where(.shop-cart__remove) {
grid-column: 2 / -1;
}
}
:where(.shop-cart__summary) {
padding: var(--shop-space-4);
border: var(--shop-border);
border-radius: var(--shop-radius);
background-color: var(--shop-color-surface);
}
:where(.shop-totals) {
display: grid;
gap: var(--shop-space-2);
margin: 0;
}
:where(.shop-totals__row) {
display: flex;
justify-content: space-between;
gap: var(--shop-space-3);
}
:where(.shop-totals__row dd) {
margin: 0;
font-variant-numeric: tabular-nums;
}
:where(.shop-totals__row--total) {
padding-block-start: var(--shop-space-2);
border-block-start: var(--shop-border);
font-size: var(--shop-font-size-lg);
font-weight: 700;
}
:where(.shop-summary-lines) {
display: grid;
gap: var(--shop-space-2);
margin: 0;
padding: 0;
list-style: none;
}
:where(.shop-summary-lines__item) {
display: flex;
justify-content: space-between;
gap: var(--shop-space-3);
}
}
/* External lines (Phase 5): items added by another site, with its details. */
@layer shop.components {
/* Another site's picture: its size is unknown, so it is shown whole and only ever shrunk. */
:where(.shop-cart__image) {
display: block;
max-width: 100%;
max-height: 100%;
height: auto;
border-radius: var(--shop-radius);
}
:where(.shop-cart__source) {
font-size: var(--shop-font-size-sm);
color: var(--shop-color-muted);
}
:where(.shop-cart__details) {
display: grid;
gap: var(--shop-space-1);
margin: var(--shop-space-1) 0 0;
font-size: var(--shop-font-size-sm);
}
:where(.shop-cart__details) > div {
display: flex;
flex-wrap: wrap;
gap: var(--shop-space-1);
}
:where(.shop-cart__details) dt::after {
content: ":";
}
:where(.shop-cart__details) dd {
margin: 0;
}
}
/* Discount code (Phase 6b): the basket's code form, the applied code and its messages. */
@layer shop.components {
:where(.shop-discount) {
display: grid;
gap: var(--shop-space-2);
padding-block-start: var(--shop-space-3);
border-block-start: var(--shop-border);
}
:where(.shop-discount__form) {
display: grid;
gap: var(--shop-space-1);
}
:where(.shop-discount__row) {
display: flex;
gap: var(--shop-space-2);
}
:where(.shop-discount__row .shop-input) {
flex: 1 1 auto;
min-width: 0;
text-transform: uppercase;
}
:where(.shop-discount__code) {
margin: 0;
}
}
/* Checkout and confirmation (Phase 3): form sections, delivery choices, sticky summary on wide screens. */
@layer shop.components {
:where(.shop-checkout) {
display: grid;
gap: var(--shop-space-5);
}
@media (min-width: 960px) {
:where(.shop-checkout) {
grid-template-columns: 1fr minmax(18rem, 24rem);
align-items: start;
}
:where(.shop-checkout__summary) {
position: sticky;
top: var(--shop-space-4);
}
}
:where(.shop-checkout__section) {
display: grid;
gap: var(--shop-space-4);
margin: 0;
padding: var(--shop-space-4);
border: var(--shop-border);
border-radius: var(--shop-radius);
min-inline-size: 0;
}
:where(.shop-checkout__heading) {
padding: 0;
font-family: var(--shop-font-heading);
font-size: var(--shop-font-size-lg);
font-weight: 700;
}
:where(.shop-checkout__fields) {
display: grid;
gap: var(--shop-space-3);
}
@media (min-width: 640px) {
:where(.shop-checkout__fields) {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
:where(.shop-checkout__summary) {
padding: var(--shop-space-4);
border: var(--shop-border);
border-radius: var(--shop-radius);
background-color: var(--shop-color-surface);
}
/* Delivery choices: the whole card is the radio's label. */
:where(.shop-choice-list) {
display: grid;
gap: var(--shop-space-2);
}
:where(.shop-choice) {
display: grid;
grid-template-columns: auto 1fr auto;
align-items: center;
gap: var(--shop-space-1) var(--shop-space-3);
min-height: var(--shop-touch-min);
padding: var(--shop-space-3);
border: var(--shop-border);
border-radius: var(--shop-radius);
cursor: pointer;
}
:where(.shop-choice:has(input:checked)) {
border-color: var(--shop-color-primary);
box-shadow: inset 0 0 0 1px var(--shop-color-primary);
}
:where(.shop-choice input) {
width: 1.25rem;
height: 1.25rem;
accent-color: var(--shop-color-primary);
}
:where(.shop-choice__label) {
font-weight: 600;
}
:where(.shop-choice__price) {
font-variant-numeric: tabular-nums;
}
:where(.shop-choice__detail) {
grid-column: 2 / -1;
color: var(--shop-color-muted);
font-size: var(--shop-font-size-sm);
}
:where(.shop-address) {
font-style: normal;
}
:where(.shop-confirmation) {
max-width: 48rem;
}
/* Pay link page (Phase 3b): Pay and Decline side by side, wrapping on narrow screens. */
:where(.shop-pay__actions) {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--shop-space-3);
}
}
/* Customer accounts (Phase 6a): narrow forms, section navigation, order and address lists, header account link. */
@layer shop.components {
:where(.shop-account) {
display: grid;
gap: var(--shop-space-5);
}
@media (min-width: 768px) {
:where(.shop-account--with-nav) {
grid-template-columns: minmax(12rem, 16rem) 1fr;
align-items: start;
}
}
:where(.shop-account-form) {
display: grid;
gap: var(--shop-space-4);
max-width: 32rem;
}
:where(.shop-account-nav__list) {
display: flex;
flex-wrap: wrap;
gap: var(--shop-space-2) var(--shop-space-4);
margin: 0;
padding: 0;
list-style: none;
}
@media (min-width: 768px) {
:where(.shop-account-nav__list) {
flex-direction: column;
}
}
:where(.shop-account-nav__link[aria-current="page"]) {
font-weight: 700;
}
:where(.shop-field__hint) {
color: var(--shop-color-muted);
font-size: var(--shop-font-size-sm);
}
:where(.shop-inline-form) {
display: inline;
}
:where(.shop-link-button) {
padding: 0;
border: 0;
background: none;
color: var(--shop-color-primary);
font: inherit;
text-decoration: underline;
cursor: pointer;
}
:where(.shop-order-list) {
width: 100%;
border-collapse: collapse;
}
:where(.shop-order-list th, .shop-order-list td) {
padding: var(--shop-space-2) var(--shop-space-3);
border-block-end: var(--shop-border);
text-align: start;
}
:where(.shop-order-list .shop-order-list__amount) {
text-align: end;
white-space: nowrap;
}
:where(.shop-address-list) {
display: grid;
gap: var(--shop-space-4);
grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
margin: 0;
padding: 0;
list-style: none;
}
:where(.shop-address-card) {
display: grid;
gap: var(--shop-space-3);
padding: var(--shop-space-4);
border: var(--shop-border);
border-radius: var(--shop-radius);
}
:where(.shop-address-card__actions) {
display: flex;
flex-wrap: wrap;
gap: var(--shop-space-3);
}
:where(.shop-badge) {
display: inline-block;
padding: 0 var(--shop-space-2);
border-radius: var(--shop-radius);
background-color: var(--shop-color-surface);
font-size: var(--shop-font-size-sm);
}
:where(.shop-account-link, .shop-artists-link) {
white-space: nowrap;
}
}
/* Private view invitation reply page (collectors C3). */
@layer shop.components {
:where(.shop-rsvp) {
max-width: 40rem;
}
:where(.shop-rsvp__stop) {
border-top: var(--shop-border);
padding-top: var(--shop-space-4);
}
}
/* Standalone layout (Mode B, Lighthouse redesign R2): sticky header with the section links and basket, a menu button on
narrow screens (shop-layout.js), and the footer (admin columns, newsletter, policy links, copyright and credit). */
@layer shop.components {
:where(.shop-site-header) {
position: sticky;
inset-block-start: 0;
z-index: 20;
border-block-end: 1px solid var(--shop-color-panel);
background-color: var(--shop-color-bg);
}
:where(.shop-site-header__inner) {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: var(--shop-space-3) var(--shop-space-5);
padding-block: 0.875rem;
}
:where(.shop-site-header__brand) {
display: block;
flex: 0 1 auto;
font-family: var(--shop-font-heading);
font-size: var(--shop-font-size-lg);
font-weight: var(--shop-heading-weight);
color: var(--shop-color-heading);
text-decoration: none;
}
/* The logo's width comes from its width attribute (LogoWidth); it never grows past it, and shrinks on small screens. */
:where(.shop-site-header__logo) {
max-width: min(100%, 60vw);
height: auto;
}
:where(.shop-site-nav__list) {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--shop-space-2) var(--shop-header-gap);
margin: 0;
padding: 0;
list-style: none;
}
:where(.shop-site-nav__list > li:empty) {
display: none;
}
:where(.shop-site-nav__link, .shop-site-nav .shop-cart-link, .shop-site-nav .shop-artists-link) {
display: inline-flex;
align-items: center;
gap: var(--shop-space-1);
min-height: var(--shop-touch-min);
padding-block: 0.375rem;
border-block-end: 1px solid transparent;
color: var(--shop-color-text);
font-size: var(--shop-label-size);
letter-spacing: var(--shop-label-tracking);
text-transform: var(--shop-label-transform);
text-decoration: none;
}
:where(.shop-site-nav__link:hover, .shop-site-nav .shop-cart-link:hover, .shop-site-nav .shop-artists-link:hover) {
color: var(--shop-color-primary-hover);
}
/* The current section: a hairline under the link. */
:where(.shop-site-nav__link[aria-current="page"]) {
border-block-end-color: currentColor;
}
:where(.shop-site-nav__basket) {
padding-inline-start: 1.125rem;
border-inline-start: 1px solid var(--shop-color-panel);
}
/* In the header the basket count reads "Basket (0)" rather than a badge. */
:where(.shop-site-nav .shop-cart-link__count) {
min-width: 0;
padding: 0;
background: none;
color: inherit;
font-size: inherit;
font-weight: inherit;
}
:where(.shop-site-nav .shop-cart-link__count)::before {
content: "(";
}
:where(.shop-site-nav .shop-cart-link__count)::after {
content: ")";
}
:where(.shop-site-header__menu) {
display: inline-flex;
align-items: center;
gap: var(--shop-space-2);
min-height: var(--shop-touch-min);
padding: 0 var(--shop-space-3);
border: 1px solid var(--shop-color-text);
border-radius: var(--shop-radius);
background: none;
font-size: var(--shop-label-size);
letter-spacing: var(--shop-label-tracking);
text-transform: var(--shop-label-transform);
cursor: pointer;
}
:where(.shop-site-header__menu[hidden]) {
display: none;
}
:where(.shop-site-header__menu-icon) {
display: block;
width: 1rem;
height: 0.625rem;
border-block: 1px solid currentColor;
}
/* Narrow screens with the script: the links fold away behind the menu button. Without the script they wrap. */
@media (max-width: 899.98px) {
:where(.shop-site-header.has-menu .shop-site-nav) {
display: none;
flex: 1 0 100%;
}
:where(.shop-site-header.has-menu.is-menu-open .shop-site-nav) {
display: block;
}
:where(.shop-site-header.has-menu .shop-site-nav__list) {
flex-direction: column;
align-items: stretch;
gap: 0;
padding-block-end: var(--shop-space-3);
}
:where(.shop-site-header.has-menu .shop-site-nav__list > li) {
border-block-start: 1px solid var(--shop-color-panel);
}
:where(.shop-site-header.has-menu .shop-site-nav__basket) {
padding-inline-start: 0;
border-inline-start: 0;
}
:where(.shop-site-header__logo) {
max-width: min(11.25rem, 60vw);
}
}
@media (min-width: 900px) {
:where(.shop-site-header__menu) {
display: none;
}
}
/* Skip link: off screen until it has focus (WCAG 2.4.1). */
:where(.shop-skip-link) {
position: absolute;
inset-inline-start: var(--shop-space-3);
inset-block-start: var(--shop-space-3);
padding: var(--shop-space-2) var(--shop-space-3);
background-color: var(--shop-color-bg);
color: var(--shop-color-text);
border: var(--shop-border);
border-radius: var(--shop-radius);
transform: translateY(-300%);
}
:where(.shop-skip-link:focus-visible) {
transform: none;
z-index: 30;
}
/* Footer */
:where(.shop-site-footer) {
margin-block-start: var(--shop-section-space);
background-color: var(--shop-color-panel);
color: var(--shop-color-text);
font-size: 0.9375rem;
font-weight: var(--shop-body-weight);
line-height: 1.6;
}
/* The admin's footer HTML: each top-level block is a column next to the newsletter. */
:where(.shop-site-footer__columns) {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.75rem), 1fr));
gap: 2.5rem;
padding-block: 4rem 2.5rem;
}
:where(.shop-site-footer__content) {
display: contents;
}
:where(.shop-site-footer__content) > * {
display: flex;
flex-direction: column;
gap: 0.625rem;
}
:where(.shop-site-footer) :where(h2, h3) {
margin-block-end: 0.375rem;
font-family: var(--shop-font-heading);
font-size: 1.5rem;
font-weight: var(--shop-display-weight);
line-height: 1.2;
color: var(--shop-color-heading);
}
:where(.shop-site-footer) :where(a) {
color: inherit;
text-decoration: none;
}
:where(.shop-site-footer) :where(a:hover) {
color: var(--shop-color-primary-hover);
text-decoration: underline;
}
:where(.shop-site-footer__bar) {
display: flex;
flex-wrap: wrap;
align-items: baseline;
justify-content: space-between;
gap: var(--shop-space-4);
padding-block: 1.25rem 2rem;
border-block-start: 1px solid color-mix(in oklch, var(--shop-color-panel) 88%, var(--shop-color-text));
font-size: 0.75rem;
color: var(--shop-color-meta);
}
:where(.shop-site-footer__links, .shop-site-footer__legal) {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: var(--shop-space-1) 1.25rem;
margin: 0;
padding: 0;
list-style: none;
}
:where(.shop-site-footer__links > li:empty) {
display: none;
}
/* Newsletter sign-up: an email field and Join on one underlined line. */
:where(.shop-newsletter) {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
:where(.shop-newsletter__title) {
font-family: var(--shop-font-heading);
font-size: 1.5rem;
font-weight: var(--shop-display-weight);
color: var(--shop-color-heading);
}
:where(.shop-newsletter__form) {
display: grid;
gap: var(--shop-space-2);
}
:where(.shop-newsletter__row) {
display: flex;
align-items: center;
border-block-end: 1px solid var(--shop-color-text);
}
:where(.shop-newsletter__input) {
flex: 1 1 auto;
min-width: 0;
min-height: var(--shop-touch-min);
padding: 0.625rem 0;
border: 0;
background: none;
color: var(--shop-color-heading);
}
:where(.shop-newsletter__input--name) {
border-block-end: 1px solid color-mix(in oklch, var(--shop-color-text) 35%, transparent);
}
:where(.shop-newsletter__button) {
min-height: var(--shop-touch-min);
padding-inline: var(--shop-space-2) 0;
border: 0;
background: none;
color: var(--shop-color-heading);
font-size: 0.75rem;
letter-spacing: var(--shop-label-tracking);
text-transform: var(--shop-label-transform);
cursor: pointer;
}
:where(.shop-newsletter__button:hover) {
color: var(--shop-color-primary-hover);
text-decoration: underline;
}
/* Mailchimp's anti-bot field: off screen, never shown. */
:where(.shop-newsletter__trap) {
position: absolute;
inset-inline-start: -5000px;
}
}
/* Gallery layout (Lighthouse redesign R1–R6): page rhythm and type, the "wall" panel and tiles, the artist page
(introduction, works, in situ photos, sold archive, biography), the home page and exhibitions.
Pictures are never shown larger than their pixel size. ImageMarkup gives every image its real width/height and caps
`sizes`, so an image's own size is the most it can take; here images only shrink (max-width / max-height). The one
exception is a cropped tile marked shop-tile--cover, which the server only uses when the picture is at least as big
as the tile can get (ImageMarkup.TileClass). */
@layer shop.components {
/* ── Page rhythm and type ─────────────────────────────────────────────── */
:where(.shop-page) {
display: flex;
flex-direction: column;
gap: 0;
padding-block: 2.5rem var(--shop-section-space);
}
:where(.shop-page--narrow) {
max-width: 40rem;
gap: var(--shop-space-5);
}
:where(.shop-block) {
margin-block-start: 4.5rem;
}
/* First block on a page (home Collections): sits close under the header, no rule. */
:where(.shop-block--tight) {
margin-block-start: 1.5rem;
}
:where(.shop-block--ruled) {
padding-block-start: 1.25rem;
border-block-start: 1px solid var(--shop-color-panel);
}
:where(.shop-display-1, .shop-display-2, .shop-display-home) {
font-family: var(--shop-font-heading);
font-weight: var(--shop-display-weight);
color: var(--shop-color-heading);
text-wrap: balance;
}
:where(.shop-display-1) {
font-size: clamp(2.75rem, 5vw, 4.5rem);
line-height: 1;
}
:where(.shop-display-2) {
font-size: clamp(2rem, 3.5vw, 2.75rem);
line-height: 1.1;
}
:where(.shop-display-home) {
font-size: clamp(2.25rem, 4.4vw, 3.75rem);
line-height: 1.08;
}
:where(.shop-lead) {
font-size: 1.0625rem;
font-weight: var(--shop-body-weight);
line-height: 1.7;
text-wrap: pretty;
}
:where(.shop-eyebrow, .shop-trail ol, .shop-caption) {
font-size: 0.75rem;
letter-spacing: var(--shop-label-tracking);
text-transform: var(--shop-label-transform);
color: var(--shop-color-meta);
}
:where(.shop-eyebrow) {
margin-block-end: 0.625rem;
}
:where(.shop-caption) {
margin-block-start: 0.75rem;
}
:where(.shop-caption--plain) {
letter-spacing: normal;
text-transform: none;
}
/* A light breadcrumb: "Painting / Benjamin Warner". */
:where(.shop-trail) {
margin-block-end: 1.75rem;
}
:where(.shop-trail ol) {
display: flex;
flex-wrap: wrap;
gap: var(--shop-space-1) 0.625rem;
margin: 0;
padding: 0;
list-style: none;
}
:where(.shop-trail li + li)::before {
content: "/";
margin-inline-end: 0.625rem;
}
:where(.shop-trail a) {
color: var(--shop-color-meta);
text-decoration: none;
}
:where(.shop-trail [aria-current="page"]) {
color: var(--shop-color-text);
}
/* "Available now ........ 2 works" */
:where(.shop-section-head) {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: baseline;
gap: var(--shop-space-4);
margin-block-end: 1.75rem;
}
:where(.shop-section-head__title) {
font-family: var(--shop-font-heading);
font-size: clamp(1.75rem, 3vw, 2.25rem);
font-weight: var(--shop-display-weight);
line-height: 1.15;
color: var(--shop-color-heading);
}
:where(.shop-section-head__meta) {
font-size: 0.875rem;
font-weight: var(--shop-body-weight);
}
/* Outline button: hairline border, fills on hover. */
:where(.shop-btn--outline) {
border-color: var(--shop-color-text);
border-radius: var(--shop-radius);
background-color: transparent;
color: var(--shop-color-heading);
font-size: 0.75rem;
font-weight: 400;
letter-spacing: var(--shop-label-tracking);
text-transform: var(--shop-label-transform);
transition: background-color 0.2s ease, color 0.2s ease;
}
:where(.shop-btn--outline:hover) {
background-color: var(--shop-color-text);
color: var(--shop-color-bg);
}
:where(.shop-btn--large) {
padding: 0.875rem 1.625rem;
font-size: var(--shop-label-size);
}
:where(.shop-notice) {
margin-block-start: 2rem;
padding: var(--shop-space-4) var(--shop-space-5);
border-inline-start: 2px solid var(--shop-color-text);
background-color: var(--shop-color-panel);
}
/* ── Name + introduction, two columns that fold to one ────────────────── */
:where(.shop-intro-head) {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(100%, 26.25rem), 1fr));
gap: 2rem 6rem;
align-items: end;
padding-block-end: 2.5rem;
border-block-end: 1px solid var(--shop-color-panel);
}
:where(.shop-intro-head .shop-display-1) {
font-size: clamp(3rem, 6vw, 5.5rem);
line-height: 0.95;
}
:where(.shop-intro-head--home) {
align-items: start;
gap: 3rem 6rem;
padding-block: 4.5rem;
border-block-end: 0;
}
:where(.shop-intro-head__text) {
display: flex;
flex-direction: column;
gap: 1.125rem;
}
/* Section page header: eyebrow and title on the left, the count on the right. */
:where(.shop-collection-head) {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: flex-end;
gap: var(--shop-space-5);
margin-block-end: 2.5rem;
padding-block-end: 1.75rem;
border-block-end: 1px solid var(--shop-color-panel);
}
:where(.shop-collection-head__meta) {
font-size: 0.9375rem;
font-weight: var(--shop-body-weight);
}
/* ── The wall: a work shown whole on a square panel, never enlarged ───── */
:where(.shop-wall-grid) {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(100%, 27.5rem), 1fr));
gap: 3rem 2.5rem;
margin: 0;
padding: 0;
list-style: none;
}
:where(.shop-work) {
display: flex;
flex-direction: column;
gap: 1.125rem;
}
:where(.shop-wall) {
display: flex;
align-items: center;
justify-content: center;
aspect-ratio: 1 / 1;
padding: var(--shop-wall-padding);
background-color: var(--shop-color-panel);
}
:where(.shop-wall--small) {
padding: clamp(1rem, 3vw, 2.5rem);
}
/* The picture element steps aside so the image itself is sized against the panel. */
:where(.shop-wall, .shop-tile) :where(picture) {
display: contents;
}
:where(.shop-wall) :where(img) {
width: auto;
height: auto;
max-width: 100%;
max-height: 100%;
box-shadow: var(--shop-shadow-artwork);
}
:where(.shop-wall__empty) {
display: block;
width: 40%;
aspect-ratio: 1 / 1;
background-color: color-mix(in oklch, var(--shop-color-panel) 80%, var(--shop-color-text));
}
:where(.shop-work__footer) {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
gap: var(--shop-space-4);
}
:where(.shop-work__title) {
font-family: var(--shop-font-heading);
font-size: 1.625rem;
font-weight: var(--shop-display-weight);
line-height: 1.2;
color: var(--shop-color-heading);
}
:where(.shop-work__status) {
margin-block-start: var(--shop-space-1);
font-size: 0.75rem;
letter-spacing: var(--shop-label-tracking);
text-transform: var(--shop-label-transform);
color: var(--shop-color-meta);
}
/* ── Tiles: fixed-shape pictures ──────────────────────────────────────── */
:where(.shop-tile) {
position: relative;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
background-color: var(--shop-color-panel);
}
:where(.shop-tile--4x5) { aspect-ratio: 4 / 5; }
:where(.shop-tile--3x4) { aspect-ratio: 3 / 4; }
:where(.shop-tile--4x3) { aspect-ratio: 4 / 3; }
:where(.shop-tile--square) { aspect-ratio: 1 / 1; }
/* Section, artist and exhibition tiles: a square panel with the picture inside an even border. Percentage padding is
measured against the width on all four sides, so the border is the same all round. */
:where(.shop-tile--framed) {
aspect-ratio: 1 / 1;
padding: var(--shop-tile-frame);
}
:where(.shop-tile--hero) {
aspect-ratio: 21 / 9;
min-height: 22.5rem;
}
/* Big enough to fill the tile on every screen (checked on the server): crop to fill. */
:where(.shop-tile--cover) :where(img) {
width: 100%;
height: 100%;
object-fit: cover;
}
/* Too small to fill it: shown whole, at most its own size. */
:where(.shop-tile--natural, .shop-tile--cover-wide) :where(img) {
width: auto;
height: auto;
max-width: 100%;
max-height: 100%;
}
/* Big enough only where tiles are small (wide screens, several to a row). */
@media (min-width: 1000px) {
:where(.shop-tile--cover-wide) :where(img) {
width: 100%;
height: 100%;
max-height: none;
object-fit: cover;
}
}
/* A gentle zoom on artist cards, only where the picture has pixels to spare. */
:where(.shop-artist-card .shop-tile--cover) :where(img) {
transition: transform 0.5s ease;
}
:where(.shop-artist-card:hover .shop-tile--cover) :where(img) {
transform: scale(1.03);
}
:where(.shop-tile-grid) {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.75rem), 1fr));
gap: 1.5rem;
margin: 0;
padding: 0;
list-style: none;
}
/* ── Artist page: in situ photos, sold archive, biography ─────────────── */
:where(.shop-insitu) {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(100%, 18.75rem), 1fr));
gap: 1.5rem;
margin: 0;
padding: 0;
list-style: none;
}
:where(.shop-insitu__item) {
margin: 0;
}
:where(.shop-archive) {
margin-block-start: 4.5rem;
border-block: 1px solid var(--shop-color-panel);
}
:where(.shop-archive__summary) {
display: flex;
justify-content: space-between;
align-items: center;
gap: var(--shop-space-4);
padding-block: 1.625rem;
cursor: pointer;
list-style: none;
}
:where(.shop-archive__summary)::-webkit-details-marker {
display: none;
}
:where(.shop-archive__heading) {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: var(--shop-space-1) 1.125rem;
}
:where(.shop-archive__title) {
font-family: var(--shop-font-heading);
font-size: clamp(1.5rem, 2.6vw, 1.875rem);
font-weight: var(--shop-display-weight);
color: var(--shop-color-heading);
}
:where(.shop-archive__meta) {
font-size: 0.875rem;
font-weight: var(--shop-body-weight);
}
:where(.shop-archive__toggle) {
flex: none;
font-size: 0.75rem;
letter-spacing: var(--shop-label-tracking);
text-transform: var(--shop-label-transform);
}
:where(.shop-archive[open] .shop-archive__show, .shop-archive:not([open]) .shop-archive__hide) {
display: none;
}
:where(.shop-archive__grid) {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr));
gap: 1.75rem 1.25rem;
margin: 0;
padding: 0.5rem 0 2.5rem;
list-style: none;
}
:where(.shop-archive__item) {
display: flex;
flex-direction: column;
gap: 0.5rem;
color: var(--shop-color-text);
text-decoration: none;
}
:where(.shop-archive__item) :where(img) {
filter: saturate(0.85);
}
:where(.shop-archive__name) {
font-size: 0.8125rem;
line-height: 1.4;
text-wrap: pretty;
}
:where(.shop-archive__item:hover .shop-archive__name) {
text-decoration: underline;
}
:where(.shop-archive__pages) {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
gap: var(--shop-space-4);
padding-block-end: 2.5rem;
}
:where(.shop-about__body) {
display: grid;
gap: 2rem 4rem;
align-items: start;
}
@media (min-width: 760px) {
:where(.shop-about__body) {
grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
}
}
:where(.shop-about__portrait) {
margin: 0;
}
:where(.shop-about__text) {
display: flex;
flex-direction: column;
gap: var(--shop-space-4);
max-width: 44rem;
font-size: 1.0625rem;
font-weight: var(--shop-body-weight);
line-height: 1.7;
}
:where(.shop-about .shop-section-head__title) {
margin-block-end: 1.75rem;
}
/* ── Policy pages: long pasted text, with tables ──────────────────────── */
:where(.shop-page--policy) {
max-width: 52rem;
gap: var(--shop-space-5);
}
:where(.shop-policy) {
font-weight: var(--shop-body-weight);
line-height: 1.7;
overflow-wrap: anywhere;
}
:where(.shop-policy) :where(h2, h3, h4) {
margin-block-start: 2.25rem;
font-family: var(--shop-font-heading);
font-weight: var(--shop-display-weight);
line-height: 1.2;
color: var(--shop-color-heading);
}
:where(.shop-policy) :where(h2) {
font-size: clamp(1.5rem, 2.4vw, 1.875rem);
}
:where(.shop-policy) :where(h3) {
font-size: 1.375rem;
}
:where(.shop-policy) :where(h4) {
font-size: 1.125rem;
}
/* A heading sits close to the text it introduces. */
:where(.shop-policy) :where(h2, h3, h4) + * {
margin-block-start: 0.5rem;
}
:where(.shop-policy) :where(ul, ol) {
display: grid;
gap: 0.375rem;
}
:where(.shop-policy) :where(a) {
overflow-wrap: anywhere;
}
:where(.shop-policy) :where(table) {
margin-block: 1rem;
}
/* `anywhere` lets a cell shrink to one letter wide, so short columns (cookie names) were split per character.
In cells, words only break when they would overflow; long links still break anywhere (rule above). */
:where(.shop-policy) :where(th, td) {
overflow-wrap: break-word;
}
:where(.shop-policy) :where(th) {
white-space: nowrap;
}
:where(.shop-prose) :where(table) {
display: block;
max-width: 100%;
overflow-x: auto;
border-collapse: collapse;
font-size: 0.9375rem;
}
:where(.shop-prose) :where(th, td) {
padding: 0.5rem 0.75rem;
border: 1px solid var(--shop-color-rule);
text-align: start;
vertical-align: top;
}
:where(.shop-prose) :where(th) {
background-color: var(--shop-color-panel);
font-weight: 600;
}
/* ── Home page ────────────────────────────────────────────────────────── */
:where(.shop-home) {
padding-block: 2rem 0;
}
:where(.shop-hero) {
margin: 0;
}
:where(.shop-hero__caption) {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: var(--shop-space-4);
padding-block: 0.75rem;
font-size: 0.75rem;
letter-spacing: var(--shop-label-tracking);
text-transform: var(--shop-label-transform);
color: var(--shop-color-meta);
}
/* A full-width panel band, e.g. the home page's gallery photos or the exhibition schedule's heading. */
:where(.shop-band) {
margin-block-start: var(--shop-section-space);
background-color: var(--shop-color-panel);
}
:where(.shop-band__photos) {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(100%, 23.75rem), 1fr));
gap: 2rem;
margin-block: 0;
padding-block: 4rem;
list-style: none;
}
:where(.shop-band--head) {
margin-block-start: 0;
text-align: center;
}
:where(.shop-band--head .shop-container) {
padding-block: 3rem 3.5rem;
}
:where(.shop-band__text) {
margin-block-start: var(--shop-space-3);
font-size: 1.0625rem;
}
/* ── Exhibitions ──────────────────────────────────────────────────────── */
:where(.shop-exhibition-list) {
display: grid;
gap: 2.5rem;
margin: 0;
padding: 0;
list-style: none;
}
:where(.shop-exhibition-card) {
display: grid;
gap: 2rem;
align-items: start;
padding: var(--shop-space-5);
background-color: color-mix(in oklch, var(--shop-color-panel) 45%, var(--shop-color-bg));
border-block-end: 2px solid var(--shop-color-panel);
}
@media (min-width: 640px) {
:where(.shop-exhibition-card) {
grid-template-columns: minmax(0, 22.5rem) minmax(0, 1fr);
}
}
:where(.shop-exhibition-card__media) {
display: flex;
justify-content: center;
}
:where(.shop-exhibition-card__media) :where(picture) {
display: contents;
}
:where(.shop-exhibition-card__image) {
max-width: 100%;
height: auto;
box-shadow: var(--shop-shadow-artwork);
}
:where(.shop-exhibition-card__body) {
display: flex;
flex-direction: column;
gap: var(--shop-space-3);
}
:where(.shop-exhibition-card__title) {
font-family: var(--shop-font-heading);
font-size: clamp(1.75rem, 3vw, 2.25rem);
font-weight: var(--shop-display-weight);
line-height: 1.15;
color: var(--shop-color-heading);
}
:where(.shop-exhibition-artists) {
font-family: var(--shop-font-heading);
font-size: 1.5rem;
color: var(--shop-color-heading);
}
:where(.shop-exhibition-artists a) {
color: inherit;
}
:where(.shop-exhibition-card__dates) {
font-size: 1.125rem;
}
/* In place of the "View exhibition" button before the start date. */
:where(.shop-exhibition-card__note) {
font-size: 0.875rem;
letter-spacing: var(--shop-label-tracking);
text-transform: var(--shop-label-transform);
color: var(--shop-color-meta);
}
:where(.shop-exhibition-head) {
display: grid;
gap: 2.5rem 4rem;
align-items: start;
padding-block-end: 2.5rem;
border-block-end: 1px solid var(--shop-color-panel);
}
@media (min-width: 900px) {
:where(.shop-exhibition-head) {
grid-template-columns: minmax(0, 30rem) minmax(0, 1fr);
}
}
:where(.shop-exhibition-head__picture) {
margin: 0;
}
:where(.shop-exhibition-head__text) {
display: flex;
flex-direction: column;
gap: var(--shop-space-4);
}
:where(.shop-past-list) {
display: grid;
gap: var(--shop-space-3);
margin: 0;
padding: 0;
list-style: none;
}
:where(.shop-past-list__dates) {
display: block;
font-size: var(--shop-font-size-sm);
color: var(--shop-color-meta);
}
@media (prefers-reduced-motion: reduce) {
:where(.shop-artist-card:hover .shop-tile--cover) :where(img) {
transform: none;
}
}
}
/* Section page (/shop/c/<section>): a tile lightens and its name changes colour on hover or keyboard focus, with no underline.
Scoped by .shop-hover-soft so other pages keep their own hover. */
@layer shop.components {
.shop-hover-soft .shop-tile {
transition: background-color 0.2s ease;
}
.shop-hover-soft .shop-tile img {
transition: filter 0.2s ease, transform 0.5s ease;
}
.shop-hover-soft :is(.shop-artist-card, .shop-category-tile--image, .shop-archive__item):is(:hover, :focus-visible) .shop-tile {
background-color: color-mix(in oklch, var(--shop-color-panel), white var(--shop-tile-hover-lighten));
}
.shop-hover-soft :is(.shop-artist-card, .shop-category-tile--image, .shop-archive__item):is(:hover, :focus-visible) .shop-tile img {
filter: brightness(var(--shop-tile-hover-brightness));
}
.shop-hover-soft :is(.shop-artist-card:hover .shop-artist-card__name, .shop-artist-card:focus-visible .shop-artist-card__name,
.shop-category-tile--image:hover .shop-category-tile__name, .shop-category-tile--image:focus-visible .shop-category-tile__name,
.shop-archive__item:hover .shop-archive__name, .shop-archive__item:focus-visible .shop-archive__name) {
color: var(--shop-color-hover);
text-decoration: none;
}
@media (prefers-reduced-motion: reduce) {
.shop-hover-soft .shop-tile,
.shop-hover-soft .shop-tile img {
transition: none;
}
}
}
/* Website pages (brief W1): About, Visit and Contact. The heading and introduction, the page's one photo (shown whole, never larger
than its file: ImageMarkup sets its real width and height and CSS only shrinks it), two panels side by side on wide screens
(Visit: address and opening times; Contact: details and the form), then the admin's text. */
@layer shop.components {
:where(.shop-site-page) {
gap: var(--shop-space-5);
}
:where(.shop-site-page__head) {
display: grid;
gap: var(--shop-space-3);
max-width: 52rem;
}
:where(.shop-site-page__intro) {
margin: 0;
}
:where(.shop-site-page__photo) {
margin: var(--shop-space-4) 0 0;
text-align: center;
}
:where(.shop-site-page__image) {
display: inline-block;
max-width: 100%;
height: auto;
vertical-align: middle;
box-shadow: var(--shop-shadow-artwork);
}
:where(.shop-site-page__photo .shop-caption) {
text-align: start;
}
:where(.shop-site-page__columns) {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
gap: 2.5rem;
margin-block-start: var(--shop-space-5);
}
:where(.shop-site-page__columns:empty) {
display: none;
}
:where(.shop-site-page__panel) {
display: flex;
flex-direction: column;
gap: var(--shop-space-3);
}
:where(.shop-site-page__heading) {
margin: 0;
font-family: var(--shop-font-heading);
font-size: clamp(1.5rem, 2.4vw, 1.875rem);
font-weight: var(--shop-display-weight);
line-height: 1.2;
color: var(--shop-color-heading);
}
:where(.shop-site-page__subheading) {
margin: var(--shop-space-3) 0 0;
font-size: var(--shop-label-size);
letter-spacing: var(--shop-label-tracking);
text-transform: var(--shop-label-transform);
color: var(--shop-color-meta);
}
:where(.shop-site-page__address) {
font-style: normal;
line-height: 1.7;
}
:where(.shop-site-page__links, .shop-site-page__social) {
display: flex;
flex-wrap: wrap;
gap: var(--shop-space-2) var(--shop-space-4);
margin: 0;
padding: 0;
list-style: none;
}
:where(.shop-site-page__detail) {
margin: 0;
}
:where(.shop-site-page__details) {
display: grid;
gap: var(--shop-space-3);
margin: 0;
}
:where(.shop-site-page__details dt) {
font-size: var(--shop-label-size);
letter-spacing: var(--shop-label-tracking);
text-transform: var(--shop-label-transform);
color: var(--shop-color-meta);
}
:where(.shop-site-page__details dd) {
margin: 0;
}
:where(.shop-site-page__body) {
max-width: 52rem;
}
:where(.shop-site-page__panel .shop-site-page__body) {
margin-block-start: var(--shop-space-3);
}
/* ── Opening times ────────────────────────────────────────────────────── */
:where(.shop-hours) {
width: 100%;
max-width: 28rem;
border-collapse: collapse;
}
:where(.shop-hours th, .shop-hours td) {
padding: 0.5rem 0;
border-block-end: 1px solid var(--shop-color-rule);
text-align: start;
vertical-align: top;
font-weight: var(--shop-body-weight);
}
:where(.shop-hours td) {
text-align: end;
}
:where(.shop-hours__row--today th, .shop-hours__row--today td) {
font-weight: 600;
color: var(--shop-color-heading);
}
:where(.shop-hours__today) {
margin-inline-start: var(--shop-space-2);
font-size: var(--shop-label-size);
font-weight: var(--shop-body-weight);
letter-spacing: var(--shop-label-tracking);
text-transform: var(--shop-label-transform);
color: var(--shop-color-meta);
}
:where(.shop-hours__special) {
display: grid;
gap: var(--shop-space-2);
margin: 0;
padding: 0;
list-style: none;
}
}
/* View in a room (docs/BUILD_BRIEF_ArtworkVisualisation.md): the work at its real size in a rendered room, drawn as one SVG
(the room, the work's shadow, the work, the room's light on it, then what stands in front of the wall); the room and wall choices
below. The SVG scales with the page; nothing here sets the work's size, which comes from the server's attributes. */
@layer shop.components {
:where(.shop-room) {
gap: var(--shop-space-4);
}
:where(.shop-room__back) {
margin: 0;
font-size: var(--shop-font-size-sm);
}
:where(.shop-room__title) {
margin: 0;
}
:where(.shop-room__subtitle) {
color: var(--shop-color-muted);
font-weight: var(--shop-body-weight);
}
:where(.shop-room__figure) {
display: grid;
gap: var(--shop-space-2);
margin: 0;
}
:where(.shop-room__svg) {
display: block;
width: 100%;
height: auto;
background: var(--shop-color-panel);
}
/* 0.5 grey in the light map leaves the work unchanged; lighter and darker areas lighten and darken it like the wall around it. */
:where(.shop-room__light) {
mix-blend-mode: soft-light;
}
:where(.shop-room__backing) {
fill: var(--shop-color-text);
}
:where(.shop-room__handle) {
fill: transparent;
cursor: grab;
touch-action: none;
}
:where(.shop-room__handle:active) {
cursor: grabbing;
}
:where(.shop-root) :where(.shop-room__handle:focus-visible) {
outline: none;
stroke: var(--shop-color-primary);
stroke-width: 3px;
vector-effect: non-scaling-stroke;
}
:where(.shop-room__caption) {
font-size: var(--shop-font-size-sm);
color: var(--shop-color-meta);
}
:where(.shop-room__hint, .shop-room__note) {
margin: 0;
font-size: var(--shop-font-size-sm);
}
:where(.shop-room__choices) {
display: grid;
gap: var(--shop-space-2);
}
:where(.shop-room__label) {
margin: 0;
font-size: var(--shop-label-size);
letter-spacing: var(--shop-label-tracking);
text-transform: var(--shop-label-transform);
color: var(--shop-color-meta);
}
:where(.shop-room__list) {
display: flex;
flex-wrap: wrap;
gap: var(--shop-space-2);
margin: 0;
padding: 0;
list-style: none;
}
:where(.shop-room__choice) {
display: inline-flex;
align-items: center;
gap: var(--shop-space-2);
min-height: var(--shop-touch-min);
padding: 0 var(--shop-space-3);
border: var(--shop-border);
border-radius: var(--shop-radius);
color: var(--shop-color-text);
text-decoration: none;
}
:where(.shop-room__choice:hover) {
border-color: var(--shop-color-text);
}
:where(.shop-room__choice[aria-current="true"]) {
border-color: var(--shop-color-text);
box-shadow: inset 0 0 0 1px var(--shop-color-text);
}
:where(.shop-room__swatch)::before {
content: "";
inline-size: 1.25rem;
block-size: 1.25rem;
border: var(--shop-border);
border-radius: 50%;
background: var(--shop-room-swatch);
}
:where(.shop-room__swatch--white) {
--shop-room-swatch: var(--shop-room-wall-white);
}
:where(.shop-room__swatch--charcoal) {
--shop-room-swatch: var(--shop-room-wall-charcoal);
}
:where(.shop-room__swatch--green) {
--shop-room-swatch: var(--shop-room-wall-green);
}
/* On the work's page: the link under the photos. */
:where(.shop-gallery__room) {
justify-self: start;
margin-top: var(--shop-space-2);
}
}
/* Aion Atelier's panel at the very bottom of the built-in layout, opened by the footer credit (the platform's own mark,
the same on every site: brand/logo in the Aion Atelier repo). Closed until the credit is clicked; without JavaScript the
credit links to it and :target shows it. Cormorant Garamond is served from wwwroot/fonts (SIL OFL 1.1): the storefront CSP
allows stylesheets from 'self' only, and a private family name keeps it from replacing a host's own Cormorant. */
@layer shop.base {
@font-face {
font-family: "Aion Cormorant Garamond";
font-style: normal;
font-weight: 300 700;
font-display: swap;
src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2");
}
}
@layer shop.components {
/* The credit in the footer bar: a quiet text button with a chevron that turns when the panel is open. */
:where(.shop-site-footer__credit) {
/* Inline, not flex, so its text sits on the same baseline as the copyright line beside it. */
display: inline;
padding: 0;
border: 0;
background: none;
color: inherit;
font: inherit;
letter-spacing: inherit;
text-decoration: none;
cursor: pointer;
}
:where(.shop-site-footer__credit)::after {
content: "";
display: inline-block;
inline-size: 0.375em;
block-size: 0.375em;
margin-inline-start: 0.5em;
border-inline-end: 1px solid currentColor;
border-block-end: 1px solid currentColor;
transform: translateY(-0.15em) rotate(45deg);
transition: transform 0.2s ease;
}
:where(.shop-site-footer__credit[aria-expanded="true"])::after {
transform: translateY(0.1em) rotate(-135deg);
}
:where(.shop-site-footer__credit:hover) {
color: var(--shop-color-primary-hover);
text-decoration: underline;
}
:where(.shop-site-footer__credit:focus-visible) {
outline: var(--shop-focus-ring);
outline-offset: 2px;
}
:where(.shop-platform) {
display: none;
background-color: var(--shop-platform-bg);
color: var(--shop-platform-ink);
}
:where(.shop-platform.is-open, .shop-platform:not(.is-enhanced):target) {
display: block;
}
:where(.shop-platform__inner) {
display: flex;
flex-direction: column;
align-items: center;
gap: 1.25rem;
padding-block: clamp(3.5rem, 7vw, 5.5rem);
text-align: center;
}
:where(.shop-platform__logo-link) {
display: block;
max-inline-size: 100%;
padding: 0.5rem;
line-height: 0;
}
:where(.shop-platform__logo-link:focus-visible) {
outline: 2px solid var(--shop-platform-ink);
outline-offset: 2px;
}
/* Shown at its natural 240px or smaller, never stretched. */
:where(.shop-platform__logo) {
display: block;
max-inline-size: 100%;
block-size: auto;
}
:where(.shop-platform__eyebrow) {
display: flex;
align-items: center;
justify-content: center;
gap: 0.75rem;
margin: 0.5rem 0 0;
color: var(--shop-platform-soft);
font-family: var(--shop-font-body);
font-size: 0.75rem;
font-weight: 500;
letter-spacing: 0.18em;
line-height: 1.4;
text-transform: uppercase;
text-wrap: balance;
}
:where(.shop-platform__rule) {
flex: none;
inline-size: 1.5rem;
block-size: 1px;
background-color: var(--shop-platform-accent);
}
:where(.shop-platform__motto) {
margin: 0;
color: var(--shop-platform-ink);
font-family: var(--shop-font-platform);
font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
font-weight: 400;
letter-spacing: -0.01em;
line-height: 1.05;
text-wrap: balance;
}
:where(.shop-platform__credit) {
margin: 1.25rem 0 0;
color: var(--shop-platform-soft);
font-size: 0.75rem;
letter-spacing: 0.06em;
}
:where(.shop-platform) :where(a) {
color: inherit;
text-decoration: none;
}
:where(.shop-platform) :where(a:hover) {
color: var(--shop-platform-ink);
text-decoration: underline;
}
@media (max-width: 30rem) {
:where(.shop-platform__rule) {
display: none;
}
}
@media (prefers-reduced-motion: reduce) {
:where(.shop-site-footer__credit)::after {
transition: none;
}
}
}
/* The single alert component (spec §9.5). Text stays --shop-color-text for contrast. */
@layer shop.components {
:where(.shop-alert) {
padding: var(--shop-space-3) var(--shop-space-4);
border: var(--shop-border);
border-inline-start-width: 4px;
border-radius: var(--shop-radius);
background-color: var(--shop-color-surface);
color: var(--shop-color-text);
}
:where(.shop-alert + .shop-alert) {
margin-block-start: var(--shop-space-3);
}
:where(.shop-alert--success) {
border-inline-start-color: var(--shop-color-success);
background-color: var(--shop-color-success-bg);
}
:where(.shop-alert--warning) {
border-inline-start-color: var(--shop-color-warning);
background-color: var(--shop-color-warning-bg);
}
:where(.shop-alert--error) {
border-inline-start-color: var(--shop-color-danger);
background-color: var(--shop-color-danger-bg);
}
:where(.shop-alert--info) {
border-inline-start-color: var(--shop-color-info);
background-color: var(--shop-color-info-bg);
}
}
@layer shop.utilities {
/* The hidden attribute always hides: a component's display (flex, inline-flex, grid) would otherwise override the browser's
display: none, e.g. buttons shown only when JavaScript runs, or the gallery's other images. Host CSS (unlayered) still wins. */
:where(.shop-root [hidden]) {
display: none;
}
.shop-visually-hidden {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0 0 0 0);
white-space: nowrap;
border: 0;
}
.shop-stack > * + * {
margin-block-start: var(--shop-space-4);
}
.shop-text-muted {
color: var(--shop-color-muted);
}
}
