:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #575757;
  --rule: #dedede;
  font: 16px/1.6 "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
}
* { box-sizing: border-box }
body, h1, h2, h3, p, figure { margin: 0 }
[hidden] { display: none !important }
a { color: inherit; text-decoration: none }
a:hover { text-decoration: underline; text-underline-offset: .22em }
button, select, input, textarea { font: inherit; color: inherit }
button { cursor: pointer }
:focus-visible { outline: 2px solid #335776; outline-offset: 4px }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap }
.shell { width: min(100% - clamp(32px, 7vw, 112px), 1540px); margin-inline: auto }
.masthead { min-height: 76px; padding-block: 18px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; border-bottom: 1px solid var(--rule) }
.wordmark { font-size: clamp(1.05rem, 2.4vw, 1.31rem); font-weight: 400; line-height: 1.2; justify-self: start }
.wordmark span { margin-inline-start: .45em; font-size: .72em; color: var(--muted) }
.masthead nav { display: flex; flex-wrap: wrap; gap: 8px clamp(16px, 3vw, 40px) }
.masthead nav a, .contact { font-size: .875rem }
.masthead a[aria-current] { text-decoration: underline; text-underline-offset: .24em }
.contact { justify-self: end }
.opening { padding-block-start: clamp(20px, 4vw, 45px) }
.hero { height: min(66svh, 720px); display: grid; place-items: center }
.hero a { display: flex; justify-content: center; width: 100%; height: 100%; min-height: 0; min-width: 0 }
.hero img { display: block; width: 100%; height: 100%; object-fit: contain; animation: appear .24s ease both }
@keyframes appear { from { opacity: .7 } to { opacity: 1 } }
.caption { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 12px; padding: 18px 0 23px; border-bottom: 1px solid var(--rule); font-size: .75rem; letter-spacing: .015em }
.caption-info { display: grid; min-width: 0; overflow-wrap: anywhere }
#feature-title { font-weight: 500 }
.caption-kind { color: var(--muted) }
.controls { display: flex; align-items: baseline; gap: 12px; white-space: nowrap; font-variant-numeric: tabular-nums }
.controls button { border: 0; background: transparent; padding: 0; font-size: .75rem; letter-spacing: .025em; min-height: 25px }
.controls button:hover { text-decoration: underline; text-underline-offset: .22em }
.controls #pause { margin-inline-start: 4px; color: var(--muted) }
#count { color: var(--muted) }
.projects { padding: clamp(35px, 5vw, 70px) 0 }
.section-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 20px }
h2 { font-size: .9375rem; line-height: 1.4; font-weight: 500 }
.section-top a { text-decoration: underline; text-underline-offset: .2em; font-size: .88rem }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px clamp(15px, 3vw, 42px) }
.card { display: grid; align-content: start; justify-items: start }
.card img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: center; margin-bottom: 9px }
#work[data-category="Painting"] .card img { height: auto; aspect-ratio: auto; object-fit: contain }
#work[data-category="Artwork"] .card img,
#work[data-category="Portrait"] .card img { aspect-ratio: 4 / 5 }
.card h3 { font-size: .8125rem; line-height: 1.4; font-weight: 400 }
.card p, .project .category, .project-details { font-size: .6875rem; color: var(--muted); margin-top: .2rem }
footer { border-top: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: end; gap: 1rem; padding: 24px 0 34px; font-size: .8125rem }
footer h2 { margin-bottom: .3rem }
.contact-details p { margin-bottom: .55rem; color: var(--muted) }
footer a { text-decoration: underline; text-underline-offset: .2em }
.footer-meta { display: grid; justify-items: end; gap: 6px; font-size: .75rem; color: var(--muted) }
.project { padding: 12px 0 55px }
.project-slideshow { margin: 0 }
.project-toolbar { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px }
.project-toolbar > a { font-size: .75rem; color: var(--muted); text-decoration: underline; text-underline-offset: .2em }
.project-credit { margin: 24px auto 0 0; max-width: 65ch; text-align: left; color: var(--muted) }
.project-credit h1 { font-size: .8125rem; line-height: 1.4; font-weight: 400; margin: 0 }
.project-credit .description { margin: .25rem 0 0; white-space: pre-wrap; font-size: .6875rem; line-height: 1.4 }
.hero.project-stage {
  position: relative;
  display: block;
  width: 100%;
  height: clamp(120px, calc(100svh - var(--photo-top, 100px) - 76px), 830px);
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}
.project-stage img { position: absolute; inset: 0; max-width: 100%; max-height: 100% }
.project-controls { color: var(--muted); font-size: .75rem }
.project-controls button:disabled { opacity: .48; cursor: default; text-decoration: none }
.project-caption { margin-top: .5rem; font-size: .6875rem; overflow-wrap: anywhere; text-align: center }
.project-caption:empty { display: none }
@media (max-width: 790px) {
  .masthead { min-height: 70px; grid-template-columns: 1fr auto; gap: 8px; padding-block: 12px }
  .masthead nav { grid-row: 2; grid-column: 1/-1 }
  .contact { grid-column: 2; grid-row: 1 }
  .hero { height: clamp(235px, 68vw, 470px) }
  .caption { grid-template-columns: 1fr auto; padding-block: 12px 16px }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px 15px }
}
@media (max-width: 400px) {
  .caption { grid-template-columns: 1fr }
  .controls { grid-row: 2 }
  footer { align-items: start; flex-wrap: wrap }
  .footer-meta { justify-items: start }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important } }

