:root {
  font-size: 1.2em;
  background: rgb(256, 256, 256);
}

@font-face {
  font-family: "Black Chancery";
  src: url("BLKCHCRY.TTF");
  font-weight: 400;
}

* {
  color: rgb(0, 0, 0);
  /* font-family: "Charmonman", cursive; */
  /* font-family: "Charm", cursive; */
  /* font-family: "Major Mono Display", monospace; */
  /* font-family: "Amarante", serif; */
  /* font-family: "Red Rose", serif; */
  font-family: "Cormorant Infant", serif;
  /* font-family: "Black Chancery", serif; */
  /* font-family: "Cormorant Upright", serif; */
  font-weight: 400;
  font-style: normal;
}

h1 {
  font-size: 1.7rem;
  text-align: center;
  margin: 0;
  padding: 0;
}

h2 {
  font-size: 1.25rem;
  text-align: center;
  margin: 0;
  padding: 0;
}

h3 {
  font-size: 1.2rem;
  text-align: center;
  margin: 0;
  padding: 0;
}

h4 {
  font-size: 1.15rem;
  text-align: center;
  margin: 0;
  padding: 0;
}

h5 {
  font-size: 1.1rem;
  text-align: center;
  margin: 0;
  padding: 0;
}

h6 {
  font-size: 1.05rem;
  text-align: center;
  margin: 0;
  padding: 0;
}

body {
  margin: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
}

header {
  margin: 1rem auto auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.3rem;

  hgroup {
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  &::before {
    content: "";
    width: min(97vw, 25rem);
    height: 1.5rem;
    background: url('/main-title-border5.svg') no-repeat center/cover;
  }

  &::after {
    content: "";
    width: min(97vw, 25rem);
    height: 1.5rem;
    background: url('/main-title-border5.svg') no-repeat center/cover;
    transform: scale(1, -1);
  }
}

nav {
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.2rem;

  &::before {
    content: "";
    width: min(97vw, 37rem);
    height: 1rem;
    background: url('/section title border2.svg') no-repeat center/cover;
  }

  &::after {
    content: "";
    width: min(97vw, 37rem);
    height: 1rem;
    background: url('/section title border2.svg') no-repeat center/cover;
    transform: scale(1, -1);
  }

  a {
    text-decoration: none;
  }

  ul {
    padding: 0;
    margin: auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: min(90vw, 35rem);
    list-style-type: none;

    li {
      flex: 1 0 0px;
      font-size: 1rem;
      text-align: center;
    }
  }
}

main {
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
  gap: 0.2rem;

  article {
    margin: 0 auto auto auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.2rem;

    h3 {
      text-align: center;
      margin-bottom: 0.7rem;
    }

    section {
      max-width: min(90vw, 43rem);

      h4 {
        text-align: center;
        margin-bottom: 0.7rem;
      }

      p {
        margin: 0;
        text-align: center;
      }

      p + p {
        margin-top: 0.5rem;
      }

      ul {
        padding: 0;
        margin: 2.3rem auto auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0.2rem;
        list-style-type: none;

        li {
          text-align: center;
        }
      }
    }

    section + section::before {
      content: "";
      display: block;
      border-style: inset;
      border-width: 0.0625rem;
      width: 90%;
      margin: 0.5rem auto 0.5rem;
    }
  }
}

footer {
  min-height: 1.5rem;
  min-width: 90%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  /* &::before { */
  /*   content: ""; */
  /*   border-style: inset; */
  /*   border-width: 0.0625px; */
  /*   width: 100%; */
  /* } */

  small {
    text-align: center;
  }
}
