@font-face { font-family: "Geist"; src: url("assets/geist-variable.ttf") format("truetype"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  font-family: "Geist", system-ui, sans-serif;
  --surface: #0a0a0a;
  --surface-soft: #1e1e1e;
  --heading: #fff;
  --muted: #707070;
  --border: #262626;
  background: var(--surface);
  color: var(--heading);
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:where(button, a, input):focus-visible { outline: 2px solid var(--heading); outline-offset: 4px; }
.hero { display: flex; justify-content: center; align-items: flex-start; padding: 96px 24px 56px; }
.hero-copy { width: min(100%, 1040px); text-align: center; }
h1 { margin: 0; font-size: clamp(2rem, 10vw, 6.8rem); line-height: 1; letter-spacing: -.075em; font-weight: 800; }
.hero-copy p { max-width: 620px; margin: 24px auto 0; color: var(--muted); font-size: clamp(15px, 2vw, 18px); font-style: normal; font-weight: 500; line-height: 1.55; letter-spacing: -.01em; }
.category-nav { margin-top: 32px; overflow-x: auto; scrollbar-width: none; }
.category-nav::-webkit-scrollbar { display: none; }
.category-list { display: flex; align-items: center; gap: 20px; width: max-content; min-width: 100%; list-style: none; margin: 0; padding: 4px 0; }
.category-list li { display: flex; align-items: center; flex-shrink: 0; }
.category-list .separator { margin: 0 12px; color: var(--border); font-size: 16px; line-height: 1; }
.category-list button { padding: 0; border: 0; background: transparent; color: rgb(255 255 255 / 62%); font-size: 13px; font-weight: 500; line-height: 1; white-space: nowrap; transition: color 150ms; }
.category-list button:hover { color: var(--heading); }
.site-header { background: var(--surface); }
.navbar { min-height: 60px; padding: 0 32px; display: flex; align-items: center; gap: 24px; position: relative; }
.nav-mark { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 32px; overflow: hidden; border-radius: 8px; background: transparent; }
.nav-mark img { display: block; width: 24px; height: 24px; object-fit: contain; }
.primary-nav { display: flex; align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0; }
.ds-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-size: 14px; font-style: normal; font-weight: 500; line-height: 20px; letter-spacing: normal; white-space: nowrap; }
.ds-link:hover { color: var(--heading); }
.nav-actions { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.icon { width: 18px; height: 18px; flex-shrink: 0; }
.chevron { width: 6px; height: 6px; display: inline-block; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); }
.tools-link .chevron { transform: rotate(45deg); width: 5px; height: 5px; }
.search-trigger { display: flex; align-items: center; gap: 8px; width: 230px; height: 33px; padding: 0 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 12px; font-style: normal; font-weight: 500; letter-spacing: normal; text-align: left; }
.search-trigger:hover { border-color: rgb(255 255 255 / 25%); color: var(--heading); }
.search-camera { width: 17px; height: 17px; margin-left: auto; }
.profile-trigger, .ds-icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 8px 0; border: 0; background: transparent; color: var(--heading); }
.profile-trigger .chevron { color: var(--muted); margin: 0 2px; }
.ds-icon-button { padding: 8px; border-radius: 6px; }
.ds-icon-button:hover { background: var(--border); }
.ds-menu-toggle { display: none; }
.ds-panel { padding: 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-soft); }
.mobile-menu { position: absolute; top: calc(100% + 8px); left: 16px; right: 16px; z-index: 2; display: flex; flex-direction: column; gap: 16px; }
.profile-panel { position: absolute; right: 24px; top: calc(100% + 8px); z-index: 2; color: var(--muted); font-size: 13px; }
.search-dialog { width: min(480px, calc(100% - 32px)); padding: 24px; background: var(--surface-soft); color: var(--heading); border: 1px solid var(--border); border-radius: 12px; }
.search-dialog::backdrop { background: #0009; }
.search-dialog form { display: flex; gap: 12px; }
.search-dialog input { min-width: 0; flex: 1; padding: 12px; color: var(--heading); background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.search-dialog p { color: var(--muted); font-size: 14px; line-height: 1.5; margin-bottom: 0; }
.search-dialog p[role="status"] { min-height: 1.5em; }
.item-source-link { display: inline-flex; align-items: center; min-height: 40px; margin-top: 16px; padding: 0 16px; border-radius: 8px; background: var(--heading); color: var(--surface); font-size: 14px; font-weight: 600; text-decoration: none; }
.item-source-link:hover { background: #d6d6d6; }
@media (min-width: 769px) { .ds-menu-toggle, .mobile-menu { display: none; } }
@media (max-width: 768px) {
  .navbar { padding-inline: 16px; gap: 16px; }
  .primary-nav { display: none; }
  .nav-actions { gap: 16px; }
  .ds-menu-toggle { display: inline-flex; }
  .search-trigger { width: clamp(110px, 36vw, 230px); }
  .search-trigger kbd { display: none; }
  .profile-trigger { gap: 8px; }
  .hero { padding-top: 72px; }
  .category-list button { padding: 4px 0; font-size: 15px; }
  .category-list .separator { margin-inline: 8px; font-size: 15px; }
}

.catalog { width: min(100%, 1720px); margin: 0 auto; padding: 0 24px 64px; display: flex; flex-direction: column; gap: 48px; }
.catalog-section[hidden], .catalog-card[hidden] { display: none; }
.catalog-section { min-width: 0; scroll-margin-top: 24px; }
.catalog-section h2 { margin: 0 0 20px; font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: normal; }
.product-rail { --rail-cols: 6; --rail-gap: 12px; display: flex; gap: var(--rail-gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 0; margin: -4px 0; }
.product-rail::-webkit-scrollbar { display: none; }
.catalog-card { flex: 0 0 calc((100% - (var(--rail-cols) - 1) * var(--rail-gap)) / var(--rail-cols)); min-width: 0; padding: 0; border: 0; text-align: left; background: none; color: var(--heading); scroll-snap-align: start; }
.catalog-card:focus-visible { outline-offset: -2px; }
.product-card { position: relative; aspect-ratio: 7 / 8; overflow: hidden; border-radius: 16px; background: #f7f7f7; isolation: isolate; }
.product-image { position: absolute; top: 24px; left: 32px; right: 32px; aspect-ratio: 1; }
.product-image img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 10px #0002); transition: transform 200ms; }
.product-card:hover .product-image img { transform: scale(1.035); }
.product-card::after { content: ""; position: absolute; inset: auto 0 0; height: 96px; z-index: -1; background: linear-gradient(to top, #0a0a0a9e 0%, #0a0a0a8a 30%, #0a0a0a38 62%, #0a0a0a0f 78%, transparent 100%); }
.product-caption { position: absolute; inset: auto 0 0; padding: 12px; display: flex; align-items: baseline; gap: 8px; text-shadow: 0 1px 2px #0004; }
.product-name { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; line-height: 18px; font-weight: 500; }
.product-price { flex-shrink: 0; font-size: 12px; font-weight: 500; letter-spacing: .025em; }
.fit-rail { --rail-cols: 5; }
.fit-image { display: block; width: 100%; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: var(--surface-soft); }
.fit-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 200ms; }
.fit-card:hover img { transform: scale(1.03); }
.fit-caption { padding: 10px 4px 0; }
.fit-author { margin: 0 0 2px; color: var(--muted); font-size: 12px; line-height: 16px; }
.fit-caption h3 { margin: 0; font-size: 14px; line-height: 19px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catalog-loading { color: var(--muted); }
.item-dialog { position: relative; width: min(760px, calc(100% - 32px)); max-height: calc(100svh - 32px); overflow: auto; padding: 0; border: 1px solid var(--border); border-radius: 16px; background: var(--surface-soft); color: var(--heading); }
.item-dialog[open] { display: grid; grid-template-columns: 1fr 1fr; }
.item-dialog::backdrop { background: #000b; }
.item-close { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; background: var(--surface); border-radius: 50%; z-index: 1; }
.item-preview { width: 100%; height: 100%; max-height: 520px; object-fit: contain; background: #f7f7f7; }
.item-details { padding: 48px 24px 24px; }
.item-category, .item-note { color: var(--muted); font-size: 14px; line-height: 1.5; }
.item-details h2 { font-size: 24px; line-height: 1.2; margin: 12px 0; }
.item-price { font-size: 20px; }
@media (max-width: 1279px) { .product-rail { --rail-cols: 5; } .fit-rail { --rail-cols: 4; } }
@media (max-width: 1023px) { .product-rail { --rail-cols: 4; } .fit-rail { --rail-cols: 3; } .search-trigger { width: 190px; } .navbar { gap: 16px; padding-inline: 24px; } .primary-nav { gap: 16px; } .nav-actions { gap: 16px; } }
@media (max-width: 767px) {
  .hero { padding: 72px 12px 40px; }
  .catalog { padding: 0 12px 40px; gap: 40px; }
  .catalog-section h2 { font-size: 18px; line-height: 25px; }
  .product-rail { --rail-cols: 3.5; }
  .fit-rail { --rail-cols: 2.5; }
  .item-dialog[open] { grid-template-columns: 1fr; }
  .item-preview { height: 280px; }
  .item-details { padding-top: 16px; }
  .navbar { padding-inline: 16px; }
  .search-trigger { width: clamp(110px, 36vw, 230px); }
}
@media (max-width: 639px) {
  .product-rail { --rail-cols: 2.25; --rail-gap: 8px; }
  .fit-rail { --rail-cols: 2.2; }
  .product-image { left: 20px; right: 20px; top: 16px; }
  .product-caption { padding: 10px; }
  .product-name { font-size: 12px; }
  .product-price { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .product-image img, .fit-image img { transition: none; } }
