@font-face {
  font-family: 'Archivo Black';
  src: url('./brand/archivo-black.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('./brand/dm-sans.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #111110;
  --paper: #f8f7f4;
  --acid: #e4fa58;
  --muted: #5b5b54;
  --rule: #d9d8d1;
  --gutter: clamp(1.25rem, 4.3vw, 4.5rem);
  --body-font: 'DM Sans', Arial, sans-serif;
  --display-font: 'Archivo Black', 'Arial Black', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.5 var(--body-font); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #747d0d; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; z-index: 3; top: 12px; left: 12px; padding: .7rem 1rem; background: var(--acid); color: var(--ink); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.page-width { width: min(100%, 105rem); margin-inline: auto; padding-inline: var(--gutter); }

.visit, .site-footer { background: var(--ink); color: var(--paper); }
.site-header, .hero { --cover-paper: #f1eee8; background: var(--cover-paper); color: var(--ink); }
.site-header .page-width { min-height: 4.5rem; }
.header-inner { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: clamp(1rem, 4vw, 3.5rem); }
.brand { display: inline-flex; width: 6.65rem; line-height: 1; }
.brand img { width: 100%; height: auto; }
.site-header .brand { min-height: 2.75rem; align-items: center; }
.site-header .brand img { filter: invert(1); }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 4vw, 3.5rem); }
.site-nav a, .header-contact { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .9rem; font-weight: 600; text-decoration: none; }
.site-nav a:hover, .header-contact:hover { text-decoration: underline; text-underline-offset: .3em; }
.footer-links a:hover { color: var(--acid); }
.header-contact { justify-self: end; color: var(--muted); }
.visit :focus-visible, .site-footer :focus-visible { outline-color: var(--acid); }

.hero { padding-bottom: clamp(1.75rem, 3vw, 3rem); border-bottom: 1px solid var(--rule); }
.hero :focus-visible, .site-header :focus-visible { outline-color: var(--ink); }
.hero-masthead { display: flex; align-items: center; justify-content: space-between; gap: .85rem; min-height: 3.1rem; border-top: 1px solid var(--ink); }
.hero-masthead p { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hero-bolt { display: inline-block; width: .95rem; height: 1.15rem; background: currentColor; clip-path: polygon(76% 0, 13% 57%, 48% 57%, 27% 100%, 94% 39%, 58% 39%); }
.hero-masthead a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .9rem; font-weight: 700; text-underline-offset: .24em; }
.hero-spread { position: relative; isolation: isolate; height: clamp(30rem, 43vw, 40.5rem); }
.hero h1 { position: absolute; z-index: 2; top: clamp(2rem, 4.2vw, 4.5rem); left: -.025em; margin: 0; font: 400 clamp(4.4rem, 10.4vw, 11.45rem)/.84 var(--display-font); letter-spacing: -.095em; text-transform: uppercase; pointer-events: none; }
.hero h1 span { display: table; padding: .025em .095em .046em 0; white-space: nowrap; background: var(--cover-paper); }
.hero h1 span:last-child { margin-top: .095em; padding: .057em .13em .07em .053em; transform: rotate(-2.8deg); transform-origin: left center; background: var(--ink); color: var(--cover-paper); }
.hero-photo-frame { position: absolute; inset: 0 0 0 40%; overflow: hidden; background: #4a453f; touch-action: pan-y; -webkit-touch-callout: none; }
.hero-photo-frame img, .hero-piece-frame img { position: absolute; display: block; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.hero-photo-frame img { inset: 0; object-fit: cover; transform: scale(1.045); transition: opacity .48s ease, transform .6s cubic-bezier(.16, 1, .3, 1); }
.hero-photo-frame img.is-active { opacity: 1; transform: scale(1); }
.hero-photo-frame [data-look-image='017'] { object-position: 56% 14%; }
.hero-photo-frame [data-look-image='005'] { object-position: 52% 35%; }
.hero-photo-frame [data-look-image='038'] { object-position: 50% 54%; }
.hero-piece-frame { position: absolute; z-index: 1; left: 37.5%; bottom: 5%; width: clamp(9.1rem, 15vw, 14.5rem); aspect-ratio: .96; transform: rotate(-7deg); border: 1px solid #c6c1b6; background: #fdfcf8; box-shadow: .5rem .8rem 1.6rem #1a180c27; pointer-events: none; }
.hero-piece-frame img { inset: 0; padding: 8%; object-fit: contain; transform: translateY(.5rem); transition: opacity .32s ease, transform .43s cubic-bezier(.16, 1, .3, 1); }
.hero-piece-frame img.is-active { opacity: 1; transform: translateY(0); }
.hero-line { position: absolute; z-index: 1; left: 0; bottom: 4%; margin: 0; font-size: clamp(1.4rem, 3.3vw, 3.6rem); font-weight: 500; line-height: .98; letter-spacing: -.06em; }
.hero-index { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem 1.5rem; margin-top: 1rem; border-bottom: 1px solid var(--ink); }
.hero-photo-options { display: flex; flex-wrap: wrap; align-items: stretch; gap: .3rem; }
.hero-photo-options button { min-height: 2.85rem; min-width: 4.6rem; padding: .25rem .7rem; color: var(--muted); border: 0; border-bottom: 2px solid transparent; background: transparent; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .84rem; letter-spacing: .025em; }
.hero-photo-options button:hover { color: var(--ink); border-bottom-color: #99958b; }
.hero-photo-options button[aria-pressed='true'] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 700; }
.hero-index-caption { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; column-gap: 1.55rem; }
.hero-index-caption p { margin: 0; font-weight: 600; }
#hero-open-piece { min-height: 2.75rem; padding: .4rem 0; border: 0; background: transparent; color: var(--ink); text-decoration: underline; text-underline-offset: .24em; font-size: .9rem; font-weight: 700; }
#hero-open-piece:hover { color: var(--muted); }

.button { min-height: 3.1rem; display: inline-flex; justify-content: center; align-items: center; padding: .75rem 1.05rem; text-align: center; font-size: .92rem; font-weight: 700; border: 1px solid currentColor; text-decoration: none; transition: background-color .16s ease, border-color .16s ease; }
.button-primary { background: var(--acid); border-color: var(--acid); color: var(--ink); }
.button-primary:hover { background: #f0ff91; border-color: #f0ff91; }

.catalog-section { padding-block: clamp(2.75rem, 5.1vw, 5.5rem) clamp(4rem, 6.2vw, 6.5rem); }
.catalog-heading { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 1.6rem; }
.catalog-heading h2, .visit h2 { margin: 0; font: 400 clamp(2.6rem, 5.2vw, 5.6rem)/1 var(--display-font); text-transform: uppercase; letter-spacing: -.075em; }
.search-field { display: flex; gap: .7rem; align-items: center; flex: 0 0 min(100%, 19rem); min-height: 3rem; padding-inline: .92rem; border: 1px solid #b4b3aa; background: transparent; }
.search-field:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.search-symbol { position: relative; flex: none; width: .88rem; height: .88rem; border: 1.6px solid var(--ink); border-radius: 50%; }
.search-symbol::after { content: ''; position: absolute; width: .4rem; height: 1.5px; right: -.29rem; bottom: -.12rem; background: var(--ink); transform: rotate(45deg); }
.search-field input { width: 100%; min-width: 0; background: transparent; border: 0; padding: .62rem 0; color: var(--ink); outline: none; }
.search-field input::placeholder { color: var(--muted); }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: .75rem 1rem; margin-bottom: 1.5rem; padding-bottom: 1.3rem; border-bottom: 1px solid var(--rule); }
#category-filters { display: flex; flex-wrap: wrap; gap: .45rem; }
.category-filter { min-height: 2.5rem; border: 1px solid #b4b3aa; border-radius: 0; padding: .45rem .8rem; color: var(--ink); background: transparent; font-size: .875rem; font-weight: 600; transition: background-color .16s ease; }
.category-filter:hover { background: #ebe9e0; }
.category-filter[aria-pressed='true'] { color: var(--paper); background: var(--ink); border-color: var(--ink); }
#result-count { flex: none; margin: 0; color: var(--muted); font-size: .9rem; font-weight: 600; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem clamp(.8rem, 1.7vw, 1.8rem); }
.product-tile { display: flex; min-width: 0; flex-direction: column; }
.product-card { position: relative; display: flex; flex: 1; flex-direction: column; width: 100%; padding: 0; border: 0; background: transparent; color: var(--ink); text-align: left; }
.product-contact { min-height: 2.75rem; padding: .45rem .4rem; border-color: #b4b3aa; font-size: .85rem; line-height: 1.25; }
.product-contact:hover { background: var(--acid); border-color: var(--ink); }
.product-image { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1 / 1.12; overflow: hidden; background: #eeede7; }
.product-image img { width: 100%; height: 100%; min-height: 0; object-fit: contain; padding: 6%; mix-blend-mode: multiply; transition: transform .28s ease; }
.product-card:hover .product-image img { transform: scale(1.045); }
.product-tag { position: absolute; top: .55rem; left: .55rem; padding: .3rem .6rem; background: var(--ink); color: #fff; font-size: .75rem; font-weight: 700; }
.product-caption { display: flex; flex-direction: column; flex: 1; width: 100%; gap: .2rem; padding: .82rem .05rem .95rem; }
.product-name { font-size: clamp(.97rem, 1.3vw, 1.13rem); line-height: 1.25; font-weight: 700; }
.product-card:hover .product-name { text-decoration: underline; text-underline-offset: .2em; }
.product-meta { color: var(--muted); font-size: .875rem; line-height: 1.35; }
.catalog-empty { padding: 2.5rem 1rem; border: 1px solid var(--rule); text-align: center; }
.catalog-empty p { margin: 0; }
.catalog-empty p:first-child { font-size: 1.15rem; font-weight: 700; }

.visit { border-top: 5px solid var(--acid); }
.visit-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.7rem, 5vw, 6rem); padding-block: clamp(3.2rem, 6.4vw, 6rem); }
.visit-intro p { max-width: 28rem; margin: 1.2rem 0 1.45rem; color: #e0dfd8; font-size: 1.1rem; }
.visit-spots { align-self: center; border-top: 1px solid #53534e; }
.visit-spots a { display: flex; align-items: center; justify-content: space-between; gap: .65rem 1rem; padding-block: 1.25rem; border-bottom: 1px solid #53534e; font-weight: 700; text-decoration: none; }
.map-link { flex: none; color: var(--acid); font-size: .9rem; font-weight: 600; }
.visit-spots a:hover .map-link { text-decoration: underline; text-underline-offset: .2em; }
.site-footer { border-top: 1px solid #363633; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; min-height: 5.5rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem 1.5rem; }
.footer-links a { color: #d8d7cf; font-size: .9rem; text-underline-offset: .2em; }

body:has(dialog[open]) { overflow: hidden; }
dialog { width: min(57rem, calc(100% - 2rem)); max-width: none; max-height: calc(100dvh - 2rem); margin: auto; padding: 0; border: 1px solid var(--ink); color: var(--ink); background: var(--paper); overscroll-behavior: contain; }
dialog::backdrop { background: rgba(9, 9, 8, .72); }
.close-product { position: sticky; top: .65rem; z-index: 1; float: right; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin: .65rem .65rem -3.4rem 0; border: 1px solid #a6a59d; background: var(--paper); color: var(--ink); font-size: 1.65rem; line-height: 1; }
.close-product:hover { background: var(--acid); }
.product-detail-layout { display: grid; grid-template-columns: 1.12fr 1fr; clear: none; }
.product-gallery { min-width: 0; padding: 1rem; background: #eeede7; }
.product-main-photo { display: grid; place-items: center; aspect-ratio: 1 / 1.1; }
.product-main-photo img { width: 100%; height: 100%; min-height: 0; object-fit: contain; mix-blend-mode: multiply; }
.product-thumbnails { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .65rem; }
.product-thumbnails button { width: 3.3rem; height: 3.3rem; padding: .12rem; border: 1px solid #b4b3aa; background: var(--paper); }
.product-thumbnails button[aria-current='true'] { border: 2px solid var(--ink); }
.product-thumbnails img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product-info { align-self: center; padding: 3.4rem clamp(1rem, 3vw, 2.2rem) 2.25rem; }
.product-info h2 { margin: .45rem 0; font: 400 clamp(1.48rem, 3.3vw, 2.45rem)/1.03 var(--display-font); letter-spacing: -.055em; }
.product-info p { margin: .5rem 0; }
.product-detail-category, .product-detail-code { color: var(--muted); font-size: .85rem; font-weight: 700; }
.product-detail-category { text-transform: uppercase; letter-spacing: .08em; }
.product-detail-price, .product-detail-status, .product-detail-sizes { font-weight: 700; }
.product-detail-status { display: inline-block; padding: .16rem .6rem; background: var(--ink); color: var(--paper); font-size: .9rem; }
.product-info .product-detail-description { margin-block: 1.2rem; }
.product-detail-actions { margin-top: 1.5rem; }
.product-detail-actions .button { border-color: var(--ink); }

@media (max-width: 68rem) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 46rem) {
  .site-header .page-width { min-height: 4rem; }
  .header-inner { gap: .85rem; }
  .brand { width: 5rem; }
  .site-nav { gap: .85rem; }
  .site-nav a, .header-contact { font-size: .84rem; }
  .hero-masthead a { font-size: .84rem; }
  .hero-spread { height: clamp(25rem, 115vw, 37rem); }
  .hero h1 { top: 1rem; font-size: clamp(2.8rem, 13vw, 5.3rem); }
  .hero-photo-frame { inset: 4.35rem 0 0 15%; }
  .hero-photo-frame [data-look-image='017'] { object-position: 58% 27%; }
  .hero-photo-frame [data-look-image='005'] { object-position: 51% 33%; }
  .hero-piece-frame { left: 3%; bottom: 5%; width: clamp(7.2rem, 32vw, 12.75rem); }
  .hero-line { top: auto; bottom: .8rem; left: auto; right: .75rem; max-width: 8rem; padding: .25rem .35rem; background: var(--ink); color: var(--cover-paper); font-size: .96rem; line-height: 1; letter-spacing: -.03em; }
  .hero-index { margin-top: .45rem; }
  .hero-photo-options { width: 100%; justify-content: space-between; border-bottom: 1px solid #cec8bd; }
  .hero-index-caption { justify-content: space-between; width: 100%; gap: .35rem 1rem; }
  .catalog-heading { align-items: stretch; flex-direction: column; gap: 1.05rem; margin-bottom: 1rem; }
  .search-field { flex: auto; }
  .catalog-toolbar { align-items: flex-start; flex-direction: column; margin-bottom: 1.1rem; padding-bottom: 1rem; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem .65rem; }
  .product-image img { padding: 4%; }
  .product-caption { padding: .65rem .05rem .75rem; }
  .visit-inner { grid-template-columns: 1fr; }
  .footer-inner { padding-block: 1.3rem; }
  .footer-links { gap: .3rem .8rem; }
}

@media (max-width: 37rem) {
  .product-detail-layout { grid-template-columns: 1fr; }
  .product-gallery { padding: .75rem; }
  .product-main-photo { aspect-ratio: 1.18; }
  .product-info { padding: 1.35rem 1rem 1.5rem; }
}

@media (max-width: 22rem) {
  .header-inner { grid-template-columns: 1fr auto; }
  .header-contact { display: none; }
}

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