/* BlueBark v3 — layered hero. Forest atmospheric BG (with center card region masked
 * to cream so no card duplication when the lockup overlays). Clean lockup PNG fg
 * centered. Mission + footer below on solid cream.
 *
 * Asset chain:
 *   /assets/forest-bg-v3.jpg = composite source with card region cream-filled (#f5f4ee)
 *                              and feathered seam — only forest+circuit edges remain
 *                              visually; card region matches body+lockup substrate
 *                              for seamless layering.
 *   /assets/lockup-hero-v5.png = clean lockup card (wordmark + tree + tagline) on
 *                                cream substrate, drawn ON TOP of the forest bg.
 *                                Sits exactly where the original card region was =
 *                                forest stays on edges, lockup carries identity.
 */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #f5f4ee;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1f2937;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  padding: 0.75rem 1rem;
  background: #167a78;
  color: #fff;
  z-index: 1000;
  border-radius: 4px;
}

/* ---- HERO (LAYERED) ---- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 2rem;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("/assets/forest-bg-v3.jpg");
  background-size: cover;
  background-position: center center;
  /* iOS Safari background-attachment: fixed has rendering bugs (CR-2026-0221 lesson);
   * scroll is the safer default for hero-style atmospheric bg. */
  background-attachment: scroll;
  background-color: #f5f4ee;
}

.hero__lockup {
  position: relative;
  z-index: 1;
  width: min(90vw, 600px);
  height: auto;
  display: block;
  /* Image-rendering hint helps the downscale (1135 source -> ~600 display = 1.89x downscale) */
  image-rendering: -webkit-optimize-contrast;
}

/* ---- MISSION ---- */
.mission {
  background: #f5f4ee;
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.mission h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #167a78;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

.mission p {
  font-size: 1.125rem;
  line-height: 1.6;
  margin: 0;
}

/* ---- FOOTER ---- */
footer {
  text-align: center;
  padding: 2rem;
  color: #6b7280;
}

footer small {
  font-size: 0.875rem;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 480px) {
  .hero {
    min-height: 80vh;
    padding: 1rem;
  }
  .hero__lockup {
    width: 92vw;
  }
  .mission {
    padding: 2rem 1.5rem;
  }
}

/* ---- ACCESSIBILITY MEDIA QUERIES ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: more) {
  .hero__bg {
    /* Mute the forest atmosphere on high-contrast preference; lockup needs to dominate */
    opacity: 0.35;
  }
}
