:root {
  --paper: #f4f1eb;
  --ink: #1b1916;
  --muted: #5f594f;
  --line: #ddd6cb;
  --thumb: #e6e0d6;
  --focus: #8a5a22;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

body.is-locked {
  overflow: hidden;
}

.page {
  width: min(1080px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  padding: 2.75rem 0 1.35rem;
}

.site-header h1 {
  margin: 0;
  font-family: Barlow, sans-serif;
  font-weight: 600;
  font-size: clamp(2.45rem, 6.6vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.site-header a[href^="tel"] {
  color: inherit;
  text-decoration: none;
  background: none;
  pointer-events: none;
}

.hero {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 1.6rem;
  background: var(--thumb);
}

.lede {
  max-width: 40rem;
  margin: 0 0 3rem;
  font-size: 1.125rem;
  line-height: 1.65;
}

.photos h2,
.contact h2 {
  margin: 0 0 0.85rem;
  font-family: Barlow, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}

.gallery a {
  display: block;
  background: var(--thumb);
  line-height: 0;
}

.gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery a:hover img,
.gallery a:focus-visible img {
  filter: brightness(0.9);
}

.contact {
  margin-top: 3.25rem;
  padding: 1.75rem 0 4.5rem;
  border-top: 1px solid var(--line);
}

.contact p {
  max-width: 36rem;
  margin: 0;
  color: var(--muted);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  margin-top: 1.15rem;
}

.contact-actions button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  appearance: none;
  border: 0;
  background: #1e4d7b;
  color: #f7f4ee;
  font-family: Barlow, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.8rem 1.15rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.contact-actions button svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-actions button:hover {
  background: #163a5c;
}

.contact-actions a {
  font-family: Barlow, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  text-underline-offset: 0.16em;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.25rem 1.25rem 1.5rem;
  background: rgba(16, 14, 12, 0.94);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-close {
  position: absolute;
  top: 1.1rem;
  right: 1.15rem;
  border: 0;
  background: transparent;
  color: #f4f1eb;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.lightbox-panel {
  width: min(1080px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.lightbox-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
}

.lightbox-row img {
  display: block;
  width: auto;
  max-width: calc(100% - 7rem);
  max-height: calc(100dvh - 13rem);
  height: auto;
  background: #000;
}

.lightbox-nav {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(244, 241, 235, 0.4);
  border-radius: 50%;
  background: transparent;
  color: #f4f1eb;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-nav:hover {
  background: rgba(244, 241, 235, 0.12);
}

.lightbox-count,
.lightbox-caption {
  margin: 0;
  text-align: center;
}

.lightbox-count {
  color: #b7b0a4;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lightbox-caption {
  max-width: 36rem;
  color: #f4f1eb;
  font-size: 1.05rem;
  line-height: 1.45;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.lightbox :focus-visible {
  outline-color: #f4f1eb;
}

@media (max-width: 700px) {
  .site-header {
    padding-top: 1.75rem;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .lightbox {
    padding: 3.75rem 0.75rem 1rem;
  }

  .lightbox-row {
    position: relative;
    gap: 0;
  }

  .lightbox-row img {
    max-width: 100%;
    max-height: calc(100dvh - 11rem);
  }

  .lightbox-nav {
    position: absolute;
    top: 50%;
    width: 2.35rem;
    height: 2.35rem;
    font-size: 1.5rem;
    background: rgba(16, 14, 12, 0.45);
    transform: translateY(-50%);
  }

  .lightbox-prev {
    left: 0.45rem;
  }

  .lightbox-next {
    right: 0.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery a img,
  .contact-actions button {
    transition: none;
  }
}
