/* =========================================================================
   David Chambers Art: front end
   Mobile first. Breakpoints: 600px, 900px, 1200px.
   Motion is opt-in via JS ([data-reveal] gets .is-in) and off for reduced motion.
   ========================================================================= */

@font-face {
  font-family: "Literata";
  src: url("../fonts/Literata72pt-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #16202a;
  --ink-soft: #5b6673;
  --ink-faint: #8a939c;
  --paper: #f8f6f2;
  --paper-tint: #efebe4;
  --wall: #e9e5de;
  --line: rgba(22, 32, 42, 0.12);
  --sea: #2b5876;
  --sea-dark: #1d3e54;
  --sold: #9c2b22;
  --reserved: #a2680f;
  --white: #fff;

  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;

  --wrap: 1320px;
  --gutter: 16px;
  --radius: 2px;
  --space: clamp(64px, 9vw, 136px);
  --header-h: 76px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --shadow-art:
    0 1px 2px rgba(22, 32, 42, 0.08), 0 12px 32px -12px rgba(22, 32, 42, 0.28);
}

@media (min-width: 600px) {
  :root {
    --gutter: 32px;
  }
}
@media (min-width: 1200px) {
  :root {
    --gutter: 48px;
  }
}

/* Soft cross-fade between pages where the browser supports it. */
@view-transition {
  navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.35s;
  animation-timing-function: var(--ease);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--sea);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  transition: color 0.2s;
}
a:hover {
  color: var(--sea-dark);
}

::selection {
  background: var(--sea);
  color: var(--white);
}
:focus-visible {
  outline: 2px solid var(--sea);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}
h1 {
  font-size: clamp(2.5rem, 6vw, 4.75rem);
}
h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
}
h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

