/* naomibunyan.css */

:root {
  --primary-colour: rgb(235, 215, 101);
  --secondary-colour: rgb(150, 207, 197);
  --tertiary-colour: rgb(28, 52, 77);
  --link-colour: rgb(26, 204, 171);
  --header-wash: rgba(106, 206, 187, 0.3);
  --base-colour: rgb(255, 255, 255);
  --text-colour: rgb(63, 112, 103);
  --cursive-font: 'Dancing Script', cursive;
  --body-font: 'Raleway', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--base-colour);
}

body {
    margin: 0;
    font-family: var(--body-font);
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-colour);
}




input,
textarea {
  border: .15rem solid var(--secondary-colour);
  padding: .5em;
  font: inherit;
  min-width: 5em;
}
form {
  width: 80vw;
  min-width: 280px;
  max-width: 30rem;
  margin: 0 auto;
  text-align: left;
}
.form-field {
  display: flex;
  flex-wrap: wrap;
}
.form-label {
  flex: 1 0 8rem;
  margin-right: 1rem;
  margin-top: .65rem;
  margin-bottom: auto;
}
@media (min-width: 29rem) {
  .form-label {
    margin-top: 1.15em;
  }
}
.form-data {
  flex: 1 1 20rem;
  margin: 0.5rem auto;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  align-self: baseline;
  max-width: 100%;
}
.form-input-wrapper,
.form-textarea-wrapper {
  flex: 1;
}
.form-input-wrapper input,
.form-textarea-wrapper textarea {
  width: 100%;
}

.buttons {
  margin-top: 2rem;
  text-align: center;
}

.button {
  font: inherit;
  padding: .2em .8em;
  display: inline-block;
  border: 1px solid var(--text-colour);
  color: var(--text-colour);
}
.button--primary {
  background: var(--primary-colour);
  color: var(--text-colour);
}
.button--secondary {
  border-color: var(--secondary-colour);
}

.hero {
  background: #fff url(../img/naomibunyan-bg.jpg) center center scroll;
  background-size: cover;
}
@media (min-width: 1024px ) {
  .hero {
    background-attachment: scroll;
  }
}


.page-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.page-body  > * {
  min-width: 100%;
}

.page-body .content {
  flex: 1;
}

.icon-links {
  display: grid;
  grid-gap: 5vw;
  grid-template-columns: repeat(3, 4rem);
  margin-bottom: 8vh;
}
.icon-links a {
  color: white;
}
.icon-links img {
  display: block;
  fill: currentColor;
}

.hero__wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  color: white;
  background-color: var(--header-wash);
}
.hero__wrap .button {
  border: none;
  font: inherit;
  background: transparent;
  margin-bottom: 2.5rem;
  border-top: 1px solid #fff;
  background-color: white;
}
.scrolled .hero__wrap .button {
  opacity: 0;
  transition: opacity 150ms;
}
.hero__text {
  font-family: var(--cursive-font);
  font-size: 5em;
  line-height: 1.35;
  max-width: 72rem;
  padding: 1rem;
  margin: auto;
  font-weight: 700;
  text-align: center;
}
.hero__text span {
  font-size: 1.95rem;
  margin-top: 10vh;
}
@media screen and (min-width: 600px) {
  .hero__text {
    font-size: 7rem;
  }
}
.darken {
  color: white;
  mix-blend-mode: darken;
  background-color: rgb(59, 2, 6);
}

.content,
.masthead > *,
.footer {
  padding: 1rem;
  max-width: 72rem;
  margin: auto;
}
.masthead {
  background: var(--secondary-colour);
  color: var(--base-colour);
}
.masthead__logo {
  font-family: var(--cursive-font);
  font-size: 2em;
  font-weight: 700;
  text-align: center;
}
.masthead a {
  text-decoration: none;
  color: inherit;
}
.masthead__nav {
  position: sticky;
  top: 0;
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  justify-content: space-between;
  align-items: center;
}

.navigation {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: inline-flex;
}
.navigation a {
  padding: .2em .6em;
  margin: 0 .4em;
  border: 1px solid transparent;
  display: block;
  white-space: nowrap;
}
.navigation li.active a {
  border-bottom-color: var(--base-colour);
  cursor: default;
}

.checkout {
  appearance: none;
  border: none;
  margin: 0;
  background: inherit;
  color: inherit;
  font: inherit;
  border: 1px solid var(--base-colour);
  cursor: pointer;
}

a {
  text-decoration: none;
  color: var(--link-colour);
}

.content {
  padding: 1rem;
  text-align: center;
}
.content > h1 {
  font-size: 1rem;
}
.content > h2 {
  font-size: 2rem;
}
.content > h1 + h2 {
  margin-top: 0;
}

.commissions {
  background: var(--tertiary-colour);
  color: #fff;
}
.commissions h2 {
  opacity: .5;
  font-size: 120%;
}
.commissions .button {
  margin-bottom: 2rem;
  color: inherit;
  border-color: #fff;
}

.footer {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.totop {
  margin: 0 1rem;
}

.cart-categories {
  margin: 4rem 0;
}
.cart-item__title a {
  text-decoration: none;
}

.cart-thumb a {
  display: inline-block;
}
.cart-thumb img {
  max-width: 100%;
  width: 14rem;
  height: 14rem;
  object-fit: contain;
}


.cart-price {
  display: block;
}

@media screen and (min-width: 768px) {
  #cart-detail {
    padding-top: 3rem;
    display: flex;
  }
  #cart-detail .cart-details {
    flex: 1;
    margin-left: 5vw;
    margin-right: 5vw;
  }
  #cart-detail .cart-info {
    flex: 2;
  }
}

.content #cart-detail {
  text-align: left;
}
.cart-details h1 {
  margin-top: 0;
}
#cart-detail .cart-info {
  text-align: center;
}
#cart-detail .cart-thumb img {
  width: 100%;
  max-width: 600px;
  height: auto;
  object-fit: contain;
}
.cart-categories,
.cart-products {
  display: grid;
  grid-template-columns: repeat( auto-fit, minmax(250px, 1fr) );
  grid-gap: 2rem;
}
.cart-products h3 {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cart-detail .cart-thumb img {
  max-width: 100%;
}

.fade-in {
  opacity: 0;
  display: block;
  transform: translateY(10vh);
  transition: all 600ms;
}
.fade-in--now {
  opacity: 1;
  transform: translateY(0rem);
}

.transition-delay-short {
  transition-delay: 400ms;
}
.transition-delay-long {
  transition-delay: 800ms;
}
