/* Compiled plain CSS from original SCSS/Compass source */

/* Fonts */
@import url("https://fonts.googleapis.com/css?family=Open+Sans:400italic,400");
@import url("https://fonts.googleapis.com/css?family=Bitter:400,700");

/* Base / Variables (inlined) */
/* body: #CAE5E7; level1: #28627d; level2: #2e779c; level3: #3b8fb8; link: #db4747 */

/* Utility */
.clearfix {
  display: table;
  content: "";
  clear: both;
}

/* Global box sizing */
*, *:before, *:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

body {
  background: #CAE5E7;
  color: #333;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
}

h1, h2, h3 {
  font-family: Bitter, serif;
}

h1 {
  color: #333;
  font-size: 190%;
}

h2 {
  color: #707070;
}

ul {
  list-style: none;
  margin-left: -1.1em;
}

li {
  margin-bottom: 10px;
  position: relative;
}

li:before {
  content: '✓';
  position: absolute;
  left: -20px;
}

a {
  color: #db4747;
  text-decoration: none;
  -webkit-transition: all .2s ease;
  -moz-transition: all .2s ease;
  transition: all .2s ease;
}

a:hover,
a:focus {
  color: #c82727;
}

.resume {
  position: relative;
  background: #fff;
  width: 80%;
  max-width: 1200px;
  margin: 0 auto 50px;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.2), inset 0 0 10px rgba(0, 0, 0, 0.1);
}

header {
  position: relative;
  background: #3b8fb8;
  width: 100%;
  overflow: hidden;
  height: 90px;
  text-shadow: 1px 2px 3px #304A63;
  display: table;
  clear: both;
}

header h1 {
  position: relative;
  font-family: 'Bitter', serif;
  font-size: 250%;
  background: #28627d;
  color: #fff;
  margin: 0;
  height: 90px;
  padding-top: 15px;
  padding-left: 35px;
  padding-right: 30px;
  float: left;
  z-index: 2;
}

header h1:after {
  position: absolute;
  content: "";
  height: 100%;
  border-top: 45px solid transparent;
  border-bottom: 45px solid transparent;
  border-left: 20px solid #28627d;
  right: -20px;
  top: 0;
}

header div {
  position: relative;
  color: #fff;
  float: left;
  padding-top: 24px;
  padding-left: 60px;
  padding-right: 48px;
  height: 90px;
}

header div:first-of-type {
  background: #2e779c;
  z-index: 1;
}

header div:first-of-type:after {
  position: absolute;
  content: "";
  height: 100%;
  border-top: 45px solid transparent;
  border-bottom: 45px solid transparent;
  border-left: 20px solid #2e779c;
  right: -20px;
  top: 0;
}

header a {
  color: #fff;
  padding: 0 3px;
  border-radius: 2px;
  text-decoration: none;
}

header a:hover,
header a:focus {
  color: #fff;
  background: #00baa6;
}

/* Layout: main content + aside equal height */
.info {
  width: 100%;
  display: flex;
  align-items: stretch;
}

section {
  flex: 0 0 70%;
  padding: 0 30px;
}

section article {
  margin-bottom: 30px;
}

section h2 {
  font-size: 100%;
  text-transform: uppercase;
  margin-bottom: 0;
}

section h2 span {
  text-transform: none;
}

section p {
  line-height: 1.5;
}

section .education p {
  margin-top: 3px;
}

.work .block {
  margin-bottom: 30px;
}

aside {
  background: whitesmoke;
  border-left: 1px solid #ccc;
  flex: 0 0 30%;
  padding-left: 30px;
  padding-right: 30px;
  display: flex;
  flex-direction: column;
}

aside article {
  margin-bottom: 50px;
}

aside h1 {
  font-size: 150%;
  margin-top: 29px;
}

aside a {
  color: #333;
  text-decoration: none;
  border-bottom: 1px dashed gainsboro;
}

aside a:hover,
aside a:focus {
  background: #e8e8e8;
}

/* Responsive (breakpoints from original mixins) */
@media (max-width: 58em) { /* thin */
  .resume {
    width: 96%;
  }
  .info {
    flex-direction: column;
  }
  section, aside {
    flex: 0 0 auto;
    width: 100%;
  }
  aside {
    border-left: none;
    border-top: 1px solid #ccc;
  }
}

@media (max-width: 75em) { /* header-2rows */
  header h1 {
    width: 100%;
    padding-right: 5px;
  }
  header div {
    width: 50%;
  }
  header div:first-of-type {
    padding-left: 30px;
  }
}

@media (max-width: 36em) { /* header-3rows */
  header h1 span {
    display: none;
  }
  header div {
    width: 100%;
    padding-left: 30px;
  }
}