@font-face {
  font-family: "Avenir";
  src: url("../fonts/Avenir-Regular.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Avenir-Book";
  src: url("../fonts/Avenir-Book.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Junicode";
  src: url("../fonts/junicode-regular-webfont.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  color: #2e2f31;
  font-family: "Avenir", sans-serif;
  font-weight: 400;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

img {
  height: auto;
}

p {
  margin: 0 0 50px 0;
}

a,
a:hover {
  text-decoration: none;
}

a.body:link {
  color: #5eafd9;
}
a.body:visited {
  color: #115d84;
}
a.body:hover {
  text-decoration: underline;
}

.container {
  max-width: 920px;
  margin: 0 auto;
}

.disabled-link {
  pointer-events: none;
}

.hero-section {
  display: grid;
  grid-template-columns: 58% auto;
  gap: 32px;
  margin: 120px auto;
}

h1 {
  font-size: 51px;
  margin-block: 0;
  line-height: 1.1;
  font-family: "Avenir-black", sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-section h1 {
  max-width: 11ch;
}

.centered > h1,
.text-only-page > h1,
.mobile-full-width-image-section > h1 {
  width: 100%;
  max-width: none;
}

.text-only-page > h1 {
  margin-bottom: 48px;
}

h2 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: 1px;
  font-family: "Avenir-Book", sans-serif;
  margin-bottom: 12px;
}

.hero-section-text {
  margin-block: 32px;
  line-height: 1.75;
  max-width: 81%;
  font-size: 18px;
}

.hero-section-image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-image-overlay {
  position: absolute;
  top: 44px;
  right: 30px;
  left: 30px;
  bottom: 28px;
  border-radius: 24px;
  background-color: #fff;
  overflow: hidden;
  z-index: 2;
  filter: blur(0.45px);
}

.mobile-only {
  display: none !important;
}

.hero-image-text {
  align-items: center;
  height: 100%;
  width: 100%;
  flex-grow: 1;
  padding: 24px;
  font-family: "Junicode";
  font-size: 26px;

  animation: image-text-in 4s linear;

  display: none;
  opacity: 0;
  justify-content: center;
  text-align: center;
}

.hero-image-text:first-of-type {
  text-align: center;
  justify-content: center;
  font-size: 28px;
}

@keyframes image-text-in {
  25% {
    opacity: 1;
  }
  75% {
    opacity: 1;
  }
}

.visible {
  display: flex;
}

.mobile-image {
  display: none;
}

.hero-section .app-links-section {
  justify-content: flex-start;
}

.app-links-section {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
}

.app-link-button {
  display: inline-block;
  border: none;
  box-shadow: none;
  text-decoration: none;
  transition: 0.3s;
  border-radius: 4px;
  height: 42px;
}

blockquote {
  margin: 0;
  padding-block: 32px;
  width: 100%;
  background-color: #000;
  color: #fff;
  font-family: "Junicode";
  font-size: 40px;
  text-align: center;
}

blockquote p {
  text-align: center;
  padding-inline: 48px;
  margin-bottom: 0;
}

.centered {
  text-align: center;
  margin: 120px auto;
}

.centered > p {
  max-width: 82%;
  line-height: 1.75;
  margin-inline: auto;
  font-size: 18px;
}

.opened-book-image-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -44px;
}

.bookshelf-background {
  width: 100%;
  height: 160px;
  background-image: url("../images/bookshelf.png");
  background-size: cover;
  background-repeat: no-repeat;
}

.section-image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 48px auto;
}

.button-orange {
  display: inline-flex;
  padding: 0 32px;
  height: 36px;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  border-radius: 2px;
  background-color: #f25c22;
  color: #fff;
  font-size: 16px;
}

.button-orange:hover,
.button-orange:focus {
  color: #fff;
  background-color: #fc4700;
}

@media (max-width: 1200px) {
  h1 {
    font-size: 42px;
  }
  .container {
    width: 80%;
  }
  .centered {
    margin: 80px auto;
  }
  .hero-section {
    gap: 16px;
    margin: 80px auto;
  }
  .hero-image-overlay {
    top: 46px;
    right: 38px;
    left: 38px;
    bottom: 36px;
  }
  .hero-section-text {
    margin-block: 24px;
  }
  blockquote {
    font-size: 36px;
  }
  blockquote p {
    padding-inline: 40px;
  }
  .opened-book-image-wrapper {
    margin-top: -40px;
  }
  .section-image-wrapper {
    margin: 40px auto;
  }
  .bookshelf-background {
    height: 140px;
  }
}

@media (max-width: 992px) {
  h1 {
    font-size: 36px;
  }
  .text-only-page > h1 {
    margin-bottom: 32px;
  }
  h2 {
    font-size: 24px;
    margin-bottom: 8px;
  }
  .container {
    width: 86%;
  }
  .centered {
    margin: 48px auto;
  }
  .hero-section {
    margin: 60px auto;
  }
  .hero-section-text {
    margin-block: 16px;
    max-width: 90%;
  }
  .hero-section-image-wrapper {
    height: 420px;
    width: 210px;
  }
  .hero-image-overlay {
    top: 26px;
    right: 14px;
    left: 14px;
    bottom: 20px;
  }
  .hero-image-text {
    padding: 16px;
    font-size: 22px;
  }
  .hero-image-text:first-of-type {
    font-size: 24px;
  }
  .section-image-wrapper {
    margin: 32px auto;
  }
  .desktop-image {
    display: none;
  }
  .mobile-image {
    display: block;
  }
  .app-links-section {
    gap: 8px;
    margin-top: 32px;
  }
  .app-link-button,
  .app-link-button > img {
    height: 32px;
    width: 106px;
  }
  blockquote {
    font-size: 30px;
    padding-block: 24px;
  }
  blockquote p {
    padding-inline: 20px;
  }
  .opened-book-image-wrapper {
    margin-top: -32px;
  }
  .opened-book-image-wrapper img {
    height: 280px;
    width: 640px;
  }
  .bookshelf-background {
    height: 108px;
  }
}

@media (max-width: 767px) {
  .container {
    width: 100%;
    padding-inline: 24px;
  }
  .centered {
    margin: 40px auto;
  }
  .centered p {
    line-height: 1.5;
    max-width: 100%;
  }
.hero-section {
  margin: 48px auto;
  grid-template-columns: 1fr;
  gap: 20px;
}

.hero-section h1 {
  text-align: center;
  max-width: none;
}

  .hero-section-text {
    font-size: 16px;
  }
  .section-image-wrapper {
    margin: 24px auto;
  }
  .section-image-wrapper img {
  	width: 100%;
  	max-width: 920px;
  	height: auto;
  }
  blockquote {
    font-size: 24px;
    padding-block: 16px;
  }
  blockquote p {
    padding-inline: 16px;
  }
  .opened-book-image-wrapper {
    margin-top: -24px;
  }
  .opened-book-image-wrapper img {
    height: 200px;
    width: 446px;
  }
  .bookshelf-background {
    height: 74px;
  }
}

@media (max-width: 567px) {
  h1 {
    font-size: 32px;
    text-align: center;
  }
  
   h1.mobile-only {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  
  
  h2 {
    font-size: 20px;
  }
  .container {
    padding-inline: 16px;
  }
  .hero-section {
    margin: 24px auto;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .hero-section-text {
    margin-block: 8px;
    font-size: 16px;
    max-width: 100%;
    line-height: 1.5;
    text-align: center;
  }
  .app-links-section {
    margin-top: 0;
    margin-bottom: 12px;
  }
  .hero-section .app-links-section {
    justify-content: center;
  }
  .mobile-only {
    display: flex !important;
  }
  .hide-on-mobile {
    display: none !important;
  }
  .hero-section-image-wrapper {
    margin-inline: auto;
  }

.section-image-wrapper img {
  display: block;
  width: 100%;
  max-width: 920px;
  height: auto;
}

  blockquote {
    font-size: 18px;
    padding-block: 12px;
  }
  blockquote p {
    padding-inline: 8px;
  }
  .opened-book-image-wrapper {
    margin-top: -16px;
  }
  .opened-book-image-wrapper img {
    height: 120px;
    width: 318px;
  }
  .bookshelf-background {
    height: 56px;
  }
  .mobile-full-width-image-section {
    width: 100%;
    padding-inline: 0;
    margin-top: 0;
  }
  .mobile-full-width-image-section > .section-image-wrapper {
    margin-top: 0;
  }
	.mobile-full-width-image-section > h1 {
	  margin-bottom: 24px;
	  text-align: center;
	}
  .mobile-full-width-image-section > h1,
  .mobile-full-width-image-section > p,
  .mobile-full-width-image-section > .app-links-section {
    padding-inline: 16px;
  }
  .text-only-page > h1 {
    margin-bottom: 24px;
  }
}
