:root {
  --paper: #f1efe9;
  --ink: #252521;
  --soft-ink: #6e6d66;
  --line: rgba(37, 37, 33, 0.18);
  --accent: #8d5e46;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  animation: page-in .7s cubic-bezier(.22, 1, .36, 1) forwards;
  transition: opacity .32s ease;
}
body.is-leaving { opacity: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px clamp(22px, 4vw, 64px);
  background: rgba(241, 239, 233, .92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.wordmark { font-family: "Instrument Serif", serif; font-size: 1.55rem; transition: color .25s ease; }
nav { display: flex; gap: 28px; }
nav a { position: relative; font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; transition: color .25s ease; }
nav a:hover, nav a:focus-visible { color: var(--accent); }
nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .3s ease; }
nav a:hover::after, nav a:focus-visible::after, nav a.nav-active::after { transform: scaleX(1); transform-origin: left; }

.intro {
  min-height: 78vh;
  padding: clamp(70px, 11vw, 160px) clamp(22px, 7vw, 112px) 70px;
  display: grid;
  grid-template-columns: 1fr minmax(250px, 360px);
  align-content: center;
  gap: 40px;
}
.eyebrow {
  margin: 0 0 26px;
  font-size: .67rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}
.intro > .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
h1, h2 { font-family: "Instrument Serif", serif; font-weight: 400; margin: 0; }
h1 { font-size: clamp(3.75rem, 8.5vw, 9rem); line-height: .84; letter-spacing: -.035em; }
h1 em { font-weight: 400; color: var(--accent); }
.intro-notes { align-self: end; padding-bottom: .75rem; }
.intro-notes p { max-width: 32ch; color: var(--soft-ink); line-height: 1.7; font-size: .94rem; }
.text-link { display: inline-flex; gap: 12px; margin-top: 26px; font-size: .72rem; text-transform: uppercase; letter-spacing: .15em; border-bottom: 1px solid currentColor; padding-bottom: 5px; }

.collection-index {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0 clamp(22px, 4vw, 64px);
}
.collection-index a { display: flex; align-items: center; gap: 18px; padding: 24px 0; font-family: "Instrument Serif", serif; font-size: clamp(1.3rem, 2vw, 2rem); transition: color .25s ease, padding-left .3s ease; }
.collection-index a + a { border-left: 1px solid var(--line); padding-left: clamp(22px, 4vw, 64px); }
.collection-index a:hover, .collection-index a:focus-visible { color: var(--accent); padding-left: 12px; }
.collection-index a + a:hover, .collection-index a + a:focus-visible { padding-left: calc(clamp(22px, 4vw, 64px) + 12px); }
.collection-index span { font-family: "DM Sans", sans-serif; font-size: .63rem; letter-spacing: .16em; color: var(--soft-ink); }

.collection { padding: 100px clamp(22px, 4vw, 64px) 140px; }
.collection + .collection { border-top: 1px solid var(--line); }
.collection-header { display: grid; grid-template-columns: 1fr minmax(260px, 440px); gap: 40px; margin-bottom: 76px; align-items: end; }
.collection-header h2, .about h2 { font-size: clamp(3rem, 6vw, 6.7rem); line-height: .9; }
.collection-copy { margin: 0; color: var(--soft-ink); font-size: .92rem; line-height: 1.7; max-width: 44ch; }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(44px, 6vw, 92px) clamp(20px, 3vw, 48px); align-items: start; }
.art-card {
  display: block;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: zoom-in;
  width: 100%;
}
.art-frame { display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; background: #e3e0d9; padding: clamp(10px, 1.4vw, 22px); }
#animals .art-frame, #people .art-frame { aspect-ratio: 3 / 4; }
.art-frame img { width: 100%; height: 100%; object-fit: contain; transition: transform .65s cubic-bezier(.2,.8,.2,1), filter .4s ease; }
.art-card:hover img, .art-card:focus-visible img { transform: scale(1.015); filter: contrast(1.03); }
.art-card:focus-visible { outline: 1px solid var(--accent); outline-offset: 8px; }
.art-meta { display: flex; justify-content: space-between; gap: 20px; padding-top: 14px; font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: var(--soft-ink); }
.art-meta span:first-child { color: var(--ink); }

footer { border-top: 1px solid var(--line); padding: 28px clamp(22px, 4vw, 64px); display: flex; justify-content: space-between; font-size: .66rem; text-transform: uppercase; letter-spacing: .15em; }

.about-main { min-height: calc(100vh - 81px); padding: clamp(70px, 9vw, 130px) clamp(22px, 7vw, 112px) 130px; }
.about-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .72fr); gap: clamp(48px, 8vw, 130px); align-items: end; border-bottom: 1px solid var(--line); padding-bottom: clamp(64px, 8vw, 110px); }
.about-heading { align-self: center; }
.about-heading .eyebrow { margin-bottom: clamp(30px, 5vw, 70px); }
.about-hero h1 { font-size: clamp(5rem, 11vw, 11rem); }
.about-portrait { margin: 0; }
.about-portrait-frame { aspect-ratio: 4 / 5; overflow: hidden; background: #dedbd4; }
.about-portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; filter: saturate(.72) contrast(1.03); transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .45s ease; }
.about-portrait:hover img { transform: scale(1.015); filter: saturate(.88) contrast(1.03); }
.about-portrait figcaption { display: flex; justify-content: space-between; gap: 18px; padding-top: 13px; color: var(--soft-ink); font-size: .64rem; text-transform: uppercase; letter-spacing: .14em; }
.about-portrait figcaption span:first-child { color: var(--ink); }
.about-copy { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(50px, 9vw, 150px); padding-top: clamp(60px, 8vw, 110px); }
.about-lead { margin: 0; font-family: "Instrument Serif", serif; font-size: clamp(2rem, 3.2vw, 3.4rem); line-height: 1.05; max-width: 15ch; }
.about-columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px; }
.about-columns p { margin: 0; color: var(--soft-ink); line-height: 1.8; }
.about-details { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(70px, 9vw, 130px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-details div { padding: 24px 0; }
.about-details div + div { border-left: 1px solid var(--line); padding-left: clamp(22px, 3vw, 48px); }
.about-details span { display: block; margin-bottom: 9px; color: var(--accent); font-size: .62rem; font-weight: 600; text-transform: uppercase; letter-spacing: .18em; }
.about-details p { margin: 0; font-family: "Instrument Serif", serif; font-size: clamp(1.15rem, 1.8vw, 1.65rem); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.22, 1, .36, 1), transform .8s cubic-bezier(.22, 1, .36, 1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.art-card.reveal:nth-child(2n) { transition-delay: .1s; }

.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 70px clamp(20px, 6vw, 90px) 32px;
  border: 0;
  background: rgba(27, 27, 25, .97);
  color: #f2f0ea;
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(0,0,0,.75); }
.lightbox[open] { display: grid; grid-template-columns: 50px 1fr 50px; align-items: center; animation: lightbox-in .3s ease both; }
.lightbox figure { margin: 0; height: 100%; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 145px); object-fit: contain; }
.lightbox figcaption { width: min(100%, 1100px); display: flex; justify-content: space-between; padding-top: 15px; font-size: .66rem; text-transform: uppercase; letter-spacing: .15em; }
.lightbox button { border: 0; background: transparent; color: inherit; cursor: pointer; }
.lightbox-close { position: absolute; top: 26px; right: 32px; font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; }
.lightbox-arrow { font-size: 1.5rem; padding: 20px 10px; opacity: .75; }
.lightbox-arrow:hover, .lightbox button:focus-visible { opacity: 1; color: #d2a083; }

@media (max-width: 760px) {
  .site-header { padding-block: 22px; }
  .intro { min-height: auto; padding-top: 100px; grid-template-columns: 1fr; }
  .intro-notes { padding-top: 10px; }
  .collection { padding-top: 72px; }
  .collection-index { grid-template-columns: 1fr; }
  .collection-index a + a { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .collection-index a + a:hover, .collection-index a + a:focus-visible { padding-left: 12px; }
  .collection-header { grid-template-columns: 1fr; margin-bottom: 54px; }
  .gallery { grid-template-columns: 1fr; gap: 54px; }
  .art-card { width: 100%; }
  .art-frame { aspect-ratio: 4 / 3; }
  .about-main { padding-top: 85px; }
  .about-hero { grid-template-columns: 1fr; gap: 48px; align-items: start; }
  .about-heading .eyebrow { margin-bottom: 30px; }
  .about-portrait { width: min(100%, 420px); }
  .about-copy { grid-template-columns: 1fr; }
  .about-columns { grid-template-columns: 1fr; }
  .about-details { grid-template-columns: 1fr; }
  .about-details div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .lightbox { padding-inline: 12px; }
  .lightbox[open] { grid-template-columns: 34px 1fr 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes lightbox-in { from { opacity: 0; transform: scale(.99); } to { opacity: 1; transform: scale(1); } }
