/* ============================================================
   Light & Moments — shared styles (prototype)
   ============================================================ */
:root {
  --bg: #f4f2ed;
  --panel: #eceae3;
  --ink: #1b1a18;
  --navy: #22323f;       /* brand heading accent */
  --muted: #6f6b62;
  --line: #dcd7cd;
  --maxw: 1280px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.6;
  -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 36px; }

/* serif display helper */
.serif { font-family: "Fraunces", Georgia, serif; }

/* ---------- Header (centered wordmark, like the original) ---------- */
.site-head {
  text-align: center;
  padding: 30px 0 22px;
  position: relative;
  z-index: 20;
}
.site-head.overlay {
  position: absolute; top: 0; left: 0; right: 0;
  color: #fff;
}
.brand {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: 30px;
  letter-spacing: 0.01em;
  margin: 0;
}
.site-head.overlay .brand { text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.mainnav {
  margin-top: 12px;
  display: flex; gap: 30px; justify-content: center;
}
.mainnav a {
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); padding-bottom: 3px; transition: color .2s;
}
.site-head.overlay .mainnav a { color: rgba(255,255,255,.85); }
.mainnav a:hover { color: var(--ink); }
.site-head.overlay .mainnav a:hover { color: #fff; }
.mainnav a.active { color: var(--ink); border-bottom: 1px solid currentColor; }
.site-head.overlay .mainnav a.active { color: #fff; }

/* ---------- Full-bleed hero ---------- */
.hero {
  position: relative;
  height: 100vh; min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff;
  overflow: hidden;
}
.hero .bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.03);
  opacity: 0;
  transition: opacity 2s ease;
}
.hero .bg.on { opacity: 1; }
/* slow drift on the active homepage hero layer */
.hero.slideshow .bg.on { animation: heroDrift 14s ease-out forwards; }
@keyframes heroDrift { from { transform: scale(1.03); } to { transform: scale(1.1); } }
.hero .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.12) 35%, rgba(0,0,0,.45) 100%);
}
.hero .hero-inner { position: relative; z-index: 10; padding: 0 24px; }
.hero h1 {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-size: clamp(40px, 7vw, 92px);
  line-height: 1.02; letter-spacing: -0.02em;
  margin: 0 0 18px;
  text-shadow: 0 2px 30px rgba(0,0,0,.4);
}
.hero p.tag {
  font-style: italic; font-size: clamp(16px,2vw,20px);
  color: rgba(255,255,255,.92); margin: 0;
  text-shadow: 0 1px 16px rgba(0,0,0,.5);
}
.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 10; color: rgba(255,255,255,.8); font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
}

/* ---------- Page heading (inner pages) ---------- */
.page-title {
  text-align: center; padding: 28px 0 6px;
}
.page-title h2 {
  font-family: "Fraunces", serif; font-weight: 400;
  font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.01em;
  color: var(--navy); margin: 0;
}
.page-title p { color: var(--muted); margin: 12px 0 0; }

