@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;1,9..144,400;1,9..144,500&family=Work+Sans:wght@300;400;500;600&display=swap');

:root{
  --paper: #f1ede4;
  --paper-deep: #e7e1d2;
  --ink: #262420;
  --ink-soft: #4a463e;
  --sage: #5f6b45;
  --sage-deep: #47512f;
  --clay: #a06a4a;
  --stone: #8b8477;
  --line: #d9d1bd;
  --line-strong: #c7bda3;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --nav-h: 84px;
  --max-w: 1240px;
}

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

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

/* Subtle paper grain overlay across the whole site */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Nav ---------- */
.site-nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background-color .35s ease, border-color .35s ease, box-shadow .35s ease;
  border-bottom: 1px solid transparent;
}

.site-nav.is-solid,
.site-nav.no-hero{
  background: rgba(241,237,228,0.92);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--line);
}

.nav-inner{
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand{
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  font-weight: 500;
}

.nav-links{
  list-style: none;
  display: flex;
  gap: 34px;
  margin: 0;
  padding: 0;
}

.nav-links a{
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, opacity .25s ease;
  opacity: 0.85;
}

.nav-links a:hover,
.nav-links a.active{
  opacity: 1;
  border-bottom-color: currentColor;
}

.nav-toggle{
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span{
  display: block;
  width: 24px;
  height: 1px;
  background: var(--ink);
  margin: 5px 0;
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover{
  background: var(--ink);
  color: var(--paper);
}
.btn-primary{
  background: var(--sage-deep);
  border-color: var(--sage-deep);
  color: var(--paper);
}
.btn-primary:hover{
  background: var(--ink);
  border-color: var(--ink);
}

/* ---------- Hero (home) ---------- */
.hero{
  position: relative;
  height: 100vh;
  min-height: 560px;
  width: 100%;
  overflow: hidden;
}
.hero img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(38,36,32,0.05) 0%, rgba(38,36,32,0.12) 60%, rgba(38,36,32,0.55) 100%);
}
.hero-caption{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0 40px 56px;
  max-width: var(--max-w);
  margin: 0 auto;
  color: var(--paper);
}
.hero-caption .eyebrow{
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 14px;
}
.hero-caption h1{
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  margin: 0 0 18px;
  line-height: 1.05;
}
.hero-caption p{
  max-width: 480px;
  font-size: 1rem;
  opacity: 0.9;
}

.scroll-cue{
  position: absolute;
  right: 40px;
  bottom: 56px;
  writing-mode: vertical-rl;
  color: var(--paper);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.75;
  display: flex;
  align-items: center;
  gap: 10px;
}
.scroll-cue::after{
  content: "";
  width: 1px;
  height: 40px;
  background: var(--paper);
  opacity: 0.6;
}

/* ---------- Section headers ---------- */
.section{
  padding: 110px 0;
}
.section-tight{ padding: 70px 0; }

.section-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.section-head .eyebrow{
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 10px;
  display: block;
}
.section-head h2{
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin: 0;
}
.section-head .lede{
  max-width: 360px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---------- Gallery grid ---------- */
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 46px 34px;
}

.piece{
  cursor: pointer;
}
.piece-frame{
  background: var(--paper-deep);
  border: 1px solid var(--line);
  padding: 14px;
  transition: border-color .25s ease, transform .35s ease, box-shadow .35s ease;
}
.piece-image{
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--stone);
}
.piece-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.7,.3,1), filter .5s ease;
}
.piece:hover .piece-image img{
  transform: scale(1.045);
}
.piece:hover .piece-frame{
  border-color: var(--line-strong);
  box-shadow: 0 18px 34px -22px rgba(38,36,32,0.35);
}
.piece-caption{
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.piece-caption .title{
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.02rem;
}
.piece-caption .meta{
  font-size: 0.75rem;
  color: var(--stone);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.view-all-row{
  margin-top: 56px;
  text-align: center;
}

/* ---------- Lightbox ---------- */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(24,22,18,0.92);
  padding: 40px;
}
.lightbox.is-open{ display: flex; }

.lightbox-inner{
  max-width: 1000px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.lightbox-image{
  max-height: 82vh;
  overflow: hidden;
  background: var(--ink);
}
.lightbox-image img{ width: 100%; height: 100%; object-fit: cover; }

.lightbox-info{ color: var(--paper); }
.lightbox-info .title{
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.8rem;
  margin: 0 0 10px;
}
.lightbox-info .meta{
  font-size: 0.85rem;
  color: #c9c2b2;
  margin-bottom: 22px;
  line-height: 1.7;
}
.lightbox-close{
  position: absolute;
  top: 28px;
  right: 40px;
  background: none;
  border: none;
  color: var(--paper);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  gap: 10px;
  align-items: center;
}
.lightbox-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--paper);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 10px 16px;
  opacity: 0.75;
  transition: opacity .2s ease;
}
.lightbox-nav:hover{ opacity: 1; }
.lightbox-prev{ left: 8px; }
.lightbox-next{ right: 8px; }

@media (max-width: 780px){
  .lightbox-inner{ grid-template-columns: 1fr; }
  .lightbox-image{ max-height: 50vh; }
}

/* ---------- Footer ---------- */
.site-footer{
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  margin-top: 60px;
}
.footer-inner{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand{
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.footer-note{
  color: var(--stone);
  font-size: 0.85rem;
  max-width: 320px;
}
.footer-links{
  display: flex;
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer-social{
  display: flex;
  gap: 18px;
  margin-top: 16px;
}
.footer-bottom{
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--stone);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Utility page hero (non-home) ---------- */
.page-hero{
  padding: calc(var(--nav-h) + 70px) 0 60px;
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow{
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-deep);
  display: block;
  margin-bottom: 16px;
}
.page-hero h1{
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin: 0 0 18px;
  max-width: 760px;
}
.page-hero p{
  max-width: 560px;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); gap: 34px 24px; }
  .wrap{ padding: 0 26px; }
  .nav-inner{ padding: 0 26px; }
}

@media (max-width: 680px){
  :root{ --nav-h: 68px; }
  .nav-links{
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 8px 26px 20px;
    display: none;
  }
  .nav-links.is-open{ display: flex; }
  .nav-links li{ border-top: 1px solid var(--line); }
  .nav-links a{ display: block; padding: 14px 0; }
  .nav-toggle{ display: block; }
  .gallery-grid{ grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .section{ padding: 70px 0; }
  .hero-caption{ padding: 0 26px 40px; }
  .scroll-cue{ display: none; }
}

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