#analytics-consent { position: fixed; z-index: 20; right: 1rem; bottom: 1rem; width: min(390px, calc(100% - 2rem)); padding: 1rem; background: var(--paper, #fff); border: 1px solid var(--rule, #ccc); box-shadow: 0 2px 12px #0001; font-size: .875rem }
#analytics-consent h2 { margin: 0 0 .4rem; font-size: .95rem }
#analytics-consent p { margin: 0 0 .65rem }
#analytics-consent a, #analytics-settings { text-decoration: underline; text-underline-offset: .2em }
#analytics-consent div { display: flex; flex-wrap: wrap; gap: .5rem }
#analytics-consent button { border: 1px solid currentColor; padding: .35rem .55rem }
#analytics-settings { display: block; margin-top: .5rem; font-size: .75rem }

.booking { border-top: 1px solid var(--rule); padding: 28px 0; max-width: 700px }
.booking h2 { margin: 0 0 .4rem }
.booking form { margin-top: 1rem }
.booking-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem }
.booking-fields label { display: grid; gap: .3rem; font-size: .875rem }
.booking-message { grid-column: 1 / -1 }
.booking input, .booking textarea { width: 100%; padding: .55rem; border: 1px solid var(--rule); color: inherit; background: transparent; font: inherit }
.booking-note { font-size: .8125rem; margin: .8rem 0 }
.booking-note a { text-decoration: underline }
.booking button { padding: .55rem .85rem; border: 1px solid currentColor }
@media (max-width: 520px) { .booking-fields { grid-template-columns: 1fr } }

.booking { margin-top: clamp(2rem, 6vw, 5rem); padding: 0; max-width: 700px; background: transparent }
.booking h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 400 }
.booking form { margin-top: 1.4rem }
.booking-fields { gap: .85rem 1rem }
.booking-fields label { font-weight: 500 }
.booking input, .booking textarea { background: transparent; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0 }
.booking input:focus-visible, .booking textarea:focus-visible { outline: 2px solid #222; outline-offset: 2px }
.booking-note { color: #56534e }
.booking button { background: #222; color: #fff; padding: .65rem 1rem }
.booking + footer { margin-top: 2rem }

.booking summary { cursor: pointer; font-size: 1rem; text-decoration: none }
.booking[open] summary { margin-bottom: .65rem }
.booking:not([open]) { padding-block: 0; margin-top: 0 }

#contact > .booking { border-top: 0; margin-top: 0; margin-bottom: 2rem }

.contact-instagram { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; text-decoration: none }
.contact-instagram:hover { opacity: .65 }
