:root{
  --paper:#f6f4ef;
  --card:#fffdf9;
  --ink:#23201b;
  --soft:#5b554c;
  --muted:#98907f;
  --line:#e6e0d5;
  --accent:#8c7c66;
  --radius:16px;
  --maxw:1220px;
}
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0; background:var(--paper); color:var(--ink);
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  line-height:1.65; -webkit-font-smoothing:antialiased;
}
img{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 28px; }

/* Header */
.site{ border-bottom:1px solid var(--line); }
.site-inner{ display:flex; align-items:baseline; gap:16px; height:78px; }
.brand{ font-family:'Fraunces',serif; font-weight:600; font-size:24px; letter-spacing:-.01em; }
.tagline{ font-size:12px; letter-spacing:.16em; text-transform:uppercase; color:var(--muted); }

/* Intro */
.intro{ padding:88px 0 64px; }
.intro h1{
  font-family:'Fraunces',serif; font-weight:500; letter-spacing:-.02em;
  font-size:clamp(46px,8vw,104px); line-height:.98; margin:0;
}
.intro p{ margin:26px 0 0; max-width:52ch; font-size:19px; color:var(--soft); }

/* Album grid (home) */
.albums{
  display:grid; grid-template-columns:repeat(auto-fill,minmax(330px,1fr));
  gap:52px 40px; padding-bottom:100px;
}
.album{ display:block; }
.album .cover{
  border-radius:var(--radius); overflow:hidden; background:var(--card);
  aspect-ratio:4/5; border:1px solid var(--line);
}
.album .cover img{
  width:100%; height:100%; object-fit:cover;
  transition:transform .6s cubic-bezier(.2,.7,.2,1), filter .4s ease;
}
.album:hover .cover img{ transform:scale(1.04); }
.album-meta{ padding:18px 4px 0; }
.album-meta h2{
  font-family:'Fraunces',serif; font-weight:500; font-size:24px;
  letter-spacing:-.01em; margin:0;
}
.album-meta .sub{ margin-top:6px; font-size:13px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); }
.album-meta .excerpt{ margin:12px 0 0; color:var(--soft); font-size:15.5px; }

/* Album page */
.back{
  display:inline-block; margin:36px 0 0; font-size:14px; color:var(--soft);
  letter-spacing:.02em; transition:color .2s ease;
}
.back:hover{ color:var(--accent); }
.album-head{ max-width:70ch; padding:30px 0 54px; }
.album-head h1{
  font-family:'Fraunces',serif; font-weight:500; letter-spacing:-.02em;
  font-size:clamp(38px,6vw,72px); line-height:1.02; margin:0;
}
.album-date{ margin-top:16px; font-size:13px; letter-spacing:.14em; text-transform:uppercase; color:var(--muted); }
.story{ margin-top:26px; }
.story p{ margin:0 0 18px; font-size:18px; color:var(--soft); max-width:60ch; }

/* Masonry photo grid */
.grid{ column-count:3; column-gap:22px; padding-bottom:110px; }
.grid .shot{ margin:0 0 22px; break-inside:avoid; }
.grid .shot img{
  width:100%; height:auto; border-radius:12px; border:1px solid var(--line);
  background:var(--card); cursor:zoom-in;
  transition:filter .3s ease, transform .3s ease;
}
.grid .shot img:hover{ filter:brightness(1.03); }

/* Empty state */
.empty{ padding:40px 0 120px; max-width:60ch; }
.empty h2{ font-family:'Fraunces',serif; font-weight:500; font-size:30px; margin:0 0 12px; }
.empty p{ color:var(--soft); font-size:17px; }
.empty code{ background:#efe9dd; padding:2px 7px; border-radius:6px; font-size:14px; }

/* Footer */
.site-foot{ border-top:1px solid var(--line); padding:34px 0; color:var(--muted); font-size:13px; letter-spacing:.04em; }

/* Lightbox */
.lightbox{
  position:fixed; inset:0; z-index:100; display:none;
  align-items:center; justify-content:center;
  background:rgba(26,23,19,.94); padding:40px;
}
.lightbox.open{ display:flex; }
.lb-img{ max-width:92vw; max-height:88vh; border-radius:8px; box-shadow:0 30px 80px rgba(0,0,0,.5); }
.lb-close,.lb-nav{
  position:absolute; background:none; border:none; color:#f6f4ef;
  cursor:pointer; opacity:.75; transition:opacity .2s ease; user-select:none;
}
.lb-close:hover,.lb-nav:hover{ opacity:1; }
.lb-close{ top:22px; right:28px; font-size:40px; line-height:1; }
.lb-nav{ top:50%; transform:translateY(-50%); font-size:64px; padding:0 18px; }
.lb-prev{ left:8px; }
.lb-next{ right:8px; }

@media (max-width:900px){
  .grid{ column-count:2; }
  .intro{ padding:60px 0 44px; }
}
@media (max-width:560px){
  .grid{ column-count:1; }
  .albums{ grid-template-columns:1fr; gap:40px; }
  .lb-nav{ font-size:44px; }
}
