/* BEAR Foundation of California — static site */
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,600;8..60,700&family=Inter:wght@400;500;600&display=swap');

:root {
  --green: #26502F;
  --green-dark: #1B3A22;
  --amber: #B98A3E;
  --paper: #FAF9F5;
  --ink: #21261F;
  --muted: #5C6657;
  --line: #E3E0D6;
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16.5px;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Header */
header.site {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; max-width: 1080px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 56px; width: auto; display: block; }
nav.main ul { list-style: none; display: flex; gap: 28px; }
nav.main a { color: var(--ink); font-weight: 500; font-size: 15px; letter-spacing: .01em; }
nav.main a:hover { color: var(--green); text-decoration: none; }
nav.main a.active { color: var(--green); border-bottom: 2px solid var(--amber); padding-bottom: 3px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; font: inherit; cursor: pointer; }

/* Hero (home) */
.hero { position: relative; height: 62vh; min-height: 420px; max-height: 640px; overflow: hidden; background: var(--green-dark); }
.hero .slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.8s ease;
}
.hero .slide.on { opacity: 1; }
.hero .veil { position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,36,24,.82) 0%, rgba(20,36,24,.25) 55%, rgba(20,36,24,.15) 100%); }
.hero .hero-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 24px; max-width: 1080px; margin: 0 auto; color: #fff; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.7rem, 3.6vw, 2.7rem); line-height: 1.2; max-width: 22ch; }
.hero p.tag { margin-top: 10px; color: #E9E4D2; font-size: 1.05rem; max-width: 60ch; }

/* Page hero (interior pages) */
.page-head { background: var(--green-dark); color: #fff; padding: 56px 0 44px; }
.page-head h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.page-head p { color: #D9D4C2; margin-top: 8px; max-width: 68ch; }

/* Sections */
section.block { padding: 64px 0; }
section.block.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-family: var(--serif); font-weight: 600; font-size: 1.7rem; color: var(--green-dark); margin-bottom: 18px; }
h3 { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; color: var(--green-dark); margin: 26px 0 8px; }
p + p { margin-top: 14px; }
.lede { font-size: 1.12rem; max-width: 72ch; }

/* Three pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 36px; }
.pillar { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--amber); border-radius: 8px; padding: 26px 24px; }
.pillar h3 { margin-top: 0; }
.pillar p { color: var(--muted); font-size: .97rem; }
.pillar a.more { display: inline-block; margin-top: 12px; font-weight: 600; font-size: .95rem; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 32px; margin-top: 28px; }
.member { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.member img { width: 100%; aspect-ratio: 1 / 1.08; object-fit: cover; object-position: top center; display: block; background: #EDEBE2; }
.member .info { padding: 16px 18px 20px; }
.member h3 { margin: 0 0 2px; font-size: 1.12rem; }
.member .role { color: var(--amber); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.member p.bio { font-size: .9rem; color: var(--muted); margin-top: 10px; }
.member a.mail { font-size: .85rem; display: inline-block; margin-top: 8px; }
.group-note { color: var(--muted); max-width: 70ch; }

/* Fellowship */
.callout { background: #F3F0E4; border-left: 4px solid var(--amber); padding: 18px 22px; border-radius: 0 8px 8px 0; margin: 24px 0; }
.callout strong { color: var(--green-dark); }
ul.reqs { margin: 14px 0 0 22px; }
ul.reqs li { margin-bottom: 12px; }
ul.reqs li strong { color: var(--green-dark); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; margin-top: 24px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 28px; }
.contact-card p { margin-top: 6px; }
.contact-card .big { font-size: 1.15rem; font-weight: 600; color: var(--green-dark); }

/* Footer */
footer.site { background: var(--green-dark); color: #C9CFC2; padding: 44px 0 36px; margin-top: 0; font-size: .93rem; }
footer .cols { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
footer h4 { color: #fff; font-family: var(--serif); font-size: 1.05rem; margin-bottom: 10px; }
footer a { color: #E9E4D2; }
footer .fine { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.15); color: #98A392; font-size: .85rem; }

@media (max-width: 820px) {
  .pillars { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  nav.main { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 24px 18px; }
  nav.main.open { display: block; }
  nav.main ul { flex-direction: column; gap: 14px; }
  .menu-btn { display: block; }
  .hero { height: 54vh; min-height: 360px; }
}
