/*! HTML5 Boilerplate v7.3.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * 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
   ========================================================================== */

:root {
  --black: #222629;
  --white: #e8e8e8;
  --green: #86c232;
  --dark-green: #61892f;
  --gray: #6b6e70;
  --dark-gray: #474b4f;
}

html {
  color: var(--white);
  background: var(--black);
  font-size: 1em;
  line-height: 1.5;
}
.inverse {
  color: var(--black);
  background: var(--white);
  margin: 0 -1rem;
  padding: 1rem;
  margin-bottom: 2rem;
  border-radius: 1px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: /* The top layer shadow */ 0 1px 1px rgba(0,0,0,0.15), 
  /* The second layer */ 0 10px 0 -5px #eee, 
  /* The second layer shadow */ 0 10px 1px -4px rgba(0,0,0,0.15), 
  /* The third layer */ 0 20px 0 -10px #eee, 
  /* The third layer shadow */ 0 20px 1px -9px rgba(0,0,0,0.15);
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: var(--dark-green);
  text-shadow: none;
}

::selection {
  background: var(--dark-green);
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid var(--white);
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
  margin: 0.2em 0;
  background: #ccc;
  color: #000;
  padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

   body {
    font-family: 'Raleway', sans-serif;
    padding: 1em;
   }

   article {
    max-width: 47rem;
    margin: 0 auto;
   }

   section {
    border-bottom: 0.25rem solid var(--dark-gray);
    padding-bottom: 4rem;
    margin-bottom: 4rem;
   }

   h1, h2, h3, h4, h5, p {
    line-height: 1;
    margin: 0;
    margin-bottom: 1rem;
    font-weight: 400;
    text-align: center;
   }

   h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 4em;
    font-weight: 400;
    letter-spacing: -0.025em;
    text-transform: uppercase;
    margin: 1em 0;
   }
   h1 span {
    color: var(--gray);
    display: block;
   }
   .fun h1 span { color: var(--black);  }
   h2 {
    font-size: 2em;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin: 2em 0 1em 0;
   }
   h3 {
    font-size: 1em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    margin-top: 4rem;
   }
   h4 {
    font-size: 1em;
   }
   h5 {
    font-size: 1em;
   }
   p, ul {
    font-family: 'Raleway', serif;
    font-size: 1em;
    line-height: 1.5;
    margin-bottom: 2rem;
   }
   p.excerpt {
    line-height: 1.5;
    font-weight: 700;
    max-width: 75%;
    margin: 0 auto;
 }

  h1 + p.excerpt {
    font-size: 1.5rem;
    max-width: 75%;
    margin-bottom: 3em;
    color: var(--green);
 }

 h2 + p.excerpt {
    font-size: 1.25rem;
    max-width: 75%;
    margin-bottom: 2em;
    color: var(--gray);
 }

 h2 + p { font-weight: 700; }

 img { margin-bottom: 1rem; }

   a:link,
   a.link--sample:visited,
   a.link--icon:visited { color: var(--green); }
   a:hover,
   a.link--sample:visited:hover,
   a.link--icon:visited:hover { color: var(--dark-green); }
   a:visited { color: var(--gray); }
   a:visited:hover { color: var(--dark-gray); }
   a.link--icon {
    text-decoration: none;
  }

  .button-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-basis: 100%;
  }

  a.button {
    display: inline-flex;
    padding: 0 2rem;
    align-items: center;
    align-content: center;
    text-align: center;
    line-height: 1;
    font-weight: 600;
    height:3rem;
    border-radius: 1.5rem;
    color: var(--white);
    background: var(--green);
    text-decoration: none;
    margin: 2rem 1rem;
    transition: background 0.25s ease-in-out;
  }

  a.button:hover {
    background: var(--dark-green);
  color: var(--white);
}

  .logo-hero {
    max-width: 94rem;
    margin: 0 auto;
  }


   .logotype {
    font-family: Oswald;
    color: var(--green);
    display: block;
    font-size: 4rem;
    padding: 1em;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 1;
   }
   figure {
    max-width: 23.5rem;
    border: 1px solid var(--dark-gray);
    margin: 0 auto 1rem auto;
    padding: 0.5rem;
    text-align: center;
   }
   figcaption {
    font-style: italic;
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 1rem;
   }
   svg .logomark { fill: var(--green); }
   .inverse svg { width: 15%;}
   .inverse {
    display: flex; 
    flex-direction: column;
    align-items: center;
    padding: 4rem;
  }
   .inverse .document-content {
    width: 70%;
    margin-left: 10%;
    text-align: left;
  }
  .inverse h1,
  .inverse p {
    margin-top: 0;
  }
   .inverse svg .logomark { fill: var(--black); }
   .inverse .color-book { justify-content: center; }
   .fun svg .logomark { fill: var(--black); }
   svg .logomark-construction { stroke: var(--green); stroke-width: 0.25rem; }
   svg .safe-space { fill: var(--dark-gray); }

    .typography--element {
      display: flex;
      padding: 1rem;
      flex-wrap: wrap;
      border-bottom: 1px solid var(--dark-gray);
    }
    .typography--element:last-of-type { border-bottom: 0; }

    .typography--sample {
      display: flex;
      flex-direction: column;
      margin-right: 4rem;
      width: 14rem;
      align-items: center;
    }

    .typography--sample h1,
    .typography--sample h2,
    .typography--sample h3,
    .typography--sample p {
      margin-bottom: 0;
      margin-top: 0; }

    .typography--info {
      display: flex;
      flex-direction: column;
    }

   .color-book {
    display: flex;
    padding: 1rem;
    flex-wrap: wrap;
  }

   .color { display: flex; margin: 1rem; }

  .swatch {
    width: 6rem;
    height: 6rem;
    margin-right: 1rem;
  }
  .swatch--green  { background-color: var(--green); }
  .swatch--dark-green  { background-color: var(--dark-green); }
  .swatch--dark-gray  { background-color: var(--dark-gray); }
  .swatch--gray  { background-color: var(--gray); }
  .swatch--black  { background-color: var(--black); border: 1px solid var(--white); box-sizing: border-box; }
  .swatch--white  { background-color: var(--white); }
  .inverse .swatch--white  { border: 1px solid var(--black); box-sizing: border-box; }

  .color--info {
    display: flex;
    flex-direction: column;
    width: 9rem;
  }
  .color--name { font-weight: 700; }

  .business-card--preview {
    display: flex;
    flex-wrap: wrap;
  }
  .business-card--preview img{
    width: calc(50% - 2rem);
    margin: 1rem;
    border: 1px solid var(--green);
    box-sizing: border-box;
  }

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
  display: none !important;
}

/*
* Hide only visually, but have it available for screen readers:
* https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
*
* 1. For long content, line feeds are not interpreted as spaces and small width
*    causes content to wrap 1 word per line:
*    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
*/

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
* Extends the .sr-only class to allow the element
* to be focusable when navigated to via the keyboard:
* https://www.drupal.org/node/897638
*/

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
* Hide visually and from screen readers, 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;
}

/* ==========================================================================
   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,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *:before,
  *:after {
    background: transparent !important;
    color: #000 !important;
    /* Black prints faster */
    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 that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */
  a[href^="#"]:after,
  a[href^="javascript:"]:after {
    content: "";
  }
  pre {
    white-space: pre-wrap !important;
  }
  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }
  /*
     * Printing Tables:
     * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
     */
  thead {
    display: table-header-group;
  }
  tr,
  img {
    page-break-inside: avoid;
  }
  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }
  h2,
  h3 {
    page-break-after: avoid;
  }
}

