:root {
  --paper: #f3f0e9;
  --paper-deep: #e9e4d9;
  --ink: #1c1c1a;
  --muted: #6b6962;
  --line: #d5d0c4;
  --accent: #a6482e;
  --white: #fffdf8;
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { height: 78px; padding: 0 clamp(22px, 4vw, 64px); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; background: rgba(243,240,233,.94); position: relative; z-index: 20; }
.wordmark { display: flex; align-items: center; gap: 13px; font-family: var(--serif); font-size: 19px; letter-spacing: -.01em; }
.wordmark-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.site-header nav { display: flex; align-items: center; gap: 24px; font-size: 13px; }
.nav-link { padding: 8px 0; color: var(--muted); }
.nav-link.active { color: var(--ink); border-bottom: 1px solid var(--ink); }
.nav-count { color: var(--muted); }

.collection-hero { padding: clamp(70px, 10vw, 140px) clamp(22px, 6vw, 90px) clamp(80px, 10vw, 135px); border-bottom: 1px solid var(--line); }
.eyebrow, .section-kicker { margin: 0 0 24px; text-transform: uppercase; letter-spacing: .16em; font-size: 10px; font-weight: 700; color: var(--accent); }
.hero-heading-row { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(250px, .55fr); align-items: end; gap: 48px; }
.hero-heading-row h1 { margin: 0; max-width: 880px; font-family: var(--serif); font-size: clamp(55px, 8vw, 118px); line-height: .88; letter-spacing: -.06em; font-weight: 400; }
.hero-heading-row h1 em { font-weight: 400; color: var(--accent); }
.hero-intro { margin: 0 0 6px; color: var(--muted); font-family: var(--serif); font-size: clamp(20px, 2vw, 28px); line-height: 1.28; }

.catalog-shell { padding: clamp(54px, 7vw, 92px) clamp(22px, 4vw, 64px) 88px; }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 48px; }
.catalog-toolbar .section-kicker { margin-bottom: 9px; }
.catalog-toolbar h1 { margin: 0; font-family: var(--serif); font-size: clamp(44px, 5vw, 68px); font-weight: 400; letter-spacing: -.04em; }
.catalog-controls { display: flex; align-items: center; gap: 12px; }
.search-control { height: 42px; min-width: 205px; display: flex; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid var(--line); background: rgba(255,255,255,.3); }
.search-control svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; color: var(--muted); }
.search-control input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.filter-group { display: flex; border: 1px solid var(--line); }
.filter-button { height: 40px; padding: 0 15px; border: 0; border-right: 1px solid var(--line); background: transparent; font-size: 11px; cursor: pointer; }
.filter-button:last-child { border-right: 0; }
.filter-button.active { background: var(--ink); color: var(--paper); }

