@import url('https://fonts.googleapis.com/css?family=Alegreya+SC:400,400i');
@import url('https://fonts.googleapis.com/css?family=PT+Serif');

@font-face {
  font-family: Srikandy;
  font-weight: 400;
  font-style: normal;
  src: url('/fonts/srikandy-script-regular.otf');
  src: url('/fonts/srikandy-script-regular.otf') format('opentype'),
       url('/fonts/srikandy-script-regular.woff2') format('woff2'),
       url('/fonts/srikandy-script-regular.woff') format('woff');
}

@font-face {
  font-family: Vidaloka;
  font-weight: 400;
  font-style: normal;
  src: url('/fonts/vidaloka-regular.otf');
  src: url('/fonts/vidaloka-regular.otf') format('opentype'),
       url('/fonts/vidaloka-regular.woff2') format('woff2'),
       url('/fonts/vidaloka-regular.woff') format('woff');
}

@font-face {
  font-family: 'hampton-icons';
  src:  url('hampton-icons.eot?9uwhi');
  src:  url('hampton-icons.eot?9uwhi#iefix') format('embedded-opentype'),
    url('hampton-icons.woff2?9uwhi') format('woff2'),
    url('hampton-icons.ttf?9uwhi') format('truetype'),
    url('hampton-icons.woff?9uwhi') format('woff'),
    url('hampton-icons.svg?9uwhi#hampton-icons') format('svg');
  font-weight: normal;
  font-style: normal;
}

.card {
  position: relative;
  font-family: 'Vidaloka', serif;
  text-transform: uppercase;
  color: #979da1;
}

.card:before,
.card:after,
.invitation:before,
.invitation:after,
.datetime__date:before,
.datetime__date:after {
  display: block;
  position: absolute;
  width: 50px;
  height: 50px;
  font-size: 50px;
  font-family: 'hampton-icons';
  line-height: 1;
  user-select: none;
  -moz-user-select: none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  -o-user-select: none;
  color: #aadac1;
}

.card:before {
  content: '\e903';
  top: 10px;
  left: 10px;
}

.card:after {
  content: '\e904';
  top: 10px;
  right: 10px;
}

.title {
  line-height: 1;
  margin: 20px 0 29px;
}

.title__the {
  text-transform: lowercase;
  font-family: 'Srikandy', serif;
  font-size: 65px;
  height: 128px;
  width: auto;
  margin: 0 -0.8em 0 -0.2em;
  position: relative;
  color: #aadac1;
}

.title__the .l:nth-child(2) {
  -webkit-font-feature-settings: 'ss13';
  -moz-font-feature-settings: 'ss13';
  -ms-font-feature-settings: 'ss13';
  font-feature-settings: 'ss13';
}

.title__the .l:nth-child(3) {
  -webkit-font-feature-settings: 'ss08';
  -moz-font-feature-settings: 'ss08';
  -ms-font-feature-settings: 'ss08';
  font-feature-settings: 'ss08';
}

.couple {
  line-height: 1;
  margin: 20px 0;
}

.couple__and {
  color: #aadac1;
}

.announcement {
  font-family: 'Srikandy', serif;
  text-transform: none;
  font-size: 40px;
  margin: 20px 0;
  line-height: 1;
  color: #aadac1;
}

.datetime {
  margin: 20px 0;
  font-size: 21px;
  letter-spacing: 0.1em;
  position: relative;
}

.datetime__weekday,
.datetime__year {
  display: block;
  margin: 25px 0;
}

.datetime__year {
  letter-spacing: 0.3em;
}

.datetime__date {
  display: inline-block;
  position: relative;
  margin: 0 80px;
  line-height: 1.25;
}

.datetime__date:before,
.datetime__date:after {
  width: 15px;
  height: 90px;
  font-size: 90px;
  position: absolute;
  top: 0;
}

.datetime__date:before {
  content: '\e901';
  left: -50px;
}

.datetime__date:after {
  content: '\e902';
  right: -50px;
}

.datetime__day {
  font-size: 250%;
  line-height: 70px;
  display: block;
}

.datetime__comma {
  display: none;
}

.location {
  margin: 15px 0;
}

.location__city,
.location__state,
.location__country {
  display: inline;
}

.location__city:after,
.location__postcode:after,
.location__state:after {
  display: inline-block;
  content: '•';
  margin: 0 0.5em;
}

.information {
  font-family: 'Alegreya SC', serif;
  font-size: 16px;
  letter-spacing: 0.1em;
}

.invitation {
  font-family: 'Srikandy', serif;
  font-size: 40px;
  line-height: 1;
  text-transform: none;
  color: #aadac1;
}

.invitation:before {
  content: '\e906';
  bottom: 10px;
  left: 10px;
}

.invitation:after {
  content: '\e905';
  bottom: 10px;
  right: 10px;
}

.link, .button {
  font-family: 'Vidaloka', serif;
  text-transform: uppercase;
}

.link {
  padding: 15px 0 13px;
}

.button {
  background: #aadac1;
  padding: 15px 15px 13px;
}

.button:hover {
  -moz-box-shadow: inset 0 0 0 30px rgba(0,0,0,0.05);
  -webkit-box-shadow: inset 0 0 0 30px rgba(0,0,0,0.05);
  box-shadow: inset 0 0 0 30px rgba(0,0,0,0.05);
  opacity: 1;
}

@media (min-width: 540px) {
  .datetime__weekday,
  .datetime__year {
    width: 30%;
    position: absolute;
    top: 0;
  }

  .datetime__part--first {
    left: 0;
  }

  .datetime__part--last {
    right: 0;
  }
}

/* Variations */

.v2 .card {
  color: #9b9185;
}

.v2 .card:before,
.v2 .card:after,
.v2 .invitation:before,
.v2 .invitation:after,
.v2 .datetime__date:before,
.v2 .datetime__date:after,
.v2 .title__the,
.v2 .couple__and,
.v2 .announcement,
.v2 .invitation {
  color: #f8bc96;
}

.v2 .button {
  background-color: #f8bc96;
}

.v3 .card {
  color: #979da1;
}

.v3 .card:before,
.v3 .card:after,
.v3 .invitation:before,
.v3 .invitation:after,
.v3 .datetime__date:before,
.v3 .datetime__date:after,
.v3 .title__the,
.v3 .couple__and,
.v3 .announcement,
.v3 .invitation {
  color: #f0b1d0;
}

.v3 .button {
  background-color: #f0b1d0;
}

.v4 .card {
  color: #000000;
}

.v4 .card:before,
.v4 .card:after,
.v4 .invitation:before,
.v4 .invitation:after,
.v4 .datetime__date:before,
.v4 .datetime__date:after,
.v4 .title__the,
.v4 .couple__and,
.v4 .announcement,
.v4 .invitation {
  color: #000000;
}

.v4 .button {
  background-color: #000000;
}

/* Simplified */

.is-simple .card:before,
.is-simple .card:after,
.is-simple .invitation:before,
.is-simple .invitation:after,
.is-simple .datetime__date:before,
.is-simple .datetime__date:after {
  display: none;
}

/* Custom image */

.card--image:before,
.card--image:after {
  content: '' !important;
  display: none !important;
}