:root{
  --bg: #ffffff;
  --gap: clamp(24px, 4vw, 72px);
  --pad: 40px;
}

*{ box-sizing: border-box; }

html, body{
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  background: var(--bg);
}

body{
  padding: 88px var(--pad) 140px;
  padding-bottom: var(--end-space, 140px);
}

/* ---------- page title ---------- */

.page-title{
  position: fixed;
  top: 28px;
  left: var(--pad);
  z-index: 50;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 24px;
  font-weight: 400;
  color: #000;
}

/* ---------- columns ---------- */

.columns{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  width: 100%;
  align-items: start;
}

.col{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap);
  min-width: 0;
  position: relative;
  z-index: 0;
}

.postcard{
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-inline: auto;
  max-width: 100%;
}

.postcard img{
  display: block;
  width: 100%;
  height: auto;
}

.postcard-caption{
  margin-top: 8px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #000;
  text-align: left;
}

@media (max-width: 960px){
  .columns{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px){
  :root{
    --pad: 32px;
  }

  body{
    padding-top: 80px;
  }

  .page-title{
    font-size: 18px;
  }

  .columns{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- book cta ---------- */

.book-cta{
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 60;
  height: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px var(--pad) 8px 16px;
  background: #EECFDE;
  border: 1px solid #EECFDE;
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
}

.book-cta:focus,
.book-cta:focus-visible{
  outline: none;
}

.book-cta img{
  height: 100px;
  width: auto;
  display: block;
  border-radius: 0;
}

.book-cta-text{
  display: flex;
  flex-direction: column;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: #000;
  white-space: nowrap;
  transform: translateY(-4px);
}

.book-cta-author{
  font-size: 12px;
  line-height: 1.35;
}

.book-cta-title{
  text-decoration: underline;
  text-decoration-color: rgb(60, 60, 60);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.book-cta-arrow{
  display: inline-block;
  width: 12px;
  height: 12px;
  vertical-align: middle;
  margin-left: 4px;
  margin-top: -2px;
  color: #000;
}

@media (max-width: 640px){
  .book-cta{
    left: 0;
    right: 0;
    width: 100%;
    justify-content: flex-start;
    gap: 40px;
    padding: 16px var(--pad);
  }

  .book-cta img{
    height: 80px;
  }

  .book-cta-text{
    white-space: normal;
    text-align: left;
  }
}
