:root {
    color-scheme: light;
    --paper: #fffaf2;
    --white: #fffefb;
    --ink: #252141;
    --text: #40394b;
    --plum: #662d58;
    --berry: #963b62;
    --berry-dark: #752446;
    --rust: #9b401e;
    --line: #dfcfc1;
    --gold: #f4bc51;
    --pink: #f9e4ee;
    --lime: #e4ecd5;
    --serif: Georgia, 'Times New Roman', serif;
    --sans: system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 1rem/1.62 var(--sans); background: var(--paper); color: var(--text); }
h1, h2, h3 { margin: 0 0 .65rem; color: var(--ink); font: 700 1.5rem/1.1 var(--serif); }
h1 { font-size: clamp(2.35rem, 6vw, 4.35rem); letter-spacing: -.055em; }
h2 { font-size: clamp(1.8rem, 4.1vw, 3.15rem); letter-spacing: -.045em; }
p { margin: 0 0 1rem; }
a { color: var(--berry-dark); text-underline-offset: .22em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .15em; }
img, canvas { max-width: 100%; display: block; }
img { height: auto; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: .18rem solid #075878; outline-offset: .22rem; }
.wrap { width: min(100% - 3rem, 76rem); margin-inline: auto; }
.narrow { width: min(100% - 3rem, 44rem); }
.section { padding-block: clamp(2.35rem, 5vw, 4.5rem); }
.section + .section { padding-top: .75rem; }
.eyebrow { color: var(--rust); margin: 0 0 .75rem; font-size: .875rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.visually-hidden, .skip:not(:focus) { position: absolute; overflow: hidden; clip-path: inset(50%); width: 1px; height: 1px; white-space: nowrap; }
.skip:focus { position: absolute; left: 1rem; top: 1rem; z-index: 2; padding: .6rem 1rem; background: var(--white); }
.faith-banner { color: var(--white); background: #573151; text-align: center; padding: .4rem 1rem; font-size: .88rem; font-weight: 700; letter-spacing: .045em; }
.faith-banner span { color: #ffd17b; margin-right: .32rem; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; padding: .65rem 0; }
.brand { flex-shrink: 0; }
.brand img { width: clamp(8rem, 16vw, 11.75rem); mix-blend-mode: multiply; }
.nav { display: flex; gap: .25rem clamp(.65rem, 3vw, 2rem); align-items: center; flex-wrap: wrap; }
.nav a { color: var(--ink); font-weight: 700; text-decoration: none; padding: .5rem 0; }
.nav a:hover, .nav a[aria-current] { text-decoration: underline; }
.nav .basket { background: #f5e4ee; border-radius: 100px; padding: .48rem .8rem; }
.basket span { display: inline-grid; place-items: center; background: var(--plum); color: white; margin-left: .2rem; border-radius: 50%; min-width: 1.6rem; min-height: 1.6rem; padding-inline: .25rem; font-size: .85rem; }
.hero { display: grid; grid-template-columns: .86fr 1.14fr; align-items: stretch; gap: clamp(1.4rem, 4vw, 4rem); padding-block: 1.5rem 2.3rem; }
.hero-copy { padding-block: clamp(1rem, 4.5vw, 5rem); align-self: center; }
.hero h1 { font-size: clamp(3rem, 6.2vw, 6rem); line-height: .985; margin-bottom: 1.25rem; }
.hero h1 em, .heart h2 em { color: var(--berry); font-weight: inherit; }
.hero p:not(.eyebrow) { font-size: clamp(1.05rem, 1.65vw, 1.25rem); max-width: 31rem; margin-bottom: 1.65rem; }
.hero-photo { width: 100%; height: 100%; min-height: 25rem; max-height: 35rem; object-fit: cover; object-position: 49% center; border-radius: 45% 45% 1.4rem 1.4rem / 15% 15% 1.4rem 1.4rem; box-shadow: .55rem .55rem 0 #efd7a6; }
.stitch { height: .65rem; background:
    repeating-linear-gradient(125deg, transparent 0 5px, #fffaf2 6px 8px, transparent 9px 13px),
    linear-gradient(90deg,#983561,#d98073,#f0af3e,#67987e,#73669d);
    border-radius: 1rem; opacity: .9; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.85rem; padding: .57rem 1.1rem; background: var(--berry-dark); border: 1px solid var(--berry-dark); color: white; text-decoration: none; border-radius: .6rem; font-weight: 750; cursor: pointer; text-align: center; }
.button:hover { background: #56203b; }
.button-quiet { background: transparent; color: var(--berry-dark); }
.button-quiet:hover { color: white; }
.text-link { color: var(--berry-dark); background: transparent; border: 0; padding: .35rem 0; cursor: pointer; font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; margin-bottom: 1rem; }
.section-heading h2 { margin-bottom: .15rem; }
.category-grid, .product-grid, .display-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: clamp(.8rem, 2vw, 1.4rem); }
.category-grid { margin-top: 1.25rem; }
.category-card { display: flex; gap: .75rem; align-items: center; min-height: 5.15rem; border: 1px solid #e0c7d0; border-radius: .9rem; padding: .85rem 1rem; background: var(--pink); color: var(--ink); font-weight: 750; text-decoration: none; }
.category-card:hover { text-decoration: underline; }
.category-card:nth-child(4n + 2) { background: #f7e9c1; border-color: #e8d5a8; }
.category-card:nth-child(4n + 3) { background: var(--lime); border-color: #cfdbb6; }
.category-card:nth-child(4n + 4) { background: #ebe3f6; border-color: #d9cae8; }
.category-card span { font-size: 1.65rem; color: var(--plum); line-height: 1; }
.product-card { overflow: hidden; background: var(--white); border-radius: .9rem; border: 1px solid var(--line); }
.product-card a { display: block; height: 100%; color: inherit; text-decoration: none; }
.product-card a:focus-visible { outline-offset: -.24rem; }
.product-card a:hover h3 { text-decoration: underline; text-underline-offset: .18em; }
.product-image { background: #f5eee4; aspect-ratio: 4 / 3; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-image.contain { background: white; }
.product-image.contain img { object-fit: contain; padding: .75rem; }
.card-copy { padding: .9rem 1rem 1.05rem; }
.card-copy p { font-size: .84rem; font-weight: 750; color: var(--rust); margin-bottom: .35rem; }
.card-copy h3 { font-size: 1.3rem; margin-bottom: .45rem; }
.card-copy span { color: var(--berry-dark); font-weight: 650; font-size: .88rem; }
.heart { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 5vw, 4.5rem); align-items: center; }
.heart img { width: 100%; border-radius: 1.15rem; object-fit: cover; }
.heart p { max-width: 42ch; }
blockquote { border-left: .25rem solid var(--gold); margin: 1.25rem 0 0; padding: .2rem 0 .2rem 1rem; font: italic 1.15rem/1.45 var(--serif); }
cite { display: block; margin-top: .5rem; font: 700 .85rem/1.4 var(--sans); color: var(--plum); }
.request-callout { display: flex; gap: 1rem 2rem; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 3.5rem; padding: 1.75rem !important; border-radius: 1rem; background: #f8e6b9; }
.request-callout p { margin: 0; }
.site-footer { margin-top: auto; background: #30223a; color: #fff5e9; padding-block: 2.25rem 1.25rem; }
.site-footer a { color: inherit; }
.footer-grid { display: grid; gap: 1.2rem; grid-template-columns: 1.2fr .9fr 1.1fr; }
.footer-grid nav { display: grid; align-content: start; gap: .35rem; }
.footer-brand { font: 700 1.4rem var(--serif); }
.footer-grid p, .copyright { margin-top: .65rem; color: #e9d7e9; }
.copyright { font-size: .85rem; border-top: 1px solid #6e546f; margin-top: 1.3rem; padding-top: .85rem; }
.filter { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.25rem 0; }
.filter a { padding: .45rem .8rem; background: var(--white); border-radius: 3rem; border: 1px solid var(--line); font-weight: 650; text-decoration: none; }
.filter a[aria-current], .filter a:hover { background: var(--pink); border-color: var(--berry); }
.search { width: min(100%, 27rem); margin: 1.3rem 0; }
.search input { flex: 1 1 12rem; width: auto; }
.display-grid img { width: 100%; height: clamp(7rem, 18vw, 13rem); object-fit: cover; border-radius: .6rem; }
.breadcrumbs { margin-bottom: 1.45rem; }
.product-layout { display: grid; grid-template-columns: 1.04fr 1fr; gap: clamp(1.3rem, 5vw, 4.2rem); align-items: start; }
.product-layout h1 { font-size: clamp(2.15rem, 5vw, 3.75rem); }
.preview, .lead-photo { border-radius: 1rem; border: 1px solid var(--line); width: 100%; }
.preview { background: #e9e2d9; min-height: min(22rem, 76vw); display: grid; place-items: center; padding: 1.45rem; }
.preview img, .preview canvas { max-height: 28rem; width: auto; height: auto; }
.preview img { object-fit: contain; }
.preview.dark-surface { background: #292431; }
.selectable-art { cursor: pointer; }
.preview-caption { font-size: .88rem; margin: .65rem 0; }
.lead-photo { max-height: 35rem; object-fit: contain; background: #efe5d8; }
.gallery { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
.gallery img { width: 4.4rem; height: 4.4rem; border: 1px solid var(--line); object-fit: cover; border-radius: .4rem; }
.gallery [aria-current] img { border: 2px solid var(--berry-dark); }
.stack { display: grid; gap: .65rem; align-content: start; }
.stack > .button { justify-self: start; }
label { display: block; font-weight: 700; color: var(--ink); }
input:not([type="checkbox"]), select, textarea { display: block; width: 100%; color: var(--ink); background: var(--white); border: 1px solid #a79299; border-radius: .4rem; padding: .55rem .62rem; min-height: 2.75rem; }
input[type="checkbox"] { width: 1.12rem; height: 1.12rem; accent-color: var(--berry-dark); flex: 0 0 1.12rem; }
select { appearance: none; padding-right: 2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23252141' stroke-width='2' d='m3 6 5 5 5-5'/%3E%3C/svg%3E"); background-position: right .65rem center; background-repeat: no-repeat; background-size: 1rem; }
textarea { resize: vertical; }
input[type="file"] { overflow: hidden; }
fieldset { margin: .65rem 0; min-width: 0; border: 1px solid var(--line); border-radius: .6rem; padding: .75rem 1rem 1rem; }
legend { color: var(--ink); font-weight: 800; padding-inline: .35rem; }
fieldset label:not(:first-of-type) { margin-top: .5rem; }
.check { display: flex; gap: .55rem; align-items: baseline; }
.help { font-size: .88rem; margin: .15rem 0; }
.product-total, .subtotal { color: var(--ink); font-weight: 800; font-size: 1.125rem; }
.product-total:empty { display: none; }
.order-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; border-bottom: 1px solid var(--line); padding-block: 1rem; align-items: baseline; }
.order-line h3 { font-size: 1.2rem; }
.order-line p { margin: 0; }
.subtotal { margin-top: 1.1rem; }
.totals > div { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding-block: .35rem; }
.totals > div:last-child { color: var(--ink); font-weight: 800; }
address { font-style: normal; }
.notice { background: #edf0da; color: #36351d; padding: .9rem 1rem; border-left: .22rem solid #627443; border-radius: .3rem; }
.notice.error { background: #fbe4e7; color: #611c31; border-color: #aa354e; margin-top: 1.1rem; }
.prose h2 { font-size: 1.7rem; margin-top: 1.65rem; }
.pre-wrap { white-space: pre-wrap; }
.admin-nav { display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap; }
.admin-settings { display: grid; grid-template-columns: 1.1fr .9fr; align-items: start; gap: 1rem; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: .8rem; padding: 1rem; }
.panel form + form { margin-top: .9rem; }
.panel input { flex: 1 1 12rem; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.size-row { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
.admin-rows { display: grid; gap: .75rem; margin-block: .7rem; }
.field-grid label { margin: 0 !important; }
.admin-images { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.admin-images img { width: 3.25rem; height: 3.25rem; object-fit: contain; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
thead { background: var(--pink); }
th, td { padding: .65rem .8rem; border-bottom: 1px solid var(--line); }

@media (max-width: 54rem) {
    .hero { grid-template-columns: 1fr 1fr; gap: 1.4rem; }
    .hero-photo { min-height: 19rem; }
    .product-grid, .category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 40rem) {
    .wrap, .narrow { width: calc(100% - 2rem); }
    .header-inner { flex-wrap: wrap; justify-content: center; gap: .4rem 1rem; }
    .nav { justify-content: center; font-size: .9rem; }
    .hero, .heart, .product-layout, .admin-settings { grid-template-columns: 1fr; }
    .hero { padding-top: .6rem; }
    .hero-photo { min-height: 0; height: auto; aspect-ratio: 1.5; width: calc(100% - .55rem); }
    .hero h1 { font-size: clamp(2.8rem, 12vw, 5rem); }
    .product-grid { gap: .6rem; }
    .card-copy, .category-card { padding-inline: .65rem; }
    .card-copy h3 { font-size: 1.16rem; }
    .category-card { gap: .45rem; font-size: .94rem; }
    .display-grid, .size-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
