﻿/*
variables
yellow brand: #ffda00/rgb(255,218,0)

dark grey: #88909c
light grey: #c4c9d0

medium breakpoint: 850px
mobile: 550px
*/

*,
*:after,
*:before {
  box-sizing: border-box;
}

body {
  font-family: "Nunito Sans", sans-serif;
}

p {
  line-height: 1.4;
}

a,
a:active,
a:hover,
a:visited {
  color: inherit;
  text-decoration: none;
  font-weight: bold;
  transition: 0.1s opacity ease-in-out;
  opacity: 1;
}

a:hover {
  opacity: 0.8;
}

.text--upper {
  text-transform: uppercase;
}

.hidden {
  display: none !important;
}

.container {
  width: 100%;
  max-width: 800px;
  padding-left: 2rem;
  padding-right: 2rem;
  margin-left: auto;
  margin-right: auto;
}

.hero {
  display: grid;
  overflow: hidden;
  background: #afadab;
}

.hero__img {
  max-width: 100%;
  grid-column: 1/-1;
  grid-row: 1/-1;
  margin-left: -35%;
}

.hero__img img {
  object-fit: cover;
  max-height: 100%;
  height: 100%;
  max-width: 180%;
}

.hero__inner {
  grid-column: 1/-1;
  grid-row: 1/-1;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: 20rem auto;
  grid-gap: 3rem;
  position: relative;
}

.hero__text {
  align-self: end;
  grid-column: 1;
  grid-row: span 1/-1;
  color: white;
  font-weight: normal;
}

.hero__logo {
  grid-column: span 1/-1;
  grid-row: 1;
  justify-self: end;
  max-width: 12rem;
  margin-top: 2rem;
  align-self: start;
}

.show--mobile {
  display: none;
}

.show--medium {
  display: none;
}

.show--desktop {
  display: block;
}

.hero__logo img {
  max-width: 100%;
}

.hero__icon {
  grid-column: span 1/-1;
  grid-row: span 1/-1;
  height: 14rem;
  object-fit: contain;
  align-self: end;
  justify-self: end;
  margin-bottom: -1px; /*
		hack: shifts the icon down a smidge
	*/
}

.info__bar {
  background-color: #ffda00;
}

.info__bar > .container {
  display: grid;
  grid-template-columns: auto auto;
  grid-gap: 3rem;
  justify-content: start;
}

.info__name {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  display: grid;
  grid-template-areas: "icon header" "icon subtext";
  justify-content: start;
}

.info__symbol {
  width: 1.2rem;
  grid-area: icon;
  margin-right: 0.5rem;
}

.info__name h3 {
  margin: 0;
  grid-area: header;
}

.info__name h4 {
  margin: 0;
  font-weight: normal;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  grid-area: subtext;
}

.content {
  background-color: black;
  color: white;
  display: grid;
  padding-bottom: 3em;
}

.profile {
  position: relative;
  z-index: 1;
}

.profile .container {
  padding-top: 5rem;
  padding-bottom: 3rem;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-gap: 5rem 3rem;
}

.profile p {
  max-width: 25rem;
}

.profile h2 {
  margin: 0 0 0.5rem;
}

.profile__bg {
  position: absolute;
  display: grid;
  z-index: -1;
  overflow: hidden;
  width: 100%;
}

.profile__bg picture {
  display: grid;
}

.profile__bg img {
  width: 50%;
  justify-self: end;
}

.profile__bg:after {
  content: "";
  position: absolute;
  display: block;
  top: 0;
  right: 0;
  left: 50%;
  bottom: -1px;
  background: radial-gradient(
    farthest-side at top right,
    rgba(0, 0, 0, 0.3),
    rgba(0, 0, 0, 0.5) 80%,
    black
  );
}

.profile__img {
  max-width: 200px;
}

.profile__img img {
  width: 100%;
}

.profile__links--mobile {
  display: none;
}

.profile__links--desktop {
  display: grid;
  grid-template-columns: auto auto auto;
  justify-content: start;
  grid-gap: 1rem;
  align-items: center;
}

.social-link {
  display: block;
  width: 1.6rem;
}

.social-icon {
  max-width: 100%;
}

.profile__video {
  grid-column: 1 /-1;
  justify-self: stretch;
  overflow: hidden;
}

