/* BlueBark v7 — NO FRAME. Lockup sits directly on the forest background.
 *
 * v6 review: operator iPhone Safari + desktop review concluded the cream
 * frosted-glass frame, even tightened, still felt like a card-on-photo. The
 * brand mark should sit in the forest scene, not floating above it. v7 removes
 * the frame entirely and relies on:
 *   - hard-edged binary alpha extraction (delta=12 from cream #f5f4ee, plus a
 *     3x3 majority morphological filter to clean source edge speckle) so the
 *     lockup has zero cream halo at edges; partial-alpha = 0.00% (was 6.2% in v6)
 *   - dual drop-shadow filter on .hero__lockup for legibility against forest
 *     foliage variability: a tight dark shadow for crisp edges + a soft cream
 *     glow that compensates for the lost frame backdrop on light forest patches
 *
 * Asset chain:
 *   /assets/forest-bg-v4.jpg      (full-bleed forest, unchanged from v4)
 *   /assets/lockup-hard-v7.png    (binary-alpha extraction; 2813x1536; 0% partial)
 *
 * Math at standard viewports (lockup % of viewport area, no frame):
 *
 *   Viewport     | lockup w | lockup %       | constraint
 *   -------------|----------|----------------|------------
 *   1920x1080    |  640     | 33.3% width    |  ✓ (forest dominates above/below)
 *   1440x 900    |  640     | 44.4% width    |  ✓
 *   1024x 768    |  512     | 50.0% width    |  ✓
 *    768x1024    |  384     | 50.0% width    |  ✓
 *    375x 812    |  280     | 74.7% width    |  ✓ (mobile bp)
 *
 * Accessibility branches retained:
 *   - prefers-reduced-motion (unchanged)
 *   - prefers-contrast:more  (deepens forest-bg color and strengthens shadows)
 */

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background-image: url("/assets/forest-bg-v4.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: #0e2f2c;
  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 ---- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

/* v7: lockup sits directly on forest. Dual drop-shadow — a tight dark shadow
 * for edge legibility against light foliage, plus a wide cream glow that
 * compensates for the lost frame backdrop without re-introducing a visible
 * halo (the glow is 35% opacity, blends into background). */
.hero__lockup {
  display: block;
  width: clamp(280px, 50vw, 640px);
  height: auto;
  max-width: 100%;
  image-rendering: -webkit-optimize-contrast;
  filter:
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4))
    drop-shadow(0 0 12px rgba(245, 244, 238, 0.35));
}

/* ---- MISSION (content card unchanged from v4/v5/v6) ---- */
.mission {
  padding: 3rem 1.5rem;
  display: flex;
  justify-content: center;
}

.mission__inner {
  background: #f5f4ee;
  max-width: 800px;
  width: 100%;
  padding: 2.5rem;
  border-radius: 6px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

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

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

/* ---- FOOTER (unchanged from v4/v5/v6) ---- */
footer {
  text-align: center;
  padding: 2rem;
  color: #d8e1dc;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

footer small {
  font-size: 0.875rem;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 480px) {
  .hero {
    min-height: 80vh;
    padding: 1rem;
  }
  .mission {
    padding: 2rem 1rem;
  }
  .mission__inner {
    padding: 1.75rem 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) {
  body { background-color: #051917; }
  /* Strengthen shadows for high-contrast users — darker drop, denser glow. */
  .hero__lockup {
    filter:
      drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6))
      drop-shadow(0 0 16px rgba(245, 244, 238, 0.55));
  }
  .mission__inner { box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45); }
}
