/* David Smouha Studio */
:root {
  --bg: #fafafa;
  --ink: #000;
  --muted: #555;
  --gutter: clamp(16px, 2vw, 30px);
  --base: clamp(16px, 1.6vw, 23px);
  --dot: #c8102e;
  --display: clamp(34px, 3.85vw, 55px);
  --cap: 14px;
  --sans: 'Roboto', system-ui, sans-serif;
  --cond: 'Roboto Condensed', 'Arial Narrow', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--cond); font-weight: 300; font-size: var(--base); line-height: 1.45; letter-spacing: .01em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
h1, h2, h3 { font-weight: 400; margin: 0; }
strong, b { font-weight: 600; }
p { margin: 0 0 .8em; }
.visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--bg); padding: .5em 1em; z-index: 100; }
.skip:focus { left: var(--gutter); }

/* header */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1em;
  padding: calc(var(--gutter) * .9) var(--gutter); position: relative; z-index: 20; background: var(--bg);
}
.logo {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: -.03em;
  font-size: clamp(18px, 2.03vw, 29px); text-decoration: none; white-space: nowrap;
}
.nav { list-style: none; margin: 0; padding: 0; display: flex; gap: .75em; }
.nav-link {
  font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: none; border-bottom: 1px solid transparent; letter-spacing: .01em;
}
.nav-link.is-active, .nav-link:hover { border-bottom-color: currentColor; }
.has-sub { position: relative; }
.sub {
  list-style: none; margin: 0; padding: .5em 0; position: absolute; top: 100%; left: -.75em;
  background: var(--bg); min-width: 14em; display: none; font-size: .8em;
}
.sub a { display: block; padding: .3em .75em; text-decoration: none; }
.sub a:hover { text-decoration: underline; }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { display: block; }
.menu-toggle { display: none; }

/* hero slider */
.hero { overflow: hidden; }
.slider { position: relative; }
.track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }
.slide { scroll-snap-align: start; }

.arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 60px; height: 60px; border-radius: 50%;
  border: 0; background: rgba(0,0,0,.85); color: #fff; font-size: 28px; line-height: 1; cursor: pointer;
}
.arrow.prev { left: 5%; } .arrow.next { right: 5%; }

