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

@font-face {
  font-family: "Instrument Serif";
  src: url("assets/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f4eb;
  --ink: #25372b;
  --secondary: #4f584d;
  --accent: #8e482f;
  --line: #cfc7b9;
  --green: #26382b;
  --serif: "Instrument Serif", "Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 5.5rem);
  --spacing: clamp(4.5rem, 8vw, 7.75rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.65 var(--sans);
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
figure, dl, dd { margin: 0; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, dt {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1;
}
h2, .legal h1 {
  font-size: clamp(3.2rem, 5.8vw, 6.15rem);
  letter-spacing: -.055em;
}
h2 em { color: var(--accent); font-weight: 400; }
a { color: inherit; }
button { font: inherit; }
a:focus-visible, button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}
.wrap { width: min(100% - var(--gutter) * 2, 78rem); margin-inline: auto; }
.section { padding-block: var(--spacing); }
section[id] { scroll-margin-top: 1.25rem; }
.eyebrow {
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.muted { color: var(--secondary); }
.skip-link {
  position: absolute;
  z-index: 5;
  top: .5rem;
  left: .5rem;
  padding: .65rem 1rem;
  transform: translateY(-150%);
  background: var(--paper);
}
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.header-inner { min-height: 5.35rem; }
.wordmark {
  font: 400 clamp(1.7rem, 3vw, 2.35rem)/1 var(--serif);
  letter-spacing: -.035em;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav, .site-footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem clamp(1rem, 2.7vw, 2.55rem);
}
.site-nav a, .site-footer nav a {
  font-size: .87rem;
  text-decoration: none;
  text-underline-offset: .25em;
}
.site-nav a:hover, .site-footer nav a:hover { text-decoration: underline; }
.site-nav .nav-contact {
  border: 1px solid #858b7b;
  padding: .53rem 1.02rem;
}
.site-nav .nav-contact:hover { color: var(--paper); background: var(--green); text-decoration: none; }
.menu-button { display: none; }

.hero {
  display: grid;
  grid-template-columns: 1fr 1.04fr;
  align-items: center;
  gap: clamp(2.5rem, 7vw, 7rem);
  padding-block: clamp(2.5rem, 5.6vw, 5.5rem) clamp(4.5rem, 7.1vw, 7rem);
}
.hero-copy { padding-bottom: 1.5rem; }
.hero .eyebrow { color: var(--accent); margin-bottom: 1.5rem; }
.hero h1 {
  font-size: clamp(4.75rem, 8.5vw, 8.8rem);
  line-height: .82;
  letter-spacing: -.035em;
  margin-bottom: 1.85rem;
}
.hero h1 em { color: var(--accent); font-weight: 400; }
.hero-lead {
  font: 400 clamp(1.45rem, 2.25vw, 2.25rem)/1.08 var(--serif);
  margin-bottom: .8rem;
}
.hero-description {
  max-width: 28rem;
  color: var(--secondary);
  margin-bottom: 1.65rem;
}
.button {
  min-height: 3.1rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 1.3rem;
  padding: .66rem 1.1rem;
  font-size: .86rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}
.button span, .text-link span { font-size: 1.12em; }
.button-dark { background: var(--green); color: var(--paper); }
.button-dark:hover { background: #3d5140; }
.hero-mat {
  display: grid;
  place-items: center;
  background: #e9dfcb;
  background: radial-gradient(ellipse at 26% 16%, #eee6d6, #e6d9c0);
  padding: clamp(1rem, 3.25vw, 3.5rem);
}
.hero-mat img {
  width: min(100%, 23rem);
  box-shadow: 0 8px 24px #36281d27, 0 1px 3px #36281d22;
}
.hero-figure figcaption {
  margin-top: .8rem;
  color: var(--secondary);
  font-size: .75rem;
  letter-spacing: .035em;
}

.gallery-section { background: #eee8dd; border-block: 1px solid #e0d9ca; }
.section-heading {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  align-items: end;
  gap: 1.2rem 3rem;
  margin-bottom: 2.85rem;
}
.section-heading p { color: var(--secondary); max-width: 23rem; }
.gallery {
  --column-gap: clamp(1rem, 2.5vw, 2rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.65rem var(--column-gap);
}
.work-image {
  display: grid;
  place-items: center;
  position: relative;
  aspect-ratio: 1 / 1.12;
  padding: 7%;
  text-decoration: none;
}
.mat-sand { background: #e5d9c5; }
.mat-olive { background: #dcdcc9; }
.mat-rose { background: #e4d7cc; }
.work-image img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  transition: transform .25s ease;
}
.work-image:hover img { transform: scale(1.025); }
.work-open {
  position: absolute;
  display: grid;
  place-items: center;
  right: .65rem;
  bottom: .65rem;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--paper);
  border-radius: 50%;
  font-size: 1.05rem;
}
.work-image:hover .work-open { color: var(--paper); background: var(--green); }
.work figcaption { padding-top: .95rem; }
.work h3 { font-size: clamp(1.65rem, 2.55vw, 2.3rem); letter-spacing: -.035em; }
.work p { margin-top: .35rem; color: var(--secondary); font-size: .88rem; }
.work-wide { grid-column: 1 / -1; }
.work-wide .work-image {
  aspect-ratio: auto;
  padding: clamp(.6rem, 2vw, 1.6rem);
}
.work-wide img { height: auto; }

.about-section { background: var(--green); color: #f9f4e8; }
.about-layout, .exhibition-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2.5rem clamp(2.5rem, 8.6vw, 8.5rem);
}
.portrait { border: 1px solid #828775; padding: .7rem; }
.portrait img { width: 100%; }
.about-copy { max-width: 33rem; }
.about-copy .eyebrow { color: #e5c9a9; }
.about-copy h2, .exhibition-copy h2, .contact-section h2 { margin-bottom: 1.25rem; }
.about-copy .about-lead {
  font: 400 clamp(1.5rem, 2.4vw, 2.15rem)/1.15 var(--serif);
  color: #fff7e8;
}
.about-copy p { color: #e5e7da; }
.text-link {
  display: inline-flex;
  align-items: baseline;
  gap: .65rem;
  padding-block: .25rem;
  font-size: .9rem;
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: .35em;
}
.text-link:hover { text-decoration-thickness: 2px; }

.techniques {
  display: grid;
  grid-template-columns: 1fr 1.18fr;
  align-items: start;
  gap: 2.5rem clamp(2rem, 7vw, 7rem);
}
.technique-intro p { max-width: 25rem; margin-top: 1.3rem; color: var(--secondary); }
.technique-list { border-top: 1px solid var(--line); }
.technique-list div { border-bottom: 1px solid var(--line); padding: 1.25rem 0; }
.technique-list dt { font-size: clamp(1.65rem, 2.8vw, 2.4rem); letter-spacing: -.035em; }
.technique-list dd { margin-top: .45rem; color: var(--secondary); }

.exhibition-section { background: #ecdfd1; border-block: 1px solid #e0d4c4; }
.exhibition-copy p { max-width: 27rem; color: var(--secondary); }
.poster {
  display: grid;
  place-items: center;
  background: #e4d3c0;
  padding: clamp(1.5rem, 3.4vw, 3rem);
}
.poster a { display: block; width: min(100%, 17rem); }
.poster img { width: 100%; box-shadow: 0 4px 22px #372b2529; }

.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 1.6rem 3rem;
}
.contact-details { border-left: 1px solid var(--line); padding: .55rem 0 .55rem 1.75rem; }
.contact-details p { margin-bottom: .55rem; }
.contact-details p:last-child { margin-bottom: 0; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { padding-block: 1.55rem; }
.footer-inner .wordmark { font-size: 1.7rem; }
.legal { max-width: 50rem; }
.legal section + section { margin-top: 3rem; }
.legal h1, .legal h2 { margin-bottom: 1.15rem; }

.art-viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  padding: .75rem clamp(.75rem, 2vw, 1.5rem);
  border: 0;
  background: #202920;
  color: var(--paper);
  overflow: auto;
}
.art-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: .55rem; }
.art-viewer::backdrop { background: #202920; }
body:has(.art-viewer[open]) { overflow: hidden; }
.viewer-top, .viewer-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
}
.viewer-navigation { justify-content: center; }
.viewer-count { font-size: .82rem; margin: 0; }
.viewer-button {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #9aa08e;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 1.35rem;
  cursor: pointer;
}
.viewer-button:hover { color: var(--green); background: var(--paper); }
.viewer-figure { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: .65rem; text-align: center; }
.viewer-figure img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.viewer-figure figcaption { font: 400 1.6rem/1.1 var(--serif); }

@media (max-width: 60rem) {
  .hero { gap: clamp(1.7rem, 4vw, 3.6rem); }
  .hero h1 { font-size: clamp(4.1rem, 9.4vw, 6rem); }
  .section-heading { grid-template-columns: 1.35fr 1fr; }
}

@media (max-width: 46rem) {
  .header-inner { position: relative; min-height: 4.2rem; flex-wrap: wrap; padding-block: .85rem; }
  .site-nav { width: 100%; padding: .4rem 0 .75rem; gap: .8rem 1.1rem; }
  .menu-button {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    border: 1px solid #858b7b;
    background: transparent;
    color: var(--ink);
    padding: .45rem .7rem;
    font-size: .83rem;
    cursor: pointer;
  }
  .menu-icon { width: .95rem; height: .55rem; border-block: 1px solid currentColor; }
  .menu-button[aria-expanded="false"]:not([hidden]) + .site-nav { display: none; }
  .hero, .section-heading, .about-layout, .exhibition-layout, .techniques { grid-template-columns: 1fr; }
  .hero { gap: 2rem; }
  .hero-copy { padding-bottom: 0; }
  .hero .eyebrow { margin-bottom: 1.2rem; }
  .hero h1 { font-size: clamp(4.55rem, 14.3vw, 7.6rem); margin-bottom: 1.45rem; }
  .hero-mat { padding: 1.25rem; }
  .hero-mat img { width: min(100%, 24rem); }
  .section-heading { margin-bottom: 1.75rem; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-copy { order: -1; }
  .contact-section { align-items: start; }
}

@media (30rem < width <= 46rem) {
  .gallery > .work:nth-child(odd):has(+ .work-wide) {
    grid-column: 1 / -1;
    width: calc((100% - var(--column-gap)) / 2);
    justify-self: center;
  }
}

@media (max-width: 30rem) {
  .contact-section, .gallery { grid-template-columns: 1fr; }
  .gallery { gap: 2rem; }
  .contact-details { border-left: 0; border-top: 1px solid var(--line); padding: 1rem 0 0; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

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