*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  max-width: 75rem; /* 1200px */
  margin: 0 auto;
  font-family: Arial, sans-serif;
  font-size: 1rem; /* 16px */
  line-height: 1.5;
  padding: 0 0.625rem; /* 10px */
  color: #222;
  background-color: #fff;
}

#introduction {
  display: flex;
  justify-content: space-between;
  padding-bottom: 1.25rem; /* 20px */
  border-bottom: 1px solid #ddd;
  margin-bottom: 1.875rem; /* 30px */
}

.intro-box-narrow {
  width: 30%;
  padding: 0 1.25rem; /* 20px */
}

.intro-box-wide {
  width: 60%;
  padding: 0 1.25rem; /* 20px */
}

#images {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.25rem; /* 20px */
  border-bottom: 1px solid #ddd;
  margin-bottom: 1.875rem; /* 30px */
}

.image-box-small {
  width: 20%;
}

.image-box-medium {
  width: 40%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#images img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Screen reader only */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

#socialnetwork {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem; /* 20px */
  padding-bottom: 1.25rem; /* 20px */
  border-bottom: 1px solid #ddd;
  margin-bottom: 1.875rem; /* 30px */
}

.social-box {
  flex: 1 1 calc(45% - 0.625rem);
  min-width: 18.75rem; /* 300px */
  padding: 0.9375rem; /* 15px */
  border: 1px solid #ddd;
  border-radius: 0.375rem; /* 6px */
  background-color: #fafafa;
}

#directory {
  padding: 1.25rem 1.25rem 2.5rem 1.25rem;
  border: 2px solid #ddd;
  background-color: #f9f9f9;
  max-width: 18.75rem; /* 300px */
  margin: 0 auto 2.5rem auto;
  border-radius: 0.5rem; /* 8px */
}

#directory ul {
  list-style-type: none;
  padding-left: 0;
}

#directory li {
  margin-bottom: 0.75rem; /* 12px */
}

#directory a {
  text-decoration: none;
  color: #005fcc;
  font-weight: 600;
  font-size: 1.125rem; /* 18px */
  transition: color 0.3s ease;
}

#directory a:hover,
#directory a:focus {
  color: #003d99;
  text-decoration: underline;
}

/* Visible focus outlines for keyboard navigation */
a:focus,
button:focus {
  outline: 3px solid #005fcc;
  outline-offset: 2px;
  transition: outline-color 0.3s ease;
}

/* Headings */
h1 {
  font-size: 2rem; /* 32px */
  margin-bottom: 0.9375rem; /* 15px */
}

h2 {
  font-size: 1.5rem; /* 24px */
  margin-bottom: 0.75rem; /* 12px */
}

/* Paragraph */
p {
  margin-bottom: 1.25rem; /* 20px */
}

/* Skip link styling */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 100;
  background: #005fcc;
  color: white;
  padding: 0.5rem 1rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 0.25rem;
}

.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  left: auto;
  top: auto;
  overflow: visible;
}

/* Responsive tweaks */
@media (max-width: 48rem) /* 768px */ {
  #introduction {
    flex-direction: column;
  }
  .intro-box-narrow,
  .intro-box-wide {
    width: 100%;
    padding: 0 0.625rem; /* 10px */
  }

  #images {
    flex-direction: column;
    gap: 0.9375rem; /* 15px */
  }
  .image-box-small,
  .image-box-medium {
    width: 100%;
  }

  #socialnetwork {
    flex-direction: column;
  }
  .social-box {
    width: 100%;
    min-width: 0;
  }
}
