/**************************************
              GLOBAL
**************************************/

:root {

  /* type */
  --serif: georgia, serif;
  --sans-serif: Inter, -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* gray */
  --gray05:   hsl(220, 0%, 05%);
  --gray10:   hsl(220, 0%, 10%);
  --gray15:   hsl(220, 0%, 15%);
  --gray20:   hsl(220, 0%, 20%);
  --gray25:   hsl(220, 0%, 25%);
  --gray30:   hsl(220, 0%, 30%);
  --gray35:   hsl(220, 0%, 35%);
  --gray40:   hsl(220, 0%, 40%);
  --gray45:   hsl(220, 0%, 45%);
  --gray50:   hsl(220, 0%, 50%);
  --gray55:   hsl(220, 0%, 55%);
  --gray60:   hsl(220, 0%, 60%);
  --gray70:   hsl(220, 0%, 70%);
  --gray80:   hsl(220, 0%, 80%);
  --gray85:   hsl(220, 0%, 85%);
  --gray90:   hsl(220, 0%, 90%);
  --gray94:   hsl(220, 0%, 94%);
  --gray96:   hsl(220, 0%, 96%);
  --gray97:   hsl(220, 0%, 97%);
  --gray100:  hsl(220, 0%, 100%);

  --orange70: hsl( 20, 100%, 70%);
  --orange97: hsl( 20, 100%, 97%);

  --green70:  hsl(120, 100%, 70%);
  --green97:  hsl(120, 100%, 97%);

  --blue50:   hsl(220,  80%, 50%);
  --blue55:   hsl(220,  90%, 55%);
  --blue60:   hsl(220,  90%, 60%);
  --blue70:   hsl(220, 100%, 70%);
  --blue80:   hsl(215, 100%, 80%);
  --blue90:   hsl(210, 100%, 90%);
  --blue95:   hsl(210, 100%, 95%);
  --blue96:   hsl(210, 100%, 96%);
  --blue97:   hsl(210, 100%, 97%);

  --purple70: hsl(280, 100%, 70%);  
  --purple97: hsl(280, 100%, 97%);

  --yellow90: hsl(60, 100%, 90%);
  
  --modal-bg: hsla(220, 20%, 35%, .5);

  /* semantic colors */
  --text-primary: var(--gray100);
  --text-secondary: var(--gray80);
  --text-tertiary: var(--gray60);

  /* font sizes */
  --xxl: 2rem;
  --xl: 1.6rem;
  --l: 1.2rem;
  --m: 1rem;
  --s: .9rem;

  /* responsive cutoffs */
  --mobile-size: 600px;

}

/* GLOBAL */

* {
  box-sizing: border-box;
}
html,
body {
  font-size: 16px;
  margin: 0;
  padding: 0;
}
body {
  padding: 8rem 0 0 0;
  background: black;
  color: var(--text-secondary);
  font-family: var(--sans-serif);
  line-height: 1.5;
	/* -webkit-font-smoothing: antialiased; */
  overflow-x: hidden;
  background-color: black;
  background-image: url('/images/background.svg');
  background-position-x: center;
  background-position-y: top;
  background-repeat: no-repeat;
}
@media(max-width: 600px) {
  body {
    padding: 4rem 0 0 0;
  }  
}

section {
  padding: 3rem 5vw;
  max-width: 60rem;
  margin: 0 auto;
}


/* TEXT */

h1,
h2,
h3 {
  color: var(--text-primary);
  position: relative;
}

h1 {
  font-size: 2.4rem;
  font-weight: 900;
  margin: 0 0 1.5rem;
  max-width: 40rem;
  line-height: 1.1;
}
h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 4rem 0 1.5rem;
  line-height: 1.1;
}
h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

/* heading styles */

.heading-hero-sub {
  font-size: var(--l);
  max-width: 40rem;
  margin: 0 0 2rem;
}

