:root {
  --color-bg: #9f9a61;
  --color-text: #1b1912;
  --color-accent: #59391b;
}

html {
  background-color: var(--color-bg);
  overflow-x: hidden;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
  position: relative;
  font-size: 1.05rem;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
}

h1, h2, h3 {
  font-family: 'Fraunces', serif;
}

h1 {
  color: var(--color-text);
}

h2, h3 {
  color: var(--color-accent);
}

h2, h3, p, ul {
  max-width: 700px;
}

h3 {
  margin-top: 2.5rem;
}

p, ul {
  line-height: 1.6;
}

.btn {
  display: inline-block;
  background-color: var(--color-accent);
  color: var(--color-bg);
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  position: relative;
}

nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

footer {
  margin-top: 4rem;
  padding: 1.5rem 0;
  border-top: 2px solid var(--color-accent);
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

footer p {
  margin: 0;
}

.hero {
  position: relative;
  padding: 6rem 2rem 10rem;
}

.shape {
  position: absolute;
  border-radius: 50%;
}

.shape-1 {
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background-color: #e3d0ad;
  opacity: 0.4;
}

.shape-2 {
  bottom: -140px;
  left: 5%;
  width: 200px;
  height: 200px;
  background-color: #c9d6b0;
  opacity: 0.4;
}

.shape-3 {
  bottom: -110px;
  left: 25%;
  width: 140px;
  height: 140px;
  background-color: #e8c9a8;
  opacity: 0.4;
}

figure {
  margin: 0;
}

.portfolio-preview {
  position: relative;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.preview-grid img,
.gallery-grid img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  cursor: zoom-in;
}

.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 100;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  aspect-ratio: auto;
  object-fit: contain;
  cursor: default;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  nav {
    flex-wrap: wrap;
  }

  .preview-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shape-1 {
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 480px) {
  .preview-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 4rem 1.5rem 6rem;
  }
}