* { box-sizing: border-box; }

:root {
  --ink: #28261f;
  --paper: #f3eee4;
  --paper-deep: #e8dfd0;
  --olive: #565b43;
  --olive-deep: #414632;
  --taupe: #9d8d77;
  --muted: #7f786e;
  --line: rgba(48, 43, 34, .22);
  --cream: #fbf7ef;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Lora", serif;
  font-weight: 400;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.42), transparent 22%),
    radial-gradient(circle at 80% 40%, rgba(141,126,97,.05), transparent 28%),
    linear-gradient(rgba(255,255,255,.14), rgba(255,255,255,.14));
}

img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }

.paper-section { position: relative; }
.paper-section::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image: repeating-linear-gradient(0deg, rgba(72,61,43,.045) 0 1px, transparent 1px 4px);
  mix-blend-mode: multiply;
}
.paper-section > * { position: relative; z-index: 1; }

.site-header,
.subpage-header {
  background: rgba(243,238,228,.98);
  color: var(--ink);
  padding: 16px clamp(22px, 4vw, 56px) 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 26px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 20;
}

.site-header .brand,
.subpage-header .brand { grid-column: 2; }
.site-header nav,
.subpage-header nav { grid-column: 3; justify-self: end; }

.brand-image {
  display: block;
  width: clamp(250px, 28vw, 390px);
}
.brand-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: multiply;
}

nav {
  display: flex;
  gap: clamp(15px, 2.2vw, 34px);
  font-family: "Montserrat", sans-serif;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  white-space: nowrap;
}
nav a { opacity: .84; padding-bottom: 5px; border-bottom: 1px solid transparent; }
nav a:hover,
nav a.active { opacity: 1; border-bottom-color: currentColor; }

.hero {
  min-height: 78vh;
  position: relative;
  overflow: hidden;
  background: #1b1b16;
}
.hero img {
  width: 100%;
  height: 78vh;
  min-height: 620px;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(22,22,17,.58), rgba(22,22,17,.18) 56%, rgba(22,22,17,.06));
}
.hero-copy {
  position: absolute;
  left: clamp(34px, 6.5vw, 105px);
  bottom: clamp(58px, 8vw, 110px);
  color: var(--cream);
  max-width: 750px;
}
.eyebrow, .kicker {
  font-family: "Montserrat", sans-serif;
  font-size: .67rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 600;
}
.hero h1, h2, h3,
.category-intro h1 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
}
.hero h1 {
  font-size: clamp(4rem, 7.6vw, 7.5rem);
  line-height: .82;
  letter-spacing: -.025em;
  margin: 16px 0 30px;
}
.text-link {
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  font-family: "Montserrat", sans-serif;
  font-size: .76rem;
  letter-spacing: .08em;
}

.intro {
  padding: 118px clamp(30px, 8vw, 130px) 126px;
  max-width: 1440px;
}
.intro::before {
  content: "";
  display: block;
  width: 84px;
  height: 1px;
  background: var(--taupe);
  margin-bottom: 26px;
}
.intro h2 {
  margin: 16px 0 0;
  font-size: clamp(3.4rem, 5.7vw, 6.4rem);
  line-height: .95;
  max-width: 1220px;
  letter-spacing: -.02em;
}

.portfolio-section {
  background: var(--paper-deep);
  color: var(--ink);
  padding: 94px clamp(24px, 4.4vw, 70px) 82px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin: 0 auto 42px;
  max-width: 1400px;
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(4rem, 6.5vw, 7rem);
  line-height: .8;
  font-style: italic;
  color: var(--olive-deep);
}

.gallery {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(14px, 1.8vw, 26px);
  align-items: start;
}
.gallery figure {
  margin: 0;
  grid-column: span 6;
  position: relative;
  overflow: visible;
  background: #d7cfbf;
  border: 1px solid rgba(74,64,49,.18);
  padding: 9px 9px 40px;
  box-shadow: 0 13px 32px rgba(52,44,34,.08);
}
.gallery figure.wide { grid-column: span 12; }
.gallery figure.tall { grid-column: span 5; transform: rotate(-.35deg); }
.gallery figure:nth-child(5) { grid-column: span 7; transform: rotate(.25deg); }
.gallery figure:nth-child(2) { transform: rotate(.2deg); }
.gallery figure:nth-child(3) { transform: rotate(-.25deg); }
.gallery img {
  height: 53vw;
  max-height: 720px;
  object-fit: cover;
  transition: transform .45s ease, filter .45s ease;
}
.gallery .wide img { height: 50vw; max-height: 690px; }
.gallery .tall img { height: 64vw; max-height: 800px; }
.gallery figure:hover img { transform: scale(1.012); filter: saturate(.96); }
.gallery figcaption {
  position: static;
  margin: 13px 4px 0;
  font-family: "Montserrat", sans-serif;
  font-size: .63rem;
  text-transform: uppercase;
  letter-spacing: .24em;
  color: var(--olive-deep);
  background: transparent;
  padding: 0;
}


