:root {
  --wood-dark: #2e2017;
  --wood: #5c3d24;
  --wood-mid: #8a5a35;
  --tan: #c89b6b;
  --cream: #f5efe6;
  --paper: #faf6ef;
  --ink: #29211a;
  --muted: #7a6a59;
  --line: #e3d8c8;
  --accent: #a9682f;
  --shadow: 0 12px 30px rgba(46, 32, 23, 0.12);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

/* The hidden attribute must always win, even over elements that set a
   display value (e.g. the flex-centered login box). */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.4em;
}

a {
  color: inherit;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--cream);
  text-decoration: none;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, background 0.2s ease;
}
.btn:hover {
  background: var(--wood-mid);
  transform: translateY(-2px);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  color: var(--cream);
  background: linear-gradient(
      135deg,
      rgba(46, 32, 23, 0.92),
      rgba(92, 61, 36, 0.85)
    ),
    url("https://images.unsplash.com/photo-1504148455328-c376907d081c?auto=format&fit=crop&w=1600&q=80")
      center/cover;
  padding: 0 6vw 3.5rem;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 0;
}
.brand {
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  gap: 1.6rem;
  align-items: center;
  font-weight: 500;
}
.nav-links a {
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.nav-links a:hover {
  opacity: 1;
}
.nav-admin {
  border: 1px solid rgba(245, 239, 230, 0.4);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

.hero-inner {
  margin: auto 0;
  max-width: 640px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.8rem;
  color: var(--tan);
  margin: 0 0 1rem;
  font-weight: 600;
}
.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
  margin-bottom: 1rem;
}
.hero-sub {
  font-size: 1.15rem;
  max-width: 30rem;
  opacity: 0.92;
  margin-bottom: 2rem;
}
.verse {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1rem;
  opacity: 0.85;
  max-width: 34rem;
  border-left: 2px solid var(--tan);
  padding-left: 1rem;
  margin: 0;
}
.verse span {
  display: block;
  font-style: normal;
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 0.3rem;
}

/* ---- Sections ---- */
.section {
  padding: 5.5rem 6vw;
  max-width: 1200px;
  margin: 0 auto;
}
.section-head {
  text-align: center;
  margin-bottom: 3rem;
}
.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}
.section-head p {
  color: var(--muted);
  margin: 0;
}

/* ---- Gallery ---- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(46, 32, 23, 0.18);
}
.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.card .cap {
  padding: 1rem 1.1rem 1.2rem;
  font-size: 0.98rem;
  color: var(--ink);
}
.card .cap.empty-cap {
  color: var(--muted);
  font-style: italic;
}
.empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 3rem 0;
  font-style: italic;
}

/* ---- About ---- */
.about {
  background: var(--cream);
  max-width: none;
}
.about-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about-grid p {
  color: #4a3c2e;
}
.about-location {
  font-weight: 600;
  color: var(--wood) !important;
}
.about-location::before {
  content: "\1F4CD"; /* map pin */
  margin-right: 0.4rem;
}
.services {
  list-style: none;
  padding: 1.5rem;
  margin: 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.services li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.services li:last-child {
  border-bottom: none;
}
.services li::before {
  content: "✦";
  color: var(--accent);
  margin-right: 0.6rem;
}

/* ---- Contact ---- */
.contact {
  text-align: center;
}
.contact p {
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto 2rem;
}
.contact-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 3.5rem;
  margin: 0 auto;
}
.contact-details p {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.contact-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--tan);
}
.contact-details a {
  font-family: "Fraunces", serif;
  font-size: 1.7rem;
  color: var(--ink);
  text-decoration: none;
}
.contact-details a:hover {
  color: var(--accent);
}

/* ---- Footer ---- */
.footer {
  background: var(--wood-dark);
  color: var(--cream);
  text-align: center;
  padding: 2.5rem 1rem;
}
.footer p {
  margin: 0.2rem 0;
}
.footer-verse {
  font-family: "Fraunces", serif;
  font-style: italic;
  color: var(--tan);
  font-size: 0.9rem;
}
.footer-credit {
  font-size: 0.78rem;
  opacity: 0.55;
  letter-spacing: 0.02em;
  margin-top: 1.2rem;
}
.footer-credit a {
  color: var(--tan);
  text-decoration: none;
}
.footer-credit a:hover {
  text-decoration: underline;
}

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(28, 19, 12, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 4vw;
}
.lightbox[hidden] {
  display: none;
}
.lightbox figure {
  margin: 0;
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
}
.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
}
.lightbox figcaption {
  color: var(--cream);
  margin-top: 1rem;
  font-family: "Fraunces", serif;
  font-size: 1.1rem;
}
.lightbox-close {
  position: absolute;
  top: 1.4rem;
  right: 1.8rem;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-links {
    gap: 1rem;
    font-size: 0.9rem;
  }
  .nav-links a:not(.nav-admin) {
    display: none;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
}
