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

@font-face {
  font-family: "Spectral";
  src: url("/assets/Spectral-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Spectral";
  src: url("/assets/Spectral-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Parchment MF";
  src: url("/assets/ParchmentMF.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-size: 125%;
  font-family: "Spectral", Georgia, "Times New Roman", serif;
  line-height: 1.65;
  color: #27362e;
  background: #f5f2e9;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 { font-family: "Parchment MF", Papyrus, fantasy; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 2px solid #a8583c; outline-offset: 4px; }

.language-landing { display: grid; min-height: 100vh; place-items: center; padding: 2rem; }
.language-landing-content { width: min(100%, 32rem); text-align: center; }
.language-landing-logo { display: block; width: min(12rem, 60%); height: auto; margin: 0 auto 3rem; mix-blend-mode: multiply; }
.language-landing h1 { margin: 0 0 1.5rem; font-size: clamp(2rem, 7.5vw, 3rem); font-weight: 400; }
.language-landing-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.5rem; }
.language-landing-links a { color: #27362e; text-underline-offset: .25em; }
.language-landing-note { margin: 1.5rem 0 0; color: #747569; font-size: .85rem; }

.site-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  width: min(100% - 3rem, 90rem);
  margin-inline: auto;
  padding: 1.35rem 0 1.1rem;
  border-bottom: 1px solid #d8d3c8;
}

.brand { display: block; width: min(100%, 10rem); }
.brand img,
.footer-brand img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.header-content { grid-column: 2; grid-row: 1; display: flex; min-width: 0; flex-direction: column; align-items: center; text-align: center; }
.site-heading { margin: 0; font-size: inherit; font-weight: 400; }
.site-title { color: #27362e; font-size: clamp(3rem, 6vw, 6rem); line-height: 1.1; text-decoration: none; }
.artist-name { margin: .25rem 0 0; color: #6d7166; font-size: 1rem; letter-spacing: .04em; }
.social-links,
.main-navigation,
.language-switch { display: flex; align-items: center; gap: clamp(.7rem, 1.6vw, 1.5rem); }
.social-links a,
.main-navigation a,
.language-switch a { text-decoration: none; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 1.2rem; height: 1.2rem; color: #747569; }
.social-links a:hover { color: #a8583c; }
.social-links svg { display: block; width: 100%; height: 100%; }
.language-switch { grid-column: 3; grid-row: 1; justify-self: end; gap: .7rem; white-space: nowrap; }
.main-navigation { grid-column: 1 / -1; display: flex; min-width: 0; align-items: center; justify-content: center; flex-wrap: wrap; gap: .7rem clamp(.7rem, 1.6vw, 1.5rem); padding-top: .85rem; border-top: 1px solid #e2ded4; }
.main-navigation a { font-size: .92rem; }
.language-switch a { color: #27362e; font-size: .75rem; text-underline-offset: .2em; }
.language-switch a[aria-current="page"] { color: #a8583c; font-weight: 700; }

.work-section,
.exhibitions,
.site-footer { width: min(100% - 3rem, 90rem); margin-inline: auto; }
.eyebrow { margin: 0 0 1rem; color: #a8583c; font-size: .7rem; font-weight: 600; letter-spacing: .19em; text-transform: uppercase; }
.hero-art { margin: 0 0 clamp(3rem, 6vw, 6rem); }
.hero-art img { display: block; width: 100%; height: min(72vh, 50rem); object-fit: cover; object-position: center 48%; }

.work-section { padding-bottom: clamp(5rem, 10vw, 10rem); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.section-heading h2,
.exhibitions h2 { margin: 0; font-size: clamp(2.4rem, 6.25vw, 4.2rem); font-weight: 400; letter-spacing: -.045em; line-height: 1.05; }
.section-heading p { max-width: 28rem; margin: 0; color: #747569; font-size: .9rem; }
.work-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.8rem, 2vw, 1.8rem); }
.work-card { min-width: 0; }
.work-card-link { display: block; text-decoration: none; }
.work-card img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .5s ease; }
.work-card figure { overflow: hidden; margin: 0; background: #e4dfd4; }
.work-card-link:hover img { transform: scale(1.035); }
.work-card h3 { display: flex; min-height: 2.2em; align-items: end; justify-content: center; margin: 0 0 .2rem; font-size: clamp(1.6rem, 2.8vw, 2.4rem); font-weight: 400; line-height: 1.1; text-align: center; }
.work-card p { margin: 0; color: #747569; font-size: .8rem; }
.work-card-link:hover h3 { color: #a8583c; }
.product-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin-top: 1rem; }
.product-gallery figure { overflow: hidden; margin: 0; background: #e4dfd4; }
.product-gallery img { aspect-ratio: 1.15; }

.detail-page { width: min(100% - 3rem, 90rem); margin-inline: auto; }
.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
  padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 7vw, 6rem);
}
.detail-copy { max-width: 43rem; }
.category-intro { margin-inline: auto; padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 7vw, 6rem); }
.detail-copy h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(3rem, 7.5vw, 5.8rem);
  font-weight: 400;
  letter-spacing: -.06em;
  line-height: .98;
}
.detail-prose { color: #686b60; font-size: .94rem; }
.detail-prose p { margin: 0 0 1rem; }
.detail-prose .detail-lead { color: #27362e; font-size: 1.14rem; line-height: 1.6; }
.detail-art { margin: 0; background: #e7e2d8; }
.detail-art img {
  display: block;
  width: 100%;
  max-height: 48rem;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 3rem);
  width: min(100%, 72rem);
  margin: 0 auto 1.5rem;
}
.gallery-item { min-width: 0; }
.detail-gallery figure { overflow: hidden; margin: 0; background: #e4dfd4; }
.detail-gallery img { display: block; width: 100%; aspect-ratio: 1.15; object-fit: cover; }
.gallery-image-button { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.gallery-image-button:focus-visible { outline: 3px solid #a8583c; outline-offset: 4px; }
.button-link { display: inline-block; padding: .8rem 1.8rem; border: 1px solid #a8583c; background: #a8583c; color: #fff; font-size: .9rem; text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.button-link:hover { background: transparent; color: #a8583c; }
.gallery-actions { display: flex; justify-content: center; margin-top: .8rem; }
.gallery-button {
  position: relative;
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border: 1px solid #a8583c;
  border-radius: 50%;
  background: transparent;
  color: #a8583c;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.gallery-button--etsy { border-color: #27362e; color: #27362e; }
.gallery-button:hover,
.gallery-button:focus-visible { background: #a8583c; color: #fff; }
.gallery-button--etsy:hover,
.gallery-button--etsy:focus-visible { background: #27362e; }
.gallery-button-icon { width: 1.1rem; height: 1.1rem; stroke: currentColor; stroke-width: 1.5; }
.gallery-button-icon--etsy { width: auto; height: auto; font-family: Georgia, serif; font-size: .9rem; font-weight: 700; letter-spacing: -.06em; }
.gallery-button::after {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: calc(100% + .6rem);
  padding: .4rem .65rem;
  border-radius: 2px;
  background: #27362e;
  color: #fff;
  content: attr(data-label);
  font-size: .75rem;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(.2rem, -50%);
  transition: opacity .2s ease, transform .2s ease;
}
.gallery-button:hover::after,
.gallery-button:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
.gallery-button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.lightbox {
  position: relative;
  width: min(96vw, 90rem);
  height: min(96vh, 64rem);
  height: min(96dvh, 64rem);
  max-width: none;
  max-height: 96dvh;
  padding: clamp(3rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5rem) 1.5rem;
  overflow: hidden;
  border: 0;
  background: #171a17;
  color: #fff;
}
.lightbox::backdrop { background: rgb(10 12 10 / 88%); }
.lightbox-figure { display: grid; height: 100%; grid-template-rows: minmax(0, 1fr) auto auto; margin: 0; justify-items: center; align-content: center; }
.lightbox-image { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-caption { padding-top: .8rem; color: rgb(255 255 255 / 82%); font-size: .85rem; text-align: center; }
.lightbox-action { margin-top: .8rem; }
.lightbox-action[hidden] { display: none; }
.lightbox-close,
.lightbox-navigation {
  position: absolute;
  z-index: 1;
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 65%);
  border-radius: 50%;
  background: rgb(23 26 23 / 75%);
  color: #fff;
  font: inherit;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close { top: .8rem; right: .8rem; }
.lightbox-navigation { top: 50%; transform: translateY(-50%); }
.lightbox-previous { left: .8rem; }
.lightbox-next { right: .8rem; }
.lightbox-close:hover,
.lightbox-navigation:hover { background: #fff; color: #171a17; }
.lightbox-close:focus-visible,
.lightbox-navigation:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.lightbox-navigation[hidden] { display: none; }

.inquiry-page { width: min(100% - 3rem, 46rem); margin: 0 auto; padding: clamp(3rem, 8vw, 7rem) 0 clamp(5rem, 10vw, 9rem); }
.inquiry-page h1 { margin: 0 0 1rem; font-size: clamp(3rem, 7.5vw, 5rem); font-weight: 400; line-height: 1.05; }
.inquiry-intro { margin: 0 0 2rem; color: #686b60; }
.inquiry-form { display: grid; gap: 1.2rem; }
.inquiry-form label { display: grid; gap: .35rem; font-size: .85rem; }
.inquiry-form input,
.inquiry-form textarea { width: 100%; padding: .75rem .85rem; border: 1px solid #c9c4b8; border-radius: 0; background: #fffdf8; color: #27362e; font: inherit; }
.inquiry-form textarea { min-height: 10rem; resize: vertical; }
.inquiry-form input:focus,
.inquiry-form textarea:focus { outline: 2px solid #a8583c; outline-offset: 2px; }
.inquiry-form .button-link { justify-self: start; cursor: pointer; }
.inquiry-email { margin-top: 1rem; color: #686b60; font-size: .85rem; }

.exhibitions {
  display: grid;
  grid-template-columns: .75fr 1fr;
  align-items: center;
  gap: 3rem;
  margin-bottom: clamp(5rem, 10vw, 10rem);
  padding: clamp(2rem, 5vw, 5rem);
  background: #e9e6dc;
}
.exhibitions h2 { max-width: 23rem; }
.exhibitions-copy { max-width: 34rem; }
.exhibitions-copy p:not(.eyebrow) { margin: 0 0 1.5rem; color: #686b60; }
.text-link { display: inline-flex; align-items: center; gap: .7rem; color: #a8583c; font-size: .83rem; text-decoration-thickness: 1px; text-underline-offset: .3em; }

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
  gap: 2rem;
  width: auto;
  margin: 0;
  padding: clamp(3rem, 7vw, 6rem) max(1.5rem, calc((100vw - 90rem) / 2)) 1.5rem;
  color: #fff;
  background-color: #27362e;
  background-image: linear-gradient(90deg, rgb(20 28 23 / 78%), rgb(20 28 23 / 48%)), url("/assets/footer.jpg");
  background-position: center 55%;
  background-size: cover;
}
.footer-brand img { width: 7rem; margin-bottom: .8rem; filter: invert(1); mix-blend-mode: screen; }
.footer-brand p,
.copyright { margin: 0; color: rgb(255 255 255 / 78%); font-size: .72rem; }
.footer-contact { display: grid; justify-items: start; gap: .35rem; }
.footer-contact .eyebrow { margin-bottom: .3rem; color: #f0c5a6; }
.footer-contact address,
.footer-contact a { color: rgb(255 255 255 / 88%); font-size: .8rem; font-style: normal; }
.back-to-top { align-self: start; color: #fff; font-size: .75rem; text-decoration: none; text-underline-offset: .25em; }
.copyright { grid-column: 1 / -1; padding-top: 1rem; border-top: 1px solid rgb(255 255 255 / 35%); }

@media (max-width: 900px) {
  .site-header { grid-template-columns: minmax(5.5rem, .8fr) minmax(0, 2fr) minmax(0, .8fr); gap: 1.5rem; }
  .brand { width: min(100%, 7rem); }
  .social-links { flex-wrap: wrap; justify-content: center; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
}

@media (max-width: 620px) {
  .site-header,
  .work-section,
  .exhibitions,
  .detail-page { width: min(100% - 2rem, 90rem); }
  .site-header { grid-template-columns: 4rem minmax(0, 1fr); align-items: center; gap: .8rem; padding: 1rem 0; }
  .brand { grid-column: 1; grid-row: 1 / 3; width: 4rem; }
  .header-content { grid-column: 2; grid-row: 1; align-items: start; text-align: left; }
  .site-title { font-size: clamp(2.8rem, 12vw, 4rem); }
  .artist-name { margin-top: 0; }
  .social-links { justify-content: start; gap: .35rem .8rem; }
  .language-switch { grid-column: 2; grid-row: 2; justify-self: start; }
  .main-navigation { grid-column: 1 / -1; justify-content: start; gap: .55rem 1rem; padding-top: .75rem; }
  .main-navigation a { font-size: .82rem; }
  .detail-inquiry { width: min(100% - 2rem, 72rem); }
  .inquiry-page { width: min(100% - 2rem, 46rem); }
  .section-heading { align-items: start; flex-direction: column; gap: .8rem; }
  .work-grid { grid-template-columns: 1fr; }
  .work-grid { gap: 2rem .8rem; }
  .work-card h3 { min-height: 2.2em; font-size: clamp(1.35rem, 4.5vw, 1.8rem); }
  .work-card p { font-size: .75rem; }
  .exhibitions { grid-template-columns: 1fr; gap: 1.2rem; margin-bottom: 5rem; padding: 2rem 1.4rem; }
  .site-footer { grid-template-columns: 1fr auto; gap: 2rem 1rem; }
  .footer-brand img { width: 5.5rem; }
  .footer-contact { grid-column: 1 / -1; grid-row: 1; }
  .back-to-top { grid-column: 2; grid-row: 2; }
  .copyright { grid-column: 1 / -1; }
  .detail-hero { grid-template-columns: 1fr; gap: 2rem; padding: 3.5rem 0 3rem; }
  .detail-copy h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .detail-gallery { grid-template-columns: 1fr; gap: .8rem; margin-bottom: 5rem; }
  .lightbox { width: 100vw; height: 100vh; height: 100dvh; max-height: 100dvh; padding: 3.5rem .5rem 1rem; }
  .lightbox-close { top: .45rem; right: .45rem; }
  .lightbox-previous { left: .35rem; }
  .lightbox-next { right: .35rem; }
}