/* Compact homepage preview: keep the category links easy to reach. */
.home-gallery {
  max-width: 1120px;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 26px);
}
.home-gallery figure,
.home-gallery figure:nth-child(2),
.home-gallery figure:nth-child(3) {
  grid-column: auto;
  transform: none;
  padding: 8px 8px 34px;
}
.home-gallery img {
  width: 100%;
  height: clamp(230px, 25vw, 360px);
  object-fit: cover;
}
.collections { padding-top: 58px; }

.collections {
  max-width: 1400px;
  margin: 0 auto;
  padding: 88px clamp(28px, 5vw, 70px) 100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.collection-card {
  min-height: 330px;
  padding: 32px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: rgba(251,247,239,.52);
  transition: transform .25s ease, background .25s ease;
}
.collection-card:hover { transform: translateY(-4px); background: #ece5d8; }
.collection-card.olive-card {
  background: var(--olive);
  color: var(--cream);
  border-color: transparent;
}
.collection-card.olive-card:hover { background: var(--olive-deep); }
.collection-card span {
  margin-bottom: auto;
  font-family: "Montserrat", sans-serif;
  font-size: .65rem;
  letter-spacing: .18em;
  color: var(--taupe);
}
.collection-card.olive-card span { color: #d8d1bf; }
.collection-card h3 {
  font-size: clamp(2.7rem, 4.2vw, 4.4rem);
  line-height: .9;
  margin: 0 0 16px;
}
.collection-card p {
  margin: 0;
  max-width: 280px;
  line-height: 1.65;
  font-size: .92rem;
}

.about {
  padding: 120px clamp(30px, 8vw, 130px);
  display: grid;
  grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr);
  gap: clamp(55px, 8vw, 115px);
  align-items: center;
  border-top: 1px solid var(--line);
}
.framed-photo {
  position: relative;
  padding: 10px;
  background: #efe7da;
  box-shadow: 0 18px 40px rgba(64,54,43,.13);
  transform: rotate(-.4deg);
}
.framed-photo::before {
  content: "";
  position: absolute;
  width: 86px;
  height: 27px;
  top: -13px;
  right: 34px;
  background: rgba(206,194,172,.72);
  transform: rotate(4deg);
  z-index: 2;
}
.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 34%;
}
.about-content { max-width: 790px; }
.about h2 {
  font-size: clamp(3.5rem, 5.7vw, 6.1rem);
  line-height: .9;
  margin: 16px 0 38px;
  color: var(--olive-deep);
}
.about-copy {
  font-size: 1rem;
  line-height: 1.9;
  max-width: 650px;
}
.about-copy p:first-child {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.9rem;
  font-style: italic;
  margin-top: 0;
  margin-bottom: 16px;
}

.contact {
  background: var(--olive-deep);
  color: var(--cream);
  padding: 104px clamp(30px, 8vw, 130px) 112px;
  border-top: 10px solid var(--paper-deep);
}
.contact h2 {
  font-size: clamp(4rem, 6.5vw, 7rem);
  line-height: .88;
  margin: 14px 0 24px;
}
.contact p:last-child {
  max-width: 650px;
  line-height: 1.8;
}
.contact a { border-bottom: 1px solid rgba(255,255,255,.72); }

footer,
.subpage-footer {
  background: var(--paper);
  color: var(--ink);
  padding: 27px clamp(24px, 4vw, 48px);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-family: "Montserrat", sans-serif;
  font-size: .68rem;
  letter-spacing: .06em;
  border-top: 1px solid var(--line);
}

/* --- Category gallery pages --- */
.gallery-page {
  background: var(--paper);
  color: var(--ink);
}
.subpage-header {
  position: relative;
  border-bottom: 1px solid var(--line);
}
.subpage-header .brand,
.subpage-header nav { color: var(--ink); }
.category-intro {
  padding: 96px clamp(30px, 8vw, 130px) 66px;
  max-width: 1320px;
}
.category-intro::before {
  content: "";
  display: block;
  width: 74px;
  height: 1px;
  background: var(--taupe);
  margin-bottom: 28px;
}
.category-intro h1 {
  font-size: clamp(5rem, 10vw, 10rem);
  line-height: .78;
  margin: 15px 0 28px;
  color: var(--olive-deep);
  font-style: italic;
}
.category-intro > p:last-of-type {
  max-width: 690px;
  line-height: 1.8;
  color: #6e685d;
  font-size: 1rem;
}
.category-intro-spacious {
  min-height: 64vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.dark-link {
  margin-top: 28px;
  color: var(--olive-deep);
  width: max-content;
}
.full-photo-gallery {
  padding: 10px clamp(18px, 4vw, 64px) 95px;
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 46px);
  align-items: start;
}
.photo-item {
  appearance: none;
  border: 1px solid var(--line);
  margin: 0;
  padding: 9px;
  background: #ede5d7;
  cursor: zoom-in;
  width: 100%;
  display: block;
  box-shadow: 0 13px 32px rgba(52,44,34,.07);
}
.photo-item:nth-child(3n+1) { transform: rotate(-.18deg); }
.photo-item:nth-child(3n+2) { transform: rotate(.16deg); }
.photo-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  transition: opacity .25s ease, transform .25s ease;
}
.photo-item:hover img { opacity: .9; transform: scale(1.004); }
.photo-item.portrait { grid-row: span 2; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(25,24,20,.93);
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 90vh; width: auto; height: auto; object-fit: contain; }
.lightbox-close {
  position: fixed;
  top: 18px;
  right: 24px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
}
.fixed-friendly { margin-top: auto; }