.eyebrow {
  margin: 0 0 14px;
  font: 600 0.72rem/1.4 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus {
  top: 8px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap--narrow {
  max-width: 860px;
}

/* Buttons and links ------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 1em 1.75em;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  font: 600 0.78rem/1.2 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.3s var(--ease),
    color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    transform 0.3s var(--ease);
}
.button:hover {
  background: var(--sea-dark);
  border-color: var(--sea-dark);
  color: var(--white);
}
.button:active {
  transform: translateY(1px);
}
.button__arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}
.button:hover .button__arrow {
  transform: translateX(4px);
}

.button--ghost {
  background: transparent;
  color: var(--ink);
}
.button--ghost:hover {
  background: var(--ink);
  color: var(--white);
}
.button--light {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}
.button--light:hover {
  background: var(--paper-tint);
  border-color: var(--paper-tint);
  color: var(--ink);
}
.button--outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}
.button--outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  color: var(--white);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 0.78rem/1.4 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px
    no-repeat;
  transition:
    background-size 0.4s var(--ease),
    color 0.2s;
}
.link-arrow span {
  transition: transform 0.3s var(--ease);
}
.link-arrow:hover {
  color: var(--sea);
  background-size: 40% 1px;
}
.link-arrow:hover span {
  transform: translateX(4px);
}

/* Header ----------------------------------------------------------------- */

/* The frosted background lives on ::before: a backdrop-filter on the header itself
   would trap the fixed full-screen mobile menu inside it. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: color 0.4s var(--ease);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(248, 246, 242, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    opacity 0.4s var(--ease),
    border-color 0.4s var(--ease);
}
.site-header.is-scrolled::before {
  border-bottom-color: var(--line);
}
.admin-bar .site-header {
  top: 46px;
}
@media (min-width: 783px) {
  .admin-bar .site-header {
    top: 32px;
  }
}

/* Over the homepage hero: transparent, light text, until scrolled. */
.has-hero .site-header {
  position: fixed;
  left: 0;
  right: 0;
}
.has-hero .site-header:not(.is-scrolled):not(.is-menu-open)::before {
  opacity: 0;
}
.has-hero .site-header:not(.is-scrolled):not(.is-menu-open) {
  color: var(--white);
}
.has-hero .site-header:not(.is-scrolled):not(.is-menu-open) .site-brand,
.has-hero .site-header:not(.is-scrolled):not(.is-menu-open) .site-brand__tag,
.has-hero .site-header:not(.is-scrolled):not(.is-menu-open) .site-nav__list a {
  color: var(--white);
}
.has-hero .site-header:not(.is-scrolled):not(.is-menu-open) .nav-toggle__bars,
.has-hero
  .site-header:not(.is-scrolled):not(.is-menu-open)
  .nav-toggle__bars::before,
.has-hero
  .site-header:not(.is-scrolled):not(.is-menu-open)
  .nav-toggle__bars::after {
  background: var(--white);
}
.has-hero .site-header:not(.is-scrolled):not(.is-menu-open) .site-brand__logo {
  filter: brightness(0) invert(1);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 24px;
}

.site-brand {
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  position: relative;
  z-index: 2;
}
.site-brand:hover {
  color: inherit;
}
.site-brand__name {
  font: 400 1.45rem/1.1 var(--serif);
  letter-spacing: -0.01em;
}
.site-brand__tag {
  font-size: 0.64rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 5px;
}
.site-brand__logo {
  max-height: 52px;
  width: auto;
  transition: filter 0.4s;
}

.nav-toggle {
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  position: relative;
  z-index: 2;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  transition:
    transform 0.35s var(--ease),
    background 0.2s;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle__bars::before {
  top: -7px;
}
.nav-toggle__bars::after {
  top: 7px;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent !important;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile: full-screen menu that fades in. */
.site-nav {
  position: fixed;
  inset: 0;
  background: var(--paper);
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s var(--ease),
    visibility 0s linear 0.35s;
}
.site-nav.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s var(--ease);
}
.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}
.site-nav__list li {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease);
}
.site-nav.is-open .site-nav__list li {
  opacity: 1;
  transform: none;
}
.site-nav.is-open .site-nav__list li:nth-child(2) {
  transition-delay: 0.05s;
}
.site-nav.is-open .site-nav__list li:nth-child(3) {
  transition-delay: 0.1s;
}
.site-nav.is-open .site-nav__list li:nth-child(4) {
  transition-delay: 0.15s;
}
.site-nav.is-open .site-nav__list li:nth-child(5) {
  transition-delay: 0.2s;
}
.site-nav.is-open .site-nav__list li:nth-child(6) {
  transition-delay: 0.25s;
}
.site-nav__list a {
  display: block;
  padding: 10px 0;
  color: var(--ink);
  text-decoration: none;
  font: 400 2.2rem/1.2 var(--serif);
  letter-spacing: -0.02em;
}
.site-nav__list .current-menu-item > a,
.site-nav__list .current_page_item > a,
.site-nav__list .current-menu-ancestor > a {
  color: var(--sea);
}
.admin-bar .site-nav {
  top: 46px;
}
.nav-locked {
  overflow: hidden;
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
  .site-nav {
    position: static;
    display: block;
    padding: 0;
    background: none;
    opacity: 1;
    visibility: visible;
    transition: none;
  }
  .site-nav__list {
    display: flex;
    gap: 36px;
  }
  .site-nav__list li {
    opacity: 1;
    transform: none;
  }
  .site-nav__list a {
    position: relative;
    padding: 8px 0;
    font: 600 0.74rem/1.2 var(--sans);
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }
  .site-nav__list a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease);
  }
  .site-nav__list a:hover::after,
  .site-nav__list .current-menu-item > a::after,
  .site-nav__list .current_page_item > a::after {
    transform: scaleX(1);
    transform-origin: left;
  }
  .site-nav__list .current-menu-item > a,
  .site-nav__list .current_page_item > a {
    color: inherit;
  }
}

/* Sections --------------------------------------------------------------- */

.section {
  padding-top: var(--space);
  padding-bottom: var(--space);
}
.section--tint {
  background: var(--paper-tint);
}
.section--flush {
  padding-bottom: 0;
}
.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.section__head h2 {
  margin: 0;
}

.page-head {
  padding-top: clamp(48px, 8vw, 112px);
  padding-bottom: clamp(32px, 4vw, 56px);
}
.page-head h1 {
  max-width: 14ch;
  margin-bottom: 0.3em;
}
.page-head__lede {
  max-width: 560px;
  color: var(--ink-soft);
  font-size: 1.1rem;
  margin-bottom: 36px;
}
.page-head__lede p:last-child {
  margin-bottom: 0;
}

.empty {
  padding: 40px 0 var(--space);
  color: var(--ink-soft);
}

