:root {
  --gutter: 4vw;
  --max: 1500px;
  --text: #000;
  --muted: #a8a6a1;
  --panel: #dfe0e1;
  --font: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--text);
  font: 16px/1.8 var(--font);
}

main { flex: 1; }

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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


/* Header */

.site-header .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-top: 12px;
  padding-bottom: 12px;
}

.site-nav { display: flex; gap: 1.1em; line-height: 1.8; }
.site-nav a { text-decoration: none; }
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

.logo img { width: 118px; }

.social { display: flex; justify-content: flex-end; gap: 14px; }
.social a { display: block; width: 18px; height: 18px; }
.social svg { width: 100%; height: 100%; }

@media (max-width: 480px) {
  .site-nav { gap: .8em; font-size: 15px; }
  .logo img { width: 84px; }
  .social { gap: 10px; }
}


/* Footer */

.site-footer .wrap {
  padding-top: 48px;
  padding-bottom: 32px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
}


/* Shared type */

.page-title {
  margin: 0 0 1em;
  font-size: clamp(24px, 3vw, 31px);
  line-height: 1.2;
  font-weight: 700;
}

.center { text-align: center; }

.button {
  display: inline-block;
  padding: 20px 35px;
  border: 2px solid var(--muted);
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  transition: color .15s, border-color .15s;
}
.button:hover { color: var(--text); border-color: var(--text); }


/* Home gallery: justified rows, item width proportional to aspect ratio */

.gallery { display: flex; flex-direction: column; gap: 10px; margin-top: 56px; }
.gallery .row { display: flex; gap: 10px; }

.gallery figure {
  flex: var(--r) 1 0;
  margin: 0;
  min-width: 0;
}
.gallery button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.gallery img {
  width: 100%;
  aspect-ratio: var(--r);
  object-fit: cover;
}

@media (max-width: 600px) {
  .gallery, .gallery .row { gap: 6px; }
}


/* Lightbox */

.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, .97);
}
.lightbox::backdrop { background: rgba(255, 255, 255, .97); }
.lightbox img {
  position: absolute;
  inset: 5vh 8vw;
  width: 84vw;
  height: 90vh;
  max-width: none;
  object-fit: contain;
}
.lightbox button {
  position: absolute;
  padding: 12px;
  border: 0;
  background: none;
  font: 32px/1 var(--font);
  cursor: pointer;
}
.lightbox .close { top: 12px; right: 16px; }
.lightbox .prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 8px; top: 50%; transform: translateY(-50%); }


/* About */

.about {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  margin-top: 64px;
}
.about-photo {
  grid-column: 1 / 9;
  grid-row: 1 / 3;
}
.about-photo img { width: 100%; aspect-ratio: 664 / 545; object-fit: cover; }
.about-text {
  grid-column: 7 / 12;
  grid-row: 2;
  align-self: end;
  margin-bottom: -32px;
  padding: 28px 28px 32px;
  background: var(--panel);
  position: relative;
}
.about-text h1 { margin: 0 0 .7em; font-size: clamp(28px, 3.7vw, 38px); line-height: 1.2; }
.about-text p { margin: 0; }
.about-text a { font-weight: 700; text-underline-offset: 3px; }

@media (max-width: 767px) {
  .about { display: block; margin-top: 24px; }
  .about-text { margin: -40px 6vw 0; }
}


/* Contact */

.contact { padding: 112px 0 96px; }
.contact .page-title { margin-bottom: .6em; }
.contact-band { height: 540px; position: relative; }
.contact-band img { width: 100%; height: 100%; object-fit: cover; }
.contact-band::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .07); }


/* Prints */

.prints-title { margin-top: 28px; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 40px 24px;
}
.product-card { text-decoration: none; }
.product-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; margin-bottom: 12px; }
.product-card .name { display: block; line-height: 1.4; }
.product-card .price { display: block; }

.breadcrumb { margin: 28px 0 24px; font-size: 14px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.product img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.product h1 { margin: 0 0 .5em; font-size: clamp(28px, 3.1vw, 31px); line-height: 1.35; }
.product .price { margin: 0 0 24px; font-size: 14px; font-weight: 700; }
.product .button { width: 100%; max-width: 420px; text-align: center; }
.product .note { margin-top: 12px; font-size: 14px; color: #555; }

@media (max-width: 767px) {
  .product { grid-template-columns: 1fr; gap: 24px; }
}
