@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
    --ink: #17212b;
    --muted: #545760;
    --gold: #936a21;
    --gold-hover: #765317;
    --paper: #fbfaf7;
    --cream: #f4efe5;
    --line: #e6ded0;
    --control: #b9b1a5;
    --white: #fff;
    --serif: "Playfair Display", Georgia, serif;
    --sans: "DM Sans", system-ui, sans-serif;
    --shadow: 0 8px 24px rgb(46 35 19 / 7%);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--sans); }
main { min-height: 54vh; }
a { color: inherit; text-underline-offset: .18em; }
a:hover { color: var(--gold-hover); }
button, input, textarea, select { font: inherit; }
img { display: block; max-width: 100%; }
p { max-width: 67ch; }
h1, h2, h3 { margin: 0 0 .5em; font: 600 1.8rem/1.16 var(--serif); letter-spacing: -.022em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 5vw, 4.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.18rem, 2vw, 1.5rem); }
.wrap { width: min(calc(100% - 3.5rem), 1480px); margin-inline: auto; }
.narrow { width: min(calc(100% - 3.5rem), 880px); }
.site-head { background: var(--white); border-bottom: 1px solid var(--line); }
.utility-bar { background: #f3f1eb; }
.utility-inner { min-height: 35px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.utility-inner p { margin: 0; font-size: .78rem; color: #3e3c37; }
.utility-links { display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: center; }
.account-menu { position: relative; min-width: 0; max-width: 100%; margin-inline-start: auto; }
.account-greeting { display: flex; align-items: center; gap: .5rem; min-height: 44px; padding-inline: .3rem; font-size: .8rem; font-weight: 700; overflow-wrap: anywhere; cursor: pointer; list-style: none; }
.account-greeting::-webkit-details-marker { display: none; }
.account-greeting::after { content: ""; width: .42rem; height: .42rem; flex: 0 0 auto; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.account-menu[open] .account-greeting::after { transform: translateY(2px) rotate(225deg); }
.account-menu-panel { position: absolute; inset-inline-end: 0; top: 100%; z-index: 10; width: min(12rem, calc(100vw - 2rem)); padding: .25rem; background: var(--white); border: 1px solid var(--line); border-radius: 9px; box-shadow: var(--shadow); }
.utility-links .account-menu-panel a, .utility-links .account-menu-panel button { display: flex; align-items: center; width: 100%; min-height: 44px; padding: .55rem .7rem; border: 0; border-radius: 5px; background: transparent; text-align: start; cursor: pointer; }
.account-menu-panel a:hover, .account-menu-panel button:hover { background: var(--cream); }
.account-menu-panel form { margin: 0; }
.account-details { margin: 0 0 1.25rem; overflow-wrap: anywhere; }
.account-details dt { font-weight: 700; }
.account-details dd { margin: .15rem 0 .85rem; }
.utility-links a, .utility-links button { font-size: .8rem; line-height: 1.3; color: #383b40; text-decoration: none; padding-block: .42rem; }
.utility-links a:hover, .utility-links button:hover { text-decoration: underline; }
.header-inner { display: grid; grid-template-columns: minmax(185px,1fr) minmax(220px,620px) minmax(90px,1fr); align-items: center; gap: 1rem 2rem; padding-block: .85rem .75rem; }
.wordmark { display: inline-flex; width: fit-content; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; white-space: nowrap; font-size: clamp(1.25rem, 2.1vw, 2rem); line-height: 1; font-weight: 700; letter-spacing: -.07em; }
.wordmark:hover { color: var(--ink); }
.wordmark em { color: var(--gold); font-style: normal; }
.brand-mark { flex: none; width: clamp(37px, 5vw, 59px); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: #b98b39; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.search { display: flex; min-width: 0; color: var(--ink); }
.search input[type=search] { flex: 1; min-width: 0; width: 100%; border-radius: 8px 0 0 8px; border-right: 0; }
.search .search-button { flex: none; width: 51px; display: grid; place-items: center; border-radius: 0 8px 8px 0; padding: 0; }
.search-icon { width: 15px; height: 15px; border: 2px solid currentColor; border-radius: 50%; position: relative; }
.search-icon::after { content: ""; width: 8px; height: 2px; background: currentColor; position: absolute; left: 9px; top: 11px; transform: rotate(47deg); border-radius: 3px; }
.cart-link { justify-self: end; display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; min-height: 42px; font-size: .9rem; font-weight: 700; text-decoration: none; }
.cart-count { padding: 0 .28em; min-width: 1.65rem; min-height: 1.65rem; background: var(--gold); color: var(--white); border-radius: 2rem; display: grid; place-items: center; font-size: .76rem; }
.browse-nav { border-top: 1px solid #f3eee6; }
.browse-inner { display: flex; align-items: stretch; justify-content: center; flex-wrap: wrap; gap: 0 clamp(.65rem, 2.4vw, 2.2rem); }
.browse-inner a { display: flex; min-height: 44px; align-items: center; font-size: .88rem; font-weight: 700; white-space: nowrap; text-decoration: none; border-bottom: 2px solid transparent; }
.browse-inner a:hover, .browse-inner a[aria-current=page] { border-color: var(--gold); color: var(--gold-hover); }
.inline-form { display: inline; margin: 0; }
.text-button { background: transparent; border: 0; color: var(--gold-hover); padding: 0; cursor: pointer; }
.text-button:hover { text-decoration: underline; }

.hero { position: relative; background: #eee7dc; overflow: hidden; isolation: isolate; }
.hero-inner { position: relative; min-height: clamp(350px, 30vw, 490px); display: flex; align-items: center; }
.hero-copy { position: relative; z-index: 1; width: 48%; padding: clamp(2.1rem, 4vw, 4rem) 0; padding-inline-start: clamp(0px, 3vw, 50px); }
.hero h1 { font-size: clamp(2.1rem, 3.95vw, 4.25rem); line-height: 1.04; letter-spacing: -.047em; margin-bottom: .31em; }
.hero-break { display: initial; }
.hero-description { font-size: clamp(.95rem, 1.3vw, 1.14rem); color: #3f454c; max-width: 42ch; margin: 0; }
.hero-media { position: absolute; top: 0; bottom: 0; left: 38%; right: calc((100% - 100vw) / 2); z-index: 0; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #eee7dc 0%, rgb(238 231 220 / 75%) 14%, transparent 34%); pointer-events: none; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: right 49%; }
.hero-services { display: flex; flex-wrap: wrap; gap: .4rem 1.15rem; margin: 1.3rem 0 0; padding: 0; list-style: none; font-size: .82rem; font-weight: 700; }
.hero-services li::before { content: "✓"; color: var(--gold-hover); margin-right: .34em; }
.eyebrow { margin: 0 0 .8rem; color: #79541b; font: 700 .76rem/1.4 var(--sans); text-transform: uppercase; letter-spacing: .16em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .68rem 1rem; margin-top: 1.15rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: .65rem 1.15rem; background: var(--gold); border: 1px solid var(--gold); border-radius: 8px; color: var(--white); font-weight: 700; text-decoration: none; text-align: center; cursor: pointer; }
.button:hover { background: var(--gold-hover); border-color: var(--gold-hover); color: var(--white); }
.button.secondary { background: transparent; border-color: #c9b895; color: var(--gold-hover); }
.button.secondary:hover { background: #f3ead8; }
.quiet-link, .back-link { color: var(--gold-hover); font-weight: 700; }
.back-link { display: inline-flex; padding-block: .3rem; margin-bottom: .85rem; font-size: .9rem; text-decoration: none; }
.back-link:hover { text-decoration: underline; }

.category-section { padding-block: 1.35rem 1rem; }
.category-grid { display: grid; grid-template-columns: repeat(8, minmax(0,1fr)); gap: clamp(.62rem, 1.1vw, 1.1rem); }
.category-card { display: block; min-width: 0; text-decoration: none; text-align: center; }
.category-art { display: block; position: relative; overflow: hidden; isolation: isolate; background: #e7dbca; border-radius: 8px; aspect-ratio: 1.25; margin-bottom: .52rem; }
.category-art::before { content: ""; position: absolute; width: 400%; aspect-ratio: 2; top: 50%; left: calc(var(--tile-col,0) * -100%); transform: translateY(var(--tile-y,-25%)); background: url("../images/memories-category-art.jpg") center / 100% 100% no-repeat; }
.category-art[data-category=prints], .category-art[data-category=digital] { --tile-col: 1; }
.category-art[data-category=keepsakes], .category-art[data-category=floral] { --tile-col: 2; }
.category-art[data-category=apparel], .category-art[data-category=all] { --tile-col: 3; }
.category-art[data-category=signs], .category-art[data-category=digital], .category-art[data-category=floral], .category-art[data-category=all] { --tile-y: -75%; }
.category-card strong { display: block; line-height: 1.25; font-size: .91rem; }
.category-description { display: block; color: var(--muted); font-size: .75rem; line-height: 1.42; margin-top: .26rem; }
.category-card:hover strong { text-decoration: underline; }
.featured-section { padding-block: 1.2rem 2.1rem; }
.catalog-section, .content-section { padding-block: clamp(1.8rem, 4.5vw, 3.9rem); }
.workflow-section { max-width: 1120px; }
.home-catalog { border-top: 1px solid var(--line); padding-top: 2rem; }
.section-head { display: flex; flex-wrap: wrap; gap: .45rem 1rem; align-items: baseline; justify-content: space-between; margin-bottom: 1.05rem; }
.section-head h2 { margin: 0; }
.section-description, .results-term { margin: 0 0 1.35rem; color: var(--muted); overflow-wrap: anywhere; }
.collection + .collection { margin-top: 2.1rem; }
.product-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1.05rem; }
.featured-grid { grid-template-columns: repeat(6,minmax(0,1fr)); }
.product-card, .panel, .order-link { background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.product-card { color: var(--ink); display: flex; flex-direction: column; min-width: 0; overflow: hidden; text-decoration: none; }
.product-card:hover, .order-link:hover { border-color: #ae8c4a; color: var(--ink); }
.product-images { aspect-ratio: 4 / 3; overflow: hidden; }
.product-images img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tribute .product-images { aspect-ratio: 1.26; background: #ece5da; }
.spread { display: flex; align-items: center; justify-content: center; min-width: 0; max-width: 100%; }
.spread img { width: 50%; min-width: 0; max-width: 50%; object-fit: contain; }
.card-body { padding: .85rem 1rem; flex: 1; display: flex; justify-content: space-between; flex-direction: column; gap: .35rem; }
.card-body h3 { font-size: 1.05rem; line-height: 1.3; margin: 0; }
.card-action { color: var(--gold-hover); font-size: .82rem; font-weight: 700; }
.offering-photo { display: block; aspect-ratio: 1.25; background: var(--cream); overflow: hidden; }
.offering-photo img { width: 100%; height: 100%; object-fit: cover; }
.offering-detail { max-width: 1120px; }
.offering-detail .detail-images img { aspect-ratio: 1.15; object-fit: cover; }
.offering-related { margin-top: 2.2rem; }
.offering-related .product-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,220px),1fr)); }
.help-box { margin-top: 2rem; padding: clamp(1rem, 3vw, 2rem); background: var(--cream); border: 1px solid var(--line); border-radius: 12px; }
.help-box h2 { font-size: clamp(1.3rem, 2.3vw, 1.85rem); margin-bottom: .3rem; }
.help-box p { margin: 0; color: var(--muted); }
.custom-tributes ul { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,185px),1fr)); gap: .55rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.custom-tributes li a { display: flex; justify-content: space-between; gap: .45rem; border: 1px solid #d8cbb6; border-radius: 7px; padding: .55rem .72rem; background: #fffdf8; text-decoration: none; font-size: .88rem; }
.custom-tributes li a:hover { border-color: var(--gold); }

.panel { padding: clamp(1rem, 2.6vw, 1.8rem); min-width: 0; }
.panel h2 { font-size: clamp(1.35rem, 2vw, 1.75rem); }
.empty-state { padding: clamp(1.5rem, 5vw, 3rem); text-align: center; }
.empty-state p { margin-inline: auto; }
.product-detail { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); grid-template-areas: "gallery intro" "gallery buy"; column-gap: clamp(1.2rem, 5vw, 5rem); row-gap: 1rem; align-items: start; }
.product-detail.no-gallery { grid-template-columns: minmax(0,1fr); grid-template-areas: "intro" "buy"; max-width: 720px; }
.product-intro { grid-area: intro; }
.product-intro h1 { font-size: clamp(2rem, 4.5vw, 3.9rem); }
.product-intro p:last-child { color: var(--muted); margin-bottom: 0; }
.product-buy { grid-area: buy; }
.product-buy form > label:first-of-type { margin-top: 0; }
.variant-details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem 1rem; padding: .8rem; margin: .72rem 0 0; border-radius: 8px; background: #f8f4ec; }
.variant-details dt { color: var(--muted); font-size: .74rem; font-weight: 700; letter-spacing: .025em; }
.variant-details dd { margin: .12rem 0 0; font-size: .9rem; overflow-wrap: anywhere; }
.detail-images { grid-area: gallery; display: grid; grid-template-columns: minmax(0,1fr); gap: .75rem; }
.product-detail.program-detail:not(.no-gallery) { grid-template-columns: minmax(0,3fr) minmax(230px,1fr); grid-template-areas: "intro intro" "gallery buy"; gap: 1rem clamp(1rem,3vw,2.2rem); }
.detail-images figure { display: flex; flex-direction: column; justify-content: center; margin: 0; background: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: clamp(.65rem, 2vw, 1.35rem); overflow: hidden; text-align: center; }
.detail-images img { width: 100%; max-height: 470px; object-fit: contain; }
.detail-images .spread { min-height: 0; }
.program-gallery figure { padding: 0; justify-content: start; }
.program-gallery figure > img, .program-gallery .spread img { display: block; height: auto; max-height: none; }
.program-gallery .spread { align-items: start; }
.program-gallery figcaption { margin: 0; padding: .65rem 1rem; }
.program-preview { margin-top: clamp(2rem,5vw,4rem); scroll-margin-top: 1rem; }
.program-preview > p { max-width: 65ch; color: var(--muted); }
.preview-navigation { margin: 1rem 0; }
.preview-workspace { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); grid-template-areas: "title title" "artwork fields"; gap: 1rem clamp(1rem,3vw,2rem); align-items: start; padding-block: clamp(1.25rem,3vw,2rem); border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.preview-workspace h3 { grid-area: title; margin: 0; }
.proof-artwork { grid-area: artwork; margin: 0; }
.proof-artwork a { display: block; }
.proof-artwork img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; }
.preview-text { overflow-wrap: anywhere; }
.preview-workspace > .preview-text { grid-area: fields; }
.preview-workspace > .proof-preview-sheet { grid-area: artwork; }
.preview-text > p:first-child { color: var(--muted); margin-top: 0; }
.preview-text input[type=text] { width: 100%; }
.proof-toggle { margin-top: 1rem; }
.proof-toggle summary { color: var(--gold-hover); font-weight: 700; cursor: pointer; padding-block: .5rem; }
.proof-toggle .proof-preview-sheet { margin-top: .5rem; }
.proof-toggle .proof-preview-content { min-height: 0; }
.button[data-pending] { cursor: wait; }
.button[data-pending]::before { content: ""; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: cart-spin .7s linear infinite; }
.cart-submit-status:not(:empty) { margin-top: .55rem; color: var(--muted); font-size: .9rem; }
@keyframes cart-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .button[data-pending]::before { animation: none; } }
.proof-preview-sheet { border: 1px solid var(--line); border-radius: 10px; padding: clamp(1rem,4vw,2.4rem); background: #f3ece0; color: #2e241c; }
.proof-preview-content { border: 1px solid #c2a775; padding: clamp(.9rem,4vw,2rem); min-height: clamp(320px,47vw,590px); overflow-wrap: anywhere; }
.proof-preview-content h4 { font-family: Georgia, serif; font-size: clamp(1.3rem,3vw,2.3rem); line-height: 1.2; margin: .55em 0; white-space: pre-wrap; }
.proof-preview-content p { font-family: Georgia, serif; white-space: pre-wrap; margin: .8em 0; }
.proof-preview-content small { display: block; margin-top: 1rem; }
.proof-preview-kicker { letter-spacing: .12em; text-transform: uppercase; font-size: .75rem; color: #6e5428; }
.proof-photo-placeholder { border: 1px dashed #9d875e; border-radius: 6px; display: grid; place-items: center; min-height: clamp(76px,13vw,160px); padding: .5rem; text-align: center; color: #66573c; }
.confirmation-artwork { margin-bottom: 1rem; }
.artwork-header .page-jumps small { display: block; }
@media (max-width: 800px) {
    .product-detail.program-detail:not(.no-gallery) { grid-template-columns: minmax(0,1fr); grid-template-areas: "intro" "gallery" "buy"; }
    .preview-workspace { grid-template-columns: minmax(0,1fr); grid-template-areas: "title" "artwork" "fields"; }
}
@media (max-width: 560px) {
    .program-gallery .spread { display: grid; grid-template-columns: minmax(0,1fr); }
    .program-gallery .spread img { width: 100%; max-width: none; }
}
figcaption { font-size: .86rem; margin-top: .6rem; color: var(--muted); }
label { display: block; font-weight: 700; margin: .75rem 0 .28rem; overflow-wrap: anywhere; }
input:where(:not([type=hidden]):not([type=checkbox]):not([type=file])), select, textarea { min-width: 0; min-height: 44px; color: var(--ink); background: var(--white); border: 1px solid var(--control); border-radius: 7px; padding: .58rem .72rem; }
select, textarea, .account-form input:not([type=hidden]) { display: block; width: 100%; }
textarea { resize: vertical; }
input[type=file] { display: block; max-width: 100%; border: 0; padding: 0; }
input[type=file]::file-selector-button { padding: .62rem .75rem; margin-right: .6rem; border: 1px solid #c9b895; border-radius: 7px; background: var(--white); color: var(--gold-hover); cursor: pointer; }
.muted { color: var(--muted); font-size: .9rem; }
.notice { padding: .8rem .95rem; border-left: 4px solid #9b803e; border-radius: 4px; background: #f4ecd8; overflow-wrap: anywhere; }
.notice.error { background: #faede9; border-color: #9e483a; }
.commerce-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 360px); gap: clamp(1rem,3vw,2.1rem); align-items: start; }
.summary-panel { position: sticky; top: 1rem; }
.summary-panel form, .summary-panel .button { width: 100%; }
.summary-panel form + form { margin-top: .55rem; }
.card-price { display: block; margin-top: .3rem; }
.shipping-panel form + form { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid #e4dbca; }
.shipping-panel input, .shipping-panel select { width: 100%; min-width: 0; }
.shipping-panel button { margin-top: .65rem; }
@media (min-width: 801px) {
    .shipping-panel { grid-column: 1; grid-row: 2; }
    .shipping-panel + .summary-panel { grid-column: 2; grid-row: 1 / span 2; }
}
.totals { margin: .8rem 0 1rem; font-variant-numeric: tabular-nums; }
.totals div { display: flex; justify-content: space-between; align-items: start; gap: .55rem; padding: .52rem 0; }
.totals div + div { border-top: 1px solid var(--line); }
.totals div:last-child { font-weight: 700; font-size: 1.08rem; }
.totals dd { margin: 0; white-space: nowrap; }
.cart-lines { list-style: none; padding: 0; margin: 0; }
.cart-lines li { display: flex; align-items: flex-start; justify-content: space-between; gap: .7rem 1.25rem; padding: .95rem 0; }
.cart-lines li + li { border-top: 1px solid var(--line); }
.cart-lines li > div { min-width: 0; overflow-wrap: anywhere; }
.cart-lines li span { display: block; color: var(--muted); font-size: .88rem; }
.cart-line-actions { display: grid; justify-items: end; flex: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cart-line-actions button { min-height: 40px; }
.order-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .7rem 1.2rem; padding: 1rem 1.2rem; margin: .75rem 0; text-decoration: none; }
.order-link strong, .order-link span { overflow-wrap: anywhere; }
.order-link span { display: block; color: var(--muted); font-size: .87rem; }
.order-link > div + div { text-align: right; }
.status-label { display: inline-block; color: #6c4815; background: #f5ead1; border-radius: 3rem; padding: .28rem .8rem; font-size: .86rem; font-weight: 700; }

.account-section { width: min(calc(100% - 3.5rem), 1010px); }
.account-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(235px,.75fr); overflow: hidden; padding: 0; }
.account-form { min-width: 0; padding: clamp(1.15rem, 4vw, 3rem); }
.account-form h1 { font-size: clamp(1.95rem, 4vw, 3.2rem); }
.account-copy { margin: 0 0 1.4rem; color: var(--muted); }
.account-next { margin: 1.15rem 0 0; }
.account-media { background: #d8bfa2 url("../images/memories-storefront-banner.jpg") 69% center / cover; }
.account-name { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 1rem; }
.account-errors, .field-validation-error { color: #902f26; font-size: .9rem; }
.validation-summary-valid, .field-validation-valid { display: none; }

.artwork-header { margin-bottom: 1.15rem; }
.artwork-header > p { margin: .45rem 0; }
.artwork-layout { display: grid; grid-template-columns: minmax(145px,205px) minmax(0,1fr); gap: 1.3rem; align-items: start; }
.artwork-sidebar { position: sticky; top: 1rem; }
.artwork-sidebar > p { margin: 0; }
.page-jumps { display: flex; flex-wrap: wrap; gap: .45rem; margin: .8rem 0; }
.page-jumps a { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; min-width: 40px; padding: .25rem .6rem; border: 1px solid #d4c4a3; border-radius: 7px; color: var(--gold-hover); text-decoration: none; text-align: center; overflow-wrap: anywhere; }
.page-jumps a:hover { background: var(--cream); }
.page-jumps a[aria-current=page] { background: var(--gold); color: var(--white); border-color: var(--gold); }
.page-jumps a[data-saved=true] { background: #f3ecdb; }
.artwork-content { min-width: 0; }
.brief { margin-bottom: 1rem; }
.brief:target { border-color: #b59150; }
.brief-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .15rem .75rem; align-items: baseline; }
.brief-heading h3 { margin-bottom: .4rem; }
.brief-purpose { margin: .2rem 0 0; color: var(--muted); }
.brief-intro { display: flex; flex-wrap: wrap; gap: .8rem; align-items: flex-start; margin-bottom: .7rem; }
.brief-intro > div { flex: 1 1 190px; }
.preserve { white-space: pre-wrap; overflow-wrap: anywhere; }
.page-preview { width: min(120px, 100%); max-height: 160px; height: auto; object-fit: contain; border: 1px solid var(--line); border-radius: 5px; }
.photos { display: flex; flex-wrap: wrap; gap: .65rem; margin: .75rem 0; }
.photos img { width: 94px; height: 94px; object-fit: cover; border-radius: 7px; }
.photos label { font-size: .83rem; }
.photos input { margin: .4rem .22rem 0 0; }
.upload-field { margin-block: 1rem; border: 1px dashed #c9b895; border-radius: 8px; padding: .7rem .9rem; background: #fbf8f0; }
.upload-field label { margin-top: 0; }
.upload-field p { margin: .35rem 0 0; }
.submit-panel > p { margin-top: 0; }

.site-footer { border-top: 1px solid var(--line); background: #eee8dd; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .9rem 2rem; padding-block: 1.4rem; font-size: .9rem; }
.footer-inner p { margin: .4rem 0 0; }
.footer-mark { font-size: 1.5rem; }
.visually-hidden, .skip:not(:focus) { position: absolute; clip: rect(0,0,0,0); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.skip:focus { position: absolute; z-index: 5; top: 1rem; left: 1rem; background: var(--white); padding: .75rem; }
:focus-visible { outline: 3px solid #785717; outline-offset: 3px; }

@media (max-width: 1080px) {
    .hero-break { display: none; }
    .category-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .featured-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 800px) {
    .wrap, .narrow, .account-section { width: calc(100% - 2rem); }
    .utility-inner { justify-content: flex-end; }
    .utility-inner p { display: none; }
    .header-inner { grid-template-columns: 1fr auto; gap: .7rem 1rem; }
    .search { grid-row: 2; grid-column: 1 / -1; }
    .browse-inner { justify-content: flex-start; }
    .browse-inner a { min-height: 39px; }
    .hero-inner { display: grid; width: 100%; min-height: 0; }
    .hero-copy { width: auto; padding: 2rem 1rem 1.65rem; }
    .hero-media { position: relative; inset: auto; height: clamp(220px, 48vw, 350px); }
    .hero-media::after { background: linear-gradient(180deg, rgb(238 231 220 / 65%), transparent 20%); }
    .hero-media img { object-position: 75% 52%; }
    .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .commerce-grid { grid-template-columns: minmax(0, 1fr); }
    .summary-panel, .artwork-sidebar { position: static; }
    .artwork-layout { grid-template-columns: minmax(0,1fr); gap: .7rem; }
    .artwork-sidebar .page-jumps { display: grid; grid-template-columns: repeat(8,minmax(0,1fr)); margin-bottom: 0; }
}
@media (max-width: 560px) {
    .utility-inner { justify-content: space-between; }
    .utility-links { gap: .15rem .75rem; justify-content: space-between; width: 100%; }
    .utility-links a, .utility-links button { min-height: 36px; display: inline-flex; align-items: center; padding: 0; }
    .header-inner { padding-block: .65rem; }
    .browse-inner { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .18rem .38rem; }
    .browse-inner a { min-width: 0; white-space: normal; text-align: center; justify-content: center; font-size: .73rem; line-height: 1.15; overflow-wrap: anywhere; }
    .hero-copy { padding-top: 1.55rem; }
    .hero h1 { font-size: clamp(2rem, 8.4vw, 3.25rem); }
    .hero-services { gap: .32rem .78rem; margin-top: 1rem; font-size: .78rem; }
    .category-grid, .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }
    .category-section { padding-top: .9rem; }
    .card-body { padding: .65rem .7rem; }
    .card-body h3 { font-size: .98rem; }
    .product-detail { grid-template-columns: minmax(0,1fr); grid-template-areas: "intro" "gallery" "buy"; gap: .8rem; }
    .account-shell { grid-template-columns: minmax(0,1fr); }
    .account-media { display: none; }
    .account-form .actions .button { width: 100%; }
    .cart-lines li { column-gap: .6rem; }
    .order-link { padding-inline: .8rem; }
    .artwork-sidebar .page-jumps { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 340px) {
    .account-name { grid-template-columns: minmax(0,1fr); }
    .utility-links { column-gap: .5rem; }
}