@media (max-width: 980px) {
  .site-header,
  .subpage-header {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
    padding-top: 10px;
  }
  .site-header .brand,
  .subpage-header .brand,
  .site-header nav,
  .subpage-header nav {
    grid-column: 1;
    justify-self: center;
  }
  .brand-image { width: min(360px, 86vw); }
  nav { flex-wrap: wrap; justify-content: center; }

  .about { grid-template-columns: 1fr; }
  .framed-photo { max-width: 560px; }
}

@media (max-width: 800px) {
  nav { gap: 14px; font-size: .61rem; }

  .hero, .hero img { height: 76vh; min-height: 570px; }
  .hero-copy { left: 25px; right: 25px; bottom: 45px; }
  .hero h1 { font-size: clamp(3.4rem, 16vw, 5rem); }

  .intro { padding: 82px 24px 88px; }
  .intro h2 { font-size: clamp(2.9rem, 13vw, 4.4rem); }

  .portfolio-section { padding: 70px 12px 46px; }
  .section-heading { padding: 0 10px; }
  .section-heading h2 { font-size: 4.6rem; }
  .gallery { gap: 14px; }
  .gallery figure,
  .gallery figure.wide,
  .gallery figure.tall,
  .gallery figure:nth-child(5) {
    grid-column: span 12;
    transform: none;
  }
  .gallery img,
  .gallery .wide img,
  .gallery .tall img { height: 75vw; max-height: none; }

  .collections { grid-template-columns: 1fr; padding: 64px 22px 76px; }
  .collection-card { min-height: 230px; }

  .about { gap: 42px; padding: 85px 24px; }
  .about h2 { margin-bottom: 28px; font-size: 3.8rem; }
  .contact { padding: 82px 24px 90px; }
  .contact h2 { font-size: 4.2rem; }
  footer,
  .subpage-footer { padding: 24px; flex-direction: column; }

  .category-intro { padding: 72px 24px 52px; }
  .category-intro h1 { font-size: 5.6rem; }
  .full-photo-gallery { grid-template-columns: 1fr; padding: 0 16px 70px; }
  .photo-item { transform: none !important; }
}

@media (max-width: 760px) {
  .home-gallery { grid-template-columns: 1fr; }
  .home-gallery figure,
  .home-gallery figure:nth-child(2),
  .home-gallery figure:nth-child(3) { grid-column: auto; }
  .home-gallery img { height: 62vw; max-height: 360px; }
}
