:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --muted: #737373;
  --line: rgba(10, 10, 10, 0.18);
  --font-sans: "Helvetica Neue", Helvetica, Arial, "Nimbus Sans L", sans-serif;
  --header-height: 74px;
  --gutter: clamp(18px, 2.35vw, 42px);
  --menu-font-size: clamp(16.8px, 1.33vw, 21px);
  --menu-duration: 520ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 300px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  text-rendering: geometricPrecision;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.35;
}

body.page-home {
  overflow: hidden;
}

button,
input,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  border: 0;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 12px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: var(--header-height);
  gap: clamp(18px, 2.4vw, 42px);
  padding: 0 var(--gutter);
  color: var(--ink);
  font-size: var(--menu-font-size);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1;
}

.page-home .site-header {
  color: #111;
  mix-blend-mode: normal;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.88);
}

.brand,
.primary-nav a,
.menu-toggle {
  white-space: nowrap;
}

.brand {
  position: relative;
  z-index: 2;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.menu-panel {
  position: absolute;
  top: 50%;
  right: var(--gutter);
  overflow: hidden;
  width: var(--menu-closed-width, 6em);
  height: calc(1em + 20px);
  background: var(--paper);
  transform: translateY(-50%);
  transition: width var(--menu-duration) var(--ease);
}

.menu-panel-inner {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.7vw, 32px);
  width: max-content;
  height: 100%;
  padding: 0 clamp(10px, 0.9vw, 16px);
}

.primary-nav {
  display: flex;
  flex: none;
  align-items: center;
  gap: clamp(14px, 1.7vw, 32px);
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear var(--menu-duration);
}

body.nav-is-open .menu-panel {
  width: min(var(--menu-open-width, 40em), calc(100vw - var(--gutter) - var(--gutter)));
}

