:root {
  color-scheme: light;
  --paper: #f5f2eb;
  --paper-deep: #ebe6db;
  --ink: #252a26;
  --muted: #74776f;
  --green: #526b5c;
  --line: rgba(37, 42, 38, 0.14);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  padding-bottom: 80px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding: 0 7.5%;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 43px;
  height: 43px;
  color: var(--green);
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: -0.12em;
}

.brand-mark::before {
  position: absolute;
  top: 8px;
  right: 4px;
  width: 17px;
  height: 2px;
  background: #b78362;
  content: "";
  transform: rotate(-28deg);
}

.brand-mark::after {
  position: absolute;
  right: 5px;
  bottom: 5px;
  left: 5px;
  height: 1px;
  background: var(--green);
  content: "";
}

.brand-name {
  font-size: 12px;
  letter-spacing: 0.04em;
}

.brand-name strong {
  font-weight: 600;
}

.main-nav {
  display: flex;
  gap: 36px;
}

.main-nav a,
.back-to-top {
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
  transition: color 180ms ease;
}

.main-nav a:hover,
.back-to-top:hover {
  color: var(--green);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  align-items: center;
  gap: 8%;
  min-height: 610px;
  padding: 78px 10.5% 92px;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 480px;
  padding-bottom: 8px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--green);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow::before {
  width: 24px;
  height: 1px;
  background: #b78362;
  content: "";
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
}

.hero h1 {
  margin: 26px 0 20px;
  font-size: clamp(44px, 5.5vw, 70px);
  letter-spacing: -0.04em;
  line-height: 1.13;
}

.hero h1 em {
  color: var(--green);
  font-weight: 500;
}

.hero-intro {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  margin-top: 32px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--green);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.text-link span {
  font-size: 16px;
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translateY(3px);
}

.hero-note {
  margin: 35px 0 0;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.hero-artwork {
  position: relative;
  display: flex;
  flex-direction: column;
  height: min(410px, 39vw);
  min-height: 290px;
  background: var(--paper-deep);
  text-decoration: none;
}

.hero-artwork-visual {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.hero-artwork::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(37, 42, 38, 0.08);
  content: "";
  pointer-events: none;
}

.hero-artwork img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1200ms ease;
}

.hero-artwork img.is-visible {
  opacity: 1;
}

.hero-caption {
  align-self: stretch;
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 17px 21px;
  background: var(--paper);
}

.hero-caption span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-caption strong {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
}

.hero-caption .hero-artwork-year {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.hero-artwork-year[hidden] {
  display: none;
}

.hero-index {
  position: absolute;
  right: 7.5%;
  bottom: 42px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.gallery-section {
  padding: 86px 7.5% 108px;
  background: #eeebe3;
}

.photography-section {
  padding: 86px 7.5% 108px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 35px;
}

.section-heading h2,
.about-copy h2 {
  margin: 10px 0 0;
  font-size: clamp(32px, 4vw, 46px);
  letter-spacing: -0.03em;
}

.gallery-count {
  margin: 0 1px 7px 0;
  color: var(--muted);
  font-size: 11px;
}

.gallery-filters {
  display: flex;
  align-items: end;
  gap: 16px;
  margin: -10px 0 30px;
}

.gallery-filters label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.gallery-filters select {
  min-width: 190px;
  padding: 10px 32px 10px 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
}

.filter-reset {
  min-height: 37px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--green);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
}

.artwork-card[hidden],
.gallery-empty[hidden] {
  display: none;
}

.gallery-empty {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.artwork-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 24px;
}

.photography-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 24px;
}

.photography-card {
  min-width: 0;
  margin: 0;
}

.photography-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--paper-deep);
  object-fit: contain;
}

.artwork-card {
  min-width: 0;
  margin: 0;
}

.artwork-open {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--paper-deep);
  cursor: zoom-in;
}

.artwork-open img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  transition: transform 400ms ease, opacity 300ms ease;
}