.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(18px, 2.4vw, 38px); row-gap: 68px; }
.collection-card[hidden] { display: none; }
.card-image-wrap { position: relative; display: block; aspect-ratio: 4 / 5.15; overflow: hidden; background: var(--paper-deep); border: 1px solid var(--line); }
.card-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.7,.2,1), filter .4s; }
.collection-card:hover .card-image-wrap img { transform: scale(1.025); filter: brightness(.92); }
.view-card { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: space-between; align-items: center; padding: 13px 15px; background: rgba(255,253,248,.94); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; transform: translateY(calc(100% + 14px)); transition: transform .35s ease; }
.collection-card:hover .view-card, .card-image-wrap:focus-visible .view-card { transform: translateY(0); }
.card-name { margin: 16px 0 0; font-family: var(--serif); font-size: 28px; font-weight: 400; letter-spacing: -.025em; }
.card-number, .card-year { margin: 0; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.tag-row { min-height: 31px; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag-row span, .detail-tags span { height: fit-content; padding: 6px 8px; border: 1px solid var(--line); color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .09em; }
.empty-state { text-align: center; padding: 80px 0; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); padding: 28px clamp(22px, 4vw, 64px); display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }

.pdp-body { background: #ece8df; }
.pdp-main { padding: 34px clamp(20px, 3vw, 46px) 72px; }
.breadcrumb { display: flex; gap: 10px; margin: 0 0 24px; color: var(--muted); font-size: 11px; }
.breadcrumb a:hover { color: var(--ink); }
.pdp-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(330px, .62fr); gap: clamp(34px, 5vw, 82px); align-items: start; }
.gallery-panel { min-width: 0; }
.gallery-topbar { height: 48px; display: flex; justify-content: space-between; align-items: start; }
.gallery-title { margin: 0; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.view-tabs { display: flex; gap: 4px; }
.view-tab { padding: 8px 13px; border: 1px solid var(--line); background: transparent; text-transform: uppercase; letter-spacing: .1em; font-size: 9px; cursor: pointer; }
.view-tab.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.zoom-note { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.zoom-dot { width: 7px; height: 7px; border: 1px solid var(--accent); border-radius: 50%; }
.gallery-viewer { --thumb-rail: clamp(82px, 9vw, 112px); display: grid; grid-template-columns: var(--thumb-rail) minmax(0, 1fr); gap: 11px; }
.image-stage { position: relative; height: min(72vh, 820px); min-height: 560px; margin: 0; display: grid; place-items: center; overflow: hidden; background: #d8d3ca; border: 1px solid #cec8bc; }
.image-stage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 42%, rgba(255,255,255,.38), transparent 54%); }
.image-stage > img { position: relative; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center; transform: none; }
.image-stage > video { position: relative; width: 100%; height: 100%; object-fit: contain; background: #111; }
.image-stage.has-video { cursor: default; background: #111; }
.expand-button { position: absolute; right: 16px; bottom: 16px; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(28,28,26,.18); background: rgba(255,253,248,.9); cursor: pointer; }
.expand-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.gallery-caption { display: flex; justify-content: space-between; margin-left: calc(clamp(82px, 9vw, 112px) + 11px); padding: 12px 2px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.thumbnail-strip { height: min(72vh, 820px); min-height: 560px; display: flex; flex-direction: column; gap: 9px; overflow-x: hidden; overflow-y: auto; padding: 0 6px 0 0; scrollbar-color: var(--muted) transparent; }
.thumbnail-button { position: relative; flex: 0 0 auto; width: 100%; aspect-ratio: 4/3; padding: 0; border: 1px solid transparent; background: #d8d3ca; overflow: hidden; cursor: pointer; opacity: .62; }
.thumbnail-button img, .thumbnail-button video { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.video-thumbnail span { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 30px; height: 30px; display: grid; place-items: center; padding-left: 2px; border-radius: 50%; background: rgba(255,253,248,.88); font-size: 11px; }
.thumbnail-button:hover, .thumbnail-button.active { opacity: 1; border-color: var(--ink); }
.card-details { position: sticky; top: 34px; padding-top: 68px; }
.card-details .eyebrow { margin-bottom: 14px; }
.card-details h1 { margin: 0; font-family: var(--serif); font-size: clamp(56px, 5vw, 78px); line-height: .95; letter-spacing: -.055em; font-weight: 400; }
.collector-number { margin: 12px 0 20px; color: var(--muted); font-family: var(--serif); font-size: 22px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 38px; }
.detail-table { margin: 0; border-top: 1px solid var(--line); }
.detail-table > div { min-height: 45px; display: grid; grid-template-columns: 1fr 1.25fr; align-items: center; border-bottom: 1px solid var(--line); }
.detail-table dt { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.detail-table dd { margin: 0; font-family: var(--serif); font-size: 15px; }
.marketplace-links { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 28px; }
.marketplace-button { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 14px; border: 1px solid var(--ink); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; transition: background .2s, color .2s; }
.marketplace-button:hover { background: var(--white); }
.marketplace-button-primary { background: var(--ink); color: var(--paper); }
.marketplace-button-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.marketplace-button span { font-size: 15px; font-weight: 400; }
.photo-summary { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .09em; }
.identification-note { margin: 34px 0 0; padding-left: 14px; border-left: 2px solid var(--accent); color: var(--muted); font-family: var(--serif); font-size: 15px; line-height: 1.45; }

.lightbox { width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; padding: 28px; border: 0; background: rgba(18,18,17,.96); color: white; }
.lightbox::backdrop { background: rgba(18,18,17,.96); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img, .lightbox video { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox-close { position: fixed; top: 20px; right: 24px; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: transparent; color: white; font-size: 28px; cursor: pointer; }
.lightbox p { position: fixed; left: 28px; bottom: 18px; margin: 0; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }

@media (max-width: 1050px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .pdp-layout { grid-template-columns: 1fr; }
  .card-details { position: static; padding-top: 10px; max-width: 720px; }
}

@media (max-width: 760px) {
  .site-header { height: 66px; }
  .nav-count { display: none; }
  .hero-heading-row { grid-template-columns: 1fr; gap: 30px; }
  .hero-heading-row h1 { font-size: clamp(52px, 15vw, 78px); }
  .catalog-toolbar { align-items: stretch; flex-direction: column; }
  .catalog-controls { align-items: stretch; flex-direction: column; }
  .search-control { width: 100%; }
  .filter-group { width: max-content; max-width: 100%; }
  .card-grid { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .card-name { font-size: 22px; }
  .card-year { display: none; }
  .view-card { display: none; }
  .site-footer { flex-direction: column; gap: 5px; }
  .pdp-main { padding-inline: 14px; }
  .image-stage { min-height: 420px; height: 68vh; }
  .gallery-viewer { --thumb-rail: 68px; gap: 8px; }
  .thumbnail-strip { height: 68vh; min-height: 420px; padding-right: 4px; gap: 6px; }
  .gallery-caption { margin-left: 76px; }
  .card-details h1 { font-size: 58px; }
  .marketplace-links { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .wordmark span:last-child { display: none; }
  .collection-hero { padding-top: 64px; }
  .card-grid { grid-template-columns: 1fr; }
  .card-image-wrap { aspect-ratio: 4/4.8; }
}

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