/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */
/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */
html,
button,
input,
select,
textarea {
  color: #222; }

html {
  font-size: 1em;
  line-height: 1.4; }

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */
::-moz-selection {
  background: #b3d4fc;
  text-shadow: none; }

::selection {
  background: #b3d4fc;
  text-shadow: none; }

/*
 * A better looking default horizontal rule
 */
hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0; }

/*
 * Remove the gap between images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */
audio,
canvas,
img,
video {
  vertical-align: middle; }

/*
 * Remove default fieldset styles.
 */
fieldset {
  border: 0;
  margin: 0;
  padding: 0; }

/*
 * Allow only vertical resizing of textareas.
 */
textarea {
  resize: vertical; }

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */
.browsehappy {
  margin: 0.2em 0;
  background: #ccc;
  color: #000;
  padding: 0.2em 0; }

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
body {
  font-family: 'Gotham SSm A', 'Gotham SSm B', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-style: normal; }

::selection {
  background: #ffded6; }

.stage {
  *zoom: 1;
  opacity: 0; }
  .stage:before, .stage:after {
    content: " ";
    display: table; }
  .stage:after {
    clear: both; }

.tagline {
  font-size: 50px;
  line-height: 48px;
  margin: 0; }
  .tagline.smaller {
    font-size: 32px;
    line-height: 30px; }
  .tagline a {
    color: #222;
    text-decoration: none;
    -webkit-transition: color 0.3s ease-out;
    -moz-transition: color 0.3s ease-out;
    transition: color 0.3s ease-out; }
    .tagline a:hover {
      color: #ff643d !important; }
  @media only screen and (min-width: 720px) {
    .tagline {
      font-size: 70px;
      line-height: 70px; } }
  @media only screen and (min-width: 980px) {
    .home-content .tagline a {
      color: #fff; } }

article.about {
  position: relative;
  background-color: #fff;
  max-width: 720px;
  margin: 0 auto; }
  @media only screen and (min-width: 980px) {
    article.about {
      max-width: 1080px; } }

.article-content {
  *zoom: 1;
  padding: 30px 20px 50px 20px; }
  .article-content:before, .article-content:after {
    content: " ";
    display: table; }
  .article-content:after {
    clear: both; }
  .article-content section {
    margin-top: 2em; }
  .article-content section#surprise {
    margin-top: 1em; }
  .article-content #projects.smaller {
    margin-top: 0; }
  .article-content h2, .article-content h4 {
    text-transform: uppercase;
    color: #ff643d;
    font-weight: 400;
    margin-top: 0; }
  .article-content h2 {
    font-size: 1.125em; }
  .article-content p, .article-content h3, .article-content h4 {
    line-height: 1.5; }
  .article-content h4 {
    margin-bottom: 0; }
  .article-content #heading {
    position: relative;
    z-index: 999; }
  @media only screen and (min-width: 720px) {
    .article-content {
      padding: 80px 35px 100px 35px; } }
  @media only screen and (min-width: 980px) {
    .article-content {
      padding: 80px 35px 100px 35px; }
      .article-content.home-content {
        padding: 30px 35px 100px 35px; }
      .article-content #heading {
        float: left;
        width: 47%;
        height: 500px;
        margin-right: 3%; }
      .article-content .floating {
        max-width: 404px;
        position: fixed; }
      .article-content.home-content .floating {
        bottom: 50px; }
      .article-content #projects {
        float: left;
        width: 47%;
        margin-left: 3%; }
      .article-content #surprise {
        margin: 2em auto 0 auto;
        max-width: 800px; } }
  @media only screen and (min-width: 980px) {
    .article-content.home-content #bio {
      color: #fff; }
    .article-content.home-content #social-media p {
      color: #fff; }
    .article-content.home-content #social-media a {
      color: #fff; }
    .article-content.home-content #social-media a:hover {
      color: #ff643d; } }

#bio {
  margin-top: 0; }
  #bio p {
    font-size: 1em; }
  #bio a {
    color: #347bb3;
    text-decoration: none; }
    #bio a:hover {
      background-color: #ecf4fa; }
  @media only screen and (min-width: 720px) {
    #bio.smaller p {
      font-size: 16px; }
    #bio p {
      font-size: 28px;
      line-height: 1.45; } }

#projects table {
  width: 100%;
  border-bottom: 1px solid #eee; }
#projects tr {
  border-top: 1px solid #eee; }
