:root {
    --ink: #17221c;
    --muted: #69756e;
    --cream: #fffed4;
    --paper: #fffdf8;
    --green: #24533c;
    --sage: #b9c9b5;
    --peach: #e99a72;
    --line: rgba(23, 34, 28, 0.15);
    --shadow: 0 18px 48px rgba(36, 83, 60, 0.12);
}

* {
    box-sizing: border-box;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

html {
    color: var(--ink);
    background: var(--cream);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--cream);
}

a {
    color: inherit;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1440px, calc(100% - 64px));
    margin: 0 auto;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-decoration: none;
}

.wordmark-art {
    display: block;
    width: auto;
    height: 36px;
}

.wordmark-name {
    font-size: 2rem;
    line-height: 1;
}

.construction-page {
    min-height: 100vh;
}

.construction-main {
    display: grid;
    min-height: calc(100vh - 94px);
    place-items: center;
    padding: 70px 0 96px;
}

.construction-card {
    display: grid;
    grid-template-columns: minmax(280px, 0.75fr) minmax(360px, 1.25fr);
    align-items: center;
    gap: clamp(42px, 7vw, 110px);
    width: 100%;
}

.construction-copy h1 {
    font-size: clamp(4rem, 7vw, 6.8rem);
    line-height: 0.84;
}

.construction-copy > p:last-child {
    max-width: 440px;
    margin: 34px 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.4vw, 1.22rem);
    line-height: 1.65;
}

.construction-artwork {
    margin: 0;
}

.construction-artwork img {
    display: block;
    width: 100%;
    height: auto;
}

.construction-artwork figcaption {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.72rem;
    text-align: right;
}

main {
    width: min(1440px, calc(100% - 64px));
    margin: 0 auto;
}

.intro {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
    align-items: end;
    gap: 64px;
    padding: 82px 0 92px;
}

.intro-visual {
    min-width: 0;
}

.intro-artwork {
    position: relative;
    width: min(100%, 800px);
    margin: 0;
}

.intro-art {
    display: block;
    width: 100%;
    height: auto;
}

.art-credit {
    position: absolute;
    right: 18px;
    bottom: 16px;
    padding: 8px 11px;
    border-radius: 7px;
    color: var(--paper);
    background: rgba(23, 34, 28, 0.88);
    box-shadow: 0 6px 18px rgba(23, 34, 28, 0.18);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transform: translateY(5px);
    transition: opacity 140ms ease, transform 140ms ease;
}

.intro-artwork:hover .art-credit,
.intro-artwork:focus .art-credit {
    opacity: 1;
    transform: translateY(0);
}

.intro-artwork:focus-visible {
    outline: 3px solid var(--peach);
    outline-offset: 5px;
}

.eyebrow,
.section-kicker {
    margin: 0 0 18px;
    color: var(--green);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1 {
    max-width: 980px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(4rem, 8.6vw, 8.7rem);
    font-weight: 400;
    letter-spacing: -0.065em;
    line-height: 0.79;
}

h1 em {
    color: var(--green);
    font-weight: 400;
}

.intro-copy {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    line-height: 1.65;
}

.catalog {
    margin-bottom: 96px;
    padding: 42px;
    border-radius: 28px;
    background: var(--paper);
    box-shadow: var(--shadow);
}

.catalog-heading {
    display: flex;
    align-items: end;
    justify-content: flex-start;
    gap: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--line);
}

.filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px;
}

.filter-field {
    display: grid;
    gap: 7px;
    min-width: 190px;
}

.filter-field > span {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.filter-field select,
.tree-select-trigger {
    width: 100%;
    min-height: 48px;
    padding: 0 42px 0 15px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    background: var(--cream);
    font: inherit;
    font-weight: 650;
}

.tree-select {
    position: relative;
}

.tree-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    text-align: left;
}

.tree-select-value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tree-select-caret {
    color: var(--green);
    font-size: 1.05rem;
    line-height: 1;
    transition: transform 150ms ease;
}

.tree-select-trigger[aria-expanded="true"] .tree-select-caret {
    transform: rotate(180deg);
}

