:root {
    --green: #204534;
    --green-dark: #173d31;
    --ink: #242d26;
    --muted: #565d53;
    --paper: #fcfaf5;
    --cream: #f5ecda;
    --red: #9c3336;
    --line: #d6d8cc;
    --focus: #9c661b;
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 Arial, sans-serif; }
button, input, select, textarea { color: inherit; font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}
h1, h2, h3 { margin: 0; font-family: Georgia, serif; font-weight: 400; line-height: 1.1; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 5vw, 4.4rem); letter-spacing: -.046em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 3.3rem); letter-spacing: -.038em; }
h3 { font-size: 1.45rem; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
img { max-width: 100%; }
.sr-only, .skip-link:not(:focus) {
    position: absolute; inline-size: 1px; block-size: 1px; margin: -1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
}
.skip-link:focus { position: absolute; z-index: 2; top: .5rem; left: .5rem; padding: .75rem; background: white; color: var(--ink); }
.strip {
    display: flex; align-items: center; justify-content: center; gap: .65rem; min-height: 2rem;
    color: #fff4db; background: #8d2e32; padding: .25rem .65rem; text-align: center;
    font-size: .78rem; line-height: 1.3; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
}
.strip span { color: #e8c799; }
.site-header { border-bottom: 1px solid var(--line); }
.bar, main, .site-footer { inline-size: min(100%, 1450px); margin-inline: auto; padding-inline: 5%; }
.bar { display: flex; min-height: 5rem; align-items: center; flex-wrap: wrap; gap: 1rem 2rem; padding-block: .55rem; }
.brand {
    display: inline-flex; gap: .4rem; min-height: 44px; align-items: center; color: var(--green);
    font: 700 clamp(1.5rem, 2.5vw, 1.92rem)/1.05 Georgia, serif; letter-spacing: -.05em; text-decoration: none;
}
.brand svg { flex-shrink: 0; }
.brand em { font-weight: 400; }
.navigation { display: flex; flex-wrap: wrap; gap: .2rem 1.35rem; margin-inline-start: auto; align-items: center; }
.nav {
    display: inline-flex; align-items: center; min-height: 44px; padding: .45rem .1rem;
    border: 0; border-bottom: 2px solid transparent; background: transparent;
    font-size: .95rem; font-weight: 650; text-decoration: none;
}
.nav:hover, .nav[aria-current] { color: var(--red); border-color: var(--red); }
.inline-form { display: inline; }
.header-actions { display: flex; align-items: center; gap: .45rem; }
.saved, .language {
    display: inline-flex; justify-content: center; gap: .42rem; align-items: center; min-height: 44px;
    padding: .2rem .78rem; border: 1px solid var(--line); border-radius: 999px; color: var(--green);
    font-size: .9rem; font-weight: 700; text-decoration: none;
}
.saved span:first-child { font: 1.5rem/1 Arial, sans-serif; }
.saved b { padding: 0 .35rem; color: var(--green); background: #e9eadf; border-radius: 999px; font-size: .78rem; }
.saved:hover, .language:hover { border-color: var(--green); }
.saved[aria-current] { background: var(--green); color: white; }
.language { min-inline-size: 44px; padding-inline: .35rem; }

.hero {
    position: relative; isolation: isolate; display: flex; align-items: center; overflow: hidden;
    min-height: clamp(21rem, 31vw, 29rem); margin-block: 1.5rem 2.4rem; border-radius: .5rem;
    background: var(--green-dark); color: #fff7e6;
}
.hero-art {
    position: absolute; z-index: -1; inset: 0 0 0 43%;
    background: url(wrapped.webp) 53% 50% / cover no-repeat;
    mask-image: linear-gradient(90deg, transparent, #000 24%);
}
.intro { width: 59%; padding: clamp(2rem, 4.2vw, 4rem) 5%; }
.kicker {
    display: flex; align-items: center; gap: .6rem; margin: 0 0 .65rem; color: var(--red);
    font-size: .79rem; letter-spacing: .12em; font-weight: 700; text-transform: uppercase;
}
.kicker::before { flex: 0 0 1.5rem; height: 1px; background: currentColor; content: ''; }
.hero .kicker { color: #e7c78e; }
.hero h1 { margin-bottom: .95rem; }
.hero h1 em { color: #efd8ab; }
.hero-summary { max-width: 31rem; margin-bottom: 1.35rem; color: #f2f0e5; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1rem; }
.hero-button, .primary, .secondary {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px; max-inline-size: 100%;
    padding: .58rem 1rem; border: 1px solid transparent; border-radius: .3rem; font-weight: 700;
    line-height: 1.3; text-align: center; text-decoration: none; overflow-wrap: anywhere;
}
.hero-button { background: #faf3df; color: var(--green); }
.hero-button:hover { background: #e7c78e; }
.hero-link { display: inline-flex; align-items: center; min-height: 44px; color: #fff7e6; font-weight: 650; }
.hero-link:hover { color: #e7c78e; }
.hero a:focus-visible { outline-color: #ffdb84; }
.primary { background: var(--green); color: white; }
.primary:hover { background: #143426; }
.secondary { border-color: #aeb9ab; background: transparent; color: var(--green); }
.secondary:hover { border-color: var(--green); background: #eff1e7; }

#collection { scroll-margin-top: 1rem; }
.sectionhead { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.result-count { margin: 0; color: var(--muted); font-size: .93rem; }
.controls {
    display: flex; align-items: start; justify-content: space-between; gap: .5rem 1rem;
    flex-wrap: wrap; margin-block: 1rem 1.4rem;
}
.category-filters { display: flex; flex-wrap: wrap; flex: 1 1 20rem; gap: .4rem; min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.filter-pill { position: relative; }
.filter-pill span, .budget {
    display: inline-flex; align-items: center; min-height: 44px; padding: .45rem .82rem;
    border: 1px solid var(--line); border-radius: 999px; background-color: var(--paper); color: var(--ink);
    font-size: .92rem; line-height: 1.2; cursor: pointer;
}
.filter-pill input:checked + span { background: var(--green); color: white; border-color: var(--green); }
.filter-pill input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.filter-pill:hover span, .budget:hover { border-color: var(--green); }
.filter-actions { display: flex; gap: .45rem; flex-wrap: wrap; }
.budget {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m1 2 5 4 5-4' fill='none' stroke='%23204534' stroke-width='1.5'/%3E%3C/svg%3E");
    background-position: right .75rem center; background-repeat: no-repeat; padding-inline-end: 2rem;
}
.filter-submit { border-radius: 999px; padding-inline: .8rem; font-size: .92rem; }
.clear-filters { display: inline-flex; align-items: center; min-height: 44px; padding-inline: .25rem; font-size: .9rem; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.75rem 1.15rem; }
.card { position: relative; min-inline-size: 0; }
.cardlink { display: block; text-decoration: none; }
.cardlink:hover h3, .cardlink:hover h2 { text-decoration: underline; text-underline-offset: .2em; }
.picture { display: block; width: 100%; aspect-ratio: 1.25; object-fit: cover; border-radius: .35rem; }
.picture-placeholder { display: grid; place-items: center; background: #e1e8d9; color: var(--green); font-size: 3rem; }
.category {
    margin: .75rem 0 .35rem; color: var(--red); font-size: .78rem;
    letter-spacing: .08em; font-weight: 750; text-transform: uppercase;
}
.name { display: flex; align-items: start; justify-content: space-between; gap: .45rem; }
.name h3, .name h2 { font-size: clamp(1.16rem, 1.7vw, 1.5rem); }
.makers-grid .name { margin-top: .65rem; }
.maker { margin: .38rem 0 0; color: var(--muted); font-size: .93rem; overflow-wrap: anywhere; }
.price { color: var(--green); font-size: 1.04rem; font-weight: 750; white-space: nowrap; }
.price small { display: block; color: var(--muted); font-size: .8rem; font-weight: 400; }
.heart {
    display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; padding: 0;
    border: 1px solid #d8d8cc; border-radius: 50%; color: var(--green); background: var(--paper); font: 1.5rem/1 Arial, sans-serif;
}
.heart[aria-pressed="true"] { color: var(--red); }
.card > .heart { position: absolute; top: .5rem; right: .5rem; }
.empty { grid-column: 1 / -1; margin-block: 1rem; padding: 1.2rem 0; }
.collection-page, .gift-detail { padding-block: clamp(1.4rem, 4vw, 3.2rem) 1rem; }
.collection-page .sectionhead { margin-bottom: 1.4rem; }
.collection-page .subheading { margin-block: 1.5rem 1rem; font-size: 1.65rem; }
.maker-bio { max-width: 55ch; font-size: 1.12rem; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: .65rem; color: var(--green); font-weight: 700; }
.gift-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .86fr); gap: clamp(1rem, 5vw, 5rem); }
.gallery-primary { display: grid; place-items: center; min-height: min(52vw, 25rem); border-radius: .45rem; background: #eeeee3; overflow: hidden; }
.gallery-primary img { display: block; width: 100%; max-height: 36rem; object-fit: contain; }
.gallery-thumbnails { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .65rem; }
.gallery-thumbnails a { display: flex; width: 4rem; aspect-ratio: 1; border: 2px solid transparent; border-radius: .3rem; overflow: hidden; }
.gallery-thumbnails a[aria-current] { border-color: var(--green); }
.gallery-thumbnails img { width: 100%; object-fit: cover; }
.gift-copy h1 { margin-block: .2rem 1rem; }
.gift-copy .category { margin-top: 0; }
.gift-actions { display: flex; align-items: center; gap: .8rem; margin-bottom: .8rem; }
.gift-actions .price { font-size: 1.48rem; }
.gift-actions .price small { display: inline; margin-inline-start: .15rem; font-size: .95rem; }
.listing-text { overflow-wrap: anywhere; white-space: pre-wrap; }
.order-panel { margin-block: 1.3rem; padding: 1.15rem; background: #f2efe2; border-radius: .4rem; }
.order-panel h2, .maker-detail h2 { margin-bottom: .65rem; font-size: 1.55rem; }
.order-links { display: flex; flex-wrap: wrap; gap: .65rem .8rem; margin: 0; padding: 0; list-style: none; }
.order-links li { display: grid; gap: .2rem; min-width: 0; }
.order-links li span { color: var(--muted); font-size: .86rem; overflow-wrap: anywhere; user-select: all; }
.maker-detail > a { color: var(--green); font-weight: 700; }
.maker-detail > p { margin-top: .3rem; }

.panel {
    margin-block: clamp(1.3rem, 4vw, 3rem); padding: clamp(1rem, 4vw, 2rem);
    border: 1px solid var(--line); border-radius: .6rem; background: #fffdf8;
}
.panel > h1, .legal-page > h1 { margin-bottom: 1rem; font-size: clamp(2rem, 4vw, 3rem); }
.narrow, .legal-page { max-inline-size: 43rem; margin-inline: auto; }
.form-stack, .field { display: grid; gap: .72rem; }
.field { gap: .28rem; }
.field label, .field > span:first-child { font-weight: 700; }
.field input:not([type=checkbox], [type=radio]), .field textarea, .field select {
    inline-size: 100%; min-height: 44px; padding: .55rem .68rem; border: 1px solid #aeb9ab;
    border-radius: .3rem; background: white;
}
.help { color: var(--muted); font-size: .92rem; }
.notice, .errors { padding: .7rem .9rem; border-radius: .35rem; }
.notice { border: 1px solid #afc6ad; background: #eff4e9; }
.errors { border: 1px solid #c78682; background: #fcf0ed; color: #791f23; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }

.site-footer {
    display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.25rem; flex-wrap: wrap;
    margin-top: clamp(2.4rem, 6vw, 4.5rem); padding-block: 1.1rem 1.6rem; border-top: 1px solid var(--line); color: var(--muted);
}
.site-footer strong { color: var(--green); font: 1.38rem/1.2 Georgia, serif; }
.site-footer p { margin: .25rem 0 0; font-size: .91rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .91rem; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 1000px) {
    .bar, main, .site-footer { padding-inline: 4%; }
    .bar { gap: .35rem 1rem; }
    .navigation { gap: .2rem .7rem; }
    .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .name { display: block; }
    .name > .price { display: inline-block; margin-top: .22rem; }
    .intro { width: 66%; }
}

@media (max-width: 680px) {
    .strip { font-size: .67rem; }
    .bar { justify-content: space-between; padding-block: .42rem; }
    .brand svg { width: 31px; height: 33px; }
    .navigation { order: 3; width: 100%; margin: 0; row-gap: 0; }
    .nav { font-size: .9rem; }
    .header-actions { gap: .3rem; }
    .saved { padding-inline: .46rem; }
    .hero { display: block; min-height: 0; margin-block: .85rem 1.75rem; }
    .hero-art {
        position: relative; min-height: clamp(8rem, 37vw, 14rem); inset: auto;
        background-position: 50% 55%; mask-image: linear-gradient(#000 62%, transparent);
    }
    .intro { position: relative; width: 100%; margin-top: -1.65rem; padding: .85rem 1rem 1.26rem; }
    .hero h1 { font-size: clamp(2.25rem, 9vw, 3.6rem); }
    .hero-summary { margin-bottom: .65rem; }
    .hero-actions { gap: .25rem .85rem; }
    .sectionhead { align-items: start; flex-direction: column; gap: .35rem; }
    .controls { margin-block: .8rem 1rem; }
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem .75rem; }
    .picture { aspect-ratio: 1; }
    .category { line-height: 1.3; letter-spacing: .03em; }
    .gift-layout { grid-template-columns: minmax(0, 1fr); }
    .order-links { align-items: start; }
}

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