:root {
  color-scheme: light;
  --ink: #101211;
  --pitch: #232a24;
  --lime: #dfff00;
  --paper: #f3f4f1;
  --line: #daddd5;
  --muted: #50564d;
  font-family: system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #577000; outline-offset: 3px; }
.skip { position: absolute; left: .5rem; top: .5rem; z-index: 1; transform: translateY(-200%); padding: .5rem; background: white; }
.skip:focus { transform: none; }
.shell { width: min(1230px, calc(100% - 48px)); margin-inline: auto; }
.hero { position: relative; overflow: hidden; isolation: isolate; color: white; background: var(--ink); }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border: 2px solid #64735f; pointer-events: none; }
.hero::before { width: 48vw; height: 22rem; right: -7vw; top: 4rem; border-radius: 50%; transform: rotate(-28deg); background: var(--pitch); }
.hero::after { width: 52vw; height: 15rem; right: -12vw; top: 7.5rem; border-radius: 50%; transform: rotate(-28deg); }
.mast { padding-block: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid #ffffff36; }
.mast > span, .eyebrow, .product-meta { font-size: .7rem; font-weight: 750; letter-spacing: .13em; }
.wordmark { text-decoration: none; font-size: 1.25rem; font-weight: 950; font-style: italic; letter-spacing: -.06em; white-space: nowrap; }
.wordmark span, h1 span { color: var(--lime); }
.hero-copy { padding-block: clamp(35px, 5vw, 70px); }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--lime); margin: 0 0 16px; }
.eyebrow span { width: 9px; height: 9px; background: var(--lime); transform: skewX(-17deg); }
h1 { margin: 0; font: italic 950 clamp(3rem, 8vw, 7.25rem)/.87 "Arial Black", system-ui, sans-serif; letter-spacing: -.085em; }
.hero-copy > p:last-child { max-width: 45ch; color: #e0e5db; line-height: 1.55; margin: 20px 0 0; }
main { padding-top: 32px; min-height: 360px; }
.catalog-heading { display: flex; align-items: baseline; gap: 16px; justify-content: space-between; margin-bottom: 15px; }
h2, .catalog-heading p { margin: 0; }
.catalog-heading h2 { font-size: clamp(1.65rem, 4vw, 2.3rem); letter-spacing: -.045em; }
.catalog-heading p, .status, .footer { color: var(--muted); }
.filters { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 12px; padding-block: 0 20px; border-bottom: 1px solid var(--line); }
label { display: grid; gap: 5px; font-size: .8rem; font-weight: 700; }
select, input { min-width: 0; width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid #a7afa1; border-radius: 4px; background: white; color: var(--ink); }
.status { margin: 1rem 0; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding-top: 18px; }
.card { width: 100%; text-align: left; color: inherit; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: white; display: flex; flex-direction: column; padding: 0; }
.card:hover { border-color: #748167; }
.card img { display: block; width: 100%; aspect-ratio: 1.24; object-fit: contain; padding: 6px; background: white; }
.card-copy { display: grid; gap: 5px; padding: 10px 12px 12px; width: 100%; border-top: 1px solid #ebede9; }
.product-meta { color: var(--muted); margin: 0; text-transform: uppercase; overflow-wrap: anywhere; }
.card-name { font-size: clamp(.9rem, 1.5vw, 1.08rem); font-weight: 760; line-height: 1.2; }
.card-size { font-size: .78rem; color: var(--muted); }
.more, #share { display: block; min-height: 44px; padding: 10px 16px; border: 1px solid var(--ink); color: var(--ink); background: var(--lime); border-radius: 4px; font-weight: 800; }
.more { margin: 24px auto; }
.footer { display: flex; justify-content: space-between; gap: 12px; font-size: .8rem; margin-block: 40px 20px; padding-top: 12px; border-top: 1px solid var(--line); }
dialog { border: 0; border-radius: 8px; width: min(880px, calc(100% - 20px)); max-height: calc(100% - 24px); padding: 0; }
dialog::backdrop { background: #101211bd; }
.sheet { display: grid; grid-template-columns: 1fr 1fr; position: relative; }
.close { position: absolute; top: 8px; right: 8px; background: white; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); font-size: 1.55rem; }
#product-image { width: 100%; min-height: 190px; max-height: 460px; object-fit: contain; align-self: center; background: white; }
.sheet-copy { padding: 28px 22px; }
.sheet-copy h2 { margin: 8px 0 18px; line-height: 1.13; }
.sheet-copy p { color: var(--muted); font-size: .9rem; }
.sheet-copy .product-meta { font-size: .7rem; padding-right: 36px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.actions a { font-size: .88rem; padding-block: 12px; }
#share-status:empty { display: none; }
@media (max-width: 750px) {
  .shell { width: calc(100% - 28px); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .search { grid-column: 1 / -1; }
  .mast { padding-block: 17px; }
  .mast > span { font-size: .6rem; }
  .hero::before, .hero::after { width: 90vw; right: -45vw; }
  .sheet { grid-template-columns: 1fr; }
  #product-image { max-height: 35dvh; }
  .sheet-copy { padding: 15px; }
}