.heading-big {
  margin: 0 0 1rem;
  font-size: var(--xl);
  line-height: 1.2;
  font-weight: 600;
}
.heading-extra-big {
  margin: 0 0 1rem;
  font-size: var(--xxl);
  line-height: 1.2;
  font-weight: 800;
}

.heading-second {
  font-size: var(--l);
  font-weight: 700;
  margin: 4.5rem 0 2.5rem;
}
.heading-second:after {
  content: '';
  width: 2rem;
  height: 3px;
  background: var(--gray94);
  position: absolute;
  left: 0;
  bottom: -1rem;
}
.heading-modal {
  line-height: 1.2;
  font-size: var(--xl);
  font-weight: 700;
  margin: 0 0 1rem;
}
.heading-offering {
  font-size: var(--l);
  font-weight: 800;
  margin: 0 0 .5rem;
}
.heading-third {
  margin: 2.5rem 0 0.5rem;
  font-size: var(--m);
  font-weight: 800;
}
.heading-media {
  margin: 0rem 0 0;
  font-weight: 600;
  font-size: var(--m);
  line-height: 1.3;
}
.heading-media-big {
  margin: 0rem 0 .5rem;
  font-weight: 700;
  font-size: var(--l);
  line-height: 1.3;
}

.heading-line {
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--gray10);
  padding: 0 0 .5rem;
}
.heading-line:after {
  /* content: ''; */
  width: 2rem;
  height: 3px;
  background: var(--gray30);
  position: absolute;
  left: 0;
  bottom: -1rem;
}
.heading-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.03rem;
  font-weight: 600;
  font-size: var(--s);
  color: var(--text-secondary);
  color: var(--text-tertiary);
  margin: 0 0 .5rem;
}
.heading-eyebrow-badge {
  text-transform: uppercase;
  letter-spacing: 0.03rem;
  font-weight: 600;
  font-size: var(--s);
  color: black;
  margin: 0 0 .5rem;
  display: inline-block;
  background: white;
  padding: 0 8px;
  border-radius: 3px;
}
.heading-sub {
  font-size: var(--l);
  font-weight: 500;
  margin: -0.5rem 0 2.5rem;
  color: var(--text-secondary);
  color: var(--text-tertiary);
}

p,
li {
  color: var(--text-secondary);
  margin: 0 0 1rem;
  line-height: 1.4;
}
ul,
ol {
  margin: 0 0 1rem 0;
  padding: 0 0 0 1.5rem;
}
li {
  margin: 0 0 .5rem;
  padding: 0 0 0 .25rem;
}
ul li {
  list-style: none;
  position: relative;
}
ul li:after {
  content: '\b7'; /* middot */
  position: absolute;
  left: -1rem;
  top: 0;
}
strong {
  font-weight: 600;
  color: var(--text-primary);
}
.link {
  text-decoration: none;
  color: var(--text-primary);
  border: none;
  cursor: pointer;
}
.link:hover {
  border-bottom: 2px solid var(--gray50);
}
.max-line-width {
  max-width: 36rem;
}
blockquote {
  margin: 2.5rem 0;
  font-size: var(--l);
  color: var(--text-secondary);
  line-height: 1.5;
  padding-left: 1.5rem;
  /* font-family: var(--serif); */
  border-left: 3px solid var(--gray30);
  max-width: 40rem;
  /* background: var(--gray10); */
}
blockquote p {
  color: inherit;
}
blockquote strong {
  /* background: var(--gray20); */
  color: var(--text-primary);
  /* padding: 0 .25rem; */
  font-weight: inherit;
}
hr {
  margin: 2rem 0;
  height: 2px;
  border: none;
  background: var(--gray25);
}


/* FORM */