.prose {
  font-size: 1.08rem;
}
.prose > :last-child {
  margin-bottom: 0;
}
.prose::after {
  content: "";
  display: table;
  clear: both;
}
.prose h2 {
  margin-top: 1.6em;
  clear: both;
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
}
.prose ul {
  padding-left: 1.2em;
}
.prose li {
  margin-bottom: 0.5em;
}
.prose figure {
  margin: 2em 0;
}
.prose figure img {
  width: 100%;
}
.prose figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
@media (min-width: 700px) {
  .prose .alignright {
    float: right;
    width: 42%;
    margin: 0.4em 0 1.4em 2.5em;
  }
  .prose .alignleft {
    float: left;
    width: 42%;
    margin: 0.4em 2.5em 1.4em 0;
  }
}
.prose blockquote {
  margin: 2em 0;
  padding: 4px 0 4px 28px;
  border-left: 2px solid var(--sea);
  font: 400 clamp(1.25rem, 2.2vw, 1.5rem)/1.45 var(--serif);
}
.prose blockquote cite {
  font: 400 0.85rem/1.4 var(--sans);
  font-style: normal;
  color: var(--ink-soft);
}

/* Hero ------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero--plain {
  min-height: 70svh;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: dc-hero-zoom 18s var(--ease) forwards;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 16, 22, 0.55) 0%, rgba(10, 16, 22, 0) 28%),
    linear-gradient(
      0deg,
      rgba(10, 16, 22, 0.82) 0%,
      rgba(10, 16, 22, 0.25) 55%,
      rgba(10, 16, 22, 0.1) 100%
    );
}
@media (max-width: 899px) {
  /* On phones the text covers most of the image, so darken it more evenly. */
  .hero__media::after {
    background: linear-gradient(
      0deg,
      rgba(10, 16, 22, 0.88) 0%,
      rgba(10, 16, 22, 0.55) 60%,
      rgba(10, 16, 22, 0.35) 100%
    );
  }
}
.hero__text {
  text-shadow: 0 1px 24px rgba(10, 16, 22, 0.35);
}
@keyframes dc-hero-zoom {
  to {
    transform: scale(1);
  }
}

.hero__text {
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: clamp(72px, 12vh, 136px);
}
.hero__eyebrow {
  color: rgba(255, 255, 255, 0.8);
}
.hero__heading {
  color: var(--white);
  max-width: 13ch;
  font-size: clamp(2.75rem, 7.5vw, 6rem);
  line-height: 1.02;
}
.hero__intro {
  max-width: 520px;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.85);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 0;
}

/* Staggered entrance, only when JS has marked the page ready. */
.js [data-hero-step] {
  opacity: 0;
  transform: translateY(24px);
}
.js.is-ready [data-hero-step] {
  opacity: 1;
  transform: none;
  transition:
    opacity 1s var(--ease),
    transform 1s var(--ease);
}
.js.is-ready [data-hero-step]:nth-child(2) {
  transition-delay: 0.12s;
}
.js.is-ready [data-hero-step]:nth-child(3) {
  transition-delay: 0.24s;
}
.js.is-ready [data-hero-step]:nth-child(4) {
  transition-delay: 0.36s;
}

.hero__cue {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 13px;
  display: none;
}
.hero__cue span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 2px;
  height: 8px;
  margin-left: -1px;
  background: var(--white);
  border-radius: 1px;
  animation: dc-cue 2s var(--ease-in-out) infinite;
}
@keyframes dc-cue {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
  }
  80%,
  100% {
    opacity: 0;
    transform: translateY(14px);
  }
}
@media (min-width: 900px) and (min-height: 700px) {
  .hero__cue {
    display: block;
  }
}

/* Collection filter (gallery pages) --------------------------------------- */

.collection-nav {
  border-bottom: 1px solid var(--line);
}
.collection-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
  mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.collection-nav__list::-webkit-scrollbar {
  display: none;
}
.chip {
  position: relative;
  display: block;
  padding: 14px 0;
  color: var(--ink-soft);
  font: 500 0.88rem/1.2 var(--sans);
  text-decoration: none;
  white-space: nowrap;
}
.chip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transition: transform 0.35s var(--ease);
}
.chip:hover {
  color: var(--ink);
}
.chip.is-current {
  color: var(--ink);
}
.chip.is-current::after {
  transform: scaleX(1);
}
.chip--muted {
  color: var(--ink-faint);
}

/* Painting grid: a gallery wall with natural proportions ------------------ */

