/* Normalize */
/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */
/**
 * 1. Change the default font family in all browsers (opinionated).
 * 2. Correct the line height in all browsers.
 * 3. Prevent adjustments of font size after orientation changes in
 *    IE on Windows Phone and in iOS.
 */
/* Document
   ========================================================================== */
html {
  font-family: sans-serif;
  /* 1 */
  line-height: 1.15;
  /* 2 */
  -ms-text-size-adjust: 100%;
  /* 3 */
  -webkit-text-size-adjust: 100%;
  /* 3 */
}

/* Sections
   ========================================================================== */
/**
 * Remove the margin in all browsers (opinionated).
 */
body {
  margin: 0;
}

/**
 * Add the correct display in IE 9-.
 */
article,
aside,
footer,
header,
nav,
section {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */
/**
 * Add the correct display in IE 9-.
 * 1. Add the correct display in IE.
 */
figcaption,
figure,
main {
  /* 1 */
  display: block;
}

/**
 * Add the correct margin in IE 8.
 */
figure {
  margin: 1em 40px;
}

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
  box-sizing: content-box;
  /* 1 */
  height: 0;
  /* 1 */
  overflow: visible;
  /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
  font-family: monospace, monospace;
  /* 1 */
  font-size: 1em;
  /* 2 */
}

/* Text-level semantics
   ========================================================================== */
/**
 * 1. Remove the gray background on active links in IE 10.
 * 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
 */
a {
  background-color: transparent;
  /* 1 */
  -webkit-text-decoration-skip: objects;
  /* 2 */
}

/**
 * Remove the outline on focused links when they are also active or hovered
 * in all browsers (opinionated).
 */
a:active,
a:hover {
  outline-width: 0;
}

/**
 * 1. Remove the bottom border in Firefox 39-.
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
  border-bottom: none;
  /* 1 */
  text-decoration: underline;
  /* 2 */
  text-decoration: underline dotted;
  /* 2 */
}

/**
 * Prevent the duplicate application of `bolder` by the next rule in Safari 6.
 */
b,
strong {
  font-weight: inherit;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
  font-family: monospace, monospace;
  /* 1 */
  font-size: 1em;
  /* 2 */
}

/**
 * Add the correct font style in Android 4.3-.
 */
dfn {
  font-style: italic;
}

/**
 * Add the correct background and color in IE 9-.
 */
mark {
  background-color: #ff0;
  color: #000;
}

/**
 * Add the correct font size in all browsers.
 */
small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */
/**
 * Add the correct display in IE 9-.
 */
audio,
video {
  display: inline-block;
}

/**
 * Add the correct display in iOS 4-7.
 */
audio:not([controls]) {
  display: none;
  height: 0;
}

/**
 * Remove the border on images inside links in IE 10-.
 */
img {
  border-style: none;
}

/**
 * Hide the overflow in IE.
 */
svg:not(:root) {
  overflow: hidden;
}

/* Forms
   ========================================================================== */
/**
 * 1. Change the font styles in all browsers (opinionated).
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
  font-family: sans-serif;
  /* 1 */
  font-size: 100%;
  /* 1 */
  line-height: 1.15;
  /* 1 */
  margin: 0;
  /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
  /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
  /* 1 */
  text-transform: none;
}

/**
 * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
 *    controls in Android 4.
 * 2. Correct the inability to style clickable types in iOS and Safari.
 */
button,
html [type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
  /* 2 */
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Change the border, margin, and padding in all browsers (opinionated).
 */
fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */
legend {
  box-sizing: border-box;
  /* 1 */
  color: inherit;
  /* 2 */
  display: table;
  /* 1 */
  max-width: 100%;
  /* 1 */
  padding: 0;
  /* 3 */
  white-space: normal;
  /* 1 */
}

/**
 * 1. Add the correct display in IE 9-.
 * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
  display: inline-block;
  /* 1 */
  vertical-align: baseline;
  /* 2 */
}

/**
 * Remove the default vertical scrollbar in IE.
 */
textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10-.
 * 2. Remove the padding in IE 10-.
 */
[type="checkbox"],
[type="radio"] {
  box-sizing: border-box;
  /* 1 */
  padding: 0;
  /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
  -webkit-appearance: textfield;
  /* 1 */
  outline-offset: -2px;
  /* 2 */
}

/**
 * Remove the inner padding and cancel buttons in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-cancel-button,
[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
  -webkit-appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */
}

/* Interactive
   ========================================================================== */
/*
 * Add the correct display in IE 9-.
 * 1. Add the correct display in Edge, IE, and Firefox.
 */
details,
menu {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
  display: list-item;
}

/* Scripting
   ========================================================================== */
/**
 * Add the correct display in IE 9-.
 */
canvas {
  display: inline-block;
}

/**
 * Add the correct display in IE.
 */
template {
  display: none;
}

/* Hidden
   ========================================================================== */
/**
 * Add the correct display in IE 10-.
 */
[hidden] {
  display: none;
}

/* Variables */
/* Mixins */
/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  font-family: "Playfair Display", serif;
  line-height: 1.25;
  color: #362416;
  margin: 0 0 1.25rem 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media screen and (min-width: 900px) {
  h1, h2, h3, h4 {
    margin: 0 0 2.5rem 0;
  }
}

.primary {
  color: #ef225c;
}

.secondary {
  color: #2f5065;
}

h1, .h1 {
  font-size: 1.75rem;
  line-height: 1.125;
}

@media screen and (min-width: 900px) {
  h1, .h1 {
    font-size: 4rem;
  }
}

@media screen and (min-width: 900px) {
  h1--large, .h1--large {
    font-size: 5rem;
  }
}

h2, .h2 {
  font-size: 1.5rem;
}

@media screen and (min-width: 900px) {
  h2, .h2 {
    font-size: 3rem;
  }
}

h3, .h3 {
  font-size: 1.25rem;
  line-height: 1.375;
}

@media screen and (min-width: 900px) {
  h3, .h3 {
    font-size: 2rem;
  }
}

h4 {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 0.25rem;
}

@media screen and (min-width: 900px) {
  h4 {
    font-size: 1.5rem;
  }
}

p, ul, ol, label {
  line-height: 1.5;
  font-size: 1rem;
  margin: 0 0 1rem 0;
  max-width: 700px;
  color: #362416;
}

@media screen and (min-width: 900px) {
  p, ul, ol, label {
    line-height: 1.6;
    font-size: 1.125rem;
    margin: 0 0 1.75rem 0;
  }
}

.subtitle {
  font-style: italic;
  font-family: "Playfair Display", serif;
  margin-top: 1rem !important;
}

/* Layout */
.container section {
  float: left;
  width: 100%;
}

.container--grey {
  background-color: #efefef;
  padding: 5%;
  display: inline-block;
  width: 90%;
}

@media screen and (min-width: 900px) {
  .container--grey {
    margin: 0 4rem;
    width: calc(100% - 8rem - 10%);
  }
}

.container--white {
  margin: 5%;
}

@media screen and (min-width: 900px) {
  .container--white {
    margin: 4rem;
  }
}

.container--full-message {
  min-height: 80vh;
  display: table;
  margin: auto;
}

.container--full-message section {
  display: table-cell;
  vertical-align: middle;
  float: none;
}

section {
  padding: 0;
}

@media screen and (min-width: 900px) {
  section {
    padding: 0 0 3rem 0;
  }
}

section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

.project {
  float: left;
  width: 100%;
  margin-bottom: 1rem;
}

@media screen and (min-width: 900px) {
  .project {
    margin-bottom: 3rem;
  }
}

.project:last-child {
  margin-bottom: 0;
}

.project__introduction {
  width: auto;
  float: left;
}

@media screen and (min-width: 900px) {
  .project__introduction {
    min-width: 750px;
  }
}

.project__introduction--right {
  float: right;
}

@media screen and (min-width: 900px) {
  .project__introduction--right {
    margin-right: 50px;
  }
}

