:root {
  --bg: #faf6f0;
  --ink: #2c2620;
  --muted: #7a7168;
  --accent: #a8593f;
  --card-bg: #ffffff;
  --hero-text: #fbf7f1;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #201c18;
    --ink: #ece5db;
    --muted: #a89d90;
    --accent: #d17a5c;
    --card-bg: #2a251f;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

/* Hero */

.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 16, 12, 0.75) 0%, rgba(20, 16, 12, 0.15) 55%, rgba(20, 16, 12, 0) 80%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 2rem 1.5rem 2.5rem;
  width: 100%;
  text-align: center;
  color: var(--hero-text);
}

.hero__content h1 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.hero__tagline {
  margin: 0.5rem 0 0;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  letter-spacing: 0.04em;
  color: rgba(251, 247, 241, 0.85);
}

/* Section headings */

.section-heading {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-heading h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0 0 0.4rem;
}

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

.gallery-section, .story-section {
  padding: 4rem 0;
}

.gallery-section {
  border-bottom: 1px solid rgba(122, 113, 104, 0.2);
}

/* Gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding: 0 1.5rem;
}

.gallery figure {
  margin: 0;
  background: var(--card-bg);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(44, 38, 32, 0.08);
}

.gallery .thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  cursor: zoom-in;
  transition: opacity 0.2s ease;
}

.gallery img:hover {
  opacity: 0.92;
}

.gallery figcaption {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.6rem 0.75rem;
}

/* Story */

.story {
  max-width: 38rem;
  margin: 2.5rem auto 0;
  padding: 0 1.5rem;
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.8;
}

.story p {
  margin: 0 0 1.4em;
}

/* Footer */

.site-footer {
  text-align: center;
  padding: 2.5rem 1.5rem 3rem;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 12, 10, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 10;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__image {
  max-width: 100%;
  max-height: 100%;
  border-radius: 4px;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: #fbf7f1;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.5rem;
}
