/* ========= Base site style ========= */

body {
  background-color: #d0f0f0;
  color: #000;
  font-family: "Roboto", Arial, sans-serif;
  margin: 20px;
}

header, footer {
  text-align: left;
  padding-bottom: 10px;
}

h1 {
  font-size: 1.8em;
  margin-bottom: 0.5em;
}

nav {
  margin-bottom: 15px;
}

nav a {
  margin-right: 15px;
  text-decoration: none;
  color: #003366;
  font-weight: 500;
}

nav a:hover,
nav a[aria-current="page"] {
  text-decoration: underline;
  color: #0055aa;
}

main {
  padding: 10px 0;
}

footer {
  font-size: 0.9em;
  margin-top: 20px;
}

/* ========= Accessibility: skip link ========= */

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 0.5rem 0.75rem;
  background: #003366;
  color: #fff;
  border-radius: 0.25rem;
}

/* ========= Mobile Menu Toggle ========= */

.menu-toggle {
  display: none;
  background: #003366;
  color: #fff;
  border: 0;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  margin: 0.5rem 0;
  cursor: pointer;
  font-size: 1rem;
}

/* ========= Images ========= */

img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}

/* ========= Reduced Motion Preference ========= */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ========= Mobile Layout (<= 640px) ========= */

@media (max-width: 640px) {

  /* Show the menu button on mobile */
  .menu-toggle {
    display: inline-block;
  }

  /* Hide nav by default */
  #site-nav {
    display: none;
    border: 1px dashed #cfd8dc;
    padding: 0.5rem;
    border-radius: 0.25rem;
    margin-bottom: 0.75rem;
    background: #f7fbfd;
  }

  /* Show nav when open */
  #site-nav.open {
    display: block;
  }

  /* Stack nav links vertically and increase size */
  #site-nav a {
    display: block;
    padding: 0.6rem 0.5rem;
    margin: 0.25rem 0;
    font-size: 1.05rem;
    border-radius: 0.25rem;
    text-decoration: none;
    background: #eef5f9;
  }

  #site-nav a:hover {
    background: #ddeef7;
  }

  body {
    padding: 1rem;
  }
}
