  /* ===== Custom styles for Pirates Lookout ===== */

  /* Smooth scroll */
  html {
    scroll-behavior: smooth;
  }

  /* Selection color */
  ::selection {
    background: #9bbf8e;
    color: #111a0b;
  }

  /* ===== Navbar scroll state ===== */
  #site-nav.scrolled {
    background: rgba(252, 251, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(40, 63, 34, 0.08);
  }

  #site-nav.scrolled .font-display,
  #site-nav.scrolled .text-forest-800 {
    color: #283f22;
  }

  /* ===== Mobile menu animation ===== */
  #mobile-menu.open {
    animation: slideDown 0.25s ease-out;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* ===== Hamburger animation ===== */
  #mobile-toggle.active #bar1 {
    transform: translateY(5px) rotate(45deg);
  }
  #mobile-toggle.active #bar2 {
    opacity: 0;
  }
  #mobile-toggle.active #bar3 {
    transform: translateY(-5px) rotate(-45deg);
  }

  /* ===== Scroll reveal (below-the-fold only) ===== */
  .reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      opacity: 0;
      transform: translateY(24px);
    }
    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
  }

  /* ===== Custom scrollbar ===== */
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #f9f6ef;
  }
  ::-webkit-scrollbar-thumb {
    background: #c5dabb;
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #9bbf8e;
  }

  /* ===== Focus visible ===== */
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  textarea:focus-visible {
    outline: 2px solid #567f47;
    outline-offset: 2px;
    border-radius: 4px;
  }

  /* ===== Image aspect-ratio fallback ===== */
  .aspect-\[4\/3\] { aspect-ratio: 4/3; }
  .aspect-\[4\/5\] { aspect-ratio: 4/5; }
  .aspect-\[4\/3\] { aspect-ratio: 4/3; }

  /* ===== Subtle pattern overlay on hero ===== */
  #top::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(155, 191, 142, 0.06) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 1;
  }

  #top > div {
    position: relative;
    z-index: 2;
  }
