/**!
 * Not meant as a reference for good CSS practices. The goal of Hugo in Action
 * is for us to understand Hugo. The HTML/CSS/JS code has been intentionally
 * made complicated so that we can simplify the Go HTML Template pieces of Hugo. 
 * There are intentional cases where CSS selectors are used instead of class
 * parameters for targeting. Many of the targeting done in CSS is more
 * specific than it should be. Some of the decisions taken are sub-optimal.
 * You are free to use this code on your website but beware of caveats and
 * do understand that support may be lacking where expected.
 **/
:root {
	--red: 79;
	--green: 70;
	--blue: 229;

  -moz-tab-size: 4;
  tab-size: 4;
}
html {
  -webkit-text-size-adjust: 100%;
  font-family: Baskerville, semibold;
  line-height: 1.5;
  background-color: #EDE2D6;
  padding: 0;
  min-height: 100vh;
  width: 100vw;
  scroll-snap-type: y proximity;
  max-height: 100vh; 
}
body {
  margin: 0 auto;
  font-family: Baskerville, semibold;
  font-family: inherit;
  line-height: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100vw;
}



header {
  width: 100%;
  background-color: #EDE2D6;
  /*display: flex;
  flex-wrap: wrap;
  align-items: center; */
  
}



.page header ~ main {
  margin-top: 0;
  margin-bottom: 0;
}
/*.page main {
  width: 100%;
  /* background-color: #fff; */
  background-color: #EDE2D6;
 /* border-radius: .5rem; */
  margin: 4rem;
  /* padding: 1.25rem; */
  padding: 0;
  box-shadow: 0 0 transparent,0 0 transparent,0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -2px rgba(0,0,0,.05);
}
.page main h1 {
  font-size: 1.5rem;
  line-height: 0rem;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  width: fit-content;
  width: -moz-fit-content;
}

.home h1 {
  font-size: 1.5 rem;
  line-height: 2rem;
  padding-top: 0rem;
  padding-bottom: 0rem;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  width: fit-content;
  width: -moz-fit-content;
}

.home section:first-of-type {
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  flex-grow: 1;
  text-align: center;
}
.home section:first-of-type img {
  margin-left: auto;
  margin-right: auto;
}

.home section:first-of-type > a {
  border-radius: .75rem;
  border: 2px solid rgb(var(--red), var(--green), var(--blue));
  display: inline-block;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5rem;
  margin-left: auto;
  margin-right: auto;
  padding: .5rem 1rem;
  text-decoration: none;
  transition-property: background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;
  transition-timing-function: cubic-bezier(.4,0,.2,1);
  transition-duration: .15s;
  background-color: rgb(var(--red), var(--green), var(--blue));
  margin-top: 2.5rem;
  color: #fff;
}
.home section:first-of-type > a:hover {
  background-color: rgb(var(--red), var(--green), var(--blue));
  color: #fff;
  text-decoration: none;
  filter: brightness(.75) contrast(1.25);
}
@media (min-width:640px) {
  .home section:first-of-type img {
    width: 50rem;
  }
  .home section:first-of-type h1 {
    font-size: 3rem;
    line-height: 1;
  }
}
.home #description {
  background-color: #fff;
  min-height: 100vh;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
  padding-bottom: 2.5rem;
}
.home #description p {
  padding-top: .5rem;
  padding-bottom: .5rem;
  color: #000;
}

footer {
  text-align: center;
  vertical-align: bottom;
}
footer a {
  display: inline-block;
  flex-grow: 0;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1rem;
  padding: .75rem;
  color: #fff;
  transition-property: background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;
  transition-timing-function: cubic-bezier(.4,0,.2,1);
  transition-duration: .15s;
}
footer a:focus {
  color: rgb(var(--red), var(--green), var(--blue));
}
footer img {
  margin: .75rem auto;
}
footer ul {
  align-items: center;
}
footer li {
  display: inline-block;
}
footer > div {
  font-size: 1rem;
  line-height: 1.25rem;
  margin: 1.75rem;
}
footer i {
  display: block;
  height: 2rem;
  width: 2rem;
  transform: translateX(0) translateY(0) rotate(0) skewX(0) skewY(0) scaleX(1) scaleY(1);
  transition-property: all;
  transition-timing-function: cubic-bezier(.4,0,.2,1);
  transition-duration: .15s;
}
footer i:hover {
  opacity: .9;
}
footer.dark {
  background-color: #111827;
  margin: 0;
  max-width: none;
  padding: 1.25rem;
  color: #d1d5db;
  width: 100vw;
}
footer.dark a {
  color: #e5e7eb;
}
footer.dark a:focus {
  color: #f3f4f6;
}

  footer a {
    font-size: 1.5rem;
    line-height: 1.25rem;
  }
}
