@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Jost:wght@300;400&display=swap');

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

:root {
  --ink: #1a1814;
  --paper: #f5f2ec;
  --warm: #c8b89a;
  --muted: #6f6458;
  --rule: rgba(26,24,20,0.12);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  min-height: 100vh;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow 0.3s;
}

nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5f554b;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--ink);
  transition: all 0.3s;
}

@media (max-width: 640px) {
  nav { padding: 1.25rem 1.5rem; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
  }
  .nav-links.open { display: flex; }
  .nav-links li a {
    display: block;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--rule);
  }
}

/* ── HOME HERO ── */
main { padding-top: 65px; } /* nav height offset */

.home-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 65px);
}

.hero-image {
  position: sticky;
  top: 65px;
  height: calc(100vh - 65px);
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 4rem 4rem 3.5rem;
  gap: 1.4rem;
}

.hero-eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2.2rem, 3vw, 3.4rem);
  line-height: 1.15;
}

.hero-title em {
  font-style: italic;
  color: var(--muted);
}

.hero-rule {
  width: 40px;
  height: 1px;
  background: var(--warm);
}

.hero-bio {
  font-size: 0.95rem;
  line-height: 1.9;
  color: #3a342e;
  max-width: 42ch;
}

/* ── CTA BUTTON ── */
.btn {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  width: fit-content;
  transition: color 0.2s, border-color 0.2s;
}

.btn:hover { color: var(--muted); border-color: var(--muted); }

@media (max-width: 860px) {
  .home-hero {
    grid-template-columns: 1fr;
    min-height: unset;
  }
  .hero-image {
    position: relative;
    top: 0;
    height: 60vw;
    min-height: 280px;
  }
  .hero-content {
    padding: 2.5rem 1.5rem;
  }
  .hero-bio { max-width: none; }
}

/* ── GALLERY PAGE ── */
.page-header {
  padding: 3.5rem 3rem 2rem;
  border-bottom: 1px solid var(--rule);
}

.page-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2rem, 3vw, 3rem);
}

.gallery-filters {
  padding: 1.5rem 3rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--rule);
}

.filter-btn {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--rule);
  color: #5f554b;
  padding: 0.4rem 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.gallery-grid {
  padding: 2.5rem 3rem 4rem;
  columns: 3;
  column-gap: 1.2rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.2rem;
  cursor: pointer;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.03); }

.gallery-item .caption {
  padding: 0.6rem 0 0;
  font-size: 0.78rem;
  color: #4b443d;
  letter-spacing: 0.03em;
}

@media (max-width: 900px) {
  .gallery-grid { columns: 2; }
  .gallery-filters, .page-header { padding-left: 1.5rem; padding-right: 1.5rem; }
  .gallery-grid { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (max-width: 540px) {
  .gallery-grid { columns: 1; }
}

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20,18,14,0.93);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.open { display: flex; }

.lightbox-inner {
  position: relative;
  max-width: 88vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.lightbox-inner img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}

.lightbox-caption {
  color: rgba(245,242,236,0.7);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-align: center;
}

.lightbox-close {
  position: fixed;
  top: 1.5rem; right: 1.5rem;
  background: none;
  border: none;
  color: var(--paper);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--paper);
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
  padding: 1rem;
}

.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; }

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* ── CONTACT PAGE ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 65px);
}

.contact-image {
  position: sticky;
  top: 65px;
  height: calc(100vh - 65px);
  overflow: hidden;
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 4rem 5rem 3.5rem;
  gap: 1.5rem;
}

.contact-content h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2rem, 3vw, 3rem);
}

.contact-intro {
  font-size: 0.93rem;
  line-height: 1.85;
  color: #4a4540;
  max-width: 40ch;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-value {
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
  width: fit-content;
}

.contact-value:hover { border-color: var(--warm); }

@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-image {
    position: relative;
    top: 0;
    height: 50vw;
    min-height: 280px;
  }
  .contact-content { padding: 3rem 1.5rem; }
  .contact-intro { max-width: none; }
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

@media (max-width: 640px) {
  footer { padding: 1.5rem; flex-direction: column; align-items: flex-start; }
}