:root {
  color-scheme: light;
  --ink: #20251f;
  --muted: #666e63;
  --paper: #f5f4ef;
  --surface: #ebe9e0;
  --forest: #26372d;
  --moss: #617361;
  --rust: #b9683f;
  --line: #d8d6cc;
  --page-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 "Avenir Next", Avenir, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 4px;
}

h1, h2, h3, .brand {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.wrap {
  width: min(var(--page-width), calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: absolute;
  z-index: 5;
  inset: 0 0 auto;
  color: #fff;
}

.site-header--solid {
  position: relative;
  background: var(--forest);
}

.nav {
  width: min(var(--page-width), calc(100% - 48px));
  min-height: 78px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: inherit;
  font-size: 1.45rem;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}

.nav-links a {
  text-decoration: none;
  text-underline-offset: 5px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { text-decoration: underline; }

.hero {
  position: relative;
  display: flex;
  min-height: min(820px, 94svh);
  align-items: flex-end;
  overflow: hidden;
  background: var(--forest);
  color: #fff;
}

.hero-image,
.page-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image { object-position: center 56%; }

.hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(16 26 20 / 65%), transparent 88%),
    linear-gradient(0deg, rgb(16 26 20 / 68%), transparent 74%);
  content: "";
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--page-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 170px 0 88px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--rust);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.hero .eyebrow { color: #e9ba87; }

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.3rem, 8vw, 7rem);
  line-height: 0.98;
}

.hero-copy {
  max-width: 510px;
  margin: 24px 0 0;
  color: rgb(255 255 255 / 87%);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: var(--rust);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.button:hover { background: #9f5433; }

.button--light {
  border-color: rgb(255 255 255 / 55%);
  background: transparent;
}

.button--light:hover {
  background: #fff;
  color: var(--ink);
}

.section { padding-block: clamp(64px, 9vw, 112px); }

.section--tinted { background: var(--surface); }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-heading h2,
.intro h2,
.contact-panel h2 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.05;
}

.section-heading p {
  max-width: 36ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--forest);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  white-space: nowrap;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.photo-card {
  position: relative;
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #d1d2c9;
  color: #fff;
  cursor: zoom-in;
  font: inherit;
  text-align: left;
  text-decoration: none;
}

.photo-card--feature { grid-row: span 2; }

.photo-card:not(.photo-card--feature) { grid-row: span 2; }

.photo-card img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 350ms ease;
}

.photo-card--feature img { aspect-ratio: 3 / 4; }

.photo-card:hover img { transform: scale(1.035); }

.photo-card::after {
  position: absolute;
  inset: 38% 0 0;
  background: linear-gradient(transparent, rgb(10 18 13 / 75%));
  content: "";
  pointer-events: none;
}

.photo-caption {
  position: absolute;
  z-index: 1;
  right: 20px;
  bottom: 18px;
  left: 20px;
}

.photo-caption strong {
  display: block;
  font: 400 1.35rem/1.2 Georgia, "Times New Roman", serif;
}

.photo-caption span {
  display: block;
  margin-top: 4px;
  color: rgb(255 255 255 / 78%);
  font-size: 0.78rem;
}

.intro {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: start;
  gap: clamp(36px, 8vw, 110px);
}

.intro .eyebrow { margin-top: 12px; }

.intro p:not(.eyebrow) {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  background: var(--forest);
  color: #fff;
}

.contact-band h2 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.15;
}

.site-footer {
  padding: 28px 0;
  background: #1b2820;
  color: rgb(255 255 255 / 72%);
  font-size: 0.83rem;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-row p { margin: 0; }

.page-intro {
  padding-block: 76px 38px;
}

.page-intro h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1;
}

.page-intro p:last-child {
  max-width: 58ch;
  margin: 18px 0 0;
  color: var(--muted);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 28px;
}

.filter-button {
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.87rem;
}

.filter-button:hover,
.filter-button[aria-pressed="true"] {
  border-color: var(--forest);
  background: var(--forest);
  color: #fff;
}

.gallery-grid {
  column-count: 3;
  column-gap: 4px;
}

.gallery-empty {
  padding: 56px 24px;
  border: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.gallery-item {
  display: inline-block;
  width: 100%;
  margin: 0 0 4px;
  break-inside: avoid;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #d1d2c9;
  cursor: zoom-in;
  text-align: left;
}

.gallery-item[hidden] { display: none; }

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 350ms ease;
}

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

.page-photo {
  position: relative;
  min-height: 350px;
  overflow: hidden;
  background: var(--forest);
}

.page-photo::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(16 26 20 / 55%), transparent 90%);
  content: "";
}

.page-photo .eyebrow { color: #e9ba87; }

.page-photo .wrap {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 350px;
  align-items: end;
  padding-block: 42px;
  color: #fff;
}

.page-photo h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(36px, 8vw, 100px);
}

.contact-panel {
  padding: clamp(28px, 5vw, 54px);
  background: var(--surface);
}

.contact-layout > div:first-child h2 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.05;
}

.contact-panel p { color: var(--muted); }

.contact-email {
  color: var(--forest);
  font-size: 1.2rem;
  font-weight: 600;
  text-underline-offset: 5px;
}

dialog {
  width: min(1000px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100% - 32px);
  padding: 14px;
  border: 0;
  background: #151a16;
  color: #fff;
}

dialog::backdrop { background: rgb(8 12 9 / 88%); }

.lightbox-image {
  width: 100%;
  max-height: calc(100svh - 104px);
  object-fit: contain;
}

.lightbox-close {
  display: block;
  margin: 0 0 10px auto;
  padding: 6px 12px;
  border: 1px solid rgb(255 255 255 / 45%);
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: inherit;
}

.lightbox-caption {
  margin: 10px 0 0;
  color: rgb(255 255 255 / 78%);
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .nav { min-height: 68px; }
  .nav-links { gap: 16px; font-size: 0.82rem; }
  .hero { min-height: 82svh; }
  .hero-content { padding-bottom: 64px; }
  .section-heading { align-items: start; flex-direction: column; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-card { grid-row: auto; }
  .photo-card img { height: auto; aspect-ratio: auto; object-fit: contain; }
  .intro, .contact-layout { grid-template-columns: 1fr; }
  .contact-band { align-items: start; flex-direction: column; }
  .gallery-grid { column-count: 2; }
}

@media (max-width: 480px) {
  .wrap, .nav, .hero-content { width: calc(100% - 32px); }
  .brand { font-size: 1.2rem; }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 0.78rem; }
  .hero h1 { font-size: clamp(3.1rem, 16vw, 4.4rem); }
  .photo-grid { grid-template-columns: 1fr; }
  .gallery-grid { column-count: 1; }
  .photo-card img { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
