    /* Readability: every Tailwind size is in rem, so this scales text, spacing and controls together.
       16px browser default -> 17px on phones, 18px from 640px up. Use rem (not px) for any new font size. */
    html {
      font-size: 106.25%;
    }
    @media (min-width: 640px) {
      html {
        font-size: 112.5%;
      }
    }
    body {
      font-family: 'Prompt', sans-serif;
    }
    .custom-scrollbar::-webkit-scrollbar {
      width: 6px;
      height: 6px;
    }
    .custom-scrollbar::-webkit-scrollbar-track {
      background: #f1f5f9;
      border-radius: 4px;
    }
    .custom-scrollbar::-webkit-scrollbar-thumb {
      background: #cbd5e1;
      border-radius: 4px;
    }
    .custom-scrollbar::-webkit-scrollbar-thumb:hover {
      background: #94a3b8;
    }
    .glass-nav {
      background: rgba(11, 25, 44, 0.94);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
    }
    /* Browser-drawn surfaces themed from the palette */
    ::selection {
      background: #fbd5e3;   /* econ pink-soft */
      color: #0b192c;        /* brand navy, 13:1 */
    }
    input, textarea {
      caret-color: #0369a1;
    }
    /* beats Tailwind preflight (input::placeholder #9ca3af = 2.4:1) */
    html input::placeholder,
    html textarea::placeholder {
      color: #64748b;        /* slate-500: 4.6:1 on the slate-50 fields */
      opacity: 1;
    }
    :focus-visible {
      outline: 2px solid #0369a1;
      outline-offset: 2px;
    }
    .glass-nav :focus-visible,
    footer :focus-visible {
      outline-color: #7dd3fc; /* light ring on the navy header/footer */
    }

    /* Respect reduced motion: no smooth scrolling jumps */
    @media (prefers-reduced-motion: reduce) {
      html {
        scroll-behavior: auto !important;
      }
    }
