:root {
  --soil: #241d16;
  --soil-light: #362c20;
  --sand: #e9dfc8;
  --sand-dim: #b8ab8c;
  --gold: #b98f3f;
  --sage: #7c8a6c;
  --focus: #d8b767;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--soil);
  color: var(--sand);
  font-family: 'Work Sans', sans-serif;
  font-weight: 300;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 92vh;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) brightness(0.85);
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24,19,13,0.15) 0%, rgba(24,19,13,0.1) 40%, rgba(24,19,13,0.88) 100%);
}

.hero__content {
  position: relative;
  padding: 0 6vw 8vh;
  max-width: 780px;
}

.hero__eyebrow {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--sand-dim);
  margin: 0 0 0.3rem;
}

.hero__title {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 0.98;
  margin: 0;
  color: var(--sand);
}

.hero__sub {
  font-family: 'Work Sans', sans-serif;
  font-weight: 300;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: var(--sand-dim);
  margin: 1rem 0 0;
  letter-spacing: 0.01em;
}

.hero__scroll {
  position: absolute;
  right: 6vw;
  bottom: 4vh;
  font-size: 1.4rem;
  color: var(--sand-dim);
  text-decoration: none;
  border: 1px solid rgba(233,223,200,0.35);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.hero__scroll:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* ---------- Intro ---------- */

.intro {
  max-width: 46ch;
  margin: 5rem auto 3rem;
  padding: 0 6vw;
  text-align: center;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.5;
  color: var(--sand-dim);
}

/* ---------- Gallery ---------- */

.galery {
  padding: 0 4vw 2rem;
  column-count: 4;
  column-gap: 10px;
}

@media (max-width: 1100px) {
  .galery { column-count: 3; }
}

@media (max-width: 720px) {
  .galery { column-count: 2; padding: 0 3vw 1rem; }
}

@media (max-width: 440px) {
  .galery { column-count: 1; }
}

.galery__item {
  break-inside: avoid;
  margin-bottom: 10px;
  cursor: zoom-in;
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--soil-light);
}

.galery__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.galery__item:hover img {
  transform: scale(1.035);
  filter: brightness(1.05);
}

/* ---------- Footer ---------- */

.footer {
  text-align: center;
  padding: 3rem 0 4rem;
  color: var(--sand-dim);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 12, 8, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

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

.lightbox__img {
  max-width: 88vw;
  max-height: 84vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: transparent;
  border: none;
  color: var(--sand);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  padding: 0.6rem;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.lightbox__close:hover,
.lightbox__nav:hover {
  opacity: 1;
  color: var(--gold);
}

.lightbox__close {
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.3rem;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  padding: 1rem 1.2rem;
}

.lightbox__nav--prev { left: 0.5rem; }
.lightbox__nav--next { right: 0.5rem; }

.lightbox__count {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--sand-dim);
  font-size: 0.85rem;
  font-family: 'Work Sans', sans-serif;
  letter-spacing: 0.03em;
}

@media (max-width: 600px) {
  .lightbox__nav { font-size: 2rem; padding: 0.7rem; }
  .lightbox__close { top: 1rem; right: 1rem; }
}
