@font-face {
  font-family: 'Domine';
  src: url('fonts/subset-Domine-Regular.woff2') format('woff2'),
      url('fonts/subset-Domine-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('fonts/subset-Roboto-Bold.woff2') format('woff2'),
      url('fonts/subset-Roboto-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('fonts/subset-Roboto-Regular.woff2') format('woff2'),
      url('fonts/subset-Roboto-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('fonts/subset-Roboto-Medium.woff2') format('woff2'),
      url('fonts/subset-Roboto-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

html {
  font-family: 'Roboto', sans-serif;
  font-size: 112.5%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* scroll-behavior: smooth; */

  background-color: #FDFCFA;
  color: #222;
}

@media (max-width: 620px) {
  html {
    font-size: 120%;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Domine', serif;
  font-weight: normal;
}

h2 {
  font-family: 'Roboto', sans-serif;
}

em {
  font-style: normal;
  color: #FF6500;
}

a, a:link {
  color: #222;
}

::-moz-selection { 
  background: #FF6500; 
}
::selection { 
  background: #FF650033; 
}

/* layout */
.inner {
  margin: 0 auto;
  max-width: 1160px;
}

@media (max-width: 1180px) {
  .inner {
    padding: 0 20px;
  }
}

.section-anchor {
  padding-top: 100px;
}

@media (max-width: 640px) {
  .section-anchor {
    padding-top: 100px;
  }
}

/* header */
header {
  margin: 70px 0 0;
  padding: 0 0 40px;

  position: sticky;
  position: -webkit-sticky;
  top: 0;
  z-index: 1;

  background-image: linear-gradient(0deg,rgba(253, 252, 250,0) , #FDFCFA 20%, #FDFCFA);;
}

@media (max-width: 640px) {
  header {
    margin: 20px 0 0;
    padding: 20px 0 20px;
  }
}

header > div {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
}

.introduction {
  margin-top: 100px;
}
@media (max-width: 640px) {
  .introduction {
    margin-top: 20px;
  }
}

.logo {
  flex-shrink: 0;
  padding-top: 8px;
}

@media (max-width: 620px) {
  .logo {
    width: 150px;
  }
  .logo svg {
    width: 100%;

  }
}

/* navigation */
.navigation {

}

.navigation ul {
  display: flex;
  flex-flow: row nowrap;
  margin-right: -10px;
}

@media (max-width: 620px) {
  .navigation ul {
    margin-top: 4px;
    flex-flow: column nowrap;
  }
}

.navigation ul li {
  margin-left: 50px;
}

.navigation ul li:first-child {
  margin-left: 0;
}

.navigation a {
  position: relative;

  font-weight: 500;
  text-decoration: none;
  color: #222;
  padding: 10px;
}

.navigation a:before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 100%;
  height: 15px;
  bottom: 0;
  left: 0;
  background-color: #FF650033;
  visibility: hidden;
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
  transform-origin: right center;
  -webkit-transition: all 0.35s ease-in-out 0s;
  transition: all 0.35s ease-in-out 0s;
}

@media (min-width: 960px) {
  .navigation a:hover:before {
    visibility: visible;
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
  }
}

@media (max-width: 620px) {
  .navigation ul li {
    text-align: right;
    margin-left: 0;
    line-height: 1.2;
  }
}

/* footer */
footer {
  padding: 100px 0;
}

footer > div {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
}

.footer-copy {
  color: #999;
}
@media (max-width: 620px) {
  footer {
    padding: 20px 0;
  }
  footer > div > div {
    width: 100%;
    margin-bottom: 20px;
  }
}
/* cards */

/* 
==> flexbox fallback */
ul.card-container {
  margin: 0;
  padding: 0;

  display: flex;
  flex-flow: row wrap;

  justify-content: space-between;
}

ul.card-container li {
  margin-bottom: 80px;

  width: 300px;
  height: 320px;

  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);

  display: flex;
  flex-flow: column nowrap;

  justify-content: center;
  align-items: center;
}

ul.card-container li span {
  margin: 30px 0;
  display: block;
  height: 60px;
}

ul.card-container li img {
  max-width: 170px;
}

ul.card-container li em {
  margin: 0;
  padding: 0 10px;
  min-height: 4rem;

  display: flex;
  align-items: center;

  text-align: center;
  line-height: 1.2;
}

/* 
==> grid version */
@supports (display: grid) {
  ul.card-container {
    display: grid; 
    grid-template-columns: repeat(3, 300px);
  }
  ul.card-container li {
    flex: 1;
  }
  @media (max-width: 960px) {
    ul.card-container {
      grid-template-columns: repeat(3, 1fr);
      row-gap: 20px;
      column-gap: 20px;
    }

    ul.card-container li {
      height: 240px;;
      margin-bottom: 0;
      /* width: calc(100% - 20px); */
      width: calc(100% );
    }
      
    ul.card-container li img {
      max-width: 120px;
    }

    ul.card-container li span {
      margin: 5px 0;
      height: 30px;
    }
    

    ul.card-container li em {
      margin: 20px;
      min-height: 3.5rem;
      line-height: 1.2;
    }
  }

  @media (max-width: 640px) {
    ul.card-container {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 480px) {
    ul.card-container {
      grid-template-columns: repeat(1, 1fr);
    }

    ul.card-container li em {
      margin: 0;
    }
      
    ul.card-container li img {
      max-width: 170px;
    }

    ul.card-container li span {
      height: auto;
    }
    
  }
}

/* company */

/* 
==> flexbox fallback */
.company-container {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
}

@media (max-width: 640px) {
  .company-container {
    flex-flow: column nowrap;
  }
}

.company {
  flex-basis: 66.666%;
}

.company h2 {
  color: #FF6500;
}

.company p {
  font-family: 'Domine', serif;
  font-weight: normal;
  font-size: 1.5rem;
  line-height: 1.3;
}


@media (max-width: 640px) {
  .company p {
    font-size: 1.2rem;
    line-height: 1.4;
  }
}

.founder {
  max-width: 240px;
  padding-top: 4rem;

  text-align: center;
}

.founder h3,
.founder p {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  line-height: 1.25;
  color: #999;
}

.founder h3 {
  font-weight: 500;
}

.founder-photo {
  margin-bottom: 10px;

  width: 240px;
  height: 240px;

  border-radius: 50%;
  overflow: hidden;
}


@media (max-width: 640px) {
  .founder {
    max-width: 100%;
    padding-top: 1rem;
    text-align: left;
  }
  .founder-photo {
    margin-right: 20px;
    float: left;
  }
}

@media (max-width: 500px) {
  .founder {
    text-align: center;
    margin-bottom: 40px;
  }
  .founder-photo {
    margin: 1rem 20px;
    width: calc(100% - 40px);
    height: auto;
  }
}

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

.founder-link {
  margin-top: 10px;
  display: block;
}