:root {
  --bg: #0d0d0f;
  --bg-raised: #161619;
  --border: #2a2a2e;
  --text: #e9e0c9;
  --text-dim: #a89a78;
  --heading: #e3c98f;
  --accent: #e8b34a;
  --accent-dim: #8a6a2c;
  --focus: #6fb3ff;
  --max-width: 1400px;
  --font-display: 'Cinzel', Georgia, 'Times New Roman', serif;
  --font-body: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

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

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(13, 13, 15, 0.92);
  backdrop-filter: blur(8px);
  z-index: 10;
}

/* While the lightbox is open, fully hide the header rather than relying on
   the lightbox backdrop's alpha blending to visually suppress it — that
   interaction (translucent overlay above a sticky, blurred header) is
   fragile across browsers, especially on mobile. */
body.lightbox-open .site-header {
  visibility: hidden;
}

.site-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--heading);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.nav-link {
  color: var(--text-dim);
  font-size: 0.92rem;
  padding: 0.25rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

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

.nav-link.active {
  color: var(--accent);
  border-color: var(--accent-dim);
}

main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem) 3rem;
}

.hero {
  padding: clamp(2rem, 6vw, 4rem) 0 clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 600;
  margin: 0 0 0.5rem;
  letter-spacing: 0.06em;
  color: var(--heading);
}

.hero .tagline {
  color: var(--text-dim);
  font-size: 1.1rem;
  margin: 0 0 1.6rem;
}

.cta-button {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  border: 1px solid var(--accent-dim);
  border-radius: 30px;
  color: var(--accent);
  font-size: 0.95rem;
  transition: background 0.15s, transform 0.15s;
}

.cta-button:hover, .cta-button:focus-visible {
  background: rgba(232, 179, 74, 0.12);
  transform: translateY(-1px);
}

.breadcrumb {
  margin: 0 0 0.8rem;
}

.breadcrumb a {
  color: var(--text-dim);
  font-size: 0.85rem;
  transition: color 0.15s;
}

.breadcrumb a:hover, .breadcrumb a:focus-visible { color: var(--accent); }

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  padding-bottom: 2rem;
}

.collection-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-raised);
  transition: transform 0.18s, border-color 0.18s;
}

.collection-card:hover, .collection-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--accent-dim);
}

.collection-cover {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #000;
}

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

.cover-placeholder { width: 100%; height: 100%; background: var(--bg-raised); }

.collection-meta {
  padding: 0.9rem 1.1rem 1.1rem;
}

.collection-meta h2 {
  font-family: var(--font-display);
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--heading);
}

.collection-count {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.collection-header {
  padding: 2rem 0 1rem;
}

.collection-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  margin: 0 0 0.3rem;
  letter-spacing: 0.03em;
  color: var(--heading);
}

.collection-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.04em;
  color: var(--heading);
}

/* Masonry-style gallery via CSS columns — preserves each piece's aspect ratio. */
.grid {
  columns: 2 220px;
  column-gap: 0.9rem;
  padding-bottom: 2rem;
}

@media (min-width: 640px) { .grid { columns: 3 220px; } }
@media (min-width: 1000px) { .grid { columns: 4 220px; } }
@media (min-width: 1300px) { .grid { columns: 5 220px; } }

.grid-item {
  display: block;
  width: 100%;
  break-inside: avoid;
  margin: 0 0 0.9rem;
  padding: 0;
  border: none;
  background: var(--bg-raised);
  border-radius: 6px;
  overflow: hidden;
  cursor: zoom-in;
  line-height: 0;
}

.grid-item img {
  width: 100%;
  height: auto;
  transition: opacity 0.15s;
}

.grid-item:hover img, .grid-item:focus-visible img { opacity: 0.85; }

.grid-item:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 7, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 2rem;
}

.lightbox[hidden] { display: none; }

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  max-width: 100%;
  max-height: 100%;
}

.lightbox-content img {
  max-width: min(92vw, 1400px);
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.6);
}

.lightbox-caption {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  color: var(--text-dim);
  font-size: 0.9rem;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}

#lightbox-title {
  color: var(--text);
  font-size: 1rem;
}

#lightbox-download {
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  transition: background 0.15s;
}

#lightbox-download:hover, #lightbox-download:focus-visible { background: rgba(232, 179, 74, 0.12); }

.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255, 255, 255, 0.14); }

.lightbox-close { top: 1.2rem; right: 1.2rem; }
.lightbox-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
  .lightbox-prev { left: 0.4rem; }
  .lightbox-next { right: 0.4rem; }
  .lightbox { padding: 1rem; }
}

.about {
  padding: 2.5rem 0;
  max-width: 720px;
}

.about h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  margin: 0 0 1.2rem;
  letter-spacing: 0.03em;
  color: var(--heading);
}

.about p { line-height: 1.7; color: var(--text-dim); }

.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-dim);
  font-size: 0.82rem;
  border-top: 1px solid var(--border);
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
