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

/* main.css 1.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
   ========================================================================== */

html {
  color: #222;
  font-family: equity_text_b;
  font-size: 1.3em;
  line-height: 1.3;
  background-color: blue !important;
  background: linear-gradient(#e86e30, #e86e30, #fff, #fff);
}

body {
  background: #fff;
  min-height: 100vh;
}

a, a:visited {
	//text-decoration: none;
  color: blue;
}

a:hover {
  color: hsla(249, 26%, 46%, 1);
}

i.right {
	padding-top: 0.1em;
	float: right;
}

/*
 * 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: #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 audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

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

img {
  max-width: 100%;
  height: auto;
  max-height: 100vh;
  display:block;
  margin: auto;
}

figcaption {
  margin-top: 1em;
}

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
  resize: vertical;
}

.signup {
  background: hsla(20, 80%, 55%, 1);
  padding-top: 0.62em;
}

.signup_footer {
	margin-top: 3em;
}

form.form-inline {
  display: flex;
  overflow: scroll;
}

input[type=email] {
  max-width: 48%;
  flex: 1;
	border-top-left-radius: 5px;
	border-bottom-left-radius: 5px;
}

input[type=text] {
  max-width: 15%;
  flex: 1;
	border-top-left-radius: 0px;
	border-bottom-left-radius: 0px;
}

input[type=email], input[type=text] {
  max-width: 30%;
  padding: 0.6em 0.94em;
  border: none;
  border-right: 2px solid hsla(20, 80%, 55%, 1);
  background: hsla(0, 0%, 100%, 0.85);
  color: hsla(20, 80%, 28%, 1);
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
}

input[type=text]:focus {
  max-width: 60%;
}

input[type=email]:focus {
  max-width: 60%;
}

input[type=email]:focus, input[type=text]:focus {
  border: none;
  border-right: 2px solid hsla(20, 80%, 55%, 1);
  outline-width: 0;
  outline: none;
  background: hsla(0, 0%, 100%, 1);
}

input[type=submit] {
  flex: 0;
  min-width: 50px;
  padding: 1% 3%;
  border: none;
  background: #fff;
  color: hsla(20, 80%, 28%, 1);
	border-top-right-radius: 5px;
	border-bottom-right-radius: 5px;
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
}

input[type=submit].md {
	display: block;
	flex: 1 1 auto;
}

input[type=submit].lg {
	display: none;
}


 /* ==========================================================================
   Typography
   ========================================================================== */

/*
 * Initialize fonts
}
 */

@font-face {
  font-family: "equity_text_a";
  src: url("typography/equity_text_a_regular.woff") format('woff');
}

@font-face {
  font-family: "equity_caps_a";
  src: url("typography/equity_caps_a_regular.woff") format('woff');
}

@font-face {
  font-family: "equity_text_a";
  src: url("typography/equity_text_a_italic.woff") format('woff');
  font-style: italic;
}

@font-face {
  font-family: "equity_caps_a_tab";
  src: url("typography/equity_text_a_tab_regular.woff") format('woff');
}

@font-face {
  font-family: "equity_text_b";
  src: url("typography/equity_text_b_regular.woff") format('woff');
}

@font-face {
  font-family: "equity_caps_b";
  src: url("typography/equity_caps_b_regular.woff") format('woff');
}

@font-face {
  font-family: "equity_text_b";
  src: url("typography/equity_text_b_italic.woff") format('woff');
  font-style: italic;
}

@font-face {
  font-family: "equity_caps_b_tab";
  src: url("typography/equity_text_b_tab_regular.woff") format('woff');
}

@font-face {
  font-family: "concourse_caps";
  src: url("typography/concourse_c4_regular.woff") format('woff');
}

@font-face {
  font-family: "concourse";
  src: url("typography/concourse_t3_regular.woff") format('woff');
}
/*
 * Implement fonts
 */

.smallcaps {
  font-family: equity_caps_b;
  text-transform: lowercase;
}

.logo {
  //color: hsla(20, 80%, 28%, 1);
  color: hsla(243, 100%, 13%, 1);
  text-decoration: none;
}

.eu_icon {
	display: inline;
	float: left;
	width: 2.5em;
	height: 2.5em;
	padding-right: 0.75em;
}

p.gdpr {
	padding-top: 0.875em;
}

a.footer_link, a.footer_link:hover {
	color: hsla(20, 80%, 28%, 1);
}

.back {
  margin-bottom: 2em;
}

p.footer {
  color: hsla(20, 80%, 95%, 1);
  font-size: 0.87em;
  -webkit-margin-before: 0em;
  max-width: 71ch;
}

.single {
  padding-top: 1em;
}

a.project_title {
  color: black;
  text-decoration: none;
}

a.project_title.unpublished, a.project_title.unpublished:hover, a.project_title.unpublished:visited, .unpublished, .unpublished:hover, .unpublished:visited {
  color: #888;
  text-decoration: none !important;
  cursor: not-allowed;
}

a.project_title:visited {
  //color: #ac41f4;
  text-decoration: none;
}

a.footer_link, a.footer_link:hover {
	color: hsla(20, 80%, 95%, 1);
	text-decoration: underline;
}

a.footer_link:hover {
	color: hsla(20, 80%, 100%, 1);
	text-decoration: underline;
}


/*
 * Font Size, Kerning, Leading, Padding
 */


h1 { /* Main Title */
  font-size: 1.8em;
  font-weight: normal;
  font-family: equity_text_a;
  -webkit-margin-before: 0;
  padding-top: 1em;
  padding-bottom: 1em;
}

h2 { /* Article Titles */
  font-size: 1.4em;
  line-height: 1;
  letter-spacing: 0.02em;
  font-family: equity_text_a;
  font-weight: normal;
}

h2.project_title_list {
	margin-top: 0;
	margin-bottom: 0.65em;
}

h2.project_title_list:hover {
	text-decoration: none;
	color: darkblue;
}

h3 { /* Titles in Articles */
  font-size: 1.1em;
  line-height: 1;
  font-weight: normal;
}

h4 { /* tags under Article Title */
  font-size: 0.7em;
  line-height: 1.2;
  font-family: concourse;
  font-weight: normal;
  color: #555;
  margin-top: 0.65em;
  margin-bottom: 0;
}

h4 i {
  color: #444;
}

h5 { /* figcaption */
  margin-top: -0.7em;
  font-size: 0.7em;
  line-height: 1;
  color: #999;
  padding: 0.4em auto;
  text-align: center;
  font-family: concourse;
  font-weight: normal;
  padding-bottom: 10em;
  border-bottom: 2em solid #999;
}

h1.tags, h1.tags a {
  font-size: 0.96em;
  line-height: 1.12;
  font-family: concourse_caps;
  text-transform: uppercase;
  //color: hsla(20, 80%, 25%, 1);
  text-decoration: none;
  padding: 0.5em 0.5em 0em;
  white-space: nowrap;
}

h1.tags.col-6 {
  width: 40%;
  display: inline-block;
}

h1.tags i {
  margin-right: 0.16em;
}

h1.tags:hover, h1.tags a:hover {
	//color: #000;
}

h1.selected_projects {
	margin-bottom: 0;
	padding-bottom: 0.5em;
}

.contact {
	background-color: #f3f4f6;
	width: 88.4%;
	padding: 1em 0.3em 0.66em;
	border-radius: 1em;
}

.project {
	background-color: #fff;
	width: 100%;
	min-height: 10em;
	margin-bottom: 2.7em;
  transition: 0.4s;
  border-radius: 1em;
}

.project:hover {
	box-shadow: 0 0 60px #ddd;
	transition: 0.4s;
}

.project_title {
	padding: 1em;
  margin-bottom: 0.7em;
  text-decoration: none;
}

blockquote {
  border-left: 4px solid #eee;
  color: hsla(20, 80%, 28%, 1);
  padding: 0em 0.7em;
  margin: 0em;
  font-size: 1.1em;
  line-height: 1.38;
  max-width: 50ch;
}

li {
  margin-bottom: 1em;
}

.footnote {
	font-family: equity_text_b;
	font-style: italic;
	color: hsla(249, 26%, 46%, 1);
}

/*
 * List Styles
 */

ul {
  list-style: none;
  margin-block-start: 0em;
  -webkit-padding-start: 0px;
}

ol {
  -webkit-padding-start: 1.2em;
}








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

section {
	padding: 0.6em;
	margin: auto;
}

section:first-child {
//	padding-top: 0em;
}

.solo {
  padding-top: 15vh;
}

.gdpr {
	padding-top: 1.5em;
	padding-bottom: 1.5em;
}

.thumb {
	height: 10em;
  border-radius: 1em 1em 0 0;
}

img.thumb {
	width: 100%;
	object-fit: cover;
	background-position: right bottom;
  background-size: cover;
}

/*
 * 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
*/

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

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

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

/*
* 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;
}

.float_left {
  float: left;
}

.float_right {
  float: right;
}


/* ==========================================================================
   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) {

  html {
    font-size: 1.42em;
  }

  .inline {
    display: inline-block;
    vertical-align: top;
  }

  .project {
		width: 48.3%;
		margin-left: 0%;
		height: 20em;
	}

	.margin-right {
		margin-right: 2%;
	}
	.contact {
	width: 97.6%;
	}

  .single {
		padding-top: 0em;
	}

  section {
    padding: 2em;
    margin: auto;
    max-width: 35em;
  }

  section.last {
    padding-bottom: 2em;
  }

  .signup_footer {
	  margin-top: 0em;
  }

  p {
		max-width: 62ch;
	}

	li:not(.project_title) {
		max-width: 55ch;
	}

	a.project_title:hover {
		color: #4286f4;
		text-decoration: underline;
	}

  .signup {
    padding-top: 2.1em;
  }

  form.form-inline {
  overflow: revert;
  }

  input[type=submit].md {
    display: none;
  }

  input[type=submit].lg {
		display: block;
		transition: .2s ease-in-out;

	}

	input[type=email] {
	float:left;
	min-width: 12.035em;
		transition: .2s ease-in-out;
	}

	input[type=text] {
	float:left;
	min-width: 12.035em;
		transition: .2s ease-in-out;
	}

	input[type=text]:focus {
	min-width: 16em;
		transition: .2s ease-in-out;
	}

	input[type=email]:focus {
	min-width: 16em;
		transition: .2s ease-in-out;
	}

	input[type=submit] {
		min-width: 7em;
		max-width: 7em;
		transition: 0.8s ease-in-out;
	}


}

@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 */
        -webkit-box-shadow: none !important;
        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:
     * 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;
    }
}


