@font-face {
  font-family: "Poppins";
  src: url("/fonts/poppins-latin-300-normal.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/fonts/poppins-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #000;
  --paper: #fff;
  --stone: #eeedeb;
  --gutter: max(20px, 3vw);
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--gutter);
  top: 8px;
  background: var(--paper);
  padding: 4px 10px;
  z-index: 10;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 32px;
  padding: 22px var(--gutter);
}
.site-title {
  font-weight: 500;
  font-size: clamp(24px, 2.3vw, 33px);
  line-height: 1.2;
  text-decoration: none;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.site-nav a {
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { border-bottom-color: currentColor; }
.site-nav .ig { border: 0; display: inline-flex; }
.site-nav .ig svg { width: 20px; height: 20px; display: block; }

main { flex: 1; }

/* Gallery page */
body.gallery-page main,
body.gallery-page .site-header { background: var(--stone); }

.slideshow { padding: 40px var(--gutter) 80px; }
.slide { margin: 0 0 80px; }
.slide img {
  display: block;
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  margin: 0 auto;
}
.slide figcaption {
  font-size: 14px;
  text-align: center;
  margin-top: 24px;
}
.sold {
  display: inline-block;
  width: 0.75em;
  height: 0.75em;
  border-radius: 50%;
  background: #d62d20;
  margin-right: 0.45em;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.arrow, .caption-line { display: none; }

/* With JavaScript: one painting at a time */
.js .stage {
  position: relative;
  height: min(75vh, 900px);
}
.js .slide {
  display: none;
  margin: 0;
  height: 100%;
  align-items: center;
  justify-content: center;
}
.js .slide.active { display: flex; }
.js .slide img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}
.js .slide figcaption { display: none; }
.js .caption-line {
  display: block;
  font-size: 14px;
  text-align: center;
  margin: 40px 0 0;
  min-height: 1.8em;
}
.js .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 32px;
  border: 0;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.arrow:hover { background: #fff; }
.arrow svg { width: 10px; height: 18px; }
.arrow.prev { left: 20px; }
.arrow.next { right: 20px; }

/* Text pages */
.text-page {
  padding: 80px var(--gutter) 120px;
  max-width: calc(560px + 2 * var(--gutter));
}
.text-page h1 {
  font-weight: 500;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.35;
  margin: 0 0 32px;
}
.text-page p { font-size: 15px; margin: 0 0 1.2em; }
.contact-links { font-size: 19px; line-height: 1.5; }
.contact-links a { display: block; width: fit-content; }
.contact-links .email { text-decoration: none; }

/* Footer */
.site-footer {
  background: var(--paper);
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 110px var(--gutter) 140px;
  font-weight: 500;
  font-size: 19px;
}

@media (max-width: 640px) {
  .site-header { flex-direction: column; align-items: flex-start; }
  .site-nav { gap: 24px; }
  .slideshow { padding-top: 16px; }
  .js .stage, .js .slide { height: auto; }
  .js .slide img { height: auto; max-height: 70vh; }
  .js .caption-line { margin-top: 24px; }
  .arrow.prev { left: 4px; }
  .arrow.next { right: 4px; }
  .site-footer { padding: 64px var(--gutter) 80px; }
}