/* exhibitions */
.exhibition { padding: calc(var(--gutter) * 2) var(--gutter) var(--gutter); }
.display {
  font-family: var(--sans); text-transform: uppercase; font-size: var(--display);
  letter-spacing: -.03em; line-height: 1.12; max-width: 8.2em; margin: 0 0 1.8em;
}
.masonry { display: flex; gap: 20px; align-items: flex-start; }
.masonry .col { flex: 1; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.masonry:not(.ready) { display: grid; grid-template-columns: repeat(4, 1fr); }
.tile { margin: 0; }
.tile a { display: block; cursor: zoom-in; }
.tile figcaption { font-size: var(--cap); line-height: 1.45; margin-top: .9em; letter-spacing: .01em; }
.buttons { display: flex; flex-direction: column; gap: 8px; margin: 3em 0 1em 2.5vw; }
.btn {
  display: inline-block; background: var(--ink); color: var(--bg); border: 0; cursor: pointer;
  font: inherit; font-size: clamp(15px, 1.67vw, 24px); text-transform: uppercase; text-decoration: none;
  padding: 1.25em 2.2em; text-align: center; line-height: 1.2;
}
.btn:hover { background: #222; }
.btn-stack { max-width: 9em; padding: 1em 1.4em; }

/* about */
.about {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5vw;
  padding: calc(var(--gutter) * 8) var(--gutter) var(--gutter);
}
.about h2 { font-weight: 700; margin-bottom: 1.2em; font-size: 1em; }
.about .btn-stack { margin-top: 1.5em; margin-left: -20px; max-width: 7.5em; }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1fr 1.45fr; gap: var(--gutter); padding: calc(var(--gutter) * 1.4) 0 var(--gutter) var(--gutter); }
.c-info { grid-column: 1 / 3; padding-top: 3.2em; }
.c-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.contact h2 { font-weight: 700; font-size: 1em; }
.map { width: 220px; height: 230px; border: 0; margin-top: .4em; filter: grayscale(1); }
.contact-form { margin-top: 3em; max-width: 340px; }
.contact-form .form-title { font-weight: 400; text-transform: uppercase; margin-bottom: .6em; }
.contact-form label { display: block; margin-bottom: .9em; }
.contact-form .req { color: var(--muted); font-size: .9em; }
.contact-form input:not([type=checkbox]), .contact-form textarea, .newsletter input {
  display: block; width: 100%; font: inherit; font-size: 18px; padding: .55em .6em; margin-top: .3em;
  border: 1px solid var(--ink); background: transparent; border-radius: 0;
}
.contact-form input.short { width: 50%; }
.contact-form .check { display: flex; gap: .5em; align-items: flex-start; }
.contact-form .check input { margin-top: .45em; }
.c-image { align-self: stretch; }
.c-image img { width: 100%; height: 100%; max-height: 1300px; object-fit: cover; }

/* footer */
.site-footer {
  display: grid; grid-template-columns: 1fr 16% 13%; column-gap: var(--gutter);
  grid-template-areas: "studio hours follow" "news hours follow";
  padding: calc(var(--gutter) * 2) var(--gutter) calc(var(--gutter) * 1.5);
}
.site-footer h2 { font-size: 1em; margin-bottom: 1.1em; }
.site-footer p { font-size: .89em; }
.f-studio { grid-area: studio; } .f-hours { grid-area: hours; } .f-follow { grid-area: follow; } .f-news { grid-area: news; }
.newsletter { margin-top: 1.6em; max-width: 510px; }
.newsletter label { display: block; font-size: .89em; }
.newsletter input { margin: .2em 0 20px; }

/* thanks */
.thanks { padding: calc(var(--gutter) * 3) var(--gutter); min-height: 40vh; }

/* lightbox */
.lightbox { border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgba(250,250,250,.98); }
.lightbox::backdrop { background: rgba(250,250,250,.98); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; max-width: 86vw; text-align: center; }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; }
.lightbox figcaption { font-size: var(--cap); margin-top: 1em; max-width: 60ch; margin-inline: auto; }
.lightbox button { position: absolute; background: none; border: 0; font-size: 34px; cursor: pointer; color: var(--ink); padding: 12px; }
.lb-close { top: 10px; right: 16px; } .lb-prev { left: 12px; } .lb-next { right: 12px; }

/* mobile */
@media (max-width: 900px) {
  .menu-toggle {
    display: flex; flex-direction: column; gap: 6px; background: none; border: 0; padding: 10px 0 10px 10px; cursor: pointer;
  }
  .menu-toggle span { display: block; width: 36px; height: 3px; background: var(--ink); transition: transform .2s; }
  .site-header nav {
    display: none; position: fixed; inset: 64px 0 0; background: var(--bg); padding: 2em var(--gutter); overflow-y: auto;
  }
  .site-header.open nav { display: block; }
  .site-header.open .menu-toggle span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .site-header.open .menu-toggle span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .nav { flex-direction: column; gap: .5em; font-size: 26px; }
  .sub { position: static; display: block; padding: .2em 0 .4em 1em; font-size: .75em; }
  .arrow { top: auto; bottom: 24px; transform: none; width: 40px; height: 40px; font-size: 20px; }
  .arrow.prev { left: calc(50% - 50px); } .arrow.next { right: calc(50% - 50px); }
  .masonry:not(.ready) { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; padding-top: calc(var(--gutter) * 3); }
  .about .btn-stack { margin-left: 0; }
  .contact { grid-template-columns: 1fr; padding-right: var(--gutter); }
  .c-info { grid-column: auto; padding-top: 1em; }
  .site-footer { grid-template-columns: 1fr 1fr; grid-template-areas: "studio hours" "news news" "follow follow"; }
  .f-follow { margin-top: 2em; }
  .c-image img { height: auto; max-height: none; }
  .buttons { margin-left: 0; }
}