.artwork-open:hover img {
  transform: scale(1.035);
  opacity: 0.93;
}

.artwork-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 1px 0;
}

.artwork-caption strong {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
}

.artwork-caption span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.artwork-caption span:empty {
  display: none;
}

.biography-section {
  padding: 100px 15% 110px;
  border-top: 1px solid var(--line);
}

.biography-copy {
  max-width: 780px;
  margin: 0 auto;
}

.biography-copy h2 {
  margin: 12px 0 28px;
  font-size: clamp(36px, 4vw, 48px);
  letter-spacing: -0.03em;
}

.biography-copy > p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.about-section {
  position: relative;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 8%;
  padding: 106px 15% 116px;
  overflow: hidden;
}

.about-label {
  padding-top: 17px;
}

.about-line {
  display: block;
  width: 38px;
  height: 1px;
  margin-bottom: 19px;
  background: #b78362;
}

.about-copy {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.about-copy h2 {
  max-width: 480px;
  margin-top: 0;
}

.about-copy > p:not(.no-sales) {
  max-width: 480px;
  margin: 21px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.no-sales {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin: 27px 0 0;
  padding: 12px 15px;
  border: 1px solid var(--line);
  color: var(--green);
  font-size: 11px;
  line-height: 1.6;
}

.no-sales span {
  color: #b78362;
}

.about-ornament {
  position: absolute;
  right: 4%;
  bottom: -76px;
  color: rgba(82, 107, 92, 0.055);
  font-family: var(--serif);
  font-size: 280px;
  line-height: 1;
  pointer-events: none;
}

.site-footer {
  position: fixed;
  z-index: 5;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  padding: 0 7.5%;
  border-top: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 -8px 24px rgba(37, 42, 38, 0.04);
}

.site-footer p {
  color: var(--muted);
  font-size: 10px;
}

.site-visit-counter {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 20px;
}

.site-visit-counter[hidden] {
  display: none;
}

.site-visit-counter img {
  display: block;
  width: 62px;
  height: 20px;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 13px;
  text-decoration: none;
}

.lightbox {
  position: fixed;
  width: min(1120px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100% - 32px);
  padding: 50px 70px 64px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: #1e211f;
  color: #f5f2eb;
}

.lightbox[open] {
  display: grid;
}

.lightbox::backdrop {
  background: rgba(13, 16, 14, 0.88);
  backdrop-filter: blur(4px);
}

.lightbox-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center;
  gap: 28px;
  min-width: 0;
}

.lightbox[open].lightbox--artwork-large {
  display: block;
  width: min(1500px, calc(100% - 32px));
  height: min-content;
  max-height: calc(100vh - 32px);
  padding: 58px 70px 50px;
}

.lightbox--artwork-large .lightbox-content {
  display: block;
  width: 100%;
  height: auto;
}

.lightbox--artwork-large .lightbox-figure {
  height: auto;
  grid-template-rows: auto auto;
}

.lightbox--artwork-large .lightbox-image {
  height: auto;
  max-height: min(78vh, 850px);
}

.lightbox--artwork-large .lightbox-details,
.lightbox--artwork-large .lightbox-help {
  display: none;
}

.lightbox-figure {
  display: grid;
  place-items: center;
  gap: 15px;
  margin: 0;
}

.lightbox-image {
  display: block;
  width: 100%;
  max-height: min(72vh, 720px);
  object-fit: contain;
}

.lightbox-figure figcaption {
  color: #e3ded3;
  font-family: var(--serif);
  font-size: 16px;
  text-align: center;
}

.lightbox-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  margin: 0;
}

