:root {
  --bg: #dcdcda;
  --ink: #3c3c3c;
  --soft: #6e6e6e;
  --line: #c4c4c1;
  --red: #b3261e;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 300 17px/1.6 "Jost", "Helvetica Neue", Arial, sans-serif;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

header.site { text-align: center; padding: 40px 16px 0; border-bottom: 1px solid var(--line); }
.brand { text-decoration: none; display: inline-block; }
.brand .name { display: block; font-size: 34px; letter-spacing: .28em; text-transform: uppercase; margin-right: -.28em; }
.brand .tag { display: block; font-size: 13px; letter-spacing: .9em; text-transform: uppercase; color: var(--soft); margin: 6px -.9em 0 0; }
nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 30px; padding: 26px 0 18px; }
nav a { text-decoration: none; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); padding: 4px 0; border-bottom: 1px solid transparent; }
nav a:hover, nav a[aria-current] { color: var(--ink); border-bottom-color: var(--ink); }

main { max-width: var(--max); margin: 0 auto; padding: 32px 16px 64px; }
.page-title { font-weight: 300; font-size: 15px; letter-spacing: .2em; text-transform: uppercase; color: var(--soft); text-align: center; margin: 0 0 32px; }
footer { text-align: center; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); padding: 24px 16px 40px; }

/* home */
.notice { text-align: center; margin: 0 0 28px; }
.show { position: relative; aspect-ratio: 3 / 2; max-height: 74vh; margin: 0 auto; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.2s ease; display: flex; flex-direction: column; align-items: center; }
.slide.on { opacity: 1; }
.slide img { flex: 1; min-height: 0; width: 100%; object-fit: contain; }
.slide figcaption { font-size: 14px; color: var(--soft); padding-top: 10px; }
.show button { position: absolute; top: 45%; background: none; border: 0; font: 300 46px/1 "Jost", sans-serif; color: var(--soft); cursor: pointer; padding: 10px; }
.show button:hover { color: var(--ink); }
.show .prev { left: -8px; } .show .next { right: -8px; }

/* galleries */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 44px 36px; }
.work { margin: 0; }
.work a { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; background: rgba(255,255,255,.18); }
.work img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; transition: opacity .2s; }
.work a:hover img { opacity: .88; }
.work figcaption { text-align: center; padding-top: 12px; line-height: 1.4; }
.work .t { display: block; }
.work .c { display: block; font-size: 14px; color: var(--soft); }
.sold { color: var(--red); margin-left: .6em; white-space: nowrap; }
.sold::before { content: ""; display: inline-block; width: .55em; height: .55em; border-radius: 50%; background: var(--red); margin-right: .35em; vertical-align: .05em; }

/* lightbox */
.lb { position: fixed; inset: 0; background: rgba(28,28,28,.94); color: #eee; display: none; z-index: 10; flex-direction: column; align-items: center; justify-content: center; padding: 24px 64px; }
.lb.open { display: flex; }
.lb img { max-width: 100%; max-height: calc(100vh - 130px); object-fit: contain; }
.lb p { margin: 14px 0 0; text-align: center; font-size: 15px; }
.lb p small { display: block; color: #aaa; font-size: 14px; }
.lb .sold { color: #ff7b72; } .lb .sold::before { background: #ff7b72; }
.lb button { position: absolute; background: none; border: 0; color: #ccc; font: 300 44px/1 "Jost", sans-serif; cursor: pointer; padding: 12px; }
.lb button:hover { color: #fff; }
.lb .x { top: 8px; right: 12px; font-size: 36px; }
.lb .p { left: 8px; top: 45%; } .lb .n { right: 8px; top: 45%; }

/* about, exhibitions, contact */
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { font-weight: 400; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; margin: 36px 0 10px; }
.prose ul { padding: 0; list-style: none; margin: 0; }
.prose li { padding: 5px 0; border-bottom: 1px solid var(--line); }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.about-photo { margin: 0; }
.about-text p { margin: 0 0 1em; }
blockquote { margin: 1.4em 0 0; font-style: italic; }
cite { display: block; font-style: normal; color: var(--soft); margin-top: .5em; }
cite::before { content: "– "; }
.sketches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; margin-top: 48px; align-items: center; }
form.contact { display: grid; gap: 16px; margin-top: 24px; }
form.contact label { display: grid; gap: 4px; font-size: 14px; letter-spacing: .06em; color: var(--soft); }
form.contact input, form.contact textarea { font: inherit; color: var(--ink); background: #f2f2f0; border: 1px solid var(--line); padding: 10px 12px; }
form.contact button { justify-self: start; font: 400 13px/1 "Jost", sans-serif; letter-spacing: .16em; text-transform: uppercase; background: var(--ink); color: #fff; border: 0; padding: 14px 30px; cursor: pointer; }
.hp { position: absolute; left: -9999px; }
.status { padding: 12px 16px; margin: 20px 0 0; }
.status.ok { background: #e3eedf; }
.status.bad { background: #f6dcda; }

@media (max-width: 720px) {
  body { font-size: 16px; }
  header.site { padding-top: 28px; }
  .brand .name { font-size: 24px; letter-spacing: .2em; margin-right: -.2em; }
  .brand .tag { font-size: 11px; letter-spacing: .6em; margin-right: -.6em; }
  nav { gap: 4px 18px; padding: 18px 0 14px; }
  nav a { font-size: 12px; }
  .grid { grid-template-columns: 1fr; gap: 36px; }
  .work a { aspect-ratio: auto; background: none; }
  .about { grid-template-columns: 1fr; gap: 24px; }
  .sketches { grid-template-columns: 1fr 1fr; gap: 14px; }
  .show { aspect-ratio: 1; }
  .show button { display: none; }
  .lb { padding: 16px; }
  .lb .p, .lb .n { display: none; }
}
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }
[hidden] { display: none !important; }
