@font-face {
  font-family: "Cormorant";
  src: url("/fonts/cormorant.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/eb-garamond.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --gutter: 3vw;
  --display: "Cormorant", "Cormorant Garamond", Georgia, serif;
  --body: "EB Garamond", Garamond, Georgia, serif;
  --button: #a8a6a1;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: #000;
  font-family: var(--body);
  font-size: clamp(1.06rem, 0.95rem + 0.3vw, 1.22rem);
  font-weight: 500;
  line-height: 1.6;
}
img { display: block; width: 100%; height: auto; }
a { color: inherit; }
h2, .display, .site-title, .button { font-family: var(--display); }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 10; }

/* Header */
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 3.6rem var(--gutter);
}
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem 1.6rem;
  max-width: 24rem;
}
.site-header nav a {
  text-decoration: none;
  padding: .05rem 0;
  border-bottom: 1px solid transparent;
}
.site-header nav a:hover,
.site-header nav a[aria-current] { border-bottom-color: currentColor; }
.site-title {
  grid-column: 2;
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.menu-toggle { display: none; }

/* Shared section typography */
main section { padding: 0 var(--gutter); text-align: center; }
h2 {
  font-size: clamp(2.1rem, 1.5rem + 2vw, 3.1rem);
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 1.6rem;
}
main p { margin: 0 0 1rem; }

/* Paintings */
.work { padding-top: 4.5rem; padding-bottom: 6.5rem; }
.work:first-child { padding-top: 3rem; }
.images, .gallery { list-style: none; margin: 0; padding: 0; display: grid; }
.images {
  gap: 2.4vw;
  align-items: start;
  margin-top: 4rem;
}
.images.cols-3 { grid-template-columns: repeat(3, 1fr); }
.images.cols-2 { grid-template-columns: repeat(2, 1fr); max-width: 66%; margin-inline: auto; }
.images.cols-1 { grid-template-columns: 1fr; max-width: 40%; margin-inline: auto; }

.button {
  display: inline-block;
  margin-top: 6.5rem;
  padding: 1.2rem 2rem;
  background: var(--button);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.3;
  text-decoration: none;
  transition: opacity .15s;
}
.button:hover { opacity: .8; }

/* Exhibitions */
.exhibition { padding-top: 3rem; padding-bottom: 6rem; }
.gallery {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.7vw;
  margin-top: 12rem;
}
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; }

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4vw;
  padding: 4.5rem calc(var(--gutter) * 2) 6rem;
}
.contact .details p { margin-bottom: 1.1rem; line-height: 1.6; }
.contact a.plain { text-decoration: none; }
.contact a { text-underline-offset: .2em; text-decoration-thickness: 1px; }

/* Footer */
.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-items: center;
  padding: 2rem var(--gutter) 2.5rem;
  font-weight: 600;
}
.site-footer a { text-decoration: none; }
.social { display: flex; gap: .8rem; }
.social svg { width: 1.6rem; height: 1.6rem; fill: currentColor; display: block; }

/* Mobile */
@media (max-width: 700px) {
  :root { --gutter: 6vw; }
  .site-header { padding: 2.2rem var(--gutter); }
  .menu-toggle {
    display: block;
    grid-column: 1;
    justify-self: start;
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    position: relative;
    z-index: 6;
  }
  .menu-toggle span {
    display: block;
    height: 1px;
    background: #000;
    margin: .5rem 0;
    transition: transform .2s;
  }
  .menu-open .menu-toggle span:first-child { transform: translateY(.27rem) rotate(45deg); }
  .menu-open .menu-toggle span:last-child { transform: translateY(-.27rem) rotate(-45deg); }
  .site-header nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 5;
    max-width: none;
    background: #fff;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    font-family: var(--display);
    font-size: 2rem;
  }
  .menu-open .site-header nav { display: flex; }
  .menu-open { overflow: hidden; }

  .work { padding-top: 3rem; padding-bottom: 4.5rem; }
  .work:first-child { padding-top: 1.5rem; }
  .images { margin-top: 2rem; gap: 2rem; }
  .images.cols-3, .images.cols-2, .images.cols-1 { grid-template-columns: 1fr; max-width: none; }
  .button { margin-top: 2rem; display: block; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 3vw; margin-top: 3rem; }
  .contact { grid-template-columns: 1fr; padding: 1.5rem var(--gutter) 4rem; gap: 2.5rem; }
  .site-footer { grid-template-columns: 1fr; gap: 1rem; }
}