/* stockroom + work pages */
.stockroom .display { margin-bottom: .5em; }
.intro { max-width: 46ch; margin-bottom: 2.4em; color: var(--muted); }
.stockroom .tile figcaption { font-size: 15px; }
.stockroom .tile figcaption a { text-decoration: none; display: inline; cursor: pointer; }
.stockroom .tile figcaption a:hover { text-decoration: underline; }
.stockroom .tile a { cursor: pointer; }
.dot { display: inline-block; width: .62em; height: .62em; border-radius: 50%; background: var(--dot); vertical-align: .05em; margin-left: .3em; }
.work { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 5vw; padding: calc(var(--gutter) * 2) var(--gutter) var(--gutter); align-items: start; }
.w-image img { width: 100%; height: auto; max-height: 82vh; object-fit: contain; object-position: left top; }
.w-text { position: sticky; top: 24px; max-width: 34em; }
.w-artist { color: var(--muted); margin-bottom: .3em; }
.w-title { font-family: var(--sans); font-weight: 300; text-transform: uppercase; letter-spacing: -.02em; font-size: clamp(28px, 2.8vw, 42px); line-height: 1.1; margin-bottom: 1em; text-wrap: balance; }
.w-title span { text-transform: none; }
.w-meta { margin: 0 0 1.4em; display: grid; gap: .35em; font-size: .9em; }
.w-meta div { display: grid; grid-template-columns: 7.5em 1fr; gap: 1em; }
.w-meta dt { color: var(--muted); }
.w-meta dd { margin: 0; }
.w-desc { font-size: .88em; margin-bottom: 1.6em; color: #222; }
.w-price { font-size: 1em; margin: 0 0 1em; letter-spacing: .02em; }
.w-price span { color: var(--muted); font-size: .7em; margin-left: .2em; }
.w-status { margin: 0 0 1.4em; }
.w-status .dot { margin: 0 .35em 0 0; }
.w-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-bottom: 1.2em; }
.w-actions .btn { padding: 1em 1.6em; font-size: 15px; }
.quiet { font-size: .85em; color: var(--muted); }
.quiet:hover { color: var(--ink); }
.w-note { font-size: .78em; color: var(--muted); max-width: 32em; }
.w-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 3em; padding-top: 1em; border-top: 1px solid #ddd; font-size: .78em; }
.w-nav a { text-decoration: none; color: var(--muted); }
.w-nav a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 900px) {
  .work { grid-template-columns: 1fr; padding-top: var(--gutter); }
  .w-text { position: static; }
  .w-image img { max-height: none; }
}