.tree-select-popover,
.tree-submenu {
    position: absolute;
    z-index: 20;
    width: max-content;
    min-width: 280px;
    max-width: min(390px, calc(100vw - 32px));
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    box-shadow: 0 18px 44px rgba(23, 34, 28, 0.18);
}

.tree-select-popover {
    top: calc(100% + 7px);
    right: auto;
    left: 0;
}

.tree-submenu {
    top: -7px;
    right: auto;
    left: calc(100% + 5px);
    min-width: 340px;
}

.tree-select-popover[hidden],
.tree-submenu[hidden] {
    display: none;
}

.tree-parent-list,
.tree-submenu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tree-parent-item {
    position: relative;
}

.tree-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 40px;
    padding: 9px 11px;
    border: 0;
    border-radius: 7px;
    color: var(--ink);
    background: transparent;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
}

.tree-option:hover,
.tree-option:focus-visible,
.tree-option[aria-current="true"],
.submenu-open > .tree-parent-option {
    color: var(--green);
    background: var(--cream);
}

.tree-option-arrow {
    color: var(--green);
    font-size: 1.15rem;
    line-height: 1;
}

.tree-option:disabled,
.tree-option:disabled:hover,
.submenu-open > .tree-option:disabled {
    color: #a2aaa5;
    background: transparent;
    cursor: not-allowed;
}

.tree-option:disabled .tree-option-arrow {
    color: #b1b8b4;
}

.tree-all-option,
.tree-submenu li:first-child .tree-option {
    font-weight: 850;
}

.tree-parent-list > li:first-child,
.tree-submenu li:first-child {
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--line);
}

.filter-field select:focus-visible,
.tree-select-trigger:focus-visible,
.tree-option:focus-visible,
.product-card:focus-visible,
.wordmark:focus-visible {
    outline: 3px solid var(--peach);
    outline-offset: 3px;
}

.catalog-status {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 24px 0;
    color: var(--muted);
    font-size: 0.82rem;
}

#result-count {
    color: var(--ink);
    font-weight: 800;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 34px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}

.pagination[hidden] {
    display: none;
}

.pagination button {
    min-width: 112px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--green);
    border-radius: 9px;
    color: var(--green);
    background: transparent;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
}

.pagination button:hover:not(:disabled) {
    color: var(--paper);
    background: var(--green);
}

.pagination button:focus-visible {
    outline: 3px solid var(--peach);
    outline-offset: 3px;
}

.pagination button:disabled {
    border-color: var(--line);
    color: #9ba39e;
    cursor: not-allowed;
}

#page-indicator {
    min-width: 100px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 750;
    text-align: center;
}

.product-card {
    overflow: hidden;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(36, 83, 60, 0.35);
    box-shadow: 0 14px 28px rgba(36, 83, 60, 0.12);
}

.product-media {
    display: grid;
    overflow: hidden;
    aspect-ratio: 1;
    place-items: center;
    background: transparent;
}

.product-media img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
}

.image-placeholder {
    padding: 24px;
    color: var(--muted);
    font-size: 0.78rem;
}

.product-body {
    min-height: 154px;
    padding: 18px;
}

.product-cause {
    overflow: hidden;
    margin: 0 0 10px;
    color: var(--green);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.product-card h3 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 16px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.18;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-organization {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.empty-state {
    padding: 84px 24px;
    border: 1px dashed var(--sage);
    border-radius: 16px;
    text-align: center;
}

.empty-state p {
    margin: 6px 0;
    color: var(--muted);
}

.empty-state .empty-title {
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.6rem;
}

footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(1440px, calc(100% - 64px));
    margin: 0 auto;
    padding: 28px 0 48px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.82rem;
}

footer p {
    margin: 0;
}

footer a {
    color: var(--green);
    font-weight: 800;
    text-underline-offset: 3px;
}

.contact-main {
    width: min(860px, calc(100% - 64px));
    padding: 76px 0 96px;
}

.contact-intro {
    margin-bottom: 34px;
}

.contact-intro h1 {
    font-size: clamp(4rem, 9vw, 7.5rem);
    line-height: 0.9;
}

.contact-intro > p:last-child {
    max-width: 620px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.contact-card,
.contact-success {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--paper);
    box-shadow: var(--shadow);
}

.contact-form {
    display: grid;
    gap: 22px;
}

.contact-field {
    display: grid;
    gap: 8px;
}

.contact-field > span {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--ink);
    background: #fff;
    font: inherit;
}