body.nav-is-open .primary-nav {
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.primary-nav a,
.menu-toggle,
.brand {
  outline-offset: 5px;
}

.primary-nav a {
  position: relative;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0;
  transform: scaleX(0);
  transform-origin: right center;
  transition: opacity 180ms ease, transform 260ms var(--ease);
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after,
.primary-nav a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
  transform-origin: left center;
}

.menu-toggle {
  display: inline-flex;
  flex: none;
  align-items: baseline;
  gap: 0.32em;
  padding: 0;
  background: transparent;
  cursor: pointer;
  font-size: inherit;
  letter-spacing: inherit;
}

.home-main,
.home-picture,
.home-picture img {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-main {
  background: #eee5df;
}

.home-picture img {
  object-fit: cover;
  object-position: center center;
}

/* Paintings */
.page-paintings {
  overflow: hidden;
}

.paintings-page {
  height: 100vh;
  min-height: 560px;
  padding-top: var(--header-height);
}

.gallery-status {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 2;
  color: var(--muted);
  font-size: 13px;
  transform: translate(-50%, -50%);
}

.gallery-status[hidden] {
  display: none;
}

.gallery-track {
  display: flex;
  width: 100%;
  height: calc(100vh - var(--header-height));
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.work-slide {
  display: grid;
  flex: 0 0 100vw;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 27vw);
  gap: clamp(28px, 4.2vw, 82px);
  align-items: center;
  width: 100vw;
  height: 100%;
  padding: clamp(12px, 1.5vh, 26px) var(--gutter) clamp(30px, 4vh, 56px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.work-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 100%;
}

.work-image-button {
  display: flex;
  max-width: 100%;
  max-height: 100%;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.work-image-button img {
  width: auto;
  max-width: min(100%, 74vw);
  height: auto;
  max-height: calc(100vh - var(--header-height) - 58px);
  object-fit: contain;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.work-copy {
  align-self: end;
  max-width: 440px;
  padding-bottom: 4px;
}

.work-number {
  margin: 0 0 clamp(18px, 2.4vh, 34px);
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}

.work-copy h1 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(28px, 3.25vw, 58px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.97;
}

.work-statement {
  max-width: 34ch;
  margin: clamp(20px, 2.8vh, 38px) 0 0;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.38;
}

.work-price {
  margin: clamp(20px, 2.7vh, 36px) 0 0;
  font-size: clamp(18px, 1.65vw, 26px);
  letter-spacing: -0.025em;
}

.work-meta {
  display: grid;
  gap: 5px;
  margin: clamp(18px, 2.4vh, 30px) 0 0;
  color: #272727;
  font-size: 12px;
  line-height: 1.34;
}

.work-meta p {
  margin: 0;
}

.work-contact {
  display: inline-block;
  margin-top: 22px;
  border-bottom: 1px solid currentColor;
  font-size: 12px;
  line-height: 1.2;
}

.gallery-controls {
  position: fixed;
  right: var(--gutter);
  bottom: 18px;
  z-index: 5;
  display: grid;
  grid-template-columns: 32px auto 32px;
  align-items: center;
  gap: 11px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.gallery-controls[hidden] {
  display: none;
}

.gallery-controls button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
  backdrop-filter: blur(8px);
}

.gallery-controls button:hover,
.gallery-controls button:focus-visible {
  background: var(--ink);
  color: var(--paper);
  transform: scale(1.04);
}

.gallery-controls output {
  min-width: 48px;
  text-align: center;
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #0b0b0b;
  color: #fff;
  overflow: hidden;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.92);
}

.lightbox figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: clamp(50px, 7vh, 80px) clamp(18px, 4vw, 70px) 22px;
}

.lightbox img {
  align-self: center;
  justify-self: center;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100dvh - 120px);
  object-fit: contain;
}

.lightbox figcaption {
  padding-top: 14px;
  overflow: hidden;
  font-size: 12px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lightbox-close {
  position: fixed;
  top: 22px;
  right: var(--gutter);
  z-index: 2;
  padding: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
}

/* About */
.about-page {
  min-height: 100vh;
  padding: calc(var(--header-height) + clamp(35px, 6vw, 100px)) var(--gutter) clamp(70px, 10vw, 160px);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(120px, 16vw) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 120px);
  align-items: start;
}

.page-kicker {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.about-copy {
  max-width: 1120px;
}

.about-copy p {
  max-width: 52em;
  margin: 0 0 clamp(24px, 3.2vw, 50px);
  font-size: clamp(18px, 1.65vw, 27px);
  font-weight: 400;
  letter-spacing: -0.026em;
  line-height: 1.2;
}

.about-copy p:first-child {
  max-width: 52em;
  margin-bottom: clamp(58px, 8vw, 130px);
  font-size: clamp(27px, 2.475vw, 40.5px);
  letter-spacing: -0.055em;
  line-height: 0.96;
}


/* Prices */
.prices-page {
  min-height: 100vh;
  padding: calc(var(--header-height) + clamp(35px, 6vw, 100px)) var(--gutter) clamp(70px, 10vw, 160px);
  background: #fff;
}

.prices-content {
  width: min(100%, 1060px);
  margin: 0 auto;
  font-size: clamp(18px, 1.65vw, 27px);
  font-weight: 400;
  letter-spacing: -0.026em;
  line-height: 1.2;
}

.prices-content h1 {
  margin: 0 0 0.8em;
  font-size: 1.35em;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
}

.prices-content p {
  margin: 0;
}

.prices-intro {
  margin-bottom: 0.55em !important;
}

.prices-table-wrap {
  width: 100%;
  margin-top: 0.05em;
  overflow-x: auto;
}

.prices-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font: inherit;
}

.prices-table th,
.prices-table td {
  width: 33.333%;
  padding: 0.55em 0.7em;
  border: 1px solid var(--ink);
  font-weight: 400;
  line-height: 1.15;
  text-align: center;
  overflow-wrap: anywhere;
}

.prices-notes {
  margin-top: 0.95em !important;
}

.prices-contact-link {
  position: relative;
  display: inline-block;
  margin-top: 0.7em;
  white-space: nowrap;
}

.prices-contact-link::after {
  position: absolute;
  right: 0;
  bottom: -0.16em;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 800ms var(--ease);
}

.prices-contact-link.is-activating::after {
  transform: scaleX(1);
}

/* Contact */
.contact-page {
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  padding: calc(var(--header-height) + 30px) var(--gutter) clamp(30px, 5vw, 72px);
  background: #fff;
}

.social-list {
  display: grid;
  gap: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-list a {
  display: inline-block;
  font-size: clamp(42px, 8.3vw, 148px);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.88;
  transition: opacity 180ms ease, transform 320ms var(--ease);
}

.social-list a[href]:hover,
.social-list a[href]:focus-visible {
  transform: translateX(0.018em);
  opacity: 0.48;
}

.social-list a[aria-disabled="true"] {
  color: #c8c8c8;
  cursor: default;
}

.social-list a[data-social="email"] {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.copy-toast {
  position: fixed;
  top: clamp(14px, 2vw, 24px);
  left: 50%;
  z-index: 1000;
  margin: 0;
  padding: 0.62em 0.9em;
  background: #c7c7c7;
  color: var(--ink);
  font-size: var(--menu-font-size);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1;
  white-space: nowrap;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -8px);
  transition: opacity 180ms ease, transform 240ms var(--ease), visibility 0s linear 240ms;
}

.copy-toast.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
  transition: opacity 180ms ease, transform 240ms var(--ease), visibility 0s linear 0s;
}

.noscript-message {
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: 20px;
  margin: 0;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  text-align: center;
}

:focus-visible {
  outline: 1px solid currentColor;
}

@media (max-width: 900px) {
  :root {
    --header-height: 62px;
    --gutter: 16px;
    --menu-font-size: 16.8px;
  }

  .site-header {
    gap: 12px;
  }

  .menu-panel-inner,
  .primary-nav {
    gap: 13px;
  }

  .page-paintings {
    overflow: auto;
  }

  .paintings-page {
    height: auto;
    min-height: 100vh;
    padding-top: var(--header-height);
  }

  .gallery-status {
    position: absolute;
  }

  .gallery-track {
    display: block;
    height: auto;
    overflow: visible;
    scroll-snap-type: none;
  }

  .work-slide {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 22px var(--gutter) 72px;
    border-bottom: 1px solid var(--line);
  }

  .work-slide:last-child {
    border-bottom: 0;
  }

  .work-visual {
    display: block;
    width: 100%;
    height: auto;
  }

  .work-image-button,
  .work-image-button img {
    width: 100%;
    max-width: none;
    max-height: none;
  }

  .work-image-button img {
    height: auto;
  }

  .work-copy {
    max-width: 660px;
    padding: 24px 0 0;
  }

  .work-number {
    margin-bottom: 16px;
  }

  .work-copy h1 {
    max-width: 16ch;
    font-size: clamp(32px, 9vw, 68px);
  }

  .work-statement {
    font-size: 16px;
  }

  .gallery-controls {
    display: none !important;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .page-kicker {
    position: static;
  }

  .about-copy p,
  .prices-content {
    font-size: clamp(18px, 3.5vw, 24px);
  }

  .about-copy p:first-child {
    margin-bottom: 64px;
    font-size: clamp(27px, 5.25vw, 36px);
  }
}

@media (max-width: 560px) {
  :root {
    --header-height: 56px;
    --menu-font-size: 14.7px;
  }

  .site-header {
    gap: 7px;
    padding-right: 12px;
    padding-left: 12px;
    letter-spacing: -0.025em;
  }

  .menu-panel-inner,
  .primary-nav {
    gap: 8px;
  }

  .menu-toggle {
    gap: 0.18em;
  }

  .home-picture img {
    object-position: 50% 50%;
  }

  .work-slide {
    padding-top: 12px;
  }

  .lightbox figure {
    padding: 50px 10px 16px;
  }

  .lightbox figcaption {
    padding-right: 12px;
    padding-left: 12px;
  }

  .about-page,
  .prices-page {
    padding-top: calc(var(--header-height) + 46px);
  }

  .prices-table th,
  .prices-table td {
    padding-right: 0.35em;
    padding-left: 0.35em;
  }

  .contact-page {
    padding-bottom: 28px;
  }

  .social-list {
    gap: 8px;
  }

  .social-list a {
    font-size: clamp(42px, 17vw, 82px);
    line-height: 0.91;
  }
}

@media (max-width: 360px) {
  :root {
    --menu-font-size: 13.3px;
  }

  .menu-panel-inner,
  .primary-nav {
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.gallery-controls button:disabled {
  cursor: default;
  opacity: 0.28;
  transform: none;
}

.gallery-controls button:disabled:hover {
  background: rgba(255, 255, 255, 0.82);
  color: inherit;
}
