/* Shared look for the home and collections pages, following jbn.cl:
   institutional green, lime accent, Barlow for titles and text, Oswald for small uppercase labels. Light theme only. */
:root {
  --paper: #F4F8F2;
  --surface: #FFFFFF;
  --ink: #33402F;
  --muted: #5B6B57;
  --leaf: #09542A;
  --leaf-deep: #1F4019;
  --leaf-soft: #E6F0E2;
  --pollen: #AADB24;
  --line: #DBE8D6;
  --map-bg: #E8F1D3;
  --shadow: 0 6px 24px rgba(9, 84, 42, .14);
  --body: "Barlow", Helvetica, Arial, sans-serif;
  --label: "Oswald", "Barlow", Helvetica, Arial, sans-serif;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font: 17px/1.55 var(--body); -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--body); font-weight: 700; color: var(--leaf); text-wrap: balance; margin: 0; line-height: 1.15; }
p { margin: 0; }
a { color: var(--leaf); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--pollen); outline-offset: 2px; }
.eyebrow { font: 500 13px/1.3 var(--label); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* Header */
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 700;
  background: var(--surface); border-bottom: 4px solid var(--pollen); box-shadow: 0 2px 10px rgba(9, 84, 42, .08);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
.site-head .in {
  max-width: 1180px; margin: 0 auto; padding-block: 8px;
  padding-left: var(--gutter-l); padding-right: var(--gutter-r);
  display: flex; align-items: center; gap: 12px;
}
.site-head img { height: 44px; width: auto; flex: none; }
.site-head .t { min-width: 0; display: flex; flex-direction: column; flex: 1; }
.site-head .t small { font: 500 11px/1.3 var(--label); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.site-head .t strong { font-size: 18px; line-height: 1.15; color: var(--leaf); }
.back {
  flex: none; width: 44px; height: 44px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface);
  display: grid; place-items: center; text-decoration: none;
}
.back svg { width: 22px; height: 22px; stroke: var(--leaf); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Link back to the main website, at the right end of the header */
.site-link {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px;
  border: 1.5px solid var(--leaf); border-radius: 4px; color: var(--leaf); text-decoration: none;
  font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap;
}
.site-link svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.site-link:hover { background: var(--leaf); color: var(--surface); }
.site-link .long { display: none; }
@media (min-width: 560px) { .site-link .long { display: inline; } }

/* Footer: same four columns as jbn.cl, on the institutional green */
.site-foot { background: var(--leaf); color: #fff; margin-top: 28px; }
.site-foot .cols {
  max-width: 1180px; margin: 0 auto; padding: 44px var(--gutter-r) 28px var(--gutter-l);
  display: grid; gap: 32px 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
.site-foot h3 { color: #fff; font-size: 20px; text-transform: uppercase; margin-bottom: 12px; }
.site-foot p, .site-foot li { font-size: 16px; font-weight: 500; line-height: 1.5; }
.site-foot p + p { margin-top: 8px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.site-foot a { color: #fff; }
.site-foot ul a { text-decoration: none; }
.site-foot ul a:hover { text-decoration: underline; }
.site-foot b { font-weight: 700; }
.site-foot .social { display: flex; gap: 12px; margin-top: 14px; }
.site-foot .social a { width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--leaf); display: grid; place-items: center; }
.site-foot .social svg { width: 20px; height: 20px; fill: currentColor; }
.site-foot .copy { border-top: 1px solid rgba(255, 255, 255, .25); }
.site-foot .copy p { max-width: 1180px; margin: 0 auto; padding: 16px var(--gutter-r) 24px var(--gutter-l); font-size: 14px; opacity: .85; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 4px; padding: 12px 18px; min-height: 48px;
  font-weight: 600; text-transform: uppercase; letter-spacing: .03em; font-size: 15px; text-decoration: none;
  background: var(--leaf); color: var(--surface);
}
.btn.ghost { background: transparent; color: var(--leaf); border: 1.5px solid var(--leaf); }
.btn.soft { background: var(--leaf-soft); color: var(--leaf); }
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.tag {
  display: inline-block; font: 500 12px/1 var(--label); letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 8px; border-radius: 3px; background: var(--pollen); color: var(--leaf-deep);
}
.tag.muted { background: var(--leaf-soft); color: var(--muted); }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