.lightbox-details dt {
  margin-top: 10px;
  color: rgba(245, 242, 235, 0.58);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lightbox-details dd {
  margin: 0;
  color: #f5f2eb;
  font-size: 13px;
  line-height: 1.5;
}

.lightbox-close,
.lightbox-arrow,
.lightbox-expand {
  position: absolute;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.lightbox-close {
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  font-size: 25px;
  font-weight: 300;
}

.lightbox-expand {
  top: 15px;
  right: 60px;
  width: 36px;
  height: 36px;
  font-size: 21px;
}

.lightbox-arrow {
  top: 50%;
  width: 42px;
  height: 42px;
  font-size: 20px;
  transform: translateY(-50%);
}

.lightbox-previous {
  left: 14px;
}

.lightbox-next {
  right: 14px;
}

.lightbox-help {
  position: absolute;
  right: 0;
  bottom: 16px;
  left: 0;
  margin: 0;
  color: rgba(245, 242, 235, 0.57);
  font-size: 10px;
  text-align: center;
}

@media (max-width: 760px) {
  .site-header {
    min-height: 72px;
    padding: 0 6%;
  }

  .main-nav {
    gap: 18px;
  }

  .main-nav a {
    font-size: 11px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 35px;
    min-height: 0;
    padding: 68px 8% 90px;
  }

  .hero-copy {
    max-width: 540px;
  }

  .hero h1 {
    font-size: clamp(43px, 9vw, 62px);
  }

  .hero-artwork {
    height: min(65vw, 390px);
    min-height: 245px;
  }

  .hero-index {
    right: 8%;
    bottom: 38px;
  }

  .gallery-section {
    padding: 68px 6% 78px;
  }

  .photography-section {
    padding: 68px 6% 78px;
  }

  .gallery-filters {
    flex-wrap: wrap;
    gap: 12px;
  }

  .gallery-filters select {
    min-width: min(190px, 40vw);
  }

  .artwork-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px 15px;
  }

  .photography-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px 15px;
  }

  .about-section {
    grid-template-columns: 1fr;
    gap: 23px;
    padding: 72px 8% 82px;
  }

  .biography-section {
    padding: 72px 8% 82px;
  }

  .about-label {
    padding-top: 0;
  }

  .about-ornament {
    right: -30px;
    bottom: -57px;
    font-size: 190px;
  }

  .site-footer {
    flex-wrap: wrap;
    gap: 0 20px;
    min-height: 82px;
    padding: 15px 6%;
  }

  body {
    padding-bottom: 82px;
  }

  .site-footer p {
    display: none;
  }

  .lightbox {
    width: calc(100% - 20px);
    padding: 48px 43px 59px;
  }

  .lightbox-content {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .lightbox-image {
    max-height: 55vh;
  }

  .lightbox-details {
    grid-template-columns: minmax(80px, 0.6fr) minmax(0, 1fr);
    gap: 5px 12px;
  }

  .lightbox-details dt {
    margin-top: 4px;
  }

  .lightbox-arrow {
    width: 34px;
    height: 34px;
  }

  .lightbox-previous {
    left: 5px;
  }

  .lightbox-next {
    right: 5px;
  }

  .lightbox-expand {
    right: 50px;
  }

  .lightbox--artwork-large {
    width: calc(100% - 20px);
    padding: 54px 40px 42px;
  }

  .lightbox--artwork-large .lightbox-image {
    max-height: 76vh;
  }
}

@media (max-width: 420px) {
  .site-header {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .brand-name {
    font-size: 10px;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 37px;
    height: 43px;
  }

  .main-nav {
    width: 100%;
    justify-content: center;
    gap: clamp(8px, 3vw, 12px);
  }

  .main-nav a {
    font-size: 10px;
  }

  .section-heading {
    align-items: start;
  }

  .gallery-count {
    margin-top: 15px;
    font-size: 9px;
  }

  .photography-grid {
    grid-template-columns: 1fr;
  }

  .gallery-filters {
    align-items: stretch;
  }

  .gallery-filters label {
    flex: 1 1 100%;
  }

  .gallery-filters select {
    width: 100%;
  }

  .artwork-caption strong {
    font-size: 13px;
  }

  .artwork-caption span {
    font-size: 9px;
  }
}

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