:root {
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-muted: #6b6b6b;
  --color-border: #e4e4e4;
  --color-accent: #1a1a1a;
  --font-body: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-heading: Georgia, "Times New Roman", serif;
  --wrap-width: 1180px;
  --gap: 1.5rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #111111;
    --color-text: #f2f2f2;
    --color-muted: #a0a0a0;
    --color-border: #2a2a2a;
    --color-accent: #f2f2f2;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

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

.wrap {
  max-width: var(--wrap-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}

.brand-tagline {
  font-size: 0.8rem;
  color: var(--color-muted);
  letter-spacing: 0.03em;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  position: relative;
}

.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 4px; }

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-text);
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
  }
  .site-nav.is-open { max-height: 300px; }
  .site-nav ul {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0 0;
  }
}

/* Main */
main { min-height: 60vh; }

.page-gallery h1,
.page-copy h1 {
  font-family: var(--font-heading);
  font-weight: normal;
  font-size: 2rem;
  margin: 2.5rem 0 1.5rem;
}

.page-copy {
  max-width: 720px;
  padding-bottom: 3rem;
}

/* Home grid */
.home-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  padding: 2.5rem 0;
}

.home-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4 / 3;
}

.home-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.home-tile:hover img { transform: scale(1.04); }

.home-tile span {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

@media (max-width: 640px) {
  .home-grid { grid-template-columns: 1fr; }
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  padding-bottom: 3rem;
}

.gallery-item {
  display: block;
  overflow: hidden;
  border-radius: 3px;
  aspect-ratio: 1 / 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img { transform: scale(1.05); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 2rem;
}

.lightbox.is-open { display: flex; }

body.lightbox-locked { overflow: hidden; }

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.5rem;
}

.lightbox-close { top: 1rem; right: 1.5rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 2.5rem 0 3.5rem;
  align-items: start;
}

.slideshow-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  max-height: 60vh;
}

.slideshow-image {
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
}

.slideshow-prev,
.slideshow-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.slideshow-prev { left: 0.75rem; }
.slideshow-next { right: 0.75rem; }

.slideshow-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  overflow-x: auto;
}

.slideshow-thumb {
  flex: 0 0 auto;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 3px;
  background: none;
  cursor: pointer;
  overflow: hidden;
  width: 80px;
  aspect-ratio: 3 / 4;
}

.slideshow-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slideshow-thumb.is-active { border-color: var(--color-accent); }

@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 2.5rem 0 3.5rem;
}

.contact-info p { margin: 0.25rem 0; }

.contact-form { display: grid; gap: 1rem; }

.contact-form label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-bg);
  color: var(--color-text);
  font: inherit;
}

.contact-form textarea { min-height: 140px; resize: vertical; }

.contact-form button {
  justify-self: start;
  padding: 0.7rem 1.75rem;
  background: var(--color-accent);
  color: var(--color-bg);
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.honeypot-field { position: absolute; left: -9999px; top: -9999px; }

.form-status {
  min-height: 1.2em;
  font-size: 0.9rem;
  margin: 0;
}

.form-status.is-success { color: #1a7a3a; }
.form-status.is-error { color: #b3261e; }

@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 0 2.5rem;
  margin-top: 2rem;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  color: var(--color-muted);
  font-size: 0.85rem;
}
