:root {
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Manrope', sans-serif;

  --bg: #f5f1eb;
  --bg-elevated: #fbf7f2;
  --text: #1b1a18;
  --text-muted: #5f5a52;
  --line: #d8cfc3;
  --accent: #8e5f3b;
  --accent-strong: #6f4528;
  --shadow: 0 12px 30px rgba(28, 22, 16, 0.1);
}

:root[data-theme='dark'] {
  --bg: #10100f;
  --bg-elevated: #171716;
  --text: #ece8e2;
  --text-muted: #bdb6aa;
  --line: #312f2c;
  --accent: #c49366;
  --accent-strong: #e0ab79;
  --shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at 100% 0%, rgba(181, 128, 82, 0.14), transparent 30%),
    radial-gradient(circle at 0% 100%, rgba(89, 113, 132, 0.14), transparent 35%),
    var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
  border: 15px solid #fff;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 4.5rem 0;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--accent);
  margin: 0 0 0.6rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg), transparent 20%);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 4.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.main-nav a {
  color: var(--text-muted);
  font-weight: 600;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--text);
}

.theme-toggle {
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  cursor: pointer;
}

.hero {
  padding: 4rem 0 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.hero-description {
  color: var(--text-muted);
  max-width: 52ch;
}

.hero-image img {
  border-radius: 1rem;
  min-height: 420px;
  object-fit: cover;
  box-shadow: var(--shadow);
  width: 100%;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.62rem 1rem;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--accent);
  color: #fff;
}

.btn.primary:hover {
  background: var(--accent-strong);
}

.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.section-header {
  margin-bottom: 1.5rem;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.filter-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  cursor: pointer;
}

.filter-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

#search-input {
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: var(--bg-elevated);
  color: var(--text);
  padding: 0.6rem 0.7rem;
  min-width: 260px;
}

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

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.category-link-card {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  overflow: hidden;
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.category-link-card:hover,
.category-link-card:focus-visible {
  transform: translateY(-2px);
}

.category-cover {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
}

.category-card-content {
  padding: 0.9rem;
}

.category-title {
  margin-bottom: 0.2rem;
}

.category-description {
  margin-bottom: 0;
}

.collection-section + .collection-section {
  margin-top: 2.2rem;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.collection-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  overflow: hidden;
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.collection-card:hover,
.collection-card:focus-visible {
  transform: translateY(-2px);
}

.collection-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.collection-card-content {
  padding: 0.9rem;
}

.collection-card-title {
  margin-bottom: 0.25rem;
}

.collection-card-description {
  margin-bottom: 0;
}

.back-button {
  display: inline-block;
  margin-bottom: 1rem;
}

.collection-gallery-section {
  padding-top: 0;
}

.collection-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.collection-photo-tile {
  border-radius: 0.8rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.collection-photo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collection-photo-tile.landscape {
  aspect-ratio: 4 / 3;
}

.collection-photo-tile.portrait {
  aspect-ratio: 3 / 4;
}

.collection-photo-tile.square {
  aspect-ratio: 1 / 1;
}

.photo-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.photo-image {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.photo-content {
  padding: 0.9rem;
}

.photo-meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.photo-title {
  margin-top: 0.35rem;
  margin-bottom: 0.35rem;
  font-size: 1.5rem;
}

.photo-description {
  margin: 0 0 0.7rem;
  color: var(--text-muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  display: inline-block;
  font-size: 0.76rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0.22rem 0.6rem;
  color: var(--text-muted);
}

.about-grid {
  display: grid;
  gap: 2rem;
}

.team-member {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.about-photo-card {
  position: relative;
  overflow: hidden;
  padding: 0.75rem;
}

.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 0.65rem;
  box-shadow: 0 18px 32px rgba(20, 16, 12, 0.2);
  transform: scale(1.01);
  transition: transform 0.45s ease, filter 0.45s ease;
  filter: saturate(1.04) contrast(1.04);
}

.about-photo-card:hover .about-photo,
.about-photo-card:focus-within .about-photo {
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.06);
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--bg-elevated);
  padding: 1rem;
}

.contact-card h3 {
  margin-bottom: 0.8rem;
}

.contact-links {
  display: grid;
  gap: 0.55rem;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent), transparent 45%);
  padding-bottom: 0.08rem;
  font-weight: 600;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  color: var(--accent-strong);
  border-bottom-color: var(--accent-strong);
}

.about-card ul {
  margin: 0;
  padding-left: 1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

.contact-form {
  display: grid;
  gap: 0.7rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
}

input,
textarea,
select {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  color: var(--text);
  padding: 0.55rem 0.65rem;
  font: inherit;
}

.muted {
  color: var(--text-muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1rem 0 1.8rem;
  color: var(--text-muted);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collection-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid,
  .contact-grid,
  .about-grid,
  .team-member {
    grid-template-columns: 1fr;
  }

  .hero-image img {
    min-height: 320px;
  }
}

@media (max-width: 700px) {
  .header-inner {
    flex-direction: column;
    justify-content: center;
    padding: 0.75rem 0;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

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

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

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

  .collection-photo-grid {
    grid-template-columns: 1fr;
  }

  #search-input {
    min-width: 0;
    width: 100%;
  }
}