/* home carousel */
.hero { padding: 0 0 calc(var(--gutter) * .5); }
.hero .track { gap: 28px; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
.hero .slide { flex: 0 0 auto; height: auto; margin: 0; scroll-snap-align: start; }
.hero .slide img { height: min(68vh, 720px); width: auto; max-width: 86vw; object-fit: contain; }
.hero .slide figcaption { font-size: 15px; margin-top: .7em; }
.hero .slide figcaption a { text-decoration: none; }
.hero .slide figcaption a:hover { text-decoration: underline; }
.hero .arrow { top: calc(min(68vh, 720px) / 2); }
.pause { position: static; display: block; margin: 10px var(--gutter) 0 auto; background: none; border: 0; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.acquire { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: .18em; }
.acquire[disabled] { opacity: .5; cursor: progress; }
.w-msg { font-size: .85em; min-height: 1.2em; }
@media (max-width: 900px) {
  .hero .slide img { height: 56vh; max-width: calc(100vw - 2 * var(--gutter)); }
  .hero .arrow { top: calc(56vh - 56px); bottom: auto; }
}

/* acquire dialog */
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); padding: 1em 1.6em; font-size: 15px; }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
dialog.buy { border: 0; padding: 0; width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); background: var(--bg); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.18); }
dialog.buy::backdrop { background: rgba(250,250,250,.86); }
.buy-inner { padding: 30px 30px 26px; position: relative; display: grid; gap: 14px; font-size: 16px; }
.buy-close { position: absolute; top: 8px; right: 12px; background: none; border: 0; font-size: 28px; cursor: pointer; color: var(--muted); }
.buy-step { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.buy h2 { font-family: var(--sans); font-weight: 300; text-transform: uppercase; letter-spacing: -.02em; font-size: 26px; line-height: 1.1; }
.buy h2 span { text-transform: none; }
.buy-work { margin: 0; color: var(--muted); font-size: 14px; }
.buy fieldset { border: 0; padding: 0; margin: 6px 0 0; display: grid; gap: 8px; }
.buy legend { padding: 0; margin-bottom: 8px; }
.buy fieldset label { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #ddd; cursor: pointer; font-size: 15px; }
.buy fieldset label:has(input:checked) { border-color: var(--ink); }
.buy fieldset label span { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.buy fieldset input { accent-color: #000; margin: 0; }
.buy-os { margin: 0; font-size: 14px; color: var(--muted); }
.buy-total { margin: 4px 0 0; border-top: 1px solid #ddd; padding-top: 10px; display: grid; gap: 4px; font-size: 15px; font-variant-numeric: tabular-nums; }
.buy-total div { display: flex; justify-content: space-between; }
.buy-total dt { color: var(--muted); } .buy-total dd { margin: 0; }
.buy-total .t { font-weight: 600; } .buy-total .t dt { color: var(--ink); }
.buy-go { justify-self: stretch; padding: 1.05em; font-size: 15px; }
.buy-go[disabled] { opacity: .5; cursor: progress; }
.buy-fine { margin: 0; font-size: 12.5px; color: var(--muted); }
.buy-msg { margin: 0; }

.nl-msg { font-size: .85em; margin-top: .8em; }

/* Summer Salon promo slide */
.hero .slide.promo { display: flex; gap: 0; background: #111; color: #f5f3ee; }
.promo-img { position: relative; display: block; }
.hero .slide.promo img { height: min(68vh, 720px); width: auto; max-width: 50vw; object-fit: cover; }
.promo-text { width: min(420px, 32vw); padding: clamp(28px, 3.2vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 0; margin: 0 !important; font-size: 16px !important; }
.promo-text .eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #b9b5ac; margin-bottom: 1.4em; }
.promo-text h2 { font-family: var(--sans); font-weight: 300; text-transform: uppercase; letter-spacing: -.03em; font-size: clamp(34px, 3.6vw, 56px); line-height: 1; margin-bottom: .55em; }
.promo-text p { line-height: 1.5; color: #dcd8cf; }
.promo-text .from { font-family: var(--sans); font-weight: 300; font-size: 22px; color: #f5f3ee; margin: .6em 0 1.4em; letter-spacing: .01em; }
.promo-cta { color: #f5f3ee !important; text-decoration: none !important; border-bottom: 1px solid #f5f3ee; align-self: flex-start; padding-bottom: 2px; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
.promo-cta:hover { border-bottom-width: 2px; }
.sticker { position: absolute; top: 22px; right: 22px; width: 112px; height: 112px; border-radius: 50%; background: #111; color: #f5f3ee; display: grid; place-items: center; text-align: center;
  font-family: var(--sans); font-weight: 400; text-transform: uppercase; font-size: 15px; letter-spacing: .08em; line-height: 1.15; padding: 18px; transform: rotate(-9deg);
  box-shadow: 0 2px 6px rgba(0,0,0,.25); border: 1px solid rgba(245,243,238,.25); }
@media (max-width: 900px) {
  .hero .slide.promo { flex-direction: column; width: calc(100vw - 2 * var(--gutter)); }
  .hero .slide.promo img { height: 34vh; width: 100%; max-width: none; }
  .promo-text { width: auto; padding: 22px 22px 26px; }
  .promo-text h2 { font-size: 34px; }
  .promo-text .from { margin: .3em 0 .9em; }
  .sticker { width: 84px; height: 84px; font-size: 12px; top: 14px; right: 14px; padding: 12px; }
}
.hero .track { align-items: flex-start; }
.hero .slide.promo { height: min(68vh, 720px); overflow: hidden; }
@media (max-width: 900px) {
  .hero .slide.promo { height: auto; }
  .hero .arrow { display: none; }
}

.ex-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 5vw; align-items: end; margin-bottom: 3em; }
.ex-head .display { margin: 0; }
.ex-intro { max-width: 40em; color: var(--muted); font-size: .82em; }
.ex-intro p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .ex-head { grid-template-columns: 1fr; gap: 1.2em; margin-bottom: 2em; } }
.btn-stack, .about .btn-stack { max-width: none; white-space: nowrap; padding: .3em .9em; font-size: .8em; line-height: 1.3; letter-spacing: .04em; margin-left: 0; margin-top: 1.2em; }

.buttons { flex-direction: row; flex-wrap: wrap; gap: 10px; margin: 3em 0 1em; }
.buttons .btn-stack { margin-top: 0; }