.hr--brand {
  height: 2px;
  width: 7rem;
  background: linear-gradient(to right, #ffda00 50%, rgba(255, 218, 0, 0));
  border: none;
  margin: 0;
  text-align: left;
}

.footer {
  color: #202f65;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
  position: relative;
}

.footer__logo {
  width: 7rem;
}

.footer__logo img {
  max-width: 100%;
}

@media (max-width: 750px) {
  .hero__logo {
    max-width: 8rem;
  }
}

/* 
medium styles
*/
@media (max-width: 650px) {
  body,
  .hero {
    background-color: black;
  }

  .hero__icon {
    display: none;
  }

  .show--desktop {
    display: none;
  }

  .show--medium {
    display: block;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    grid-template-rows: 400px auto;
    grid-gap: 0;
    position: relative;
    padding: 0;
  }

  .hero__logo {
    margin: 0;
    justify-self: start;
    align-self: end;
    max-width: 12rem;
    z-index: 1;
    padding-left: 2rem;
  }

  .hero__img {
    margin-left: 0;
    grid-row: 1;
    position: relative;
    z-index: 0;
  }

  .hero__img img {
    width: 100%;
    object-position: 40%;
  }

  .hero__img:after {
    content: "";
    display: block;
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), black);
    height: 3rem;
  }

  .hero__text {
    background-color: black;
    padding: 0 2rem;
  }

  .info__bar > .container {
    grid-template-columns: none;
    grid-gap: initial;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .info__name {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .profile .container {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .profile__bg img {
    width: 75%;
  }

  .profile__bg:after {
    left: 25%;
  }

  .footer {
    background: white;
  }
}

/*
Mobile styles
*/
@media (max-width: 500px) {
  .hero__inner {
    grid-template-rows: 320px auto;
  }

  .show--medium {
    display: none;
  }

  .show--mobile {
    display: block;
  }

  .hero__img img {
    object-position: initial;
  }

  .profile {
    display: grid;
  }

  .profile .container {
    padding: 0;
    grid-gap: 0;
  }

  .profile__img {
    max-width: unset;
    margin-bottom: -2rem;
    position: relative;
  }

  .profile__img::after {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2rem;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));
  }

  .profile__info {
    padding: 2rem;
  }

  .profile__video {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .profile__bg {
    position: relative;
    order: 1;
    margin-top: -5rem;
  }

  .profile__bg img {
    width: 100%;
  }

  .profile__bg:after {
    left: 0;
    background: linear-gradient(
      to bottom,
      black,
      rgba(0, 0, 0, 0.5) 33%,
      rgba(0, 0, 0, 0.3)
    );
  }

  .profile__links--desktop {
    display: none;
  }

  .profile__links--mobile {
    color: #ffda00;
    justify-self: start;
    padding: 2rem;
    display: grid;
    grid-template-columns: auto auto auto;
    grid-gap: 1rem;
  }

  .profile__links--mobile a {
    font-size: 1.2rem;
  }

  .content {
    padding-bottom: 0;
  }

  .cssgrid .footer {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    grid-gap: 1rem;
    position: relative;
    z-index: 1;
    padding-top: 5rem;
    overflow: hidden;
    margin-top: -7.5rem;
    background: none;
  }

  .cssgrid .footer::after {
    content: "";
    display: block;
    position: absolute;
    background: #ffda00;
    height: 30rem;
    width: 200%;
    z-index: -1;
    border-radius: 15rem;
    transform: rotate(0.3rad);
    left: -25%;
    top: 6rem;
  }

  .footer__logo {
    order: -1;
    width: 15rem;
  }
}

@media (max-width: 400px) {
  .footer::after {
    top: 5rem;
  }
}

@media (max-width: 350px) {
  .profile__links--mobile {
    grid-template-columns: auto;
  }

  .footer::after {
    top: 3rem;
    left: -45%;
  }
}

/* Landscape mobile devices */
@media (orientation: landscape) and (max-height: 650px) and (max-width: 1000px) and (min-width: 651px) {
  .hero__inner {
    grid-template-rows: 6rem auto;
  }

  .hero__icon {
    display: none;
  }

  .hero__logo {
    max-width: 10rem;
  }

  .hero__img {
    margin-left: -7rem;
  }

  .hero__text {
    text-shadow: 0px 0.118rem 0.176rem rgba(0, 0, 0, 1);
  }
}

/*
Support for old browsers
ie. IE
*/
.no-cssgrid .profile__bg {
  display: none;
}

.no-cssgrid .video__cover {
  display: none;
}

.no-cssgrid .hero__logo {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

/* Hack to take a small margin away from IE*/
.no-cssgrid .hero__img img {
  margin-bottom: -4px;
}

.no-cssgrid .hero__logo img {
  height: 100%;
}

.no-cssgrid .hero__text {
  position: absolute;
  bottom: 1rem;
  width: 65%;
}

.no-cssgrid .hero__icon {
  position: absolute;
  bottom: 0;
  right: 1rem;
}

.no-cssgrid .info__name {
  display: inline-block;
  position: relative;
  padding-left: 2rem;
  margin-right: 2rem;
}

.no-cssgrid .info__symbol {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
}

.no-cssgrid .profile__img {
  position: absolute;
}

.no-cssgrid .profile__info {
  padding-left: 250px;
}

.no-cssgrid .social-link {
  display: inline-block;
  margin-left: 1rem;
  position: relative;
  top: 0.45rem;
}

.no-cssgrid .profile__video {
  margin-top: 5rem;
}

.no-cssgrid .footer__logo {
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 112px;
}

.no-cssgrid .footer__logo img {
  height: 100%;
}

@media (max-width: 650px) {
  .no-cssgrid .hero__logo {
    top: auto;
    right: auto;
    position: relative;
    padding-top: 1em;
    padding-left: 2rem;
    display: block;
    height: 60px;
  }

  .no-cssgrid .hero__logo img {
    position: absolute;
    bottom: 1rem;
    left: 2rem;
    width: 160px;
    max-width: none;
  }

  .no-cssgrid .hero__text {
    position: relative;
    width: 100%;
  }

  .no-cssgrid .profile__img {
    position: static;
    margin: 0 auto 3rem;
  }

  .no-cssgrid .profile__info {
    padding-left: 0;
    max-width: 27rem;
    margin: 0 auto;
    padding: 0 2rem;
  }
}

@media (max-width: 500px) {
  .no-cssgrid .profile {
    padding-top: 3rem;
  }

  .no-cssgrid .social-link {
    display: block;
    top: auto;
    margin-left: 0;
    margin-top: 1rem;
  }

  .no-cssgrid .footer {
    background: #ffda00;
  }
}
/*
End support for IE
*/
