/* =========================================================
   Chris Surname — Photography
   Minimal monochrome portfolio. Light base, full-bleed heroes
   mixed into a quiet grid. Edit colours/spacing via :root.
   ========================================================= */

:root {
  --bg: #f7f6f4;          /* warm off-white */
  --ink: #16161a;         /* near-black text */
  --muted: #8a8a86;       /* captions / secondary */
  --line: #e3e2de;        /* hairlines */
  --max: 1500px;          /* content max width */
  --gap: clamp(14px, 2.2vw, 34px);
  --pad: clamp(20px, 5vw, 72px);
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; width: 100%; height: auto; }

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

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: clamp(16px, 2.4vw, 26px) var(--pad);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 2.6vw, 28px);
  letter-spacing: 0.01em;
}

.nav {
  display: flex;
  gap: clamp(18px, 2.4vw, 38px);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.nav a { transition: color 0.25s ease; }
.nav a:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero { position: relative; }
.hero-figure { margin: 0; }
.hero-figure img {
  height: 86vh;
  min-height: 460px;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.04);
}
.hero-caption {
  position: absolute;
  left: var(--pad);
  bottom: clamp(28px, 6vh, 64px);
  color: #fff;
  text-shadow: 0 1px 30px rgba(0,0,0,0.45);
  mix-blend-mode: normal;
}
.hero-caption h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 9vw, 104px);
  line-height: 0.96;
  margin: 0;
  letter-spacing: 0.005em;
}
.hero-caption p {
  margin: 0.4em 0 0;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: clamp(11px, 1.3vw, 14px);
  opacity: 0.92;
}

/* ---------- works grid ---------- */
.works { padding: clamp(48px, 9vw, 130px) var(--pad); }
.works-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

.work {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  background: #ece9e4;
}
/* full-bleed rows span both columns for impact */
.work.full {
  grid-column: 1 / -1;
}
.work img {
  filter: grayscale(100%) contrast(1.03);
  transition: transform 0.9s cubic-bezier(.2,.7,.2,1), filter 0.6s ease;
  will-change: transform;
}
.work:hover img { transform: scale(1.035); }

.work-meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.5), rgba(0,0,0,0));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.work:hover .work-meta { opacity: 1; transform: none; }
.work-meta .title {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px);
}
.work-meta .year {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}

@media (max-width: 720px) {
  .works-grid { grid-template-columns: 1fr; }
  .work-meta { opacity: 1; transform: none; }
}

/* ---------- about ---------- */
.about {
  border-top: 1px solid var(--line);
  padding: clamp(64px, 12vw, 160px) var(--pad);
}
.about-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.about .lede {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.28;
  margin: 0 0 1.2em;
}
.about p { color: #3a3a3e; }

/* ---------- contact ---------- */
.contact {
  border-top: 1px solid var(--line);
  padding: clamp(64px, 12vw, 150px) var(--pad);
  text-align: center;
}
.contact-inner h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(30px, 5vw, 56px);
  margin: 0 0 0.3em;
}
.contact-inner p { color: var(--muted); margin: 0 0 1.6em; }
.email {
  font-size: clamp(18px, 2.4vw, 26px);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  transition: opacity 0.25s ease;
}
.email:hover { opacity: 0.6; }
.socials {
  margin-top: 2.4em;
  display: flex;
  gap: 28px;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: var(--muted);
}
.socials a:hover { color: var(--ink); }

/* ---------- footer ---------- */
.site-footer {
  padding: 40px var(--pad);
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,10,12,0.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-figure {
  margin: 0;
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-figure img {
  width: auto;
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
  filter: grayscale(100%);
}
.lightbox-figure figcaption {
  color: #cfcfca;
  margin-top: 16px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lightbox-close, .lightbox-nav {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.lightbox-close:hover, .lightbox-nav:hover { opacity: 1; }
.lightbox-close { top: 22px; right: 28px; font-size: 38px; line-height: 1; }
.lightbox-nav { top: 50%; transform: translateY(-50%); font-size: 60px; padding: 0 22px; }
.lightbox-prev { left: 4px; }
.lightbox-next { right: 4px; }

@media (max-width: 720px) {
  .lightbox-nav { font-size: 40px; padding: 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .work img, .work-meta { transition: none; }
}
