/* westcentral.studio — one stylesheet for every page.
   Gallery pages link this as styles.css; product pages as ../styles.css.
   Product pages carry .product-page on the .wcs wrapper, which is what scopes
   the few rules that differ between the two layouts. */

* { margin: 0; padding: 0; box-sizing: border-box; }

.wcs { font-family: 'DM Mono', monospace; color: #2a2622; background: #f6f6f6; min-height: 100vh; display: flex; flex-direction: column; }

/* ── Top bar (shared with the print pages) ── */
.topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.8rem 1.5rem; padding: 1.1rem 1.5rem; background-color: #f6f6f6; border-bottom: 0.5px solid #e0dbd2; }
.wordmark { grid-column: 2; justify-self: center; }
.wordmark img { width: 150px; height: auto; display: block; }
.topbar nav { grid-column: 3; justify-self: end; }
.navlist { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.5rem; }
.navlist a { font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: #6f6a60; text-decoration: none; transition: color 0.2s; display: block; padding: 8px; }
.navlist a:hover { color: #2a2622; }
.navlist a.active { color: #836433; }

/* Focus styles — #99763f hits 3:1+ on both the cream and dark backgrounds */
:focus-visible { outline: 2px solid #99763f; outline-offset: 3px; }
.tile:focus-visible { outline: 2px solid #99763f; outline-offset: 2px; }
.lb-close:focus-visible { outline: 2px solid #99763f; outline-offset: 3px; }

.main { padding: 2.5rem 60px 4rem; width: 100%; flex: 1 0 auto; }
.topline { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 0.5px solid #e3ddd0; }
.topline-title { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: #2a2622; transition: opacity 0.2s; }
.topline-count { font-size: 10px; color: #6f6a60; letter-spacing: 0.1em; }

/* Series chips — filter within the artworks grid. Border is stronger than the
   topline hairline on purpose: #d6d0c4 all but vanishes on a near-white page. */
.chips { display: none; align-items: center; flex-wrap: wrap; gap: 0.4rem; margin: -0.6rem 0 1.9rem; }
.chips.show { display: flex; }
.chip { font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 0.09em; text-transform: uppercase; color: #6f6a60; text-decoration: none; padding: 7px 10px; border: 0.5px solid #8a816f; background: transparent; transition: color 0.2s, background 0.2s, border-color 0.2s; }
.chip:hover { color: #2a2622; border-color: #6f6a60; }
.chip.active { background: #2a2622; border-color: #2a2622; color: #c49a58; }
.chip:focus-visible { outline: 2px solid #99763f; outline-offset: 3px; }

/* Uniform grid — every tile the same square. Adding a piece is paste-and-swap:
   no ratio decision, no column balancing, no JS layout pass. */
.artgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; align-items: start; }
@media (max-width: 1000px) { .artgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px)  { .artgrid { grid-template-columns: 1fr; } }
.tile { cursor: pointer; transition: opacity 0.25s ease; }
.tile.hidden { display: none; }
a.tile { display: block; color: inherit; text-decoration: none; }
.tile-price { font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: #6f6a60; margin-top: 4px; }

.tile-img { width: 100%; aspect-ratio: 1 / 1; background: #fdfcfc; overflow: hidden; display: flex; align-items: center; justify-content: center; transition: box-shadow 0.3s ease; position: relative; }
.tile:hover .tile-img { box-shadow: 0 6px 18px rgba(40,35,25,0.12); }
.tile-img svg { width: 80%; height: 80%; opacity: 0.6; transition: opacity 0.3s; }
.tile:hover .tile-img svg { opacity: 0.78; }
.tile-img img { width: 100%; height: 100%; object-fit: contain; display: block; }

.tile-meta { padding: 0.5rem 0.1rem 0; }
.tile-series { font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom:0.3rem;}
.tile-series.dom { color: #7d5f2e; }
.tile-series.la  { color: #4a666d; }
.tile-series.ob  { color: #46664e; }
.tile-series.lf  { color: #675a86; }
.tile-series.pc  { color: #8a4a42; }
.tile-title { font-size: 13px; color: #6f6a60; margin-top: 2px; margin-bottom: 0.15rem; display: flex; justify-content: space-between; gap: 1rem; }
.tile-detail { font-size: 14px; font-weight: 500; color: #2a2622; letter-spacing: 0; margin-top: 1px; padding-top:1px }

.filter-intro { display: none; font-size: 13px; line-height: 1.9; color: #4a4540; max-width: 520px; margin-bottom: 2rem; }
.filter-intro.show { display: block; }

.empty-msg { display: none; font-family: 'dm mono', monospace; font-size: 16px; color: #6f6a60; padding: 2rem 0; }
.empty-msg.show { display: block; }

.lb { display: none; position: fixed; inset: 0; background: rgba(30, 27, 22, 0.55); backdrop-filter: blur(2px); z-index: 100; align-items: center; justify-content: center; padding: 3rem 2rem; cursor: pointer; overscroll-behavior: contain; }
.lb.open { display: flex; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lb-panel { background: #fefefc; max-width: 800px; width: 100%; max-height: 90vh; cursor: default; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(20,18,14,0.35); animation: rise 0.25s ease; overflow: hidden; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.lb-artwork { width: 100%; height: calc(90vh - 90px); background: #ffffff; display: flex; align-items: center; justify-content: center; padding: 0; }
.lb-artwork svg { max-width: 100%; max-height: 100%; width: auto; height: auto; }

.lb-artwork img { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; }
.lb-footer { padding: 0.75rem 1.5rem; border-top: 0.5px solid #e3ddd0; display: flex; justify-content: space-between; align-items: flex-end; flex-shrink: 0; }
.lb-series { font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 0.3rem; }
.lb-series.dom { color: #7d5f2e; }
.lb-series.la  { color: #4a666d; }
.lb-series.ob  { color: #46664e; }
.lb-series.lf  { color: #675a86; }
.lb-series.pc  { color: #8a4a42; }
.lb-title { font-size: 13px; color: #6f6a60; line-height: 1; margin-bottom: 0.15rem; margin-top: 2px; padding-top:2px;}
.lb-detail { font-size: 14px; font-weight: 500; color: #2a2622; letter-spacing: 0; margin-top: 1px;  padding-top:1px }
.lb-close { font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: #6f6a60; cursor: pointer; background: none; border: none; font-family: 'DM Mono', monospace; transition: color 0.2s; padding: 8px 10px; margin: -8px -10px; }
.lb-close:hover { color: #2a2622; }

.studio-panel { display: none; }
.studio-panel.show { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding-top: 0.5rem; max-width: 1180px; }

.studio-images { display: flex; flex-direction: column; gap: 1rem; }
.studio-img-main { width: 100%; aspect-ratio: 4/5; background: #ffffff; overflow: hidden; }
.studio-img-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.studio-img-secondary { width: 100%; aspect-ratio: 3/2; background: #ffffff; overflow: hidden; }
.studio-img-secondary img { width: 100%; height: 100%; object-fit: cover; display: block; }
.studio-img-placeholder { width: 100%; height: 100%; background: #ffffff; }

.studio-text { display: flex; flex-direction: column; gap: 1.5rem; padding-top: 0.5rem; }
.studio-label { font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: #6f6a60; }
.studio-bio { font-size: 13px; line-height: 1.9; color: #4a4540; max-width: 420px; }
.studio-links { display: flex; flex-direction: column; gap: 0.5rem; margin-top: auto; }
.studio-links a { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: #6f6a60; text-decoration: none; transition: color 0.2s; }
.studio-links a:hover { color: #2a2622; }

/* ── Footer (all sizes; socials live here) ── */
.site-footer {
  display: flex;
  align-items: center;
  background-color: #1a1816;
  min-height: 50px;
  padding: 0 1.5rem env(safe-area-inset-bottom, 0);
  gap: 0.2rem;
  flex-shrink: 0;
}
.site-footer a { font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #b0a999; text-decoration: none; position: relative; padding: 14px 8px; }
.site-footer a:hover { color: #c4b89a; }
.site-footer a[data-label]::after { content: attr(data-label); position: absolute; bottom: calc(100% - 8px); left: 50%; transform: translateX(-50%); background: #2e2b26; color: #c4b89a; font-size: 9px; letter-spacing: 0.08em; white-space: nowrap; padding: 3px 7px; pointer-events: none; opacity: 0; transition: opacity 0.15s; }
.site-footer a[data-label]:hover::after,
.site-footer a[data-label]:focus-visible::after { opacity: 1; }
.site-footer-copy { font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.08em; color: #b0a999; margin-left: auto; }

/* ═══ Product pages ═══════════════════════════════════════════════════════ */

/* ── Product layout ── */
.product-page .main { max-width: 1500px; margin: 0 auto; }
.backlink { display: inline-block; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: #6f6a60; text-decoration: none; margin-bottom: 2rem; padding: 6px 8px; margin-left: -8px; }
.backlink:hover { color: #2a2622; }

.product { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, 1fr); gap: 3rem; align-items: start; }
.product-media { display: flex; flex-direction: column; gap: 0.75rem; }
/* Image carousel — arrows appear only when there's more than one view, so a
   single-image product still reads as a plain picture with no dead controls. */
.product-frame { position: relative; }
.product-carousel { position: relative; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; }
.product-carousel::-webkit-scrollbar { display: none; }
/* Smoothness lives in CSS, not in scrollTo({behavior}) — that silently no-ops
   against `scroll-snap-type: mandatory` in some engines, leaving dead arrows. */
.product-carousel { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { .product-carousel { scroll-behavior: auto; } }
.product-slide { flex: 0 0 100%; scroll-snap-align: center; background: #fdfcfc; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
.product-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }

.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: none; align-items: center; justify-content: center; padding: 0; background: rgba(254, 254, 252, 0.92); border: 0.5px solid #8a816f; color: #2a2622; cursor: pointer; transition: border-color 0.15s, opacity 0.15s; }
.product-frame.multi .carousel-arrow { display: flex; }
.carousel-arrow.prev { left: 12px; }
.carousel-arrow.next { right: 12px; }
.carousel-arrow:hover { border-color: #2a2622; }
.carousel-arrow:disabled { opacity: 0.28; cursor: default; border-color: #b5ad9d; }
.carousel-arrow:focus-visible { outline: 2px solid #99763f; outline-offset: 2px; }
.carousel-arrow svg { width: 13px; height: 13px; }

/* Thumbnail strip — hides itself when there's only one image */
.product-thumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.product-thumbs.single { display: none; }
.thumb { width: 64px; height: 64px; padding: 0; border: 1px solid #e3ddd0; background: #fdfcfc; cursor: pointer; overflow: hidden; transition: border-color 0.15s; }
.thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.thumb:hover { border-color: #8a8478; }
.thumb.selected { border-color: #2a2622; }

.product-caption { font-size: 14px; line-height: 1.7; color: #6f6a60; letter-spacing: 0.02em; }
.product-caption:empty { display: none; }

.product-info { padding-top: 0.5rem; }
.product-series { font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 0.75rem; }
.product-series.dom { color: #7d5f2e; }
.product-series.la  { color: #4a666d; }
.product-series.ob  { color: #46664e; }
.product-title { font-size: 18px; font-weight: 500; letter-spacing: 0; margin-bottom: 0.35rem; }
.product-medium { font-size: 14px; color: #6f6a60; margin-bottom: 1.5rem; }
.product-subheading { font-family: 'DM Mono', monospace; font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: #2a2622; margin: 1rem 0 0.3rem; }
.product-price { font-size: 14px; letter-spacing: 0.08em; margin-bottom: 1.75rem; }

.opt-label { font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: #6f6a60; margin-bottom: 0.6rem; }
.size-group { display: flex; gap: 0.6rem; margin-bottom: 1.75rem; }
.size-btn { font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.1em; padding: 10px 22px; background: none; border: 1px solid #8a816f; color: #6f6a60; cursor: pointer; transition: all 0.15s; }
.size-btn:hover { border-color: #2a2622; color: #2a2622; }
.size-btn.selected { background: #2a2622; border-color: #2a2622; color: #fefefc; }

.qty-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.75rem; }
.qty-stepper { display: flex; align-items: center; border: 1px solid #8a816f; }
.qty-btn { font-family: 'DM Mono', monospace; font-size: 14px; width: 40px; height: 40px; background: none; border: none; color: #6f6a60; cursor: pointer; }
.qty-btn:hover { color: #2a2622; }
.qty-value { font-size: 12px; min-width: 36px; text-align: center; }

/* Buy area: placeholder until the Shopify Buy Button embed replaces it */
.buy-area { margin-bottom: 2rem; }
.buy-placeholder { border: 1px dashed #c9c2b4; padding: 1.1rem 1.25rem; font-size: 11px; line-height: 1.8; color: #6f6a60; }
.buy-placeholder a { color: #7d5f2e; text-decoration: underline; text-underline-offset: 2px; }
.buy-placeholder a:hover { color: #2a2622; }

.product-divider { height: 1px; background: #e3ddd0; margin: 0 0 1.75rem; }
.product-desc { font-size: 14px; line-height: 1.95; color: #4a4540; max-width: 46ch; }
.product-desc p + p { margin-top: 1rem; }

/* ═══ Mobile ══════════════════════════════════════════════════════════════ */

@media (max-width: 720px) {
  .topbar { grid-template-columns: 1fr; justify-items: center; gap: 0.6rem; padding: 0.9rem 0.75rem; }
  .wordmark, .topbar nav { grid-column: 1; justify-self: center; }
  .navlist a { font-size: 12px; }

  .main { padding: 1.5rem 1.25rem 3rem; }

  .tile { margin-bottom: 12px; }


  .studio-panel.show { grid-template-columns: 1fr; gap: 2rem; }

  .lb { padding: 1rem; }
  .lb-panel { max-height: 70vh; }
  .lb-artwork { padding: 0;}

  .product { grid-template-columns: 1fr; gap: 1.5rem; }

  .site-footer { padding: 0 1.25rem env(safe-area-inset-bottom, 0); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
