:root {
  --brand: #064b49;     /* teal */
  --brand-dark: #074845;
  --focus: #ffbf47;      /* strong focus ring */
}

/* =========================
   Dyslexic-friendly font
   Put your files in /fonts
   ========================= */

@font-face {
  font-family: "OpenDyslexic";
  src: url("../fonts/OpenDyslexic-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "OpenDyslexic";
  src: url("../fonts/OpenDyslexic-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Base */
body {
  scroll-behavior: smooth;
}

/* Brand helpers */
.bg-brand {
  background: var(--brand) !important;
}

.btn-brand {
  background: var(--brand);
  border: 0;
  color: #fff;
}

.btn-brand:hover,
.btn-brand:focus {
  background: var(--brand-dark);
  color: #fff;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 0.75rem;
  background: #fff;
  border: 2px solid var(--brand);
  z-index: 2000;
}

/* Better visible focus */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* Simple hero */
.hero {
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand) 65%, #fff 65%);
  color: #fff;
}

.card-soft {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.08);
}

/* =========================
   Accessibility toggles
   ========================= */

/* Dyslexic-friendly font toggle */
.dyslexic-font {
  font-family: "OpenDyslexic", Arial, sans-serif;
  letter-spacing: 0.05em;
  line-height: 1.6;
}

/* Easy-read mode (bigger text + spacing) */
.easy-read {
  font-size: 1.12rem;
  line-height: 1.75;
  letter-spacing: 0.02em;
  word-spacing: 0.06em;
}

.easy-read p,
.easy-read li {
  max-width: 70ch;
}

/* Keep headings crisp */
.easy-read h1,
.easy-read h2,
.easy-read h3 {
  line-height: 1.2;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}


/* Improve navbar link contrast (WAVE) */
.navbar.bg-brand .nav-link {
  color: #ffffff !important;          /* full white */
  opacity: 1 !important;              /* remove faded look */
}

.navbar.bg-brand .nav-link:hover,
.navbar.bg-brand .nav-link:focus {
  color: #ffffff !important;
  text-decoration: underline;         /* clearer state change */
  text-underline-offset: 0.2em;
}

.navbar.bg-brand .nav-link.active,
.navbar.bg-brand .nav-link[aria-current="page"] {
  color: #ffffff !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