.project__introduction--left {
  float: left;
}

.copia img {
  max-height: 483px;
  background-color: #fff6f6;
  padding-top: 1rem;
}

.project__image {
  float: left;
  display: block;
  padding: 0;
  width: 100%;
  margin: 0 0 4rem 0;
  text-align: right;
}

.project__image--right {
  text-align: right;
}

.project__image--left {
  text-align: left;
}

.project__image img {
  width: 100%;
  max-width: 800px;
}

.project__description {
  width: 100%;
  float: left;
  display: block;
}

.project__description--right p {
  float: right;
  clear: both;
}

@media screen and (min-width: 900px) {
  .project__description--right p {
    margin-right: 200px;
  }
}

.portfolio {
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
  float: left;
  width: 100%;
}

@media screen and (min-width: 900px) {
  .portfolio {
    margin-bottom: 3rem;
  }
}

.portfolio p {
  float: none;
  margin: auto;
}

#work, #blog {
  float: left;
  width: 100%;
  content: "";
  position: absolute;
  top: -6rem;
}

@media screen and (min-width: 900px) {
  #work, #blog {
    top: -8rem;
  }
}

.introduction {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.introduction--small {
  max-width: 600px;
  margin: 0 auto 2rem auto;
}

.introduction--small .introduction__image {
  min-width: 40px;
  max-width: 80px;
  padding: 0 1rem 0 0;
}

.introduction--small .introduction__author {
  margin-bottom: 0;
}

.introduction--small .introduction__text {
  min-width: auto;
}

.introduction p {
  width: 100%;
  max-width: 600px;
}

.introduction__text {
  flex: 3;
  min-width: 300px;
}

.introduction__image {
  flex: 1;
  float: left;
  margin: 0;
  padding: .75rem 3.75% 2rem 0;
  min-width: 200px;
  max-width: 250px;
}

.introduction__image img {
  float: left;
  width: 100%;
  border-radius: 50%;
}

/* Components */
.header__wrapper {
  float: left;
  width: 100%;
  height: 3rem;
  display: block;
}

@media screen and (min-width: 900px) {
  .header__wrapper {
    height: 4rem;
  }
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: white;
  z-index: 1;
}

.header nav {
  float: left;
  border-bottom: 1px solid #efefef;
  margin-bottom: -1px;
  position: relative;
  height: 3rem;
  margin: 0 5%;
  width: 85%;
}

@media screen and (min-width: 900px) {
  .header nav {
    height: 4rem;
    margin: 0 4rem;
    width: calc(100% - 8rem);
  }
}

.header ul {
  list-style-type: none;
  float: left;
  padding: 0;
  margin: 0;
}

.header li {
  float: left;
  display: inline-block;
  margin-right: 1.2rem;
  line-height: 2.75rem;
  padding: 0;
  width: auto;
}

@media screen and (min-width: 900px) {
  .header li {
    margin-right: 1.5rem;
    line-height: 3.75rem;
  }
}

.header li:before {
  margin: 0;
  width: 0;
  height: 0;
}

.header li a {
  font-family: "Playfair Display", serif;
  border-bottom: 2px solid transparent;
  color: #362416;
}

.header li a:hover, .header li a:focus {
  border-bottom: 2px solid #ef225c;
}

.footer {
  display: table;
  float: left;
  border-top: 1px solid #efefef;
  margin-bottom: -1px;
  position: relative;
  height: 3rem;
  margin: 0 7.5%;
  width: 85%;
}

@media screen and (min-width: 900px) {
  .footer {
    height: 4rem;
    margin: 0 4rem;
    width: calc(100% - 8rem);
  }
}

.footer__content {
  display: table-cell;
  vertical-align: middle;
  font-family: "Playfair Display", serif;
  color: #362416;
  line-height: 1.5;
  padding: 1rem 0;
}

ul {
  counter-reset: li;
  list-style: none;
  padding: 0 0 0 .75rem;
}

@media screen and (min-width: 900px) {
  ul {
    padding: 0 0 0 4rem;
  }
}

ul li {
  margin-bottom: .75rem;
  position: relative;
  padding-left: 1.5rem;
}

ul li:before {
  content: '';
  float: left;
  width: .5rem;
  height: .5rem;
  background-color: #362416;
  border-radius: 50%;
  margin: .75rem 1rem 0 .25rem;
  position: absolute;
  left: 0;
}

ol {
  counter-reset: li;
  list-style: none;
  padding-left: 0;
}

@media screen and (min-width: 900px) {
  ol {
    padding-left: 2rem;
  }
}

ol li {
  margin-bottom: .75rem;
  position: relative;
  padding-left: 2.5rem;
}

@media screen and (min-width: 900px) {
  ol li {
    padding-left: 3rem;
  }
}

ol li:before {
  content: counter(li) ".";
  counter-increment: li;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: "Playfair Display", serif;
  margin: 0 .25rem 0 1rem;
  line-height: 1rem;
  position: absolute;
  left: 0;
}

@media screen and (min-width: 900px) {
  ol li:before {
    font-size: 1.875rem;
    margin: 0 .75rem 0 1rem;
  }
}

button {
  font-family: "Open Sans", sans-serif;
  font-size: 0.875rem;
  background-color: #2f5065;
  border: 0px;
  padding: .5rem 2rem;
  color: white;
  text-transform: uppercase;
  line-height: 1.5rem;
  transition: background-color .3s ease;
  width: 9rem;
  position: relative;
}

button:hover, button:focus {
  background-color: #ef225c;
  cursor: pointer;
}

form {
  margin-left: auto;
  margin-right: auto;
  float: none;
  max-width: 600px;
}

input {
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
  padding: 0;
  float: left;
  height: 2.5rem;
  display: block;
  color: #362416;
  border: 1px solid #d4d4d4;
  width: calc(100% - 2rem);
  margin-bottom: 1rem;
  padding: 0 1rem;
}

@media screen and (min-width: 900px) {
  .input--with-button {
    width: calc(600px - 12rem);
    margin-bottom: 0;
  }
}

.input--error {
  border-color: #ef225c;
}

.form-error {
  float: left;
  color: #ef225c;
  width: 100%;
  text-align: left;
}

a {
  transition: .3s ease border-bottom, .3s ease color;
  border-bottom: 2px solid transparent;
  color: #ef225c;
  text-decoration: none;
}

a:hover, a:focus {
  text-decoration: none;
  border-bottom: 2px solid #ef225c;
  color: #ef225c;
}

.spinner {
  text-align: center;
  width: 100%;
  height: 2.5rem;
  position: absolute;
  left: 0;
  top: 0;
  background-color: #2f5065;
  display: none;
}

.spinner>div {
  width: 1rem;
  height: 1rem;
  background-color: white;
  margin-top: .625rem;
  border-radius: 100%;
  display: inline-block;
  -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
  animation: sk-bouncedelay 1.4s infinite ease-in-out both;
}

.spinner .bounce1 {
  -webkit-animation-delay: -0.32s;
  animation-delay: -0.32s;
}

.spinner .bounce2 {
  -webkit-animation-delay: -0.16s;
  animation-delay: -0.16s;
}

@-webkit-keyframes sk-bouncedelay {
  0%, 80%, 100% {
    -webkit-transform: scale(0);
  }

  40% {
    -webkit-transform: scale(1);
  }
}

@keyframes sk-bouncedelay {
  0%, 80%, 100% {
    -webkit-transform: scale(0);
    transform: scale(0);
  }

  40% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}

textarea {
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
  padding: 1rem;
  float: left;
  display: block;
  color: #362416;
  border: 1px solid #d4d4d4;
  width: calc(100% - 2rem);
  margin-bottom: 1rem;
}

/* Templates */
.article {
  max-width: 1024px;
  margin: auto;
}

.article .h2, .article .h3, .article h3, .article h2 {
  margin-bottom: 1rem;
}

.article .h2.article__title {
  margin-bottom: 2rem;
  max-width: 1024px;
}

.article__demo {
  padding: 1rem;
  border: 1px solid #d4d4d4;
  background-color: #efefef;
  padding: 1.5rem;
  margin: 0 auto 1.5rem auto;
  max-width: 750px;
}

.article__demo_caption {
  margin: 0 auto 3rem auto;
  max-width: 750px;
  font-family: "Open Sans", sans-serif;
  font-style: italic;
  margin-bottom: 2rem;
  margin-top: -1rem;
  text-align: center;
  color: rgba(54, 36, 22, 0.85);
  font-size: .875rem;
}

.article__lead {
  margin: 0 auto 3rem auto;
  max-width: 600px;
}

.article__lead-date {
  font-family: "Playfair Display", serif;
  font-style: italic;
  margin-bottom: 0;
}

.article__lead-figure {
  float: left;
  margin: 0;
  margin: 0 0 3rem 0;
}

.article__lead-figure img {
  width: 100%;
}

.article .rich-text p, .article p, .article .h2, .article h2, .article .h3, .article h3, .article ul, .article ol, .article h4 {
  margin-left: auto;
  margin-right: auto;
  float: none;
  max-width: 600px;
}

.article__figure {
  margin: 3rem 0;
}

.article__figure img {
  float: left;
  width: 100%;
  margin: 0 0 1rem 0;
}

.article__figure__caption {
  font-style: italic;
  font-family: "Playfair Display", serif;
  text-align: center;
  margin: auto;
  max-width: 600px;
  font-size: 1rem;
}

@media screen and (min-width: 900px) {
  .article__figure__caption {
    font-size: 1rem;
  }
}

.articles {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  align-content: center;
  margin: 0;
}

@media screen and (min-width: 900px) {
  .articles {
    margin: 1rem 0 3rem 0;
  }
}

.articles__block {
  margin: 0.5rem 0;
  float: left;
  width: 100%;
  background-color: #efefef;
  transition: background-color .3s ease;
}

@media screen and (min-width: 900px) {
  .articles__block {
    margin: 1.5rem 0;
  }
}

.articles__block:hover, .articles__block:focus {
  background-color: #ef225c;
  border-bottom: 2px solid transparent;
}

.articles__block:hover .articles__date, .articles__block:hover .h3, .articles__block:hover h3, .articles__block:hover .articles__link, .articles__block:focus .articles__date, .articles__block:focus .h3, .articles__block:focus h3, .articles__block:focus .articles__link {
  color: white;
}

.articles__wrapper {
  padding: 2rem;
}

.articles__link {
  color: #ef225c;
  font-size: .875rem;
  text-transform: uppercase;
  transition: color .3s ease;
}

.articles__date {
  color: #362416;
  font-style: italic;
  font-family: "Playfair Display", serif;
  margin: .5rem 0 1.125rem 0;
  transition: color .3s ease;
}

.articles .h3, .articles h3 {
  transition: color .3s ease;
  max-width: 700px;
  margin: auto;
  padding: 0 1.25rem;
}

/* Shame, refactoring necessary soon */
/* webkit, opera, IE9 */
::selection {
  background: #ef225c;
  color: white;
}

/* mozilla firefox */
::-moz-selection {
  background: #ef225c;
  color: white;
}

.no-margin {
  margin: 0;
}

.center {
  text-align: center;
}

.subscribe {
  margin-bottom: -4px;
}

.center-float {
  float: none;
  margin: auto;
  display: block;
}

.newsletter {
  padding: 0 5% 5% 5%;
  margin-bottom: 5%;
}

.newsletter.container--grey {
  padding: 5%;
  margin-bottom: 0;
}

.newsletter .subtitle {
  margin-bottom: 1.5rem;
}

html {
  font-size: 16px;
  font-family: "Open Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: auto;
  float: none;
  max-width: 1600px;
}

.full-width-centered {
  width: 100%;
  text-align: center;
  min-width: 100%;
}

.project h1 {
  max-width: 700px;
}