/* Colors and type mirror the reference site: white canvas, warm grey nav,
   near-black headings, Futura-style wordmark, Proxima-style body. */
:root {
  --bg: #fff;
  --text: #444;
  --heading: #111;
  --link: #000;
  --link-hover: #444;
  --nav: #706b6b;
  --nav-active: #000;
  --nav-hover: rgba(12, 8, 8, 0.95);
  --category: rgba(31, 20, 20, 0.68);
  --muted: rgba(68, 68, 68, 0.7);
  --rule: #e6e6e6;

  --font-title: "Jost", "Futura", "Century Gothic", sans-serif;
  --font-body: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --max-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6em;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }

a, a:visited { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }

h1, h2, h3 { color: var(--heading); font-weight: 600; line-height: 1.2em; }

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* ---------- Header (logo centered, navigation split either side) ---------- */
#header { padding: 40px 30px 30px; }

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
}

.site-title, .site-title:visited {
  font-family: var(--font-title);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 54px;
  line-height: 1.2em;
  color: var(--heading);
}
.site-title:hover { color: var(--heading); }

.nav ul, .mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.nav ul { display: flex; gap: 2em; }
.nav-left ul { justify-content: flex-end; }
.nav-right ul { justify-content: flex-start; }

.nav a, .nav a:visited, .mobile-nav a, .mobile-nav a:visited, .menu-toggle {
  font-family: var(--font-body);
  font-weight: 400;
  text-transform: capitalize;
  font-size: 20px;
  line-height: 40px;
  color: var(--nav);
}
.nav a:hover, .mobile-nav a:hover { color: var(--nav-hover); }
.nav .active a, .mobile-nav .active a { color: var(--nav-active); }

.menu-toggle { display: none; }
.mobile-nav { text-align: center; padding-top: 10px; }

/* ---------- Main ---------- */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 30px 60px;
}

.page-intro { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.page-intro h1 { font-size: 32px; margin: 0 0 0.6em; }

/* ---------- Homepage slideshow ---------- */
#slideshow { max-width: 900px; margin: 0 auto; }

.slides {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 78vh;
  margin: 0 auto;
  cursor: pointer;
}
.slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.slides img.active { opacity: 1; }

.gallery-controls {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--nav);
}
.gallery-controls button:hover { color: var(--nav-active); }
.gallery-divider { margin: 0 0.6em; }

/* ---------- Collection ---------- */
#category-nav ul {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  text-align: center;
}
#category-nav li { display: inline-block; margin: 0.5em 1em; }
#category-nav a, #category-nav a:visited {
  font-size: 18px;
  text-transform: capitalize;
  color: var(--category);
}
#category-nav a:hover, #category-nav a.active { color: #000; }

#grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.grid-item { display: block; overflow: hidden; }
.grid-item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: opacity 0.3s ease;
}
.grid-item:hover img { opacity: 0.85; }

/* Lightbox */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 80px;
}
#lightbox[hidden] { display: none; }
#lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
#lightbox button {
  position: absolute;
  color: var(--nav);
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px;
}
#lightbox button:hover { color: #000; }
.lb-close { top: 20px; right: 24px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- About / Contact ---------- */
.text-page {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.text-page h1 { font-size: 32px; margin: 0.4em 0 1em; }
.text-page img { margin: 0 auto 40px; width: 100%; max-width: 520px; }

/* ---------- Footer ---------- */
#footer {
  border-top: 1px solid var(--rule);
  padding: 40px 30px 50px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-inner p { margin: 0.4em 0; }
.footer-links { list-style: none; padding: 0; margin: 0 0 1.2em; }
.footer-links li { display: inline-block; margin: 0 1em; }
.footer-links a, .footer-links a:visited { color: var(--nav); }
.footer-links a:hover { color: #000; }
.copyright { margin-top: 1.2em !important; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  #grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  #header { padding: 24px 16px 16px; }
  .header-inner { grid-template-columns: 1fr; gap: 4px; text-align: center; }
  .nav { display: none; }
  .site-title { font-size: 40px; }
  .menu-toggle { display: block; margin: 0 auto; font-size: 16px; }
  main { padding: 10px 16px 40px; }
  #grid { gap: 12px; }
  #category-nav a { font-size: 16px; }
  #lightbox { padding: 50px 16px; }
  .lb-prev, .lb-next { top: auto !important; bottom: 10px; transform: none !important; }
  #footer { padding: 30px 16px 40px; }
}
