:root {
  color-scheme: light;
  --amber: #a9642b;
  --amber-dark: #7d4a1f;
  --brown: #3e2a1e;
  --cream: #fbf6ee;
  --cream-dark: #f1e6d3;
  --green: #3f5b3d;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--brown);
  background-color: var(--cream);
  background-image: radial-gradient(circle at 50% 0%, rgba(169, 100, 43, 0.08), transparent 70%);
  background-repeat: no-repeat;
  background-size: 100% 700px;
  line-height: 1.6;
}

body > main {
  flex: 1 0 auto;
  min-width: 0;
}

.site-header,
.site-footer {
  flex-shrink: 0;
}

h1, h2, h3 {
  font-family: var(--serif);
  line-height: 1.2;
  margin-top: 0;
}

a {
  color: var(--amber-dark);
}

img { max-width: 100%; }

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

/* Header */
.site-header {
  background: var(--brown);
  color: var(--cream);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: bold;
}

.logo img {
  height: 42px;
  width: 42px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--cream);
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  margin-left: auto;
  cursor: pointer;
  width: 28px;
  height: 22px;
  position: relative;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  background: var(--cream);
  left: 0;
}

.nav-toggle-label span { top: 10px; }
.nav-toggle-label span::before { top: -9px; }
.nav-toggle-label span::after { top: 9px; }

.main-nav {
  margin-left: auto;
}

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

.main-nav a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.main-nav a:hover,
.main-nav a.active {
  border-bottom-color: var(--amber);
}

@media (max-width: 640px) {
  .nav-toggle-label { display: block; }

  .main-nav {
    display: none;
    width: 100%;
    order: 3;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .nav-toggle:checked ~ .main-nav {
    display: block;
  }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--brown);
  /* The tiny (24px) inlined placeholder is naturally soft/blurry from
     being stretched up from such a small source - no filter:blur
     needed. A --brown gradient is composited directly on top of it,
     solid at the true left/right edges of the section and fully
     transparent through the middle, so the backdrop just fades to the
     background color at the edges instead of a hard cutoff. This
     same background also still doubles as the instant-paint loading
     state before the real photo (.hero-media) finishes loading in. */
  background-image: linear-gradient(to right, var(--brown), transparent 15%, transparent 85%, var(--brown)), var(--hero-placeholder);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  color: var(--cream);
  text-align: center;
  padding: 1.5rem 1.25rem;
}

/* On screens wide enough to show the full photo (see .hero-media::after
   below), give it more room - the photo is closer to square (1170x881)
   than a wide landscape, so a taller hero lets it render bigger instead
   of getting squeezed down to fit a short, very wide box. */
@media (min-width: 700px) {
  .hero {
    padding: 6rem 1.25rem;
    min-height: 40rem;
  }

  .hero-media::after {
    background-size: contain;
  }
}

/* Capped at the source photo's own resolution (1170px) so the sharp
   photo never upscales past its native quality no matter how wide the
   viewport gets. Below ~1170px this has no effect (the element is
   already narrower than the cap). No fade/mask here - the photo itself
   should always show with a clean edge; the fade happens on the
   blurred backdrop behind it (see .hero::before above) instead. */
.hero-media {
  position: absolute;
  inset: 0;
  max-width: 1170px;
  margin: 0 auto;
}

/* The full, uncropped photo at full opacity - "contain" on desktop
   (see the media query above) so the whole image (height and width)
   stays visible, "cover" on mobile to fill the short hero edge to
   edge. */
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .55);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero .tagline {
  font-size: 1.15rem;
  max-width: 40rem;
  margin: 0 auto 1.5rem;
  white-space: pre-line;
}

.btn {
  display: inline-block;
  background: var(--amber);
  color: var(--cream);
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  background: var(--amber-dark);
}

/* Content sections */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  overflow-wrap: break-word;
}

.intro {
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
  text-align: center;
}

.intro p {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--amber-dark);
}

.intro .btn {
  margin-top: 0.5rem;
}

.page img {
  display: block;
  max-width: 100%;
  margin: 1.5rem auto;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(62, 42, 30, .2);
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.photo-gallery a {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(62, 42, 30, .2);
}

.photo-gallery img {
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
  transition: transform .25s ease;
}

.photo-gallery a:hover img {
  transform: scale(1.06);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 8, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.lightbox[hidden] {
  display: none;
}

.lightbox .lightbox-img {
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 85vh;
  margin: 0;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .5);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: var(--cream);
  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%);
}

.teasers {
  max-width: 960px;
  margin: 0 auto 3rem;
  padding: 2rem 1.25rem 0;
  border-top: 1px solid var(--cream-dark);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.teaser {
  display: block;
  text-decoration: none;
  color: var(--brown);
  padding: 0.75rem;
  margin: -0.75rem;
  border-radius: 8px;
  transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.teaser:hover,
.teaser:focus-visible {
  background-color: var(--cream-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(62, 42, 30, .15);
}

.teaser h2 {
  display: inline-block;
  color: var(--amber-dark);
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid var(--amber);
  transition: border-color .15s ease;
}

.teaser:hover h2,
.teaser:focus-visible h2 {
  border-bottom-color: var(--amber-dark);
}

.teaser p {
  margin-bottom: 0;
}


/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 32rem;
  margin-top: 1.5rem;
}

.contact-form label {
  font-weight: 600;
  margin-top: 0.5rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.6rem;
  border: 1px solid #c9baa4;
  border-radius: 4px;
  background: white;
  color: var(--brown);
}

.contact-form .btn {
  margin-top: 1rem;
  align-self: flex-start;
}

.form-error {
  background: #f6e2d8;
  border-left: 3px solid var(--amber-dark);
  padding: 0.75rem 1rem;
  border-radius: 4px;
  margin: 0.5rem 0 0;
}

/* Footer */
.site-footer {
  background: var(--brown);
  color: var(--cream-dark);
  margin-top: 2rem;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.footer-inner a {
  color: var(--cream-dark);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-inner p {
  margin: 0;
}