.painting-grid {
  columns: 1;
  column-gap: clamp(24px, 3vw, 44px);
  padding-top: 8px;
}
@media (min-width: 600px) {
  .painting-grid {
    columns: 2;
  }
}
@media (min-width: 1000px) {
  .painting-grid {
    columns: 3;
  }
}
.painting-grid > * {
  break-inside: avoid;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.painting-grid--small {
  columns: 2;
  column-gap: 20px;
}
.painting-grid--small > * {
  margin-bottom: 32px;
}
@media (min-width: 900px) {
  .painting-grid--small {
    columns: 4;
    column-gap: 32px;
  }
}

#main > .wrap > .painting-grid,
.page-head + .wrap > .painting-grid {
  padding-top: clamp(32px, 4vw, 56px);
}

.painting-card__link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.painting-card__media {
  position: relative;
  overflow: hidden;
  background: var(--wall);
  box-shadow: var(--shadow-art);
  transition:
    box-shadow 0.5s var(--ease),
    transform 0.5s var(--ease);
}
.painting-card__media img {
  width: 100%;
  height: auto;
  transition:
    transform 1.2s var(--ease),
    filter 0.5s;
}
.painting-card__placeholder {
  aspect-ratio: 4 / 3;
}

.painting-card__view {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 8px 14px;
  background: rgba(248, 246, 242, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--ink);
  font: 600 0.68rem/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.4s var(--ease),
    transform 0.4s var(--ease);
}

@media (hover: hover) {
  .painting-card__link:hover .painting-card__media {
    transform: translateY(-4px);
    box-shadow:
      0 2px 4px rgba(22, 32, 42, 0.08),
      0 24px 48px -16px rgba(22, 32, 42, 0.38);
  }
  .painting-card__link:hover .painting-card__media img {
    transform: scale(1.04);
  }
  .painting-card__link:hover .painting-card__view {
    opacity: 1;
    transform: none;
  }
  .painting-card__link:hover .painting-card__title {
    color: var(--sea);
  }
}

.painting-card__body {
  padding-top: 18px;
}
.painting-card__title {
  font: 400 1.2rem/1.3 var(--serif);
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  transition: color 0.3s;
}
.painting-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 0;
  letter-spacing: 0.02em;
}
.painting-card__price {
  color: var(--ink);
  font-weight: 600;
}
.painting-card--sold .painting-card__price {
  color: var(--sold);
}
.painting-card--sold .painting-card__media img {
  filter: saturate(0.8);
}

.painting-grid--small .painting-card__title {
  font-size: 1rem;
}
.painting-grid--small .painting-card__body {
  padding-top: 12px;
}

.status-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 6px 10px;
  background: var(--sold);
  color: var(--white);
  font: 600 0.64rem/1 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.status-badge--reserved {
  background: var(--reserved);
}
.status-badge--large {
  top: 18px;
  left: 18px;
  font-size: 0.74rem;
  padding: 8px 14px;
}

/* Feature: about the artist ----------------------------------------------- */

.feature {
  background: var(--paper-tint);
  padding: var(--space) 0;
  overflow: hidden;
}
.feature__inner {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .feature__inner {
    grid-template-columns: 5fr 6fr;
    gap: clamp(48px, 7vw, 112px);
  }
}
.feature__media {
  position: relative;
}
.feature__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: var(--shadow-art);
}
@media (min-width: 900px) {
  .feature__media::before {
    content: "";
    position: absolute;
    inset: 28px -28px -28px 28px;
    border: 1px solid var(--line);
    z-index: -1;
  }
  .feature__media {
    isolation: isolate;
  }
}
.feature__text h2 {
  margin-bottom: 0.5em;
}
.feature__lede {
  font: 400 clamp(1.2rem, 1.9vw, 1.45rem)/1.5 var(--serif);
  color: var(--ink);
}
.feature__text p:not(.eyebrow):not(.feature__lede) {
  color: var(--ink-soft);
}
.feature__text .link-arrow {
  margin-top: 12px;
}

/* Collections rail -------------------------------------------------------- */

.rail-controls {
  display: none;
  gap: 8px;
}
@media (min-width: 900px) and (hover: hover) {
  .rail-controls {
    display: flex;
  }
}
.rail-btn {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
  transition:
    background 0.3s var(--ease),
    color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    opacity 0.3s;
}
.rail-btn:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.rail-btn:disabled {
  opacity: 0.3;
  pointer-events: none;
}

