:root {
  --paper: #f1efe7;
  --ink: #171714;
  --muted: #6f6c63;
  --line: rgba(23, 23, 20, 0.2);
  --accent: #d94d34;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

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

.grain {
  position: fixed;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
}

.site-header {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 3.5vw;
}

.brand {
  display: flex;
  width: min-content;
  flex-direction: column;
  font-size: 14px;
  line-height: 0.8;
  letter-spacing: -0.04em;
}

.brand-mark {
  font-family: var(--serif);
  font-size: 31px;
  font-style: italic;
}

.desktop-nav {
  display: flex;
  gap: 38px;
}

.desktop-nav a {
  position: relative;
  font-size: 13px;
}

.desktop-nav a::after {
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 250ms ease;
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-button {
  display: none;
  border: 0;
  background: transparent;
}

.hero {
  position: relative;
  min-height: calc(100vh - 89px);
  padding: 5.5vh 3.5vw 6vh;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 750px;
}

.eyebrow {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 35px;
  font-family: var(--serif);
  font-size: clamp(67px, 9.5vw, 150px);
  font-weight: 400;
  line-height: 0.77;
  letter-spacing: -0.055em;
}

h1 em {
  color: var(--accent);
  font-weight: 400;
}

.intro {
  max-width: 390px;
  margin: 0 0 30px 8.5vw;
  color: #403e39;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.25;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.text-link span {
  transition: transform 200ms ease;
}

.text-link:hover span {
  transform: translate(2px, 2px);
}

.hero-art {
  position: absolute;
  right: 4.8vw;
  bottom: 0;
  width: min(31vw, 460px);
  margin: 0;
}

.hero-image-wrap {
  overflow: hidden;
  aspect-ratio: 0.79;
  background: #d3cec1;
}

.hero-image-wrap img {
  height: 100%;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-art:hover img {
  transform: scale(1.025);
}

.hero-art figcaption {
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  font-size: 10px;
}

.hero-art figcaption span:last-child {
  color: var(--muted);
}

.edition {
  position: absolute;
  right: 37vw;
  bottom: 4vh;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: rotate(-90deg);
}

.gallery-section {
  padding: 130px 3.5vw 110px;
  background: #1d1d1a;
  color: var(--paper);
}

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

.section-heading h2,
.about h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(55px, 7vw, 104px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.gallery-section .eyebrow {
  color: #8d8a81;
}

.filters {
  display: flex;
  gap: 8px;
}

.filter {
  padding: 9px 16px;
  border: 1px solid rgba(241, 239, 231, 0.28);
  border-radius: 50px;
  color: #aaa69d;
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: 180ms ease;
}

.filter:hover,
.filter.active {
  border-color: var(--paper);
  color: #1d1d1a;
  background: var(--paper);
}

.art-grid {
  border-top: 1px solid rgba(241, 239, 231, 0.22);
}

.art-card {
  min-width: 0;
  padding: 34px 0;
  border-bottom: 1px solid rgba(241, 239, 231, 0.22);
  transition: opacity 250ms ease, transform 350ms ease;
}

.art-card.hidden {
  display: none;
}

.art-button {
  display: grid;
  grid-template-columns: minmax(260px, 39%) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(35px, 6vw, 100px);
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  text-align: left;
  background: none;
  cursor: pointer;
}

.art-image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #33332f;
}

.art-image img {
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1), filter 400ms ease;
}

.view-cue {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 11px;
  border-radius: 30px;
  color: #191916;
  background: var(--paper);
  font-size: 9px;
  opacity: 0;
  transform: translateY(8px);
  transition: 250ms ease;
}

.art-button:hover img {
  filter: saturate(1.05);
  transform: scale(1.025);
}

.art-button:hover .view-cue {
  opacity: 1;
  transform: translateY(0);
}

.art-meta {
  position: relative;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  padding: 8px 0 5px;
  font-size: 11px;
}

.art-meta strong {
  display: block;
  max-width: 650px;
  margin: auto 0 12px;
  font-family: var(--serif);
  font-size: clamp(42px, 5vw, 76px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.art-meta small {
  color: #77746c;
  font-size: 9px;
  letter-spacing: 0.06em;
}

.art-medium {
  color: #aaa69d;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.art-description {
  max-width: 470px;
  margin-top: 22px;
  color: #aaa69d;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.35;
}

.art-open {
  margin-top: auto;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.gallery-status {
  margin: 42px 0 0;
  color: #8d8a81;
  font-family: var(--serif);
  font-size: 19px;
}

.about {
  padding: 150px 3.5vw 170px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.55fr;
  gap: 10vw;
}

.about h2 {
  color: var(--accent);
}

.about-copy {
  max-width: 440px;
  padding-top: 14px;
}

.about-copy p {
  margin-bottom: 24px;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.35;
}

.about-copy .text-link {
  margin-top: 25px;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  padding: 35px 3.5vw;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

footer p {
  margin: 0;
}

footer p:last-child {
  text-align: right;
}

.footer-brand {
  color: var(--ink);
  text-transform: none;
}

.mobile-menu {
  position: fixed;
  z-index: 25;
  inset: 0;
  display: flex;
  visibility: hidden;
  flex-direction: column;
  justify-content: center;
  padding: 25vw 7vw 7vw;
  background: var(--accent);
  opacity: 0;
  transition: 300ms ease;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
}

.mobile-menu nav a {
  font-family: var(--serif);
  font-size: 16vw;
  line-height: 0.95;
}

.mobile-menu p {
  margin: auto 0 0;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.menu-open .mobile-menu {
  visibility: visible;
  opacity: 1;
}

.art-modal {
  width: min(1120px, calc(100% - 40px));
  max-width: none;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: var(--paper);
}

.art-modal::backdrop {
  background: rgba(17, 17, 15, 0.88);
  backdrop-filter: blur(6px);
}

.modal-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  min-height: 75vh;
}

.modal-image-wrap {
  min-height: 75vh;
  background: #d1cec5;
}

.modal-image-wrap img {
  height: 100%;
  max-height: 85vh;
  object-fit: contain;
}

.modal-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 55px;
}

.modal-copy h2 {
  margin: 0 0 15px;
  font-family: var(--serif);
  font-size: 58px;
  font-weight: 400;
  line-height: 0.92;
}

.modal-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 12px;
}

.modal-copy .text-link {
  align-self: flex-start;
  margin-top: 45px;
}

.modal-close {
  position: absolute;
  z-index: 2;
  top: 15px;
  right: 17px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
  font-size: 24px;
  font-weight: 300;
}

@media (max-width: 850px) {
  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: flex;
    width: 38px;
    height: 28px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 0;
    cursor: pointer;
  }

  .menu-button span {
    width: 100%;
    height: 1px;
    background: currentColor;
    transition: 250ms ease;
  }

  .menu-open .menu-button span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .menu-open .menu-button span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .hero {
    min-height: 0;
    padding-top: 60px;
    padding-bottom: 80px;
  }

  h1 {
    font-size: clamp(62px, 17vw, 105px);
  }

  .intro {
    margin-left: 0;
  }

  .hero-art {
    position: relative;
    right: auto;
    bottom: auto;
    width: 70vw;
    margin: 60px 0 0 auto;
  }

  .edition {
    display: none;
  }

  .gallery-section {
    padding-top: 90px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 35px;
  }

  .art-grid {
    display: block;
  }

  .art-button {
    grid-template-columns: minmax(220px, 42%) minmax(0, 1fr);
    gap: 35px;
  }

  .art-meta strong {
    font-size: clamp(36px, 6vw, 54px);
  }

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

@media (max-width: 600px) {
  .site-header {
    padding: 20px;
  }

  .hero {
    padding-right: 20px;
    padding-left: 20px;
  }

  h1 {
    line-height: 0.82;
  }

  .hero-art {
    width: 85vw;
  }

  .gallery-section,
  .about {
    padding-right: 20px;
    padding-left: 20px;
  }

  .filters {
    flex-wrap: wrap;
  }

  .art-card {
    width: 100%;
    margin: 0;
    padding: 24px 0 30px;
  }

  .art-button {
    display: block;
  }

  .art-image {
    aspect-ratio: 4 / 3;
  }

  .art-meta {
    min-height: 0;
    padding-top: 22px;
  }

  .art-meta strong {
    margin: 35px 0 10px;
    font-size: 44px;
  }

  .art-description {
    font-size: 17px;
  }

  .art-open {
    margin-top: 30px;
  }

  .about {
    padding-top: 110px;
    padding-bottom: 110px;
  }

  footer {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  footer p:nth-child(2) {
    display: none;
  }

  .modal-layout {
    display: block;
  }

  .modal-image-wrap {
    min-height: 0;
    height: 58vh;
  }

  .modal-copy {
    padding: 35px 25px 45px;
  }

  .modal-copy h2 {
    font-size: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
