@font-face {
  font-family: 'OpenDyslexic';
  src: url('fonts/OpenDyslexic3-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'OpenDyslexic';
  src: url('fonts/OpenDyslexic3-Bold.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
}

/* Global element reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Base layout styling */
body {
  max-width: 70ch;
  margin: 2rem auto;
  padding: 1rem;
  font-family: 'OpenDyslexic', sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  background-color: #fff;
  color: #000;
}

/* Paragraph spacing */
p {
  margin-bottom: 1rem;
}

/* Links */
a {
  color: #0044cc;
  text-decoration: underline;
}

a:focus,
a:hover {
  outline: 2px solid #000;
  outline-offset: 2px;
  background-color: #ffff00;
  color: #000;
}

/* Headings */
h1,
h2,
h3 {
  margin-bottom: 1rem;
  font-weight: bold;
}

/* Footer nav styling */
footer nav a {
  margin-right: 0.5rem;
}

/* High contrast compliant separator */
hr {
  border: none;
  border-top: 2px solid #000;
  margin: 2rem 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}

.skip-link:focus {
  position: static;
  left: auto;
  top: auto;
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  background-color: #ffff00;
  color: #000;
  outline: 2px solid #000;
}

/* Responsive layout adjustments */

@media (max-width: 900px) {
  body {
    margin: 1.5rem auto;
    padding: 1rem;
    font-size: 1.1rem;
  }
}

@media (max-width: 600px) {
  body {
    margin: 1rem auto;
    padding: 0.75rem;
    font-size: 1rem;
  }
}

@media (max-width: 400px) {
  body {
    margin: 0.75rem auto;
    padding: 0.5rem;
    font-size: 0.95rem;
  }
}