#projects td.photo {
  vertical-align: top;
  width: 100px;
  padding: 10px 16px 20px 0; }
  #projects td.photo img {
    width: 100%;
    height: auto;
    -webkit-transition: opacity 0.3s ease-out;
    -moz-transition: opacity 0.3s ease-out;
    transition: opacity 0.3s ease-out; }
  #projects td.photo a:hover img {
    opacity: 0.75; }
#projects td.photo.pub {
  width: 50px; }
#projects td.desc {
  padding: 10px 0 20px 0;
  vertical-align: top; }
  #projects td.desc a {
    text-decoration: none;
    color: #347bb3;
    -webkit-transition: color 0.3s ease-out;
    -moz-transition: color 0.3s ease-out;
    transition: color 0.3s ease-out; }
    #projects td.desc a:hover {
      color: #ff643d; }
#projects .title {
  font-weight: bold; }
  #projects .title a {
    text-decoration: none;
    color: #222 !important; }
    #projects .title a:hover {
      color: #ff643d !important; }
#projects .social-media-links {
  margin-top: 2px;
  font-size: 0.5em; }
  #projects .social-media-links a {
    color: #A0A0A0 !important; }
#projects .subtitle {
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 8px;
  color: #888; }
@media only screen and (min-width: 1280px) {
  #projects td.photo {
    width: 150px; }
  #projects td.photo.pub {
    width: 70px; } }

#social-media {
  margin-bottom: 2em; }
  #social-media ul {
    margin: 0;
    padding: 0; }
  #social-media li {
    margin: 0;
    padding: 0;
    list-style: none;
    display: inline;
    font-size: 36px; }
  #social-media.smaller li {
    font-size: 24px; }
  #social-media p {
    margin-bottom: 0;
    color: #888; }
  #social-media a {
    display: inline-block;
    margin: 0 20px 10px 0;
    color: #347bb3;
    -webkit-transition: color 0.3s ease-out;
    -moz-transition: color 0.3s ease-out;
    transition: color 0.3s ease-out; }
    #social-media a:hover {
      color: #ff643d; }

.page-bg {
  display: none; }
  @media only screen and (min-width: 980px) {
    .page-bg {
      position: fixed;
      top: 0;
      left: 0;
      z-index: 1;
      display: block;
      width: 48%;
      height: 100%;
      background-position: center center;
      background-size: cover;
      background-repeat: no-repeat; } }

.mobile-bg {
  width: 100%;
  height: 240px;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat; }
  @media only screen and (min-width: 720px) {
    .mobile-bg {
      height: 400px; } }
  @media only screen and (min-width: 980px) {
    .mobile-bg {
      display: none; } }

#surprise a {
  text-decoration: none;
  color: #347bb3; }
  #surprise a:hover {
    text-decoration: underline; }
#surprise #surprise-content h2 {
  color: #222;
  font-weight: 700; }

/* ==========================================================================
   Helper classes
   ========================================================================== */
/*
 * Image replacement
 */
.ir {
  background-color: transparent;
  border: 0;
  overflow: hidden;
  /* IE 6/7 fallback */
  *text-indent: -9999px; }

.ir:before {
  content: "";
  display: block;
  width: 0;
  height: 150%; }

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */
.hidden {
  display: none !important;
  visibility: hidden; }

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */
.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px; }

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */
.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto; }

/*
 * Hide visually and from screenreaders, but maintain layout
 */
.invisible {
  visibility: hidden; }

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */
.clearfix:before,
.clearfix:after {
  content: " ";
  /* 1 */
  display: table;
  /* 2 */ }

.clearfix:after {
  clear: both; }

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */
.clearfix {
  *zoom: 1; }

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */
@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */ }
@media print, (-o-min-device-pixel-ratio: 5 / 4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */ }
/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */
@media print {
  * {
    background: transparent !important;
    color: #000 !important;
    /* Black prints faster: h5bp.com/s */
    box-shadow: none !important;
    text-shadow: none !important; }

  a,
  a:visited {
    text-decoration: underline; }

  a[href]:after {
    content: " (" attr(href) ")"; }

  abbr[title]:after {
    content: " (" attr(title) ")"; }

  /*
   * Don't show links for images, or javascript/internal links
   */
  .ir a:after,
  a[href^="javascript:"]:after,
  a[href^="#"]:after {
    content: ""; }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid; }

  thead {
    display: table-header-group;
    /* h5bp.com/t */ }

  tr,
  img {
    page-break-inside: avoid; }

  img {
    max-width: 100% !important; }

  @page {
    margin: 0.5cm; }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3; }

  h2,
  h3 {
    page-break-after: avoid; } }
