:root {
  --ink: #1f1d1a;
  --ink-soft: #5b5650;
  --paper: #faf8f4;
  --stone: #efeae2;
  --accent: #b5793c;
  --accent-dark: #965f28;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2 { font-family: var(--serif); font-weight: 700; line-height: 1.15; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .5rem; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.section-sub { color: var(--ink-soft); margin-bottom: 2.5rem; }
.hidden { display: none; }

.btn {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  font: 600 1rem var(--sans); padding: .9rem 1.8rem; border: 0; border-radius: 4px; cursor: pointer;
  transition: background .2s;
}
.btn:hover { background: var(--accent-dark); }

/* Header */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 20px; max-width: 1160px; margin: 0 auto; color: #fff;
}
.logo { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; text-decoration: none; letter-spacing: .02em; }
.logo span { font-weight: 500; opacity: .85; }
nav { display: flex; gap: 1.5rem; align-items: center; }
nav a { text-decoration: none; font-weight: 500; }
.nav-cta { border: 1px solid rgba(255,255,255,.7); padding: .45rem 1rem; border-radius: 4px; }

/* Hero */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  background: linear-gradient(135deg, #3a342c, #1f1d1a); color: #fff; overflow: hidden;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,18,15,.75), rgba(20,18,15,.25)); }
.hero-content { position: relative; max-width: 1160px; width: 100%; margin: 0 auto; padding: 120px 20px 60px; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; font-weight: 600; color: #e6c49e; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); max-width: 14ch; margin-bottom: 1rem; }
.lede { font-size: 1.15rem; max-width: 36ch; margin-bottom: 2rem; opacity: .92; }

/* Intro */
.intro { padding: 90px 0; text-align: center; }
.intro h2 { margin-bottom: 1.5rem; }
.intro p { color: var(--ink-soft); font-size: 1.1rem; margin-bottom: 1.1rem; text-align: left; }
.intro .tagline { font-family: var(--serif); font-size: 1.35rem; color: var(--accent-dark); margin: 2rem 0 0; text-align: center; }
.section-sub a { color: var(--accent-dark); font-weight: 600; }

/* Projects */
.projects { padding: 90px 0; background: var(--stone); text-align: center; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery figure { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; cursor: zoom-in; background: #d9d2c6; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1rem .9rem; text-align: left;
  color: #fff; font-weight: 600; background: linear-gradient(transparent, rgba(0,0,0,.65));
}
.gallery figure.placeholder { cursor: default; }
.gallery figure.placeholder img { display: none; }
.gallery figure.placeholder::before {
  content: "Photo coming soon"; position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--ink-soft); font-size: .9rem;
}

/* Contact */
.contact { padding: 90px 0; text-align: center; }
form { text-align: left; display: grid; gap: 1.1rem; }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
label { display: grid; gap: .35rem; font-weight: 500; font-size: .95rem; }
input, select, textarea {
  font: 400 1rem var(--sans); color: var(--ink); background: #fff;
  border: 1px solid #d6cfc4; border-radius: 4px; padding: .75rem .85rem; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
form .btn { justify-self: start; }

/* Footer */
.site-footer { background: var(--ink); color: #d8d2c8; padding: 60px 0 24px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; }
.site-footer .logo { color: #fff; margin-bottom: .3rem; }
.copyright { text-align: center; font-size: .85rem; opacity: .6; margin-top: 40px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.88); display: grid; place-items: center; padding: 20px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; border-radius: 4px; }

/* Thank-you page */
.thanks { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 20px; }
.thanks p { color: var(--ink-soft); margin: 1rem 0 2rem; }

@media (max-width: 640px) {
  .site-header { padding: 16px; }
  .logo { font-size: 1.15rem; }
  nav a:not(.nav-cta) { display: none; }
  .gallery { grid-template-columns: 1fr; }
  form .row { grid-template-columns: 1fr; }
  form .btn { justify-self: stretch; text-align: center; }
  .intro, .projects, .contact { padding: 64px 0; }
}