form.inline-form {
  padding: 1.5rem;
  background: var(--gray97);
  box-shadow: 0 0 0 2px var(--gray96);
  margin: 0 0 2rem;
}
form.inline-form.form-secondary {
  background: #333;
  box-shadow: 0 0 0 2px var(--gray90);
}
form.inline-form.form-invisible {
  background: #333;
  box-shadow: none;
  padding: 0;
  max-width: 26rem;
}
.inline-form-row {
  display: grid;
  grid-template-columns: auto max-content;
  grid-column-gap: 1rem;
  grid-row-gap: 1rem;
  margin: 0 0 1rem;
}
.inline-form-row input {
  margin: 0;
  height: 2.8rem;
}
@media(max-width: 600px) {
  .inline-form-row {
    grid-template-columns: auto;
  }
}

form.vertical-form {
  padding: 1.5rem;
  background: var(--gray97);
  box-shadow: 0 0 0 2px var(--gray96);
  margin: 0 0 2rem;
}
form.vertical-form.form-secondary {
  background: #333;
  box-shadow: none;
  padding: 0;
}
.vertical-form-row {
  display: grid;
  grid-template-rows: auto auto;
  grid-column-gap: 1rem;
  grid-row-gap: 0rem;
  margin: 0 0 1rem;
}
.vertical-form-row input {
  margin: 0;
}



.inline-submit-wrapper {
  display: inline-block;
  position: relative;
  width: 400px;
  max-width: 100%;
  margin: 0 0 .5rem;
}

label {
  display: block;
  margin: 0 0 .25rem;
  font-weight: 500;
  color: var(--text-primary);


  text-transform: uppercase;
  letter-spacing: 0.03rem;
  font-weight: 600;
  font-size: var(--s);
  color: var(--text-secondary);
  margin: 0 0 .25rem;
}
input,
textarea,
.button,
button {
  font-family: var(--sans-serif);
  font-size: var(--m);
  outline: none;
  border-radius: 3px;
  line-height: 1.2rem;
  min-width: 100px;
}
input,
textarea {
  padding: .75rem;
  transition: all 100ms ease;
  margin: 0 1rem 1rem 0;
  border: none;
  color: white;
  background: var(--gray25);
}
input {
  /* browsers ignore line height but do pay attention to height */
  height: calc(.75rem + 1.2rem + .75rem);
}
input:hover,
textarea:hover {
  background: var(--gray30);
}
input:focus,
textarea:focus {
  background: var(--gray35);
}
input:active,
textarea:active {
  background: var(--gray30);
}
input::placeholder,
textarea::placeholder {
  color: var(--gray70);
}
input.input-primary,
textarea.input-primary {
  color: black;
  background: white;
  box-shadow: inset 0 -2px #ccc;
}

/* button */
button svg {
  transform: scale(.9);
}

.button,
button {
  display: inline-block;
  text-decoration: none;
  border: none;
  padding: .75em 1.5em;
  font-weight: 600;
  background: var(--gray100);
  font-size: var(--m);
  margin: 0;
  cursor: pointer;
  text-align: center;

  transition: all 100ms ease;
  background: white;
  color: black;
}
.button:focus,
button:focus,
.button:hover,
button:hover {
  background: var(--gray100);
}
/* .button:active,
button:active {
  box-shadow: 0 1px 2px var(--gray85);
} */

/* secondary */
.button.button-secondary,
button.button-secondary {
  background: var(--gray20);
  color: var(--text-primary);
}
/* .button.button-secondary:focus,
button.button-secondary:focus,
.button.button-secondary:hover,
button.button-secondary:hover {
  box-shadow: 0 0 0 2px var(--gray80), 0 2px 5px var(--gray90);
}
.button.button-secondary:active,
button.button-secondary:active {
  box-shadow: 0 0 0 2px var(--gray80), 0 1px 2px var(--gray90);
} */

/* block vs inline */
.button.button-block,
button.button-block {
  display: block;
  text-align: center;
}

/* sizes */
.button.button-small {
  padding: .5rem 1rem;
  min-width: auto;
  margin: -.5rem 0;
}

video {
  background: var(--gray90);
  width: 100%;
  margin: 0 0 2rem;
}


/* BACKGROUND */

img.background {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -70%) scale(1);
  z-index: -1;
  pointer-events: none;
  opacity: .5;
}

/* HEADER */

