:root {
  --paper: #f4f1eb;
  --ink: #171716;
  --muted: #6f6a61;
  --line: #d8d2c8;
  --white: #fff;
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; }
a { color: inherit; }

.site-header {
  width: min(calc(100% - 40px), var(--max));
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  letter-spacing: .01em;
}
.brand-mark {
  width: 18px;
  height: 18px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
}
.header-link {
  color: var(--muted);
  font-size: .88rem;
  text-decoration: none;
  letter-spacing: .04em;
}
.header-link:hover { color: var(--ink); }

.hero {
  width: min(calc(100% - 40px), var(--max));
  margin: 36px auto 110px;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, .8fr);
  min-height: min(72vh, 850px);
}
.hero-image {
  margin: 0;
  min-height: 560px;
  background: #ddd7ce;
  overflow: hidden;
}
.hero-image img {
  height: 100%;
  object-fit: cover;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(38px, 5vw, 88px);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: .73rem;
  font-weight: 650;
  letter-spacing: .17em;
  text-transform: uppercase;
}
h1, h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.02;
}
h1 { font-size: clamp(3.2rem, 5.8vw, 7rem); }
.hero-copy h1 { font-size: clamp(2.8rem, 4.6vw, 5.7rem); }
h2 { font-size: clamp(2.25rem, 4vw, 4.5rem); }
.intro {
  max-width: 38rem;
  margin: 30px 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
}
.button {
  width: fit-content;
  display: inline-block;
  padding: 14px 18px;
  border: 1px solid var(--ink);
  text-decoration: none;
  font-size: .8rem;
  font-weight: 650;
  letter-spacing: .09em;
  text-transform: uppercase;
  transition: background .18s ease, color .18s ease;
}
.button:hover { background: var(--ink); color: var(--paper); }

.selected {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto 120px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 30px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.section-heading .eyebrow { margin: 0; }

.gallery {
  columns: 3 310px;
  column-gap: 18px;
}
.gallery-item {
  position: relative;
  margin: 0 0 18px;
  break-inside: avoid;
  overflow: hidden;
  background: #ddd7ce;
}
.gallery-item img {
  transition: transform .45s cubic-bezier(.2,.65,.3,1);
}
.gallery-item:hover img { transform: scale(1.015); }
.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 32px 16px 13px;
  color: white;
  font-size: .78rem;
  letter-spacing: .04em;
  background: linear-gradient(transparent, rgba(0,0,0,.58));
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease;
}
.gallery-item:hover figcaption,
.gallery-item:focus-within figcaption { opacity: 1; transform: none; }

.cta {
  padding: clamp(70px, 10vw, 150px) max(20px, calc((100vw - var(--max)) / 2));
  background: var(--ink);
  color: var(--paper);
}
.cta .eyebrow { color: #aaa59d; }
.cta h2 { max-width: 900px; }
.cta > p:not(.eyebrow) {
  max-width: 620px;
  margin: 28px 0 34px;
  color: #c8c3ba;
  font-size: 1.04rem;
}
.button-dark { border-color: var(--paper); }
.button-dark:hover { background: var(--paper); color: var(--ink); }

footer {
  width: min(calc(100% - 40px), var(--max));
  min-height: 100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: var(--muted);
  font-size: .78rem;
}
footer a { text-underline-offset: 3px; }

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    margin-top: 20px;
    margin-bottom: 80px;
  }
  .hero-image { min-height: 52vh; }
  .hero-copy {
    border-left: 1px solid var(--line);
    border-top: 0;
    padding: 44px 28px 50px;
  }
  .gallery { columns: 2 240px; }
}

@media (max-width: 560px) {
  .site-header,
  .hero,
  .selected,
  footer { width: min(calc(100% - 28px), var(--max)); }
  .site-header { min-height: 70px; }
  .header-link { font-size: .75rem; }
  .hero-image { min-height: 48vh; }
  .hero-copy { padding: 36px 22px 42px; }
  .gallery { columns: 1; }
  .gallery-item figcaption { opacity: 1; transform: none; }
  .section-heading { display: block; }
  .section-heading .eyebrow { margin-bottom: 14px; }
  footer { padding: 28px 0; display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery-item img, .gallery-item figcaption, .button { transition: none; }
}
