/* ===== TOKENS ===== */
:root {
  --ink:    #1A1815;
  --paper:  #F6F2EA;
  --muted:  #6E665B;
  --brass:  #9A7B4F;
  --font:   'Archivo', sans-serif;
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  3.5rem;
  --max-w:  1280px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; background: none; border: none; font: inherit; }

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.edge-pad {
  padding-inline: var(--gutter);
  padding-left: max(var(--gutter), calc((100vw - var(--max-w)) / 2 + var(--gutter)));
  padding-right: max(var(--gutter), calc((100vw - var(--max-w)) / 2 + var(--gutter)));
}

/* ===== TYPOGRAPHY ===== */
.eyebrow {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.6rem;
}

h1, h2, h3 {
  font-weight: 900;
  font-stretch: expanded;
  text-transform: uppercase;
  line-height: 1.0;
  letter-spacing: 0.01em;
  color: var(--ink);
}
h1 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 2.5vw, 2rem); }
h3 { font-size: clamp(1rem, 1.8vw, 1.25rem); }

p { color: var(--muted); max-width: 58ch; }
p + p { margin-top: var(--space-sm); }

/* ===== RULE ===== */
.rule {
  border: none;
  border-top: 1px solid var(--brass);
  opacity: 0.25;
}

/* ===== BUTTON ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.65rem;
  font-weight: 700;
  font-stretch: expanded;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: background 0.2s;
}
.btn:hover { background: var(--brass); }

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid rgba(154, 123, 79, 0.2);
  padding: 1.5rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.nav__logo {
  font-size: 0.98rem;
  font-weight: 800;
  font-stretch: expanded;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

.nav__links {
  display: flex;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}
.nav__links a {
  font-size: 0.93rem;
  font-weight: 700;
  font-stretch: expanded;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.15s;
}
.nav__links a:hover { color: var(--ink); }

.nav__toggle {
  display: none;
  font-size: 1.9rem;
  color: var(--ink);
  line-height: 1;
}

@media (max-width: 767px) {
  .nav__toggle { display: block; }
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid rgba(154, 123, 79, 0.2);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-md) var(--gutter);
    gap: var(--space-md);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { font-size: 0.93rem; }
}

/* ===== HERO ===== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 52vh;
}
.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-lg) var(--gutter);
  padding-left: max(var(--gutter), calc((100vw - var(--max-w)) / 2 + var(--gutter)));
}
.hero__sub {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 40ch;
  margin-top: -0.5rem;
}
.hero__img {
  overflow: hidden;
  background: #D9D3C8;
}
.hero__img img {
  width: 100%; height: 100%;
  object-fit: cover;
}

@media (max-width: 767px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__content { padding: var(--space-lg) var(--gutter); }
  .hero__img { height: 55vw; min-height: 220px; }
}

/* ===== PRODUCTS ===== */
.products {
  padding: var(--space-lg) 0;
  border-top: 1px solid rgba(154, 123, 79, 0.2);
}
.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
}
.product.edge-pad { /* applied inline */ }
.product:nth-child(even) .product__img { order: -1; }
.product__img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #D9D3C8;
}
.product__img img { width: 100%; height: 100%; object-fit: cover; }
.product__body { padding: var(--space-sm); }
.product__body h3 { margin-bottom: var(--space-sm); }
.product__body p { font-size: 0.9rem; }

@media (max-width: 767px) {
  .product { grid-template-columns: 1fr; }
  .product:nth-child(even) .product__img { order: 0; }
  .product__img { aspect-ratio: 3 / 2; }
  .product__body { padding: 0; }
}

/* ===== PAGE HEADER (inner pages) ===== */
.page-header {
  padding: var(--space-lg) 0 var(--space-md);
  border-bottom: 1px solid rgba(154, 123, 79, 0.2);
  margin-bottom: var(--space-lg);
}

/* ===== ABOUT ===== */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
  margin-bottom: var(--space-lg);
}
.about-story__text p { color: var(--muted); line-height: 1.75; }
.about-story__text p + p { margin-top: var(--space-md); }
.about-story__img {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #D9D3C8;
}
.about-story__img img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 767px) {
  .about-story { grid-template-columns: 1fr; }
  .about-story__img { aspect-ratio: 4 / 3; order: -1; }
}

/* ===== GALLERY ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery figure {
  background: #D9D3C8;
  cursor: pointer;
}
.gallery figure img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

@media (max-width: 1023px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px)  { .gallery { grid-template-columns: 1fr; } }

/* ===== LIGHTBOX ===== */
.lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(26, 24, 21, 0.95);
  align-items: center;
  justify-content: center;
}
.lb-overlay.is-open { display: flex; }
.lb-overlay img {
  max-width: min(90vw, 900px);
  max-height: 88vh;
  object-fit: contain;
}
.lb-close {
  position: absolute;
  top: 1rem; right: 1.5rem;
  color: var(--paper);
  font-size: 1.8rem;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.15s;
}
.lb-close:hover { opacity: 1; }
.lb-prev, .lb-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  color: var(--paper);
  font-size: 1.2rem;
  padding: 1rem;
  opacity: 0.6;
  transition: opacity 0.15s;
}
.lb-prev:hover, .lb-next:hover { opacity: 1; }
.lb-prev { left: 0.5rem; }
.lb-next { right: 0.5rem; }

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid rgba(154, 123, 79, 0.2);
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
  margin-top: var(--space-lg);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem var(--space-lg);
  text-align: center;
}
.footer__brand {
  font-size: 0.72rem;
  font-weight: 800;
  font-stretch: expanded;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.footer__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem var(--space-sm);
  font-size: 0.77rem;
  color: var(--muted);
}
.footer__meta a { color: var(--muted); transition: color 0.15s; }
.footer__meta a:hover { color: var(--ink); }
.footer__meta svg { width: 1rem; height: 1rem; display: block; }
.footer__copy {
  width: 100%;
  font-size: 0.68rem;
  color: var(--muted);
  opacity: 0.5;
  margin-top: 0.4rem;
}
@media (max-width: 599px) {
  .footer__inner { flex-direction: column; gap: 0.25rem; }
}