header {
  padding: 3rem 0 1rem;
  transition: all .2s ease;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  position: fixed;
}
.sticky-header header {
  padding: 1.5rem 0;
  background: hsla(0, 0%, 0%, .92);
}

@media(max-width: 600px) {
  header {
    padding: 1rem 0;
  }  
  .sticky-header header {
    padding: .5rem 0;
  }
}

header section {
  padding: 0 5vw;
  position: relative;
  display: flex;
  justify-content: space-between;
}
@media(max-width: 600px) {
  header section {
    flex-direction: column;
  }  
}
header .logo {
  text-decoration: none;
  display: inline-block;
  user-select: none;
  color: var(--text-primary);
  font-weight: 600;
  display: inline-block;
  margin: 0 .5rem 0 0;
  font-size: var(--m);
}
header .link {
  display: inline-block;
  margin: 0 0 0 2.5rem;
  border-bottom: 1.5px solid transparent;
  transition: opacity .2s ease;
  transition: border-bottom .2s ease;
  font-weight: 500;
  font-size: var(--m);
  user-select: none;
  padding: 3px;
}
header .link[data-active="active"] {
  border-color: var(--gray30);
}
@media(max-width: 600px) {
  header .link {
    margin: 0 1rem 0 0;
    padding: 0;
  }  
}

/* FOOTER */

footer {
  text-align: center;
  color: var(--gray30);
  margin: 6rem 0 2rem;
  font-size: var(--s);
}
footer a {
  color: inherit;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

/**************************************
              HOME
**************************************/

/* HERO */

.hero {
  text-align: center;
  max-width: 40rem;
  margin: 4rem auto;
}

/* OFFERING BOX */

.offering-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-columns: 1fr;
  grid-column-gap: 2px;
  margin: 3rem 0 1rem;
  align-items: center;
}
.offering-boxes.condensed {
  grid-column-gap: 2.5rem;
  grid-row-gap: 3rem;
  align-items: initial;
  margin: 0 0 1rem;
}
.offering-box {
  padding: 2rem;
  background: #333;
  box-shadow: 0 0 0 2px var(--gray90);
}
.offering-boxes.condensed .offering-box {
  box-shadow: none;
  padding: 0;

  /* button on bottom */
  display: grid;
  align-content: normal;
}
.offering-boxes.condensed .offering-box .button {
  align-self: end;
}
@media(max-width: 600px) {
  .offering-boxes {
    grid-template-columns: auto;
  }  
}


/* WELL */

.well {
  padding: 2rem;
  background: var(--gray10);
  margin: 0 0 2rem;
  border-radius: 5px;
}
@media(max-width: 600px) {
  .well {
    padding: 1.5rem;
  }  
}
.well h3 {
  font-size: var(--l);
  margin: 0 0 1rem;
}
.well .link {
  border-bottom: 2px solid var(--gray40);
}

/* TESTIMONIALS */

.testimonial {
  margin: 2rem 0 4rem;
}
.testimonial blockquote {
  margin: 0 0 1rem;
  padding: 0;
  border: none;
}

.testimonial-avatar {
  display: grid;
  grid-template-columns: max-content auto;
  grid-column-gap: 1rem;
}
.testimonial-pic {
  width: 42px;
  height: 42px;
  margin: 0;
}
.testimonial-avatar svg {
  width: 46px;
  height: 46px;
  margin: 0 0 0 -4px;
}
.testimonial-avatar svg path {
  fill: var(--gray80);
}
.testimonial-pic {
  border-radius: 50%;
}

.testimonial .name {
  color: var(--text-primary);
  font-weight: 700;
  font-size: var(--m);
  line-height: 1.2;
}
.testimonial .title {
  color: var(--text-secondary);
  font-size: var(--s);
}