.collection-rail {
  list-style: none;
  margin: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 72%;
  gap: clamp(16px, 2vw, 28px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(
    var(--gutter),
    calc((100vw - var(--wrap)) / 2 + var(--gutter))
  );
  padding: 4px
    max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 24px;
  scrollbar-width: none;
}
.collection-rail::-webkit-scrollbar {
  display: none;
}
@media (min-width: 600px) {
  .collection-rail {
    grid-auto-columns: 40%;
  }
}
@media (min-width: 1000px) {
  .collection-rail {
    grid-auto-columns: calc(
      (min(100vw, var(--wrap)) - 2 * var(--gutter) - 3 * 28px) / 4
    );
  }
}

.collection-tile {
  scroll-snap-align: start;
}
.collection-tile a {
  display: block;
  text-decoration: none;
  color: var(--ink);
}
.collection-tile__media {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--wall);
  position: relative;
}
.collection-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.collection-tile__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 16, 22, 0.35), transparent 45%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
@media (hover: hover) {
  .collection-tile a:hover img {
    transform: scale(1.06);
  }
  .collection-tile a:hover .collection-tile__media::after {
    opacity: 1;
  }
  .collection-tile a:hover .collection-tile__name {
    color: var(--sea);
  }
}
.collection-tile__name {
  display: block;
  margin-top: 16px;
  font: 400 1.2rem/1.3 var(--serif);
  transition: color 0.3s;
}
.collection-tile__count {
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* Stats strip ------------------------------------------------------------- */

.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats__inner {
  display: grid;
  gap: 32px;
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(40px, 6vw, 72px);
}
@media (min-width: 900px) {
  .stats__inner {
    grid-template-columns: repeat(3, 1fr) auto;
    align-items: end;
    gap: 48px;
  }
}
.stat__num {
  display: block;
  font: 400 clamp(2.2rem, 4vw, 3.25rem)/1 var(--serif);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  display: block;
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.stats__link {
  justify-self: start;
}

/* Single painting --------------------------------------------------------- */

.painting {
  display: grid;
  gap: 40px;
  padding-top: clamp(32px, 5vw, 72px);
  padding-bottom: var(--space);
}
@media (min-width: 900px) {
  .painting {
    grid-template-columns: minmax(0, 7fr) minmax(320px, 4fr);
    gap: clamp(48px, 6vw, 96px);
    align-items: start;
  }
  .painting__info {
    position: sticky;
    top: calc(var(--header-h) + 32px);
  }
}

/* The painting "hangs" on a soft wall. */
.painting__media {
  background: var(--wall);
  padding: clamp(24px, 5vw, 72px);
}
.painting__main {
  margin: 0;
  position: relative;
}
.painting__main img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  box-shadow: var(--shadow-art);
  cursor: zoom-in;
  transition: opacity 0.35s var(--ease);
}
.painting__main img.is-swapping {
  opacity: 0;
}

.painting__thumbs {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.painting__thumbs a {
  display: block;
  width: 64px;
  height: 64px;
  opacity: 0.55;
  outline: 1px solid transparent;
  outline-offset: 3px;
  transition:
    opacity 0.3s,
    outline-color 0.3s;
}
.painting__thumbs a:hover {
  opacity: 0.9;
}
.painting__thumbs a[aria-current="true"] {
  opacity: 1;
  outline-color: var(--ink);
}
.painting__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.painting__collections {
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.painting__collections a {
  font: 600 0.7rem/1.4 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
}
.painting__collections a:hover {
  color: var(--sea);
}

.painting__title {
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  margin-bottom: 12px;
}
.painting__price {
  font: 400 1.6rem/1.3 var(--serif);
  margin-bottom: 32px;
}
.painting__price--sold {
  color: var(--sold);
}
.painting__price--reserved {
  color: var(--reserved);
}

.painting__details {
  margin: 0 0 28px;
  border-top: 1px solid var(--line);
}
.painting__details div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.painting__details dt {
  color: var(--ink-faint);
  font: 600 0.7rem/1.9 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.painting__details dd {
  margin: 0;
}

.painting__description {
  margin-bottom: 32px;
  color: var(--ink-soft);
}
.painting__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.painting__small {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-top: 8px;
}

/* Enquiry form ------------------------------------------------------------ */

.field {
  margin-bottom: 22px;
  position: relative;
}
.field label {
  display: block;
  margin-bottom: 4px;
  font: 600 0.7rem/1.4 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid rgba(22, 32, 42, 0.25);
  border-radius: 0;
  background: transparent;
  font: inherit;
  color: var(--ink);
  transition:
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.field textarea {
  resize: vertical;
  min-height: 120px;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
  box-shadow: 0 1px 0 0 var(--ink);
}
.field-row {
  display: grid;
  gap: 0 28px;
}
@media (min-width: 600px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}
.field--check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 8px;
}
.field--check input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  flex: none;
  accent-color: var(--ink);
}
.field--check label {
  font: 400 0.92rem/1.5 var(--sans);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-soft);
  margin: 0;
}
.field--hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.cf-turnstile {
  margin-bottom: 22px;
}
.enquiry__form .button {
  margin-top: 8px;
}

.notice {
  padding: 16px 20px;
  margin-bottom: 28px;
  border-left: 2px solid;
}
.notice--success {
  background: #e9f2ec;
  color: #1d5130;
}
.notice--error {
  background: #fbecea;
  color: #8a1f17;
}

/* Contact page ------------------------------------------------------------ */

.contact {
  display: grid;
  gap: 56px;
  padding-bottom: var(--space);
}
@media (min-width: 900px) {
  .contact {
    grid-template-columns: 1fr 1.3fr;
    gap: clamp(64px, 8vw, 128px);
  }
}
.contact h2 {
  font-size: 1.35rem;
  margin: 1.6em 0 0.4em;
}
.contact__details > .prose {
  font-size: 1.15rem;
  color: var(--ink-soft);
}
.contact address {
  font-style: normal;
}
.contact__form {
  background: var(--white);
  padding: clamp(28px, 4vw, 56px);
  box-shadow:
    0 1px 2px rgba(22, 32, 42, 0.05),
    0 20px 48px -28px rgba(22, 32, 42, 0.25);
}
.contact__form h2 {
  margin-top: 0;
}

/* Painting page enquiry band */
.section--tint .wrap--narrow {
  max-width: 760px;
}

/* Pages ------------------------------------------------------------------- */

/* .page { padding-bottom: var(--space); } */
.page .page-head {
  padding-left: 0;
  padding-right: 0;
}
.page__image {
  margin: 0 0 40px;
}

/* Pagination -------------------------------------------------------------- */

.pagination {
  margin: 16px 0 var(--space);
}
.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: 22px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.9rem;
  transition:
    background 0.3s var(--ease),
    color 0.3s var(--ease);
}
.pagination a.page-numbers:hover {
  background: var(--paper-tint);
}
.pagination .page-numbers.current {
  background: var(--ink);
  color: var(--white);
}

/* Call to action band ----------------------------------------------------- */

.cta-band {
  background: var(--sea-dark);
  color: var(--white);
}
.cta-band__inner {
  display: grid;
  gap: 28px;
  padding-top: clamp(56px, 8vw, 104px);
  padding-bottom: clamp(56px, 8vw, 104px);
}
@media (min-width: 900px) {
  .cta-band__inner {
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 64px;
  }
}
.cta-band .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}
.cta-band__heading {
  color: var(--white);
  margin-bottom: 0.25em;
}
.cta-band__text {
  color: rgba(255, 255, 255, 0.78);
  max-width: 460px;
  margin: 0;
}
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
  background: var(--ink);
  color: #b9c2cb;
  padding-top: clamp(56px, 7vw, 88px);
  font-size: 0.92rem;
}
.site-footer a {
  color: var(--white);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px
    no-repeat;
  transition: background-size 0.4s var(--ease);
}
.site-footer a:hover {
  background-size: 100% 1px;
}
.site-footer__inner {
  display: grid;
  gap: 40px;
}
@media (min-width: 900px) {
  .site-footer__inner {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}
.site-footer__brand {
  font: 400 1.5rem/1.2 var(--serif);
  color: var(--white);
}
.site-footer__brand span {
  display: block;
  font: 600 0.64rem/1.6 var(--sans);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #8d98a3;
  margin-top: 6px;
}
.site-footer__address {
  font-style: normal;
  margin-bottom: 8px;
}
.site-footer__heading {
  font: 600 0.68rem/1.4 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8d98a3;
  margin-bottom: 16px;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li {
  margin-bottom: 10px;
}
.site-footer__social {
  margin-top: 16px !important;
  display: flex;
  gap: 18px;
}
.site-footer__legal {
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 24px;
  padding-bottom: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: #7f8a95;
}

/* Lightbox ---------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 14, 18, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: dc-fade 0.35s var(--ease);
}
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  animation: dc-zoom-in 0.5s var(--ease);
}
.lightbox.is-closing {
  animation: dc-fade 0.25s var(--ease) reverse forwards;
}
.lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: var(--white);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.3s,
    border-color 0.3s;
}
.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}
@keyframes dc-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes dc-zoom-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Scroll reveal ----------------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal],
  .js [data-hero-step] {
    opacity: 1;
    transform: none;
  }
}

/* If the script never runs, show everything rather than leave it hidden. */
.js.reveal-fallback [data-reveal],
.js.reveal-fallback [data-hero-step] {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
}