.contact-field input {
    min-height: 48px;
}

.contact-field textarea {
    min-height: 190px;
    resize: vertical;
    line-height: 1.55;
}

.contact-field input:focus-visible,
.contact-field textarea:focus-visible,
.contact-submit:focus-visible,
footer a:focus-visible {
    outline: 3px solid var(--peach);
    outline-offset: 3px;
}

.contact-altcha {
    display: grid;
    gap: 8px;
}

.contact-altcha > span {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-altcha altcha-widget {
    --altcha-border-radius: 9px;
    --altcha-color-active: var(--green);
    --altcha-color-base: #fff;
    --altcha-color-border: var(--line);
    --altcha-color-border-focus: var(--green);
    --altcha-color-text: var(--ink);
    --altcha-max-width: 360px;
}

.contact-submit {
    justify-self: start;
    min-height: 48px;
    padding: 0 20px;
    border: 0;
    border-radius: 9px;
    color: var(--paper);
    background: var(--green);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.contact-submit:hover {
    background: #173d2a;
}

.contact-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

.errorlist {
    margin: 0;
    padding: 0;
    color: #a33a35;
    font-size: 0.78rem;
    font-weight: 700;
    list-style: none;
}

.contact-form-errors {
    padding: 12px 14px;
    border-left: 4px solid #a33a35;
    border-radius: 5px 9px 9px 5px;
    color: #762f2b;
    background: #fae9e7;
}

.contact-success h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    font-weight: 400;
}

.contact-success p {
    margin: 8px 0 22px;
    color: var(--muted);
}

.contact-success a {
    color: var(--green);
    font-weight: 800;
}

@media (max-width: 1100px) {
    .construction-card {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .construction-copy > p:last-child {
        margin-top: 26px;
    }

    .construction-artwork {
        max-width: 800px;
    }

    .intro {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .intro-copy {
        max-width: 620px;
    }

    .catalog-heading {
        align-items: start;
        flex-direction: column;
    }

    .filters {
        width: 100%;
    }

    .filter-field {
        flex: 1;
    }

    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .site-header,
    main,
    footer {
        width: min(100% - 32px, 1440px);
    }

    .contact-main {
        width: min(100% - 32px, 860px);
        padding: 54px 0 72px;
    }

    .contact-card,
    .contact-success {
        padding: 24px 18px;
    }

    footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .site-header {
        padding: 20px 0;
    }

    .wordmark-art {
        height: 32px;
    }

    .wordmark-name {
        font-size: 1.75rem;
    }

    .construction-main {
        min-height: calc(100vh - 73px);
        padding: 52px 0 72px;
    }

    .construction-card {
        gap: 38px;
    }

    .construction-copy h1 {
        font-size: clamp(3.7rem, 19vw, 6.4rem);
    }

    .intro {
        padding: 56px 0 64px;
    }

    h1 {
        font-size: clamp(3.7rem, 19vw, 6.4rem);
    }

    .catalog {
        margin-inline: -8px;
        padding: 24px 16px;
        border-radius: 20px;
    }

    .filters {
        flex-direction: column;
    }

    .filter-field {
        min-width: 0;
    }

    .tree-select-popover {
        right: 0;
        left: 0;
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    .tree-submenu {
        position: static;
        width: auto;
        min-width: 0;
        max-width: none;
        margin: 3px 0 7px 13px;
        padding: 5px 0 5px 9px;
        border: 0;
        border-left: 2px solid var(--sage);
        border-radius: 0;
        box-shadow: none;
    }

    .tree-parent-item.submenu-open > .tree-parent-option .tree-option-arrow {
        transform: rotate(90deg);
    }

    .catalog-status {
        align-items: start;
        flex-direction: column;
        gap: 6px;
    }

    .pagination {
        gap: 10px;
    }

    .pagination button {
        min-width: 0;
        flex: 1;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .product-body {
        min-height: 138px;
        padding: 14px;
    }

    .product-card h3 {
        font-size: 1.05rem;
    }
}

@media (max-width: 420px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