/* BIO */
.bio-pic {
  max-width: 55%;
  margin-bottom: 1rem;
  margin-top: .25rem;
}
.bio-pic-right {
  float: right;
  margin-right: -5rem;
  margin-left: 2rem;
}
.bio-pic-left {
  float: left;
  margin-left: -5rem;
  margin-right: 2rem;
}
@media(max-width: 600px) {
  .bio-wrapper {
    padding: 0;
  }
  .bio-pic {
    max-width: 100%;
    margin-bottom: 1rem;
    margin-top: 0;
  }
  .bio-pic-right,
  .bio-pic-left {
    float: none;
    margin-left: 0;
    margin-right: 0;
  }  
}


/**************************************
              COLUMNS
**************************************/

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-column-gap: 2rem;
  grid-row-gap: 1rem;
}
@media(max-width: 600px) {
  .two-columns {
    grid-template-columns: auto;
  }
}

.sidebar-layout {
  display: grid;
  grid-template-columns: 1fr 4fr;
  /* grid-template-columns: 2fr 7fr; */
  grid-column-gap: 2rem;
  margin: 4rem 0;
}
@media(max-width: 600px) {
  .sidebar-layout {
    grid-template-columns: auto;
  }
  .sidebar-layout aside {
    display: none;
  }
}
.vertical-nav {
  position: sticky;
  margin: 0;
  top: 10rem;
}
.vertical-nav a {
  display: block;
  margin: 0 0 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all .1s ease;
}
.vertical-nav a:hover {
  color: white;
}


/**************************************
              BLOG
**************************************/

.post h1 {
  margin: 0 0 1rem;
  font-size: var(--xxl);
  font-weight: 900;
  line-height: 1;
}
.post h2 {
  font-size: var(--xl);
  font-weight: 600;
  margin: 4rem 0 2rem;
}
.post h3 {
  margin: 2rem 0 1rem;
  font-size: var(--l);
  font-weight: 600;
  font-family: var(--sans-serif);
}
.post h4 {
  margin: 2rem 0 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  font-family: var(--sans-serif);
}
.post h1 + blockquote {
  color: var(--text-secondary);
  font-weight: 400;
  font-style: normal;
  margin: 0 0 3rem;
  border: none;
  padding: 0;
  font-family: var(--sans-serif);
}
.post figure {
  width: 100%;
  margin: 0;
}
.post .blog-meta {
  font-size: var(--s);
  color: var(--gray50);
  color: var(--text-tertiary);
}
.post img {
  max-width: 100%;
}
.post figcaption {
  text-align: center;
  font-family: var(--sans-serif);
  color: var(--text-tertiary);
  margin: 0 0 3rem;
  font-size: var(--s);
}
.post a {
  text-decoration: none;
  color: inherit;
  text-decoration: underline;
}


/* MODAL */

.modal-wrapper {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 100;
}
.modal-background {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: var(--modal-bg);
  z-index: 1;
  overflow-y: auto;
}
.modal-body {
  background: black;
  border-radius: 4px;
  max-width: 100%;
  width: 40rem;
  padding: 2rem;
  z-index: 5;
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translate(-50%, 0);
  width: 36rem;
  box-shadow: 0 20px 60px -20px hsl(220, 50%, 30%, .5);
}
.close-x {
  font-size: 2rem;
  padding: 1rem;
  position: absolute;
  right: 0;
  top: 0;
  line-height: 1;
  cursor: pointer;
  color: var(--text-tertiary);
}



.badge {
  display: inline-block;
  font-size: var(--s);
  font-weight: 600;
  color: var(--text-secondary);
  padding: 3px 4px;
  border-radius: 3px;
  background: var(--gray25);
  white-space: nowrap;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 0 .5rem;
}



/* MEDIA BOX */

.mediabox {
  display: grid;
  grid-column-gap: 1rem;
  grid-template-columns: 2.6rem auto;
  margin-bottom: 1.5rem;
}
.mediabox .icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--gray15);
  color: var(--gray80);
  position: relative;
}
.mediabox .icon ion-icon {
  font-size: var(--l);
  transform: translate(-50%, -50%);
  position: absolute;
  top: 50%;
  left: 50%;
  color: white;
}
