@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #14140f;
  --panel: #1b1a15;
  --text: #ede9e0;
  --muted: #8c8778;
  --line: #302d24;
  --accent: #b08d57;
  --accent-bright: #cba874;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---- Nav ---- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 5vw;
  background: linear-gradient(to bottom, rgba(20,20,15,0.85), transparent);
}
.site-nav.solid {
  background: rgba(20, 20, 15, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-mark { font-family: var(--serif); font-size: 1.3rem; letter-spacing: 0.02em; display: flex; align-items: center; gap: 10px; }
.nav-icon { height: 30px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 0.88rem; }
.nav-links a { color: var(--muted); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-book {
  border: 1px solid var(--accent);
  color: var(--accent-bright) !important;
  padding: 7px 16px;
  border-radius: 2px;
}
.nav-book:hover { background: var(--accent); color: var(--bg) !important; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.6rem; cursor: pointer; }

.work-dropdown { position: relative; }
.dropdown-trigger {
  background: none; border: none; padding: 0; margin: 0;
  font: inherit; color: var(--muted); cursor: pointer;
  display: flex; align-items: center; gap: 4px;
  transition: color 0.2s;
}
.dropdown-trigger:hover, .work-dropdown.open .dropdown-trigger { color: var(--text); }
.dropdown-trigger::after {
  content: '';
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-top: 2px;
  transition: transform 0.2s;
}
.work-dropdown.open .dropdown-trigger::after { transform: rotate(180deg); }
.work-dropdown-panel {
  position: absolute;
  top: calc(100% + 14px); left: 0;
  min-width: 220px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 8px 0;
  display: none;
  flex-direction: column;
}
.work-dropdown.open .work-dropdown-panel { display: flex; }
.work-dropdown-panel a { padding: 9px 18px; font-size: 0.85rem; color: var(--muted); }
.work-dropdown-panel a:hover { color: var(--text); background: rgba(176,141,87,0.08); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.mobile-open {
    display: flex; flex-direction: column;
    position: fixed; inset: 0;
    background: var(--bg);
    padding: 100px 8vw 40px;
    gap: 22px; font-size: 1.1rem; align-items: flex-start;
  }
  .work-dropdown-panel { display: none !important; }
  .nav-links.mobile-open .work-dropdown-panel {
    display: flex !important; position: static; border: none; padding: 10px 0 0 16px;
  }
}

/* ---- Hero (home only) ---- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,8,0.97) 0%, rgba(10,10,8,0.55) 40%, rgba(10,10,8,0.1) 70%);
}
.hero-content { position: relative; z-index: 2; padding: 0 5vw 8vh; max-width: 760px; text-shadow: 0 2px 18px rgba(0,0,0,0.55); }
.hero-content h1 { font-family: var(--serif); font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.02; font-weight: 400; }
.hero-content p { margin-top: 18px; color: var(--text); font-size: 1.1rem; max-width: 46ch; opacity: 0.94; }
.hero-actions { margin-top: 28px; display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 13px 26px; font-size: 0.92rem;
  border: 1px solid var(--accent); color: var(--accent-bright);
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--accent); color: var(--bg); }

/* ---- Photo wall (home + category pages) ---- */
.wall {
  columns: 4 260px;
  column-gap: 2px;
  padding: 2px;
}
@media (max-width: 900px) { .wall { columns: 3 200px; } }
@media (max-width: 560px) { .wall { columns: 2 150px; } }
.wall figure {
  break-inside: avoid;
  margin-bottom: 2px;
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
}
.wall img { width: 100%; display: block; transition: transform 0.5s ease; }
.wall figure:hover img { transform: scale(1.03); }

.wall.home figure a { display: block; position: relative; }
.wall.home figcaption {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  padding: 18px;
  background: linear-gradient(to top, rgba(10,10,8,0.75), rgba(10,10,8,0) 45%);
  opacity: 0;
  transition: opacity 0.25s ease;
  font-family: var(--serif);
  font-size: 1.3rem;
}
.wall.home figure:hover figcaption { opacity: 1; }

/* ---- Category page top bar ---- */
.cat-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 100px 5vw 18px;
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
}
.cat-bar .back-link { font-size: 0.85rem; color: var(--muted); }
.cat-bar .back-link:hover { color: var(--text); }
.cat-bar h1 { font-family: var(--serif); font-size: 1.7rem; font-weight: 400; }
.cat-bar .count { color: var(--muted); font-size: 0.85rem; }
.cat-bar .pkg { color: var(--muted); font-size: 0.9rem; max-width: 60ch; width: 100%; margin-top: 4px; }

/* ---- Section divider (e.g. Product Photography break) ---- */
.section-divider {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 46px 5vw 20px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.3rem;
}
.section-divider::before, .section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ---- Lightbox ---- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(8,8,6,0.96);
  display: none; align-items: center; justify-content: center;
  z-index: 999; padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 88vh; object-fit: contain; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: none; border: none; color: var(--text);
  cursor: pointer; font-size: 1.1rem; padding: 12px;
}
.lightbox-close { top: 18px; right: 24px; font-size: 1.6rem; }
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); font-size: 2rem; }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); font-size: 2rem; }
.lightbox-prev:hover, .lightbox-next:hover, .lightbox-close:hover { color: var(--accent-bright); }

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 5vw;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px;
  color: var(--muted); font-size: 0.85rem;
}
footer .foot-mark { font-family: var(--serif); font-size: 1.05rem; color: var(--text); display: flex; align-items: center; gap: 8px; }
.foot-icon { height: 24px; width: auto; display: block; }
footer a:hover { color: var(--accent-bright); }
footer .foot-links { display: flex; gap: 20px; }
