:root {
  --brand-brown: #5b3a1f;
  --brand-tan:   #c9b27a;
  --brand-olive: #6b6b3e;
  --ink:         #1f1a14;
  --paper:       #faf6ef;
  --rule:        #e8e0d2;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  color: var(--brand-brown);
  line-height: 1.2;
  margin-top: 0;
}

a { color: var(--brand-brown); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--brand-olive); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav-row { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1.25rem; }
.brand img { display: block; }
.primary-nav a { margin-left: 1.25rem; text-decoration: none; }
.primary-nav a:hover { text-decoration: underline; }
.primary-nav .cta {
  border: 1px solid var(--brand-olive);
  padding: 0.4rem 0.8rem;
  border-radius: 2px;
  background: transparent;
}
.primary-nav .cta:hover { background: var(--brand-olive); color: var(--paper); }

main.container { padding-top: 2.5rem; padding-bottom: 4rem; }

.hero { max-width: 720px; }
.hero h1 { font-size: 2.6rem; }
.tagline { font-size: 1.2rem; color: var(--brand-olive); }

.btn {
  display: inline-block;
  border: 1px solid var(--brand-olive);
  padding: 0.55rem 1rem;
  border-radius: 2px;
  text-decoration: none;
  margin-right: 0.5rem;
}
.btn:hover { background: var(--brand-olive); color: var(--paper); }
.btn-primary { background: var(--brand-brown); color: var(--paper); border-color: var(--brand-brown); }
.btn-primary:hover { background: var(--brand-olive); border-color: var(--brand-olive); }

.cta-row { margin-top: 1.5rem; }

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--brand-olive);
}

/* Form layout — used by Contact and Order */
form.standard label { display: block; margin-top: 1rem; font-weight: 600; }
form.standard input[type="text"],
form.standard input[type="email"],
form.standard input[type="tel"],
form.standard textarea,
form.standard input[type="file"] {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--rule);
  background: #fff;
  font: inherit;
}
form.standard textarea { min-height: 8rem; }
form.standard .errorlist { color: #8a1c1c; padding: 0; list-style: none; margin: 0.25rem 0; }
form.standard .help { color: var(--brand-olive); font-size: 0.9rem; }
form.standard .honeypot { position: absolute; left: -10000px; }

/* Gallery grid */
.gallery-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .gallery-grid { grid-template-columns: 1fr 1fr 1fr; } }
.gallery-card {
  border: 1px solid var(--rule);
  background: #fff;
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: transform 0.15s ease;
}
.gallery-card:hover { transform: translateY(-2px); }
.gallery-card .thumb {
  aspect-ratio: 1 / 1;
  background-color: var(--rule);
  background-size: cover;
  background-position: center;
}
.gallery-card .meta { padding: 0.6rem 0.8rem; }
.gallery-card h3 { font-size: 1.1rem; margin: 0 0 0.25rem; }
.gallery-card p { margin: 0; color: var(--brand-olive); font-size: 0.9rem; }

.gallery-search { margin: 1rem 0 1.5rem; }
.gallery-search input { width: 100%; max-width: 480px; padding: 0.55rem; border: 1px solid var(--rule); font: inherit; }
.gallery-chips { margin: 0 0 1.5rem; }
.gallery-chips a { display: inline-block; margin-right: 0.5rem; margin-bottom: 0.5rem; border: 1px solid var(--rule); padding: 0.25rem 0.65rem; border-radius: 999px; text-decoration: none; }

.carousel { display: flex; flex-direction: column; gap: 0.5rem; }
.carousel .stage img { width: 100%; height: auto; display: block; }
.carousel .controls { display: flex; gap: 0.5rem; align-items: center; }
.carousel .thumbs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.carousel .thumbs img { width: 64px; height: 64px; object-fit: cover; cursor: pointer; opacity: 0.6; }
.carousel .thumbs img.active { opacity: 1; outline: 2px solid var(--brand-brown); }

:focus-visible { outline: 2px solid var(--brand-brown); outline-offset: 2px; }
