@import url('https://fonts.googleapis.com/css?family=Josefin+Sans:300,600');

body {
  color: #5e5e5e;
  background: #f8f6ef;
}

/* Site  */

.site {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 600;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #5e5e5e;
  background: #f8f6ef;
}

/* Menu */

.menu {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffffff;
  background: #4326f6;
}

.menu__names {
  font-size: 25px;
  font-weight: 300;
  text-transform: lowercase;
  letter-spacing: 0.2em;
}

.menu__delimiter:before {
  content: '+';
}

.menu__and {
  display: none;
}

.menu__link {
  padding: 13px 10px 7px;
}

.menu__link:hover {
  opacity: 1;
  background: rgba(255,255,255,0.1);
}

.menu__link--rsvp {
  color: #ffffff;
  background: #000;
  background: rgba(0,0,0,0.5);
}

.menu__items {
  color: #ffffff;
  background: #4326f6;
}

/* Header */

.header__main {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 100px;
  font-weight: 300;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  margin: 0;
  padding: 100px 0;
  line-height: 1;
}

.header__names {
  color: #ffffff;
  position: relative;
}

.header__names:before {
  content: '';
  display: block;
  position: absolute;
  width: 3.25em;
  height: 3.25em;
  background: #fce39d;
  background: rgba(255,211,88,0.5);
  border-radius: 50%;
  box-shadow: -0.2em 0.25em 0 0.25em rgba(255,211,88,0.25);
  left: 50%;
  top: 50%;
  margin-left: -2.5em;
  margin-top: -2.1em;
  z-index: 1;
}

.header__names:after {
  content: '';
  display: block;
  position: absolute;
  width: 3.5em;
  height: 3.03em;
  left: 50%;
  top: 50%;
  box-sizing: border-box;
  border-left: 1.75em solid transparent;
  border-right: 1.75em solid transparent;
  border-bottom: 3.03em solid transparent;
  border-bottom-color: #f9ad81;
  border-bottom-color: rgba(249,173,149,0.25);
  margin-left: -1.4em;
  margin-top: -0.1em;
  z-index: 2;
}

.header__delimiter {
  height: 0;
  overflow: hidden;
}

.header__name {
  display: inline-block;
  margin: 0.1em;
  padding: 0.2em 0.75em 0.1em;
  position: relative;
}

.header__name:after {
  content: '';
  display: block;
  background: #4326f6;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  -webkit-transform: rotate(-1.25deg);
  -ms-transform: rotate(-1.25deg);
  transform: rotate(-1.25deg);
}

.header__name:last-child:before {
  content: '+';
  margin-right: -0.2em;
  position: relative;
  z-index: 4;
}

.header__firstname,
.header__lastname {
  position: relative;
  z-index: 4;
}

.header__date {
  position: relative;
  z-index: 4;
  font-size: 20px;
  font-weight: 600;
  margin: -75px 0 0;
}

.header__button {
  color: #ffffff;
  background: #4326f6;
  margin-top: 50px;
  padding: 20px 30px 15px;
}

.header__button:hover {
  opacity: 0.8;
}

/* Sections */

.section__heading {
  font-size: 30px;
  display: inline-block;
  padding: 0.5em 1.75em 0.25em;
  position: relative;
  color: #ffffff;
}

.section__heading:after {
  content: '';
  display: block;
  background: #4326f6;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  -webkit-transform: rotate(-1.25deg);
  -ms-transform: rotate(-1.25deg);
  transform: rotate(-1.25deg);
}

.section__heading .w {
  position: relative;
  z-index: 4;
}

.section__title {
  font-size: 30px;
  margin: 0.5em 0;
}

.section__label {
  font-size: 18px;
  line-height: 2.5;
}

.section__text {
  line-height: 2.5;
}

.section__box {
  border: 4px solid #ffffff;
}

.section__button {
  color: #ffffff;
  background: #4326f6;
  padding: 0.75em 1em;
}

.section__input {
  border: 1px solid #5e5e5e;
}

.section__divider {
  height: 3px;
  color: #5e5e5e;
  background: #5e5e5e;
}

/* Quote */

.section--element-quote .section__text:before,
.section--element-quote .section__text:after {
  background: #5e5e5e;
}

/* Paragraph */

.section--element-paragraph .section__title {
  position: relative;
  padding: 0 0 2.5em;
}

.section--element-paragraph .section__title .w {
  position: relative;
  z-index: 4;
}

.section--element-paragraph .section__title:before {
  content: '';
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
}

.section--element-paragraph:nth-child(2n+1) .section__title:before {
  width: 3.25em;
  height: 3.25em;
  background: #fce39d;
  background: rgba(255,211,88,0.5);
  border-radius: 50%;
  box-shadow: -0.2em 0.25em 0 0.25em rgba(255,211,88,0.25);
  margin-left: -1.1em;
  margin-top: -3.25em;
}

.section--element-paragraph:nth-child(2n) .section__title:before {
  width: 4.66em;
  height: 4.04em;
  box-sizing: border-box;
  border-left: 2.33em solid transparent;
  border-right: 2.33em solid transparent;
  border-bottom: 4.04em solid transparent;
  border-bottom-color: #f9ad81;
  border-bottom-color: rgba(249,173,149,0.25);
  margin-left: -2.33em;
  margin-top: -3.83em;
}

.section--element-paragraph.section--alignment-left .section__title:before {
  left: 0;
}

.section--element-paragraph.section--alignment-right .section__title:before {
  left: 100%;
}

/* Wedding party */

.section--element-party .section__title .w {
  display: block;
}

/* Timeline */

.section--element-timeline:before {
  background: #5e5e5e;
}

.section--element-timeline:after {
  background: #f8f6ef;
  border-color: #5e5e5e;
}

/* Places */

.section--element-place .section__content {
  color: #5e5e5e;
}

/* Media queries */

@media (min-width: 480px) {
  .header__date {
    font-size: 25px;
  }
}

@media (min-width: 768px) {
  .header__content {
    padding: 50px 30px;
  }

  .header__date {
    font-size: 30px;
    margin-top: -65px;
  }
}

@media (min-width: 1024px) {
  .header__date {
    margin-top: -50px;
  }
}

/* Variations */

.v2,
.v2 .menu,
.v2 .menu__items,
.v2 .header__name:after,
.v2 .header__button,
.v2 .section__heading:after,
.v2 .section__button {
  background-color: #94c0a6;
}

.v2 .header__names:before,
.v2 .section--element-paragraph:nth-child(2n+1) .section__title:before {
  background: #f9ad81;
  background: rgba(249,173,149,0.5);
  box-shadow: -0.2em 0.25em 0 0.25em rgba(249,173,149,0.25);
}

.v2 .header__names:after,
.v2 .section--element-paragraph:nth-child(2n) .section__title:before {
  border-bottom-color: #ffffff;
  border-bottom-color: rgba(255,255,255,0.5);
}

.v2 .site, .section--element-timeline:after {
  background-color: #fcded4;
}

/* Simplified */

.is-simple .header__names:before,
.is-simple .header__names:after,
.is-simple .section--element-paragraph .section__title:before {
  display: none;
}

/* Header overlay */

.header--overlay {
  color: #fff !important;
}