:root {
  --ink: #171916;
  --paper: #f5f5ef;
  --muted: #555a50;
  --line: #d6d8cf;
  --accent: #d9f743;
  --display: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --body: "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--body); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .24em; }
button, select, input { font: inherit; }
button, summary { cursor: pointer; }
button:disabled { cursor: default; opacity: .58; }
:focus-visible { outline: 2px solid #456304; outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only, .skip:not(:focus) { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.skip:focus { z-index: 5; position: fixed; top: .25rem; left: .25rem; padding: .65rem; background: white; }
.shell { width: min(100% - 3rem, 1440px); margin-inline: auto; }
.band { padding-block: clamp(2.8rem, 6vw, 6rem); }
.band + .band { padding-top: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--display); line-height: 1.03; letter-spacing: -.055em; }
h1 { font-size: clamp(2.65rem, 6vw, 5.4rem); margin-bottom: 1.35rem; }
h2 { font-size: clamp(1.7rem, 3.7vw, 3.3rem); }
h3 { font-size: 1rem; line-height: 1.3; }
p + p { margin-top: .75rem; }
.wordmark { font: italic 900 clamp(1.65rem, 3vw, 2.3rem)/1 var(--display); letter-spacing: -.075em; text-decoration: none; white-space: nowrap; }
.wordmark span { color: #587600; }
.announcement { text-align: center; font-size: .77rem; font-weight: 700; letter-spacing: .11em; padding: .48rem 1rem; color: white; background: var(--ink); }
.header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 76px; gap: 1.5rem; }
.nav, .header-actions { display: flex; align-items: center; gap: clamp(.85rem, 2.2vw, 2.4rem); }
.nav a, .header-actions a, .submenu a { text-decoration: none; }
.nav a:hover, .header-actions a:hover, .submenu a:hover { text-decoration: underline; }
.nav, .header-actions { font-size: .875rem; font-weight: 700; }
.header-actions { justify-content: end; white-space: nowrap; }
.header-actions span { border: 1px solid var(--line); border-radius: 100%; display: inline-grid; min-width: 1.65em; min-height: 1.65em; place-items: center; }
.nav details { position: relative; }
.nav summary { white-space: nowrap; }
.submenu { position: absolute; z-index: 3; top: calc(100% + .7rem); min-width: 13rem; max-height: 60vh; overflow: auto; display: grid; gap: .7rem; background: var(--paper); border: 1px solid var(--line); padding: 1rem; box-shadow: 0 12px 24px #17191620; }
.submenu .subchild { padding-left: .8rem; }
.hero { display: grid; grid-template-columns: .78fr 1fr; margin-top: 1.5rem; }
.hero-copy { padding: clamp(2rem, 5.2vw, 5rem); min-width: 0; background: var(--ink); color: white; display: flex; flex-direction: column; justify-content: center; align-items: start; }
.hero h1 { font-style: italic; letter-spacing: -.085em; font-size: clamp(3.3rem, 7vw, 8rem); line-height: .9; overflow-wrap: anywhere; }
.hero p { color: #d8dcd1; max-width: 25ch; margin: .25rem 0 1.9rem; }
.hero-media { position: relative; overflow: hidden; min-height: clamp(340px, 43vw, 680px); background: #777e71; }
.hero-media img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .8rem; min-height: 44px; padding: .7rem 1.15rem; background: var(--ink); border: 1px solid var(--ink); color: white; text-decoration: none; font-weight: 700; text-align: center; }
.button:hover:not(:disabled) { filter: brightness(.9); }
.button-accent { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.35rem; }
.section-heading a { font-weight: 700; font-size: .85rem; }
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
.category { min-height: 86px; display: flex; gap: 1rem; justify-content: space-between; align-items: center; padding: 1rem; border: 1px solid var(--line); text-decoration: none; font-weight: 800; font-size: clamp(1rem, 2vw, 1.5rem); }
.category:hover { background: var(--accent); border-color: var(--accent); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem clamp(.8rem, 2vw, 1.6rem); }
.product-card a { display: block; text-decoration: none; }
.product-card a:hover h3 { text-decoration: underline; }
.card-image, .gallery-main { background: #e9ebe2; }
.card-image { aspect-ratio: 1 / 1.08; position: relative; overflow: hidden; margin-bottom: .75rem; }
.card-image img, .card-image svg { width: 100%; height: 100%; object-fit: contain; }
.badge { position: absolute; top: .55rem; left: .55rem; padding: .2rem .45rem; background: var(--paper); font-size: .75rem; font-weight: 700; }
.vendor { margin-bottom: .35rem; color: var(--muted); font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.card-price { margin-top: .35rem; }
s { color: var(--muted); margin-left: .35em; }
.intro { max-width: 66ch; margin-bottom: 1.5rem; }
.filters { display: flex; align-items: end; flex-wrap: wrap; gap: .7rem; border-block: 1px solid var(--line); padding-block: 1rem; margin-bottom: 2rem; }
.filters details { align-self: center; position: relative; }
.filters summary { padding: .6rem; font-weight: 700; }
.filter-values { z-index: 2; position: absolute; top: 100%; left: 0; background: var(--paper); min-width: 12rem; max-height: 20rem; overflow: auto; border: 1px solid var(--line); box-shadow: 0 10px 20px #17191620; padding: .75rem; display: grid; gap: .55rem; }
.filter-values label { white-space: nowrap; }
.filter-values input[type=number] { width: 6.5rem; }
.sort { margin-left: auto; font-size: .85rem; }
select, input[type=search], input[type=number], input[type=password] { background: white; color: var(--ink); min-height: 44px; max-width: 100%; border: 1px solid #a4a99e; border-radius: 0; padding: .5rem .7rem; }
input[type=checkbox] { accent-color: var(--ink); }
.search { display: flex; margin-block: 1.5rem; gap: .5rem; max-width: 42rem; }
.search input { flex: 1; min-width: 0; }
.pagination { text-align: center; margin-top: 2rem; }
.pagination span { margin: 0 .3rem; }
.product-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
.gallery-main { aspect-ratio: 1; }
.gallery-main img, .gallery-main svg { width: 100%; height: 100%; object-fit: contain; }
.thumbnails { display: flex; gap: .4rem; margin-top: .5rem; overflow: auto; padding: .25rem; }
.thumbnails button { flex: 0 0 72px; border: 1px solid var(--line); padding: 0; background: #e9ebe2; }
.thumbnails button[aria-pressed=true] { border-color: var(--ink); }
.thumbnails img { aspect-ratio: 1; object-fit: contain; }
.product-info { display: grid; gap: 1.15rem; }
.product-info h1 { font-size: clamp(2.1rem, 4.4vw, 4.3rem); margin: 0; }
.back { font-size: .85rem; }
.price { font-size: 1.3rem; }
.product-info select { display: block; width: 100%; margin-top: .35rem; }
.buy-row { display: flex; align-items: end; gap: .65rem; margin-top: .9rem; }
.buy-row .button { flex: 1; }
.quantity { font-size: .83rem; }
.quantity input { display: block; width: 5rem; }
.product-description { border-top: 1px solid var(--line); padding-top: 1rem; }
.text-page, .cart-page { max-width: 820px; }
.drawer { inset: 0 0 0 auto; margin: 0; padding: 1.35rem; border: 0; width: min(100%, 485px); max-width: none; height: 100%; max-height: none; background: var(--paper); color: var(--ink); }
.drawer::backdrop { background: #13171299; }
.drawer-heading { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.drawer-heading h2 { font-size: 2rem; }
.close { width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; color: inherit; font-size: 1.45rem; }
.cart-items { list-style: none; padding: 0; }
.cart-line { display: grid; grid-template-columns: 74px 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.cart-line > img { background: #e9ebe2; }
.cart-line > div { grid-column: 2; }
.cart-line input { width: 4.5rem; min-height: 38px; margin: .4rem; }
.subtotal { display: flex; justify-content: space-between; padding: 1rem 0; }
.checkout { width: 100%; margin-top: .55rem; }
[data-cart-error], [data-product-error] { color: #92281d; margin: .5rem 0; }
.footer { background: var(--ink); color: white; margin-top: 1rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.25rem; padding-block: 2.2rem; }
.footer .wordmark span { color: var(--accent); }
.footer nav { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .85rem; }
.footer small { color: #d8dcd1; }
@media (max-width: 800px) {
  .shell { width: calc(100% - 2rem); }
  .header-inner { grid-template-columns: 1fr 1fr; gap: .6rem; padding-block: .7rem; }
  .nav { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 2rem; }
  .hero-media { min-height: 0; aspect-ratio: 1.42; }
  .product-layout { grid-template-columns: 1fr; }
  .product-grid, .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sort { margin-left: 0; }
  .filters details { position: static; }
  .filter-values { position: static; box-shadow: none; }
}
@media (max-width: 420px) {
  .hero h1 { font-size: 3rem; }
  .category { padding: .6rem; min-height: 60px; }
  .section-heading a { max-width: 9ch; }
}
