html {
  background-color: #faf9f6;
}

html, body {
  overflow: hidden;
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: "ABeeZee", sans-serif;
  font-size: calc(11px + 0.33vw);
  -webkit-font-smoothing: antialiased;
  color: #121314;
  display: flex;
  flex-direction: column;
  padding: 6vh 10vw;
  box-sizing: border-box;
  background-image: url('assets/images/background.png');
  background-repeat: repeat;
  background-size: 250px;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: #121314;
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* Visually hidden but accessible for screen readers and search engines */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

header {
  margin-bottom: 3vh;
  flex-shrink: 0;
}

img {
  display: block;
  margin: 0 auto;
  height: auto;
  max-height: 12vh;
}

main {
  display: flex;
  flex-direction: column;
  gap: 2.5vh;
  margin-bottom: 4vh;
}

h1 {
  font-size: 4.5em;
  font-weight: 500;
  margin-bottom: 0;
}

p {
  font-size: 1.3em;
  font-weight: 300;
  line-height: 1.45;
  text-align: justify;
  margin: 0;
}

a {
  text-decoration: none;
  white-space: nowrap;
  color: #121314;
  position: relative;
  z-index: 1;
}

a:after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 66%;
  left: -0.1em;
  right: -0.1em;
  bottom: 0;
  transition: top 200ms cubic-bezier(0, 0.8, 0.13, 1);
  background-color: rgba(79, 192, 141, 0.5);
}

a:hover:after {
  top: 0%;
}

.footer {
  padding-top: 2vh;
  text-align: left;
  font-weight: bold;
  flex-shrink: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Responsive Design */
@media screen and (max-height: 650px) or (max-width: 768px) {
  html, body {
    overflow: auto;
    height: auto;
  }

  body {
    display: block;
    padding: 3vh 8vw;
  }

  header {
    margin-bottom: 1.5rem;
  }

  img {
    max-height: none;
    max-width: 100%;
    width: 100%;
  }

  main {
    display: block;
  }

  p {
    font-size: 1.45em;
    text-align: left;
    margin-bottom: 1.25rem;
  }

  h1 {
    font-size: 3em;
  }

  .footer {
    border-top: none;
    padding: 10px 0;
  }
}

@media screen and (max-width: 480px) {
  body {
    padding: 2vh 5vw;
  }

  p {
    font-size: 1.25em;
  }

  h1 {
    font-size: 2.5em;
  }

  a {
    word-break: break-word;
  }
}

/* Print styles */
@media print {
  body {
    padding: 0;
    color: #000;
    display: block;
  }

  a:after {
    background-color: transparent;
  }

  .skip-link {
    display: none;
  }
}
