:root {
    color-scheme: light;
    --paper: #faf9f4;
    --tint: #edf0e5;
    --white: #fffefa;
    --ink: #212b23;
    --muted: #545e54;
    --green: #294835;
    --line: #d2d7cb;
    --error: #8c292b;
    --radius: 5px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.55;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, .section h2:not(.cart-line h2, .panel h2) { font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.1; letter-spacing: -.035em; }
h1 { font-size: clamp(2.3rem, 5vw, 4.3rem); }
h2 { font-size: 1.3rem; line-height: 1.25; }
h3 { font-size: 1rem; }
.wrap { width: min(100% - 48px, 1240px); margin-inline: auto; }
.narrow { max-width: 680px; }
.skip { position: fixed; top: .5rem; left: .5rem; z-index: 5; background: var(--paper); padding: 12px; transform: translateY(-150%); }
.skip:focus { transform: none; }
.demo-banner { text-align: center; font-size: .79rem; background: var(--tint); color: var(--green); padding: .42rem .75rem; }
.site-header { border-bottom: 1px solid var(--line); }
.nav { min-height: 66px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.wordmark { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.9rem, 3vw, 2.4rem); letter-spacing: -.085em; color: var(--ink); text-decoration: none; white-space: nowrap; line-height: 1; }
.wordmark span { color: var(--green); }
.nav-links { display: flex; align-items: center; justify-content: end; gap: clamp(12px, 3vw, 34px); font-size: .89rem; }
.nav-links a { color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav-links a:hover, .nav-links [aria-current] { text-decoration: underline; }
.admin-nav-links { gap: clamp(8px, 2vw, 22px); }
.hero-admin-preview { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 60% 40%; border-radius: var(--radius); }
#hero-settings [hidden] { display: none; }
.hero-editor-thumb { max-width: 240px; }
.hero-editor-actions { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.hero-editor-actions button:disabled { opacity: .4; cursor: default; }
.cart-count { font-size: .75rem; padding: .15rem .4rem; margin-left: .15rem; background: var(--tint); border-radius: var(--radius); }
.hero { background: var(--tint); }
.hero-grid { display: grid; grid-template-columns: .86fr 1.14fr; min-height: clamp(420px, 43vw, 560px); }
.hero-copy { align-self: center; padding: 40px clamp(22px, 5vw, 72px) 40px 0; }
.hero-copy h1 { font-size: clamp(3.1rem, 6.6vw, 6.1rem); line-height: .99; }
.hero-copy h1 em { display: block; color: var(--green); line-height: 1.1; padding-bottom: .05em; }
.eyebrow { text-transform: uppercase; letter-spacing: .17em; color: var(--green); font-weight: 700; font-size: .69rem; margin-bottom: 20px; }
.hero-copy > p:not(.eyebrow) { margin-top: 16px; max-width: 32ch; color: var(--muted); }
.hero-copy .button { margin-top: 26px; }
.hero-image { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; max-height: 560px; }
.hero-media { position: relative; height: clamp(420px, 43vw, 560px); overflow: hidden; background: var(--tint); }
.hero-slide { position: absolute; inset: 0; opacity: 0; }
.hero-slide.is-current { opacity: 1; z-index: 1; }
.hero-slide .hero-image { height: 100%; }
.hero-controls { position: absolute; z-index: 2; right: 12px; bottom: 12px; display: flex; align-items: center; padding: 2px 6px; border-radius: var(--radius); background: var(--paper); }
.hero-controls[hidden] { display: none; }
.hero-controls button { cursor: pointer; color: var(--green); border: 0; background: none; }
.hero-dot { display: grid; place-items: center; width: 30px; height: 36px; padding: 0; }
.hero-dot::after { content: ''; width: 8px; height: 8px; border: 1px solid currentColor; border-radius: 50%; }
.hero-dot[aria-current]::after { background: currentColor; }
.hero-dot:disabled { opacity: .4; cursor: default; }
.hero-toggle { min-height: 36px; padding-inline: 8px; font: inherit; font-size: .82rem; }
.section { padding-block: clamp(34px, 5vw, 76px); }
.section-head { margin-bottom: 26px; }
.section-head p, .admin-heading p { margin-top: .6rem; color: var(--muted); }
.section-head h2 { font-size: clamp(2.25rem, 4.6vw, 3.6rem); }
.catalog-filter { display: grid; grid-template-columns: minmax(0, 13rem) max-content; gap: 6px 10px; width: fit-content; max-width: 100%; margin-bottom: 24px; }
.catalog-filter label { grid-column: 1 / -1; }
.catalog-filter :is(select, .button) { min-height: 46px; padding-block: .5rem; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(13px, 2.6vw, 34px); }
.collection-action { margin-top: clamp(24px, 4vw, 40px); text-align: center; }
.product-link { display: block; color: var(--ink); text-decoration: none; }
.product-link img, .photo-empty { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 35%; background: var(--tint); border-radius: var(--radius); }
.photo-empty { display: grid; place-items: center; text-align: center; padding: 1rem; color: var(--muted); }
.product-link h3 { margin-top: 12px; }
.category-badge { display: inline-block; width: fit-content; max-width: 100%; padding: .18rem .55rem; border-radius: var(--radius); background: var(--tint); color: var(--green); font-size: .78rem; overflow-wrap: anywhere; }
.product-link .category-badge { margin-top: 12px; }
.product-link .category-badge + h3 { margin-top: 5px; }
.product-link:hover h3 { text-decoration: underline; }
.product-link p { margin-top: 3px; color: var(--muted); }
.breadcrumb { display: inline-block; margin-bottom: 24px; font-size: .9rem; }
.product-detail, .checkout-grid { display: grid; grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr); gap: clamp(22px, 5vw, 72px); align-items: start; }
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 35%; border-radius: var(--radius); }
.gallery > :first-child { grid-column: 1 / -1; }
.product-copy { display: grid; gap: 16px; }
.price { font-size: 1.3rem; color: var(--green); }
.product-copy details { border-top: 1px solid var(--line); padding-top: 12px; }
summary { cursor: pointer; font-weight: 650; }
details p { margin-top: 8px; color: var(--muted); }
.multiline { white-space: pre-line; overflow-wrap: anywhere; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: fit-content; min-height: 44px; padding: .62rem 1.1rem; border: 1px solid var(--green); border-radius: var(--radius); background: var(--green); color: #fff; font: inherit; font-weight: 650; text-align: center; text-decoration: none; cursor: pointer; }
.button:hover { background: #1e3828; color: #fff; }
.button.secondary { background: var(--white); color: var(--green); }
.button.secondary:hover { background: var(--tint); }
.button:disabled { background: var(--tint); border-color: var(--line); color: var(--muted); cursor: not-allowed; }
.link { border: 0; padding: 0; background: none; color: var(--green); font: inherit; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.stack { display: grid; gap: 16px; min-width: 0; }
.stack.compact { gap: 9px; }
label { display: grid; gap: 5px; font-size: .91rem; font-weight: 620; min-width: 0; }
input:not([type=checkbox], [type=radio]), textarea, select {
    width: 100%; min-width: 0; min-height: 44px; border: 1px solid #858f82; border-radius: var(--radius);
    background: var(--white); color: var(--ink); font: inherit; font-size: 1rem; font-weight: 400; padding: .52rem .65rem;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input[type=checkbox], input[type=radio] { width: 17px; height: 17px; margin: 0; accent-color: var(--green); flex-shrink: 0; }
input:disabled, select:disabled { background: var(--tint); color: var(--muted); }
.quantity { max-width: 100px; }
textarea { resize: vertical; }
fieldset, .panel { margin: 0; min-width: 0; padding: clamp(14px, 2.6vw, 26px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
legend { padding: 0 8px; font-size: 1.12rem; font-weight: 690; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.inline-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.inline-form input[type=number] { width: 70px; }
.check { display: flex; align-items: center; gap: 7px; }
.cart-line { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 16px; border-bottom: 1px solid var(--line); padding-block: 14px; }
.cart-line:first-child { padding-top: 0; }
.cart-line img { width: 80px; height: 100px; object-fit: cover; border-radius: var(--radius); }
.cart-line h2 { font-size: 1.12rem; }
.cart-line p { font-size: .9rem; margin: 4px 0; }
.summary { display: grid; gap: 14px; }
.summary .button { width: 100%; }
.line-total { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: .95rem; }
.line-total > :last-child { white-space: nowrap; }
.line-total small, .rate small { display: block; color: var(--muted); }
.rule { border-top: 1px solid var(--line); padding-top: 12px; }
.grand { font-size: 1.13rem; }
.search-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.rates { display: grid; gap: 8px; }
.rate { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.rate:has(:checked) { background: var(--tint); border-color: var(--green); }
.muted { color: var(--muted); }
.status { color: var(--green); }
.status-expired, .status-failed, .error-text { color: var(--error); }
.flashes { padding-top: 12px; }
.notice { margin: 0; padding: 12px 16px; border-radius: var(--radius); background: var(--tint); }
.notice.error { background: #f8e9e7; color: var(--error); padding-inline-start: 34px; }
.empty { background: var(--tint); padding: clamp(18px, 4vw, 48px); border-radius: var(--radius); }
.empty .button { margin-top: 12px; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; }
.admin-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 570px; text-align: left; background: var(--white); font-size: .92rem; }
.category-table { min-width: 0; overflow-wrap: anywhere; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); }
th { background: var(--tint); }
.table-product, .admin-photos { display: flex; align-items: center; gap: 12px; }
.table-product img, .admin-photos img { object-fit: cover; border-radius: var(--radius); }
.table-product img { height: 52px; width: 44px; }
.admin-photos { flex-wrap: wrap; }
.admin-photos img { width: 80px; height: 100px; margin-bottom: 5px; }
.variant-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; align-items: end; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.variant-row .inline-form { min-height: 44px; }
.filter { align-items: end; margin-bottom: 16px; }
.site-footer { background: var(--tint); border-top: 1px solid var(--line); }
.footer-inner { min-height: 110px; display: flex; align-items: center; gap: 18px; justify-content: space-between; color: var(--muted); font-size: .9rem; }
.footer-columns { display: grid; grid-template-columns: .9fr 1.25fr 1fr; gap: clamp(22px, 4vw, 60px); padding-block: clamp(28px, 4vw, 50px); color: var(--muted); font-size: .9rem; }
.footer-brand p { margin-top: 12px; }
.footer-columns h2 { color: var(--ink); font-size: 1rem; }
.footer-list { display: grid; gap: 7px; margin: 12px 0 0; padding: 0; list-style: none; }
.analytics-panel {
    position: fixed;
    z-index: 4;
    inset-inline-start: max(16px, env(safe-area-inset-left));
    bottom: max(16px, env(safe-area-inset-bottom));
    width: min(24rem, 100% - 32px);
    max-height: calc(100dvh - 32px - env(safe-area-inset-bottom));
    overflow: auto;
    padding: 18px 20px 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 5px 12px rgb(33 43 35 / .07), 0 18px 44px rgb(33 43 35 / .16);
    color: var(--ink);
    font-size: .875rem;
}
.analytics-panel h2 {
    margin: 0 40px 6px 0;
    color: var(--green);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
    font-weight: 400;
    letter-spacing: -.02em;
}
.analytics-panel p { margin-bottom: 5px; color: var(--muted); }
.analytics-panel a { display: inline-block; padding-block: 3px; }
.analytics-close {
    position: absolute;
    inset-block-start: 7px;
    inset-inline-end: 8px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    background: transparent;
    color: var(--green);
    font: inherit;
    font-size: 1.45rem;
    cursor: pointer;
}
.analytics-close:hover { background: var(--tint); }
.analytics-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.analytics-actions .button { width: 100%; padding-inline: .5rem; }
.analytics-panel .analytics-status { margin: 10px 0 0; }
@media (max-width: 480px) {
    .analytics-panel {
        inset-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right));
        bottom: max(12px, env(safe-area-inset-bottom));
        width: auto;
        padding: 16px;
    }
}
.contact-list li { display: grid; grid-template-columns: 1.1rem minmax(0, 1fr); gap: 7px; }
.contact-list li > :first-child { color: var(--green); text-align: center; }
.page-copy { display: grid; gap: 1em; overflow-wrap: anywhere; }
.page-copy h2 { margin-top: .6em; font-size: clamp(1.35rem, 3vw, 1.75rem); }
.page-copy h2:first-child, .page-copy ul, .page-copy ol { margin-block: 0; }
.about-page .page-copy > p:first-child { color: var(--green); font-size: 1.18rem; }
.about-contact { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.checkout-policies { font-size: .88rem; }
.page-editor-nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 18px; font-size: .9rem; }
.page-editor-nav a { padding-block: 4px; }
.page-editor-nav a[aria-current] { font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
    .hero-slide { transition: opacity .85s ease; }
    .hero-copy { animation: appear .45s ease-out both; }
    .button { transition: background-color .16s ease; }
    @keyframes appear { from { opacity: .15; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
}
@media (max-width: 767px) {
    .wrap { width: calc(100% - 32px); }
    .nav { min-height: 60px; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-copy { padding: 28px 0 24px; }
    .hero-copy h1 { font-size: clamp(2.75rem, 8.2vw, 4.9rem); }
    .hero-copy h1 em { display: inline; }
    .eyebrow { margin-bottom: 12px; }
    .hero-copy .button { margin-top: 16px; }
    .hero-image { height: clamp(235px, 72vw, 430px); object-position: 60% 34%; }
    .hero-media { height: clamp(235px, 72vw, 430px); }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-detail, .checkout-grid { grid-template-columns: minmax(0, 1fr); }
    .gallery > :first-child { max-height: 480px; }
    .variant-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .variant-row .inline-form { grid-column: 1 / -1; }
    .footer-inner { padding-block: 20px; flex-wrap: wrap; }
    .footer-columns { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
    .form-grid { grid-template-columns: minmax(0, 1fr); }
    .nav-links { flex-wrap: wrap; row-gap: 3px; padding-block: 7px; font-size: .8rem; }
    .footer-columns { grid-template-columns: 1fr; }
}