/* ---------- Portfolio grid ---------- */
.portfolio {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 40px 36px; padding: 50px 0 90px;
}
.card { display: block; }
.card .thumb {
  aspect-ratio: 3/2; overflow: hidden; background: #e2ded5;
  border-radius: 2px;
}
.card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease), filter .4s;
}
.card:hover .thumb img { transform: scale(1.05); filter: brightness(1.03); }
.card .cap { padding: 18px 4px 0; }
.card .cap .place {
  font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.card .cap h3 {
  font-family: "Fraunces", serif; font-weight: 400;
  font-size: 24px; color: var(--navy); margin: 0; letter-spacing: -0.01em;
}
.card .cap .arrow {
  margin-top: 10px; font-size: 13px; color: var(--muted);
  letter-spacing: 0.04em; display: inline-flex; gap: 8px; align-items: center;
}
.card:hover .cap .arrow { color: var(--ink); }
.card:hover .cap .arrow span { transform: translateX(4px); }
.card .cap .arrow span { transition: transform .3s var(--ease); }

/* ---------- Story intro (two-column, like original) ---------- */
.story-intro {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  padding: 70px 0 60px; align-items: start;
}
.story-intro h2 {
  font-family: "Fraunces", serif; font-weight: 400;
  font-size: clamp(26px, 3.2vw, 40px); line-height: 1.12;
  color: var(--navy); margin: 0; letter-spacing: -0.01em;
}
.story-intro .body p { margin: 0 0 18px; font-size: 17px; color: #3a3833; }
.story-intro .meta {
  margin-top: 26px; font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
  display: flex; gap: 24px; flex-wrap: wrap;
}
.divider { height: 1px; background: var(--line); margin: 0 0 0; }

/* ---------- Gallery ---------- */
.gallery {
  column-count: 3; column-gap: 16px;
  padding: 60px 0 90px;
}
.gallery figure { margin: 0 0 16px; break-inside: avoid; -webkit-column-break-inside: avoid; }
.gallery img {
  width: 100%; height: auto; display: block;
  cursor: zoom-in; background: #e2ded5; border-radius: 2px;
  transition: filter .35s, transform .6s var(--ease);
}
.gallery img:hover { filter: brightness(1.05); }

/* ---------- Footer ---------- */
.site-foot {
  border-top: 1px solid var(--line);
  padding: 70px 0 56px; color: var(--muted); font-size: 14px;
}
.site-foot .big {
  font-family: "Fraunces", serif; font-weight: 300;
  font-size: clamp(26px, 3.5vw, 40px); color: var(--ink);
  line-height: 1.12; margin: 0 0 36px; max-width: 18ch;
}
.site-foot .row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.site-foot a.u { border-bottom: 1px solid var(--line); padding-bottom: 2px; color: var(--ink); }

/* ---------- Contact ---------- */
.contact-block { padding: 80px 0 100px; max-width: 640px; margin: 0 auto; text-align: center; }
.contact-block h2 {
  font-family: "Fraunces", serif; font-weight: 400; color: var(--navy);
  font-size: clamp(30px,4vw,48px); margin: 0 0 20px;
}
.contact-block p { font-size: 18px; color: #3a3833; }
.contact-block a.email {
  display: inline-block; margin-top: 24px; font-size: 20px;
  font-family: "Fraunces", serif; color: var(--ink);
  border-bottom: 1px solid var(--muted); padding-bottom: 4px;
}
.socials { margin-top: 40px; display: flex; gap: 28px; justify-content: center;
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ---------- Contact form ---------- */
.cform { margin-top: 32px; text-align: left; display: grid; gap: 14px; }
.cform input, .cform textarea {
  font: inherit; width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 3px; resize: vertical;
}
.cform input:focus, .cform textarea:focus { outline: none; border-color: var(--navy); }
.cform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cform button {
  justify-self: start; font: inherit; cursor: pointer;
  background: var(--navy); color: #fff; border: 0;
  padding: 12px 28px; border-radius: 3px; letter-spacing: .03em;
  transition: opacity .2s;
}
.cform button:hover { opacity: .9; }
.form-status { min-height: 1.2em; margin: 4px 0 0; font-size: 14px; }
.form-status.ok { color: #2e7d32; }
.form-status.err { color: #b3261e; }

/* ---------- Admin ---------- */
.admin-login[hidden], .admin-inbox[hidden] { display: none; }
.admin-login { max-width: 360px; margin: 24px auto 0; display: grid; gap: 12px; }
.admin-login input {
  font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 3px;
}
.admin-login button {
  font: inherit; cursor: pointer; background: var(--navy); color: #fff;
  border: 0; padding: 12px; border-radius: 3px;
}
.admin-inbox { max-width: 780px; margin: 34px auto 90px; display: grid; gap: 16px; }
.msg { border: 1px solid var(--line); border-radius: 4px; padding: 18px 20px; background: #fff; }
.msg-head {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline;
  font-size: 13px; color: var(--muted); margin-bottom: 10px;
}
.msg-head strong { color: var(--ink); font-size: 15px; }
.msg-head time { margin-left: auto; }
.msg-head .del {
  font: inherit; font-size: 12px; cursor: pointer; background: none;
  border: 1px solid var(--line); color: var(--muted); padding: 4px 10px; border-radius: 3px;
}
.msg-head .del:hover { color: #b3261e; border-color: #b3261e; }
.msg-body { margin: 0; color: #3a3833; }
.muted { color: var(--muted); text-align: center; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(18,17,15,.95);
  display: none; align-items: center; justify-content: center; padding: 40px; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 90vh; object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox .x { position: absolute; top: 22px; right: 30px; color: #d8d2c6;
  font-size: 28px; cursor: pointer; line-height: 1; z-index: 2; }
.lightbox .lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: #d8d2c6; cursor: pointer;
  font-size: 52px; line-height: 1; padding: 16px 24px; z-index: 2;
  transition: color .2s, transform .2s; user-select: none;
}
.lightbox .lb-nav:hover { color: #fff; }
.lightbox .lb-nav.prev { left: 6px; }
.lightbox .lb-nav.next { right: 6px; }
@media (max-width: 820px) {
  .lightbox .lb-nav { font-size: 36px; padding: 10px 14px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .wrap { padding: 0 20px; }
  .portfolio { grid-template-columns: 1fr; gap: 30px; }
  .story-intro { grid-template-columns: 1fr; gap: 22px; }
  .gallery { column-count: 2; }
}
