/* Warm (default): off-white, taupe, serif headings */
:root {
  --bg: #f7f4ef;
  --surface: #efe9e0;
  --ink: #2b2723;
  --muted: #7a7066;
  --accent: #8a6a4a;
  --display: "Cormorant Garamond", Georgia, serif;
  --display-weight: 400;
  --sans: "Inter", system-ui, sans-serif;
}

/* Modern: crisp black & white, all sans-serif */
[data-theme="modern"] {
  --bg: #ffffff;
  --surface: #f2f2f2;
  --ink: #111111;
  --muted: #6b6b6b;
  --accent: #111111;
  --display: "Inter", system-ui, sans-serif;
  --display-weight: 500;
}
[data-theme="modern"] h1 { letter-spacing: -.03em; }
[data-theme="modern"] .tagline, [data-theme="modern"] .about p:first-of-type { font-style: normal; }

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); transition: color .2s, border-color .2s; }
a:hover { color: var(--accent); border-color: var(--accent); }

figure { margin: 0; }

.eyebrow, .section-title {
  margin: 0 0 1rem;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Intro */
.intro {
  text-align: center;
  padding: clamp(4rem, 10vw, 7rem) 1rem clamp(2.5rem, 6vw, 4rem);
}
h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  line-height: 1.05;
}
.tagline {
  margin: 1.25rem auto 2rem;
  max-width: 32ch;
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-style: italic;
  color: var(--muted);
}
.contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1rem;
  font-size: .95rem;
  letter-spacing: .03em;
}
.contact span { color: var(--muted); }

/* Hero photo */
.hero {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}
.hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: cover;
  background: var(--surface);
}

/* About */
.about {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 6rem) 1rem;
  text-align: center;
}
.about p:first-of-type {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.8vw, 1.65rem);
  line-height: 1.5;
}
.about .area { margin: 1.5rem 0 0; color: var(--muted); font-size: .95rem; }

/* Projects */
main { max-width: 1400px; margin: 0 auto; padding: 0 1rem 5rem; }
main > .section-title { text-align: center; margin-bottom: 3rem; }
.project + .project { margin-top: clamp(3.5rem, 8vw, 6rem); }
.project-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .25rem 1rem;
  padding-bottom: .75rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 15%, transparent);
}
.project-head h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  line-height: 1.2;
}
.project-head p { margin: 0; color: var(--muted); font-size: .9rem; }

.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 3 300px;
  column-gap: 1rem;
}
.gallery li { break-inside: avoid; margin-bottom: 1.25rem; }
.gallery a {
  display: block;
  border: 0;
  overflow: hidden;
  background: var(--surface);
  cursor: zoom-in;
}
.gallery a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.gallery img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .6s ease;
}
.gallery a:hover img { transform: scale(1.03); }
.gallery figcaption {
  margin-top: .5rem;
  font-size: .8rem;
  letter-spacing: .05em;
  color: var(--muted);
}

/* Footer */
footer {
  text-align: center;
  padding: 4rem 1rem 3rem;
  background: var(--surface);
}
.footer-cta { margin: 0 0 .5rem; font-family: var(--display); font-size: 1.6rem; }
.fine { margin-top: 2rem; font-size: .8rem; color: var(--muted); }

/* Lightbox */
.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(20, 18, 16, .95);
  color: #fff;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { text-align: center; }
.lightbox img {
  display: block;
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 8rem);
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}
.lb-caption { margin-top: .75rem; font-size: .9rem; letter-spacing: .05em; opacity: .85; }
.lightbox button {
  position: absolute;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  padding: .75rem 1rem;
  cursor: pointer;
  opacity: .7;
}
.lightbox button:hover, .lightbox button:focus-visible { opacity: 1; }
.lb-close { top: .5rem; right: .5rem; }
.lb-prev { left: .25rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .25rem; top: 50%; transform: translateY(-50%); }
.lb-count {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  font-size: .75rem;
  letter-spacing: .15em;
  opacity: .6;
}
