@import url('shared.css');

h1 {
  font-size: 6.8rem;
  line-height: 8rem;
  font-weight: 300;
}
h2 {
  font-size: 4.8rem;
  line-height: 5rem;
  font-weight: 300;
}
h3 {
  font-size: 1.2rem;
  line-height: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #e33434;
}
h4 {
  font-size: 1.8rem;
  line-height: 1.3;
  font-weight: 400;
}
h5 {
  font-size: 1.2rem;
  line-height: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #e33434;
  margin-bottom: 0.4em;
}

body > div {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

main {
  width: 100%;
}

.line {
  background-color: var(--brand);
  height: 1px;
  margin-bottom: 48px;
  max-width: 941px;
  margin-left: auto;
  margin-right: auto;
  z-index: -1;
}

.content-box {
  margin-top: -18px;
  padding: 54px 0 36px;
  display: inline-block;
  z-index: -1;
  position: relative;
  -webkit-hyphens: none;
  -moz-hyphens: none;
  -ms-hyphens: none;
  hyphens: none;
}

.content-box span {
  background-color: var(--brand-muted);
  box-shadow: 0.3em 0 0 var(--brand-muted), -0.3em 0 0 var(--brand-muted);
  color: white;
  padding: 3px 3px;
  font-size: 2.4rem;
  line-height: 3.8rem;
}

.site-logo {
  width: 50px;
  height: 50px;
  margin-bottom: 12px;
  margin-top: 120px;
  margin-right: -6px;
  align-self: flex-end;
}

.headspace-logo {
  width: 60%;
  height: auto;
  margin-bottom: 12px;
  margin-top: 120px;
  margin-right: -6px;
  align-self: flex-end;
}

a {
  text-decoration: none;
  color: black;
}
a:visited {
  color: black;
}
a:hover {
  color: var(--brand);
}
a:active {
  color: black;
}

p a {
  color: var(--brand);
}

article {
  margin-top: 108px;
}

article.intro {
  margin-top: 96px;
}

article.intro-headspace {
  margin-top: 0;
  background-size: cover;
  background-image: url("../img/hero_background.png");
  background-position: center bottom;
  background-repeat: no-repeat;
}

article.intro-headspace h1 {
  margin-top: 100px;
}

article.intro .content-box {
  width: 60%;
  align-self: flex-end;
  text-align: right;
}

article section {
  margin-top: 120px;
}

article section:first-of-type {
  margin-top: 0;
}

article.intro section:first-child {
  margin-top: 0;
}

section h3 {
  margin-bottom: -6px;
}

section h3 span.color {
  background-color: white;
  padding-right: 6px;
  z-index: 100;
  align-self: flex-start;
}

section h4 {
  margin-bottom: 18px;
}

section > p {
  margin-bottom: 48px;
}

ul {
  margin: 0 0 48px 0;
  padding: 0;
  list-style: none;
}

ul li {
  margin-bottom: 12px;
  display: flex;
  line-height: 2.4rem;
}

ul li::before {
  content: "•";
  font-size: 1.2rem;
  font-weight: 400;
  margin-right: 6px;
}

ul:last-child,
li:last-child {
  margin-bottom: 0;
}

img.photo {
  width: 100%;
  height: auto;
}

.wrap,
.hgrid {
  max-width: 941px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  padding-left: 24px;
  padding-right: 24px;
}

.hgrid {
  margin-bottom: 48px;
}

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

.hgrid,
.list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.hgrid .column {
  flex: 1;
  min-width: 200px;
  margin-right: 36px;
}

.hgrid .column:last-child {
  margin-right: 0;
}

.hgrid .column.inline {
  flex: none;
}

.list a {
  margin-right: 24px;
}

.list a:last-child {
  margin-right: 0;
}

.list a::before {
  content: url("data:image/svg+xml;charset=UTF-8, <svg width='12px' height='12px' viewBox='0 0 12 12' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'><path d='M11.3317369,0 L4.6491062,0 L4.6491062,1.33652615 L9.71721334,1.33652615 L0,11.0557443 L0.946260511,12.0020048 L10.6634739,2.28278666 L10.6634739,7.3508938 L12,7.3508938 L12,0.668263073 C12,0.298713594 11.7012864,0 11.3317369,0 Z' fill='%23000'></path></svg>");
  margin-right: 6px;
  transition-duration: 0.3s;
  transition-property: all;
  display: inline-block;
}

.list a:hover::before {
  content: url("data:image/svg+xml;charset=UTF-8, <svg width='12px' height='12px' viewBox='0 0 12 12' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'><path d='M11.3317369,0 L4.6491062,0 L4.6491062,1.33652615 L9.71721334,1.33652615 L0,11.0557443 L0.946260511,12.0020048 L10.6634739,2.28278666 L10.6634739,7.3508938 L12,7.3508938 L12,0.668263073 C12,0.298713594 11.7012864,0 11.3317369,0 Z' fill='%23da4567'></path></svg>");
}

.column h2 {
  margin-bottom: 48px;
  text-align: left;
}

.column p {
  margin-bottom: 48px;
}

.column p:last-child {
  margin-bottom: 0;
}

footer {
  background-color: #f4f1ef;
  margin-top: 60px;
  padding-top: 60px;
  padding-bottom: 100px;
}

footer p,
footer a {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.8rem;
  color: #7e4847;
}

footer .list a::before {
  content: url("data:image/svg+xml;charset=UTF-8, <svg width='12px' height='12px' viewBox='0 0 12 12' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'><path d='M11.3317369,0 L4.6491062,0 L4.6491062,1.33652615 L9.71721334,1.33652615 L0,11.0557443 L0.946260511,12.0020048 L10.6634739,2.28278666 L10.6634739,7.3508938 L12,7.3508938 L12,0.668263073 C12,0.298713594 11.7012864,0 11.3317369,0 Z' fill='%237e4847'></path></svg>");
}

div.cta {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

a.button {
  padding: 6px 12px;
  font-size: 1.8rem;
  font-weight: 400;
  border: 1px solid var(--brand);
  border-radius: 4px;
  color: var(--brand);
  transition-duration: 0.3s;
  transition-property: color, background-color;
  margin-left: 24px;
}

a.button.cv {
  margin-left: 0;
  margin-right: auto;
}

a.button:hover {
  color: white;
  background-color: var(--brand);
}
figcaption {
  font-size: 12px;
}

/* 989px = .wrap max-width 941 + 24 + 24 padding */
/* This is the first time, where the .line-s would touch the window edges */
@media (max-width: 989px) {
  .line {
    margin-left: 24px;
    margin-right: 24px;
  }

  .hgrid .column.inline {
    flex: 1;
  }
}

/* 720px = 24 + 200 + 36 + 200 + 36 + 200 + 24 */
/* This is were the a 3-column breaks */
@media (max-width: 719px) {
  section .list {
    flex-direction: column;
  }

  /* The second column now touches the window, so we turn of the right margin */
  .column:nth-child(2) {
    margin-right: 0;
  }
  /* Since we turned off the margin of the 2nd column, the 3rd would fit again, so we'll force it into the next line  */
  .column:nth-child(3),
  .column.inline:nth-child(3) {
    flex-basis: 100%;
    margin-top: 48px;
  }
}

/* 484px = 24 + 200 + 36 + 200 + 24 */
@media (max-width: 483px) {
  /* The first column now touches the window, so we turn of the right margin */
  .column:nth-child(1) {
    margin-right: 0;
  }
  /* Since we turned off the margin of the 1st column, the 2nd would fit again, so we'll force it into the next line  */
  .column:nth-child(2),
  .column.inline:nth-child(2) {
    flex-basis: 100%;
    margin-top: 14px;
  }

  /* This is a special case that joins the columns so that it looks as if it were one plain list */
  .hgrid.acts-as-list .column.inline {
    margin-top: 12px;
  }
}

@media (max-width: 768px) {
  article section {
    margin-top: 84px;
  }

  h1 {
    font-size: 4.8rem;
    line-height: 6rem;
  }

  h2 {
    font-size: 3.8rem;
    line-height: 4rem;
  }

  .column h2 {
    margin-bottom: 36px;
  }

  .content-box span {
    font-size: 2rem;
    line-height: 3.4rem;
  }

  article.intro {
    margin-top: 72px;
  }

  .content-box {
    padding-top: 36px;
  }

  .site-logo {
    margin-top: 72px;
  }

  footer {
    margin-top: 48px;
    padding-top: 48px;
    padding-bottom: 48px;
  }
  .headspace-logo {
    width: 90%;
    height: auto;
    margin-bottom: 12px;
    margin-top: 120px;
    margin-right: -6px;
    align-self: flex-end;
  }
}

@media (max-width: 767px) {
  h1 {
    font-size: 4rem;
    line-height: 5.2rem;
  }

  h2 {
    font-size: 3rem;
    line-height: 3.2rem;
  }

  .column h2 {
    margin-bottom: 24px;
  }

  .content-box span {
    font-size: 1.8rem;
    line-height: 3.2rem;
  }

  article.intro {
    margin-top: 36px;
  }

  .content-box {
    padding-top: 36px;
  }

  .site-logo {
    margin-top: 48px;
  }

  .line {
    margin-bottom: 36px;
  }

  article section {
    margin-top: 60px;
  }

  article {
    margin-top: 60px;
  }

  footer {
    margin-top: 24px;
    padding-top: 24px;
    padding-bottom: 24px;
  }
}
