:root {
  color-scheme: light;
  --cream: #fff7df;
  --cream-deep: #f8e4b3;
  --butter: #ffe09a;
  --potato: #f4c95d;
  --potato-dark: #8b5e34;
  --sprout: #76a66b;
  --sprout-dark: #315f34;
  --soil: #3f2a1d;
  --soil-muted: #76573b;
  --card: rgba(255, 252, 242, 0.94);
  --shadow: 0 22px 55px rgba(92, 58, 26, 0.17);
  --radius: 1.35rem;
  --container: 1120px;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --section-y: clamp(3rem, 8vw, 6.25rem);
  font-family: Inter, ui-rounded, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  color: var(--soil);
  background:
    radial-gradient(circle at 12% 8%, rgba(244, 201, 93, 0.48), transparent 24rem),
    radial-gradient(circle at 92% 18%, rgba(118, 166, 107, 0.24), transparent 24rem),
    radial-gradient(circle at 72% 78%, rgba(255, 224, 154, 0.46), transparent 22rem),
    linear-gradient(180deg, var(--cream), #fffaf0 58%, var(--cream-deep));
  min-height: 100vh;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body::before {
  background-image: radial-gradient(rgba(139, 94, 52, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  content: "";
  inset: 0;
  opacity: 0.32;
  pointer-events: none;
  position: fixed;
}

img, svg { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 0.12em; text-underline-offset: 0.2em; }
a:hover { color: var(--sprout-dark); }
:focus-visible { outline: 3px solid var(--sprout-dark); outline-offset: 4px; border-radius: 0.35rem; }

.skip-link {
  background: var(--soil);
  border-radius: 999px;
  color: white;
  left: 1rem;
  padding: 0.75rem 1rem;
  position: fixed;
  top: 1rem;
  transform: translateY(-180%);
  z-index: 10;
}
.skip-link:focus { transform: translateY(0); }

.container, .nav, .section, .site-footer {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.site-header {
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  background: rgba(255, 247, 223, 0.88);
  border-bottom: 1px solid rgba(139, 94, 52, 0.14);
  position: sticky;
  top: 0;
  z-index: 5;
}
.nav {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: space-between;
  padding-block: 0.85rem;
}
.brand {
  align-items: center;
  display: inline-flex;
  font-size: clamp(1rem, 5vw, 1.18rem);
  font-weight: 900;
  gap: 0.55rem;
  max-width: 100%;
  text-align: center;
  text-decoration: none;
}
.brand-mark {
  background: var(--butter);
  border: 1px solid rgba(139, 94, 52, 0.2);
  border-radius: 999px;
  display: grid;
  flex: 0 0 auto;
  font-size: 1.25rem;
  height: 2.35rem;
  place-items: center;
  width: 2.35rem;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.95rem;
  font-weight: 850;
  justify-content: center;
  width: 100%;
}
.nav-links a {
  border-radius: 999px;
  min-height: 2.75rem;
  padding: 0.72rem 0.9rem;
  text-align: center;
  text-decoration: none;
}
.nav-links a:hover, .nav-links a:focus-visible { background: rgba(118, 166, 107, 0.16); color: var(--sprout-dark); }

.section { padding-block: var(--section-y); position: relative; }
.hero {
  align-items: center;
  display: grid;
  gap: clamp(1.5rem, 6vw, 3rem);
  min-height: auto;
  padding-top: clamp(2.4rem, 8vw, 5.5rem);
}
h1, h2, h3 { letter-spacing: -0.04em; line-height: 1.02; margin: 0; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.65rem, 16vw, 7.25rem); max-width: 10ch; }
h2 { font-size: clamp(2rem, 9vw, 4.3rem); }
h3 { font-size: clamp(1.18rem, 4vw, 1.35rem); }
p { font-size: clamp(1rem, 2.5vw, 1.08rem); line-height: 1.68; }
.eyebrow { color: var(--sprout-dark); font-size: 0.82rem; font-weight: 950; letter-spacing: 0.12em; margin: 0 0 0.75rem; text-transform: uppercase; }
.subtitle { font-size: clamp(1.2rem, 6vw, 2rem); font-weight: 850; margin: 1rem 0 0; max-width: 22ch; }
.hero-text { font-size: clamp(1.04rem, 3vw, 1.16rem); max-width: 42rem; }
.hero-actions { display: grid; gap: 0.8rem; margin-top: 1.5rem; max-width: 26rem; }
.hero-actions wa-button, .support-card wa-button { width: 100%; }

.button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 900;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.2rem;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.button:hover {
  color: var(--soil);
  transform: translateY(-1px);
}
.button-primary {
  background: var(--sprout);
  border: 1px solid var(--sprout-dark);
  color: white;
}
.button-primary:hover {
  background: var(--sprout-dark);
  color: white;
}
.button-secondary {
  background: rgba(255, 252, 242, 0.36);
  border: 1px solid rgba(63, 42, 29, 0.34);
  color: var(--soil);
}
.button-secondary:hover {
  background: rgba(118, 166, 107, 0.16);
  border-color: var(--sprout-dark);
}

.hero-art, .feature-card, .support-card {
  background: var(--card);
  border: 1px solid rgba(139, 94, 52, 0.15);
  border-radius: clamp(1.2rem, 4vw, 2rem);
  box-shadow: var(--shadow);
}
.hero-art {
  overflow: hidden;
  padding: clamp(0.55rem, 2vw, 1rem);
  position: relative;
  text-align: center;
  transform: rotate(0.5deg);
}
.intro-card img { aspect-ratio: 1 / 1; border-radius: 1.1rem; display: block; height: auto; object-fit: contain; width: 100%; }

.section-heading { margin-bottom: clamp(1.5rem, 4vw, 2.25rem); }
.centered-heading { margin-inline: auto; max-width: 760px; text-align: center; }
.centered-heading p:last-child { margin-bottom: 0; }
.status-card, .empty-card, .error-card {
  background: var(--card);
  border: 2px dashed rgba(139, 94, 52, 0.3);
  border-radius: var(--radius);
  margin-inline: auto;
  max-width: 680px;
  padding: clamp(1.25rem, 5vw, 2rem);
  text-align: center;
}
.empty-card h3, .error-card h3 { font-size: clamp(1.7rem, 5vw, 2.5rem); }
.empty-card p, .error-card p { margin-bottom: 0; }
.gallery-grid { display: grid; gap: clamp(1rem, 3vw, 1.35rem); grid-template-columns: 1fr; }
.gallery-card {
  background: var(--card);
  border: 1px solid rgba(139, 94, 52, 0.14);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(92, 58, 26, 0.1);
  min-width: 0;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.gallery-card:hover, .gallery-card:focus-within { border-color: rgba(49, 95, 52, 0.28); box-shadow: var(--shadow); transform: translateY(-4px); }
.gallery-card__preview { appearance: none; background: transparent; border: 0; color: inherit; cursor: zoom-in; display: block; font: inherit; padding: 0; text-align: inherit; width: 100%; }
.gallery-card__preview:focus-visible { outline: 4px solid var(--sprout-dark); outline-offset: -6px; }
.image-frame { aspect-ratio: 4 / 3; background: linear-gradient(135deg, #f7d983, #d9bd8f); display: grid; overflow: hidden; place-items: center; width: 100%; }
.image-frame img { display: block; height: 100%; object-fit: cover; width: 100%; }
.missing-image { align-items: center; color: rgba(63, 42, 29, 0.72); display: flex; flex-direction: column; font-size: 3rem; gap: 0.35rem; height: 100%; justify-content: center; padding: 1rem; text-align: center; width: 100%; }
.missing-image small { font-size: 0.9rem; font-weight: 850; }
.card-copy { padding: clamp(1rem, 3vw, 1.2rem); }
.card-copy p { color: var(--soil-muted); margin: 0.65rem 0 0; overflow-wrap: anywhere; }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.9rem; }
.tag-list wa-tag { max-width: 100%; }
.date-text { color: var(--soil-muted); font-size: 0.92rem; font-weight: 800; margin: 0.7rem 0 0; }

.split-section { align-items: center; display: grid; gap: clamp(1.2rem, 4vw, 2rem); }
.split-section > div:first-child { max-width: 68ch; }
.feature-card { padding: clamp(1.4rem, 4vw, 2rem); text-align: center; }
.feature-icon { display: inline-block; filter: drop-shadow(0 10px 14px rgba(63, 42, 29, 0.14)); font-size: clamp(2.4rem, 9vw, 4.5rem); margin: 0 0.2rem; }
.feature-card p { font-weight: 850; margin-bottom: 0; }
.support-section { padding-top: clamp(2rem, 5vw, 3rem); }
.support-card { margin-inline: auto; max-width: 820px; padding: clamp(1.4rem, 5vw, 3rem); text-align: center; }
.support-card p:not(.eyebrow) { margin-inline: auto; max-width: 640px; }

.lightbox {
  background: transparent;
  border: 0;
  margin: auto;
  max-height: 96dvh;
  max-width: min(96vw, 980px);
  overflow: visible;
  padding: 0;
  width: 100%;
}
.lightbox::backdrop { background: rgb(0 0 0 / 0.72); }
.lightbox__panel {
  background: var(--card);
  border: 1px solid rgba(139, 94, 52, 0.18);
  border-radius: clamp(1rem, 4vw, 1.6rem);
  box-shadow: 0 28px 70px rgb(0 0 0 / 0.34);
  max-height: 92dvh;
  min-width: 0;
  overflow: auto;
  padding: clamp(0.75rem, 3vw, 1.25rem);
  position: relative;
}
.lightbox__image {
  background: var(--cream-deep);
  border-radius: 1rem;
  display: block;
  max-height: 70dvh;
  object-fit: contain;
  width: 100%;
}
.lightbox__content { min-width: 0; padding-top: 1rem; }
.lightbox__content p { color: var(--soil-muted); overflow-wrap: anywhere; }
.lightbox__close {
  align-items: center;
  background: var(--soil);
  border: 2px solid rgb(255 255 255 / 0.82);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgb(0 0 0 / 0.24);
  color: white;
  cursor: pointer;
  display: inline-flex;
  font-size: 2rem;
  font-weight: 800;
  height: 44px;
  justify-content: center;
  line-height: 1;
  min-height: 44px;
  min-width: 44px;
  padding: 0 0 0.15rem;
  position: absolute;
  right: clamp(1rem, 3vw, 1.5rem);
  top: clamp(1rem, 3vw, 1.5rem);
  width: 44px;
  z-index: 1;
}
.lightbox__close:hover { background: var(--sprout-dark); }

.site-footer { align-items: center; border-top: 1px solid rgba(139, 94, 52, 0.14); display: flex; flex-direction: column; gap: 0.5rem 1rem; justify-content: center; padding-block: 2rem; position: relative; text-align: center; }
.site-footer p { font-weight: 850; margin: 0; }

@media (min-width: 375px) {
  .hero-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 34rem; }
}

@media (min-width: 768px) {
  .nav { flex-direction: row; padding-block: 0.85rem; }
  .nav-links { justify-content: flex-end; width: auto; }
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr); min-height: min(760px, calc(100vh - 4.25rem)); }
  .hero-actions wa-button { width: auto; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-section { grid-template-columns: 1fr 0.8fr; }
  .site-footer { flex-direction: row; justify-content: space-between; text-align: left; }
}

@media (min-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .intro-card img { aspect-ratio: 4 / 5; }
}

@media (min-width: 1440px) {
  :root { --container: 1200px; }
  .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (hover: none) {
  .gallery-card:hover { transform: none; }
}

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