@charset "utf-8";

:root {
   font-size: 16px;
}

* {
   box-sizing: border-box;
   margin: 0;
}

html {
   min-height: 100%;
}

body {
   color: #54535B;
   font: 400 1em/1.5em Segoe, "Segoe UI", Arial, sans-serif;
}

#wrapper {
   position: relative;
   max-width: 800px;
   margin: 1rem auto;
   border: 1px solid #000;
   background: #E6E2DE url('../images/bg.jpg') no-repeat bottom right;
   overflow: hidden;
   height: 647px;
}

:is(a:link, a:visited, a:hover, a:active) {
   color: inherit;
   text-decoration: none;
}

p {
   padding-bottom: 1rem;
   text-align: right;
}

h1 {
   margin: 1rem 0 6.5rem;
   font-size: 1.9em;
   line-height: 1.1;
   font-weight: 400;
   text-transform: uppercase;
   letter-spacing: 3px;
}

h1 span {
   font-size: 0.6em;
   display: block;
   margin-top: 1rem;
}

img {
   max-width: 100%;
   height: auto;
   vertical-align: middle;
}

article {
   margin: -19px 2rem -115px;
}

section {
   position: absolute;
   left: 2rem;
   bottom: 12rem;
}

section :is(p, h1) {
   text-align: left;
}

.box {
   display: flex;
   gap: 3rem;
   justify-content: end;
   padding-top: 1rem;
}

footer {
   margin: 0 2rem 1.5rem;
}

@media only screen and (max-width:799px) {
   #wrapper {
      border: none;
      margin: 0 auto;
      height: auto;
      background: #F0EDE8;
   }

   p a {
      display: inline-block;
   }

   p {
      text-align: left;
   }

   .box {
      justify-content: start;
   }

   h1 span {
      display: inline-block;
      margin: 0;
   }

   h1 {
      margin: 0 0 1rem;
   }

   section {
      position: static;

   }

   .box {
      justify-content: space-between;
      gap: 0;
      flex-wrap: wrap;
   }

   section br,
   section+p br {
      display: none;
   }

   article {
      margin: 1rem;
   }

   footer {
      margin: 0 1rem 1rem;
   }

}
