:root {
  --bg: #faf8f2;
  --text: #171717;
  --muted: #6c6a64;
  --line: rgba(23, 23, 23, 0.12);
  --max-width: 1400px;
  --narrow-width: 760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

/* HEADER */

.site-header {
  padding: 18px 24px;
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.site-title,
.site-nav a,
.mobile-nav a,
.text-list a,
.back-link,
.print-button,
.contact-form button,
.menu-toggle {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a {
  font-size: 15px;
  font-weight: 400;
}

/* NAV LINKS */

.site-nav a,
.mobile-nav a,
.text-list a,
.back-link,
.info-block a,
.prose a {
  transition: opacity 0.2s ease;
}

.site-nav a:hover,
.mobile-nav a:hover,
.text-list a:hover,
.back-link:hover,
.info-block a:hover,
.prose a:hover {
  opacity: 0.55;
}

.site-nav a.is-active,
.mobile-nav a.is-active {
  font-weight: 600;
}

/* HAMBURGER */

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
}

/* MOBILE NAV */

.mobile-nav {
  display: none;
  max-width: var(--max-width);
  margin: 10px auto 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
}

.mobile-nav a {
  display: block;
  padding: 8px 0;
}

/* PAGE WRAP */

.page-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px 72px;
}

.page-wrap--narrow {
  max-width: var(--narrow-width);
}

/* HERO */

.hero-main {
  max-width: 900px;
  margin: 4vh auto 0;
  padding: 0 24px 40px;
}

.hero-link {
  display: block;
}

.hero-image {
  max-height: 78vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* TEXT LIST */

.text-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 48px;
}

/* GALLERY */

.gallery-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}

.gallery-header h1,
.print-notes h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.gallery-card {
  cursor: zoom-in;
}

.gallery-card img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* LIGHTBOX */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  z-index: 100;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-image {
  width: auto;
  max-width: min(1200px, 100%);
  max-height: 85vh;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 22px;
  color: #fff;
  background: transparent;
  border: 0;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

/* ABOUT + CONTACT */

.about-layout,
.contact-layout {
  display: grid;
  gap: 44px;
  padding-top: 46px;
}

.prose p,
.info-block p,
.print-meta p,
.print-notes p {
  margin: 0 0 16px;
}

.info-block,
.print-notes {
  color: var(--muted);
}

/* PRINTS */

.prints-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: start;
}

.prints-list {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.print-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 24px;
  align-items: start;
}

.print-item img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.print-meta h3 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 500;
}

.print-button,
.contact-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--text);
  padding: 10px 14px;
  margin-top: 10px;
  background: transparent;
  cursor: pointer;
}

.print-button[aria-disabled="true"] {
  opacity: 0.45;
  cursor: default;
}

/* CONTACT FORM */

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: transparent;
  padding: 12px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--text);
}

/* TABLET */

@media (max-width: 900px) {

  .prints-layout,
  .print-item {
    grid-template-columns: 1fr;
  }

  .print-notes {
    order: -1;
  }

}

/* MOBILE */

@media (max-width: 760px) {

  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-nav.is-open {
    display: block;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-main {
    margin-top: 2vh;
  }

  .site-header,
  .page-wrap,
  .hero-main {
    padding-left: 16px;
    padding-right: 16px;
  }

}
