css/main.scss
---
# Only the main Sass file needs front matter (the dashes are enough)
---

$baseurl: '{{ site.baseurl }}/images';

@import 'libs/vars';
@import 'libs/functions';
@import 'libs/mixins';
@import 'font-awesome.min.css';
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,400italic,600,600italic,800,800italic');
@import url(https://fonts.googleapis.com/css?family=Lora:400,400italic,700,700italic);
@import 'syntax-highlighting.css';
@import 'vendor/disqus.css';

/*
	Spectral by HTML5 UP
	html5up.net | @n33co
	Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
*/

	@import 'libs/skel';

	@include skel-breakpoints((
		xlarge: '(max-width: 1680px)',
		large: '(max-width: 1280px)',
		medium: '(max-width: 980px)',
		small: '(max-width: 736px)',
		xsmall: '(max-width: 480px)',
		dinky: '(max-width: 260px)'
	));

	@include skel-layout((
		reset: 'full',
		boxModel: 'border',
		grid: ( gutters: 1.5em )
	));

/* Basic */

	@-ms-viewport {
		width: device-width;
	}

	body {
		background: _palette(bg);

		&.is-loading {
			*, *:before, *:after {
				@include vendor('animation', 'none !important');
				@include vendor('transition', 'none !important');
			}
		}
	}

	body, input, select, textarea {
		color: _palette(fg);
		font-family: _font(ctrl-family);
		font-size: _font(ctrl-size-xxlarge);
		font-weight: _font(weight);
		letter-spacing: _size(letter-spacing);
		line-height: _font(ctrl-lheight-normal);

		@include breakpoint(xlarge) {
			font-size: _font(ctrl-size-xlarge);
		}

		@include breakpoint(large) {
			font-size: _font(ctrl-size-large);
		}

		@include breakpoint(ctrl-small) {
			font-size: _font(ctrl-size-small);
			letter-spacing: _size(letter-spacing) * 0.5;
		}
	}

	a {
		@include vendor('transition', ('color #{_duration(transitions)} ease', 'border-bottom-color #{_duration(transitions)} ease'));
		border-bottom: dotted 1px;
		color: inherit;
		text-decoration: none;

		&:hover {
			border-bottom-color: transparent;
		}
	}

	strong, b {
		color: _palette(fg-bold);
		font-weight: _font(weight-bold);
	}

	em, i {
		font-style: italic;
	}

	p {
		margin: 0 0 _size(element-margin) 0;
	}

	h1, h2, h3, h4, h5, h6 {
		color: _palette(fg-bold);
		font-weight: _font(weight-extrabold);
		letter-spacing: _size(letter-spacing-alt);
		line-height: 1em;
		margin: 0 0 (_size(element-margin) * 0.5) 0;
		text-transform: uppercase;

		code {
			text-transform: none;
		}

		a {
			color: inherit;
			text-decoration: none;
		}
	}

	article header h1 {
		font-size: _font(hdr-size-xlarge);
		line-height: 1.75em;

		@include breakpoint(small) {
			font-size: _font(hdr-size-mlarge);
			line-height: 1.65em;
		}
	}

	article section .inner h1 {
		font-size: _font(hdr-size-xlarge);
		line-height: 1.95em;
		color: _palette(accent7, fg);

		@include breakpoint(small) {
			font-size: _font(hdr-size-mlarge);
			line-height: 1.85em;
		}
	}

	h2 {
		font-size: _font(hdr-size-mlarge);
		line-height: 1.75em;

		@include breakpoint(small) {
			font-size: _font(hdr-size-large);
			line-height: 1.65em;
		}
	}

	h3 {
		font-size: _font(hdr-size-normal);
		line-height: _font(hdr-lheight-large);

		@include breakpoint(small) {
			font-size: _font(hdr-size-small);
			line-height: _font(hdr-lheight-normal);
		}
	}

	h4 {
		font-size: _font(hdr-size-small);
		line-height: _font(hdr-lheight-small);
	}

	h5 {
		font-size: _font(hdr-size-xsmall);
		line-height: _font(hdr-lheight-small);
	}

	h6 {
		font-size: _font(hdr-size-xxsmall);
		line-height: _font(hdr-lheight-small);
	}

	sub {
		font-size: _font(hdr-size-xsmall);
		position: relative;
		top: 0.5em;
	}

	sup {
		font-size: _font(hdr-size-xsmall);
		position: relative;
		top: -0.5em;
	}

	hr {
		border: 0;
		border-bottom: solid 2px _palette(border);
		margin: (_size(element-margin) * 1.5) 0;

		&.major {
			margin: (_size(element-margin) * 2.25) 0;
		}
	}

  article .inner {
  	/*
  	// If choosing serif font for headers
  	h1, h2, h3, h4, h5, h6, h7 {
  		color: _palette(accent7,fg);
  		font-family: _font(prose-family);
  		text-transform: none;
  		letter-spacing: _size(letter-spacing);
  		//font-weight: _font(weight);
  	}
  	// might have to adjust sizes as well
  	h2 {
  		font-size: _font(hdr-size-xlarge);
  	}
  	*/
    p, dt, dd, p span, th, td, li, blockquote, #post-date {
      font-family: _font(prose-family);
      font-size: _font(prose-size-large);
      font-weight: _font(prose-weight);
      line-height: _font(prose-lheight-normal);
      strong, b {
        font-weight: _font(prose-font-weight);
      }
    }
    th, dt {
    	font-weight: _font(prose-weight-bold);
    }
    #post-date {
    	font-weight: _font(prose-weight-bold);
    }
    p code {
      font-size: _font(inline-fixed-size);
    }
    .actions * {
      font-family: _font(ctrl-family);
    }
    li {
      margin-left: 0.2em;
      padding-left: 0.4em;
    }
  }

	blockquote {
		border-left: solid 5px _palette(border);
		font-style: italic;
		margin: 0 0 _size(element-margin) 0;
		padding: 0.5em 0 0.5em 2em;
		p:last-child {
		  margin:0;
		}
	}

	code {
		font-family: _font(family-fixed);
		font-size: _font(fixed-size);
		letter-spacing: 0;
		//background: #eeeeee;
		//border: 1px solid #e2e2e2;
		//margin: 0 0.25em;
		//padding: 0.1em 0.3em 0.1em 0.3em;
	}

	pre {
		-webkit-overflow-scrolling: touch;
		font-family: _font(family-fixed);
		font-size: _font(fixed-size);
		margin: 0 0 _size(element-margin) 0;

		code {
			border-radius: 6px;
			display: block;
			line-height: _font(fixed-lheight);
			background-color: #EEEEEB;
			padding: 1em 1.5em;
			overflow-x: auto;
		}

	}

	.align-left {
		text-align: left;
	}

	.align-center {
		text-align: center;
	}

	.align-right {
		text-align: right;
	}


/* Section/Article */

	section, article {
		&.special {
			text-align: center;
		}
	}

	#greeting header.major {
		padding-top: 20px;
	}

	header {
		p {
			color: _palette(fg-light);
			position: relative;
			top: -0.25em;
		}

		.excerpt-inline {
			font-size: _font(hdr-size-xxsmall);
			font-weight: _font(weight);
		}

		h2 + p {
		}

		h3 + p {
			font-size: _font(hdr-size-large);
		}

		h4 + p,
		h5 + p,
		h6 + p {
			font-size: _font(hdr-size-smaller);
		}

		&.major {
			margin: 0 0 (_size(element-margin) * 1.75) 0;

			h1, h2, h3, h4, h5, h6 {
				border-bottom: solid 2px _palette(border);
				display: inline-block;
				padding-bottom: 1em;
				position: relative;

				&:after {
					content: '';
					display: block;
					height: 1px;
				}
			}

			p {
				color: _palette(fg);
				top: 0;
			}

			@include breakpoint(small) {
				margin: 0 0 _size(element-margin) 0;
			}
		}

		@include breakpoint(medium) {
			br {
				display: none;
			}
		}
	}

/* Form */

	form {
		margin: 0 0 _size(element-margin) 0;
	}

	label {
		color: _palette(fg-bold);
		display: block;
		font-size: _font(ctrl-form-label-size);
		font-weight: _font(weight-bold);
		margin: 0 0 (_size(element-margin) * 0.5) 0;
	}

	input[type="text"],
	input[type="password"],
	input[type="email"],
	select,
	textarea {
		@include vendor('appearance', 'none');
		background: _palette(border-bg);
		border-radius: 3px;
		border: none;
		color: inherit;
		display: block;
		outline: 0;
		padding: 0 1em;
		text-decoration: none;
		width: 100%;

		&:invalid {
			box-shadow: none;
		}

		&:focus {
			box-shadow: 0 0 0 2px _palette(accent1, bg);
		}
	}

	.select-wrapper {
		@include icon;
		display: block;
		position: relative;

		&:before {
			@include vendor('pointer-events', 'none');
			color: _palette(border);
			content: '\f078';
			display: block;
			height: _size(element-height);
			line-height: _size(element-height);
			position: absolute;
			right: 0;
			text-align: center;
			top: 0;
			width: _size(element-height);
		}

		select::-ms-expand {
			display: none;
		}
	}

	input[type="text"],
	input[type="password"],
	input[type="email"],
	select {
		height: _size(element-height);
	}

	textarea {
		padding: 0.75em 1em;
	}

	input[type="checkbox"],
	input[type="radio"], {
		@include vendor('appearance', 'none');
		display: block;
		float: left;
		margin-right: -2em;
		opacity: 0;
		width: 1em;
		z-index: -1;

		& + label {
			@include icon;
			color: _palette(fg);
			cursor: pointer;
			display: inline-block;
			font-size: _font(ctrl-form-size);
			font-weight: _font(weight);
			padding-left: (_size(element-height) * 0.6) + 0.75em;
			padding-right: 0.75em;
			position: relative;

			&:before {
				background: _palette(border-bg);
				border-radius: 3px;
				content: '';
				display: inline-block;
				height: (_size(element-height) * 0.6);
				left: 0;
				line-height: (_size(element-height) * 0.575);
				position: absolute;
				text-align: center;
				top: 0;
				width: (_size(element-height) * 0.6);
			}
		}

		&:checked + label {
			&:before {
				background: _palette(bg);
				color: _palette(fg-bold);
				content: '\f00c';
			}
		}

		&:focus + label {
			&:before {
				box-shadow: 0 0 0 2px _palette(accent1, bg);
			}
		}
	}

	input[type="checkbox"] {
		& + label {
			&:before {
				border-radius: 3px;
			}
		}
	}

	input[type="radio"] {
		& + label {
			&:before {
				border-radius: 100%;
			}
		}
	}

	::-webkit-input-placeholder {
		color: _palette(fg-light) !important;
		opacity: 1.0;
	}

	:-moz-placeholder {
		color: _palette(fg-light) !important;
		opacity: 1.0;
	}

	::-moz-placeholder {
		color: _palette(fg-light) !important;
		opacity: 1.0;
	}

	:-ms-input-placeholder {
		color: _palette(fg-light) !important;
		opacity: 1.0;
	}

	.formerize-placeholder {
		color: _palette(fg-light) !important;
		opacity: 1.0;
	}

/* Box */

	.box {
		border-radius: 3px;
		border: solid 2px _palette(border);
		margin-bottom: _size(element-margin);
		padding: 1.5em;

		> :last-child,
		> :last-child > :last-child,
		> :last-child > :last-child > :last-child {
			margin-bottom: 0;
		}

		&.alt {
			border: 0;
			border-radius: 0;
			padding: 0;
		}
	}

/* Icon */

	.icon {
		@include icon;
		border-bottom: none;
		position: relative;

		> .label {
			display: none;
		}

		&.major {
			@include vendor('transform', 'rotate(-45deg)');
			border-radius: 3px;
			border: solid 2px _palette(border);
			display: inline-block;
			font-size: _font(hdr-size-xlarge);
			height: calc(3em + 2px);
			line-height: 3em;
			text-align: center;
			width: calc(3em + 2px);

			&:before {
				@include vendor('transform', 'rotate(45deg)');
				display: inline-block;
				font-size: 1.5em;
			}

			@include breakpoint(small) {
				font-size: _font(hdr-size-large);
			}
		}

		&.style1 {
			color: _palette(accent2, bg);
		}

		&.style2 {
			color: _palette(accent3, bg);
		}

		&.style3 {
			color: _palette(accent4, bg);
		}

		&.styleN {
			font-size: _font(hdr-size-xxlarge);
			&.Nvar0 {
				color: _palette(accent7, fg-light);
			}
			&.Nvar1 {
				color: _palette(accent7, fg-light);
			}
			&.Nvar2 {
				color: _palette(accent7, fg-light);
			}
			&.Nvar3 {
				color: _palette(accent6, bg);
			}
		}
	}

/* Image */

	.image {
		border-radius: 3px;
		border: 0;
		display: inline-block;
		position: relative;

		img {
			border-radius: 3px;
			display: block;
		}

		&.left {
			float: left;
			margin: 0 2em 2em 0;
			top: 0.25em;
		}

		&.right {
			float: right;
			margin: 0 0 2em 2em;
			top: 0.25em;
		}

		&.note {
			float: left;
			margin: 0 1em 0 0;
			top: 0.25em;
		}

		&.left,
		&.right,
		&.note {
			max-width: 40%;

			img {
				width: 100%;
			}
		}

		&.fit {
			display: block;
			margin: 0 0 _size(element-margin) 0;
			width: 100%;

			img {
				width: 100%;
			}
		}
	}

/* List */

	ol {
		list-style: decimal;
		margin: 0 0 _size(element-margin) 0;
		padding-left: 1.25em;

		li {
			padding-left: 0.25em;
		}
	}

	ul {
		list-style: disc;
		margin: 0 0 _size(element-margin) 0em;
		padding-left: 1em;

		li {
			padding-left: 0.5em;
		}

		&.alt {
			list-style: none;
			padding-left: 0;

			li {
				border-top: solid 1px _palette(border);
				padding: 0.5em 0;

				&:first-child {
					border-top: 0;
					padding-top: 0;
				}
			}
		}

		&.icons {
			cursor: default;
			list-style: none;
			padding-left: 0;

			li {
				display: inline-block;
				padding: 0 1em 0 0;

				&:last-child {
					padding-right: 0 !important;
				}
			}

			&.major {
				padding: 1em 0;

				li {
					padding-right: 3.5em;

					@include breakpoint(small) {
						padding: 0 1em !important;
					}
				}
			}
		}

		&.actions {
			cursor: default;
			list-style: none;
			padding-left: 0;

			li {
				display: inline-block;
				padding: 0 (_size(element-margin) * 0.75) 0 0;
				vertical-align: middle;

				&:last-child {
					padding-right: 0;
				}
			}

			&.small {
				li {
					padding: 0 (_size(element-margin) * 0.375) 0 0;
				}
			}

			&.vertical {
				li {
					display: block;
					padding: (_size(element-margin) * 0.75) 0 0 0;

					&:first-child {
						padding-top: 0;
					}

					> * {
						margin-bottom: 0;
					}
				}

				&.small {
					li {
						padding: (_size(element-margin) * 0.375) 0 0 0;

						&:first-child {
							padding-top: 0;
						}
					}
				}
			}

			&.fit {
				display: table;
				margin-left: (_size(element-margin) * -0.75);
				padding: 0;
				table-layout: fixed;
				width: calc(100% + #{(_size(element-margin) * 0.75)});

				li {
					display: table-cell;
					padding: 0 0 0 (_size(element-margin) * 0.75);

					> * {
						margin-bottom: 0;
					}
				}

				&.small {
					margin-left: (_size(element-margin) * -0.375);
					width: calc(100% + #{(_size(element-margin) * 0.375)});

					li {
						padding: 0 0 0 (_size(element-margin) * 0.375);
					}
				}
			}

			@include breakpoint(small) {
				li {
					display: block;
					padding: (_size(element-margin) * 0.5) 0 0 0;
					text-align: center;
					width: 100%;

					&:first-child {
						padding-top: 0;
					}

					> * {
						margin: 0 auto !important;
						max-width: 30em;
						width: 100%;

						&.icon {
							&:before {
								margin-left: -1em;
							}
						}
					}
				}

				&.small {
					li {
						padding: (_size(element-margin) * 0.25) 0 0 0;

						&:first-child {
							padding-top: 0;
						}
					}
				}
			}
		}
	}

	dl {
		margin: 0 0 _size(element-margin) 0;
	}

/* Table */

	.table-wrapper {
		-webkit-overflow-scrolling: touch;
		overflow-x: auto;
	}

	table {
		margin: 0 0 _size(element-margin) 0;
		width: 100%;

		tbody {
			tr {
				border: solid 1px _palette(border);
				border-left: 0;
				border-right: 0;

				&:nth-child(2n + 1) {
					background-color: _palette(border-bg);
				}
			}
		}

		td {
			padding: 0.75em 0.75em;
		}

		th {
			color: _palette(fg-bold);
			font-size: 0.9em;
			font-weight: _font(weight-bold);
			padding: 0 0.75em 0.75em 0.75em;
			text-align: left;
		}

		thead {
			border-bottom: solid 2px _palette(border);
		}

		tfoot {
			border-top: solid 2px _palette(border);
		}

		&.alt {
			border-collapse: separate;

			tbody {
				tr {
					td {
						border: solid 1px _palette(border);
						border-left-width: 0;
						border-top-width: 0;

						&:first-child {
							border-left-width: 1px;
						}
					}

					&:first-child {
						td {
							border-top-width: 1px;
						}
					}
				}
			}

			thead {
				border-bottom: 0;
			}

			tfoot {
				border-top: 0;
			}
		}
	}

	@include breakpoint(small) {
	// from https://css-tricks.com/responsive-data-tables/
		/* Force table to not be like tables anymore */
		table, thead, tbody, th, td, tr {
			display: block;
		}
		/* Hide table headers (but not display: none;, for accessibility) */
		thead tr {
			position: absolute;
			top: -9999px;
			left: -9999px;
		}
		//tr { border: 1px solid #ccc; }
		td {
			/* Behave  like a "row" */
			border: none;
			//border-bottom: 1px solid #eee;
			position: relative;
			padding-left: 50%;
		}
	}

/* Button */

	input[type="submit"],
	input[type="reset"],
	input[type="button"],
	button,
	.button {
		@include vendor('appearance', 'none');
		@include vendor('transition', ('background-color #{_duration(transitions)} ease-in-out', 'color #{_duration(transitions)} ease-in-out'));
		background-color: transparent;
		border-radius: 3px;
		border: 0;
		box-shadow: inset 0 0 0 2px _palette(border);
		color: _palette(fg-bold);
		cursor: pointer;
		display: inline-block;
		font-size: _font(ctrl-bttn-size);
		font-weight: _font(weight-bold);
		height: 3.125em;
		letter-spacing: _size(letter-spacing-alt);
		line-height: _font(ctrl-bttn-lheight);
		padding: 0 2.75em;
		text-align: center;
		text-decoration: none;
		text-transform: uppercase;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;

		&:hover {
			background-color: _palette(border-bg);
		}

		&:active {
			background-color: _palette(border2-bg);
		}

		&.icon {
			&:before {
				margin-right: 0.5em;
			}
		}

		&.fit {
			display: block;
			margin: 0 0 (_size(element-margin) * 0.5) 0;
			width: 100%;
		}

		&.small {
			font-size: _font(ctrl-bttn-size);
		}

		&.big {
			font-size: _font(ctrl-bttn-bigsize);
		}

		&.special {
			background-color: _palette(accent6, bg);
			box-shadow: none !important;
			color: _palette(accent6, fg-bold) !important;

			&:hover {
				background-color: lighten(_palette(accent6, bg), 5) !important;
			}

			&:active {
				background-color: darken(_palette(accent6, bg), 5) !important;
			}
		}

		&.disabled,
		&:disabled {
			@include vendor('pointer-events', 'none');
			opacity: 0.25;
		}

		@include breakpoint(small) {
			height: 3.75em;
			line-height: 3.75em;
		}
	}

/* Features */

	.features {
		@include vendor('display', 'flex');
		@include vendor('flex-wrap', 'wrap');
		@include vendor('justify-content', 'center');
		list-style: none;
		padding: 0;
		width: 100%;

		a {
			@include vendor('transition', ('color #{_duration(transitions)} ease', 'border-bottom-color #{_duration(transitions)} ease'));
			border-bottom: none;
			color: inherit;
			text-decoration: none;

			&:hover {
				border-bottom-color: none;
			}
		}

		li {
			display: block;
			position: relative;
			text-align: left;
			width: 50%;

			.container {
	  		width: 100%;
  			height: 100%;
 				margin: 0;
  			@include padding(4em, 4em, (0,0,0,2em));
			}

			@for $i from 1 through _misc(max-features) {
				$j: 0.035 * $i;

				&:nth-child(#{$i}) {
					background-color: rgba(0,0,0, $j);
				}
			}

			&:before {
				display: block;
				color: _palette(accent2, bg);
				position: absolute;
				left: 1.75em;
				top: 2.75em;
				font-size: 1.5em;
			}

			&:nth-child(1) {
				border-top-left-radius: 3px;
			}

			&:nth-child(2) {
				border-top-right-radius: 3px;
			}

			&:nth-last-child(1) {
				border-bottom-right-radius: 3px;
			}

			&:nth-last-child(2) {
				border-bottom-left-radius: 3px;
			}

			@include breakpoint(medium) {
				@include padding(3em, 2em);
				text-align: center;

				&:before {
					left: 0;
					margin: 0 0 (_size(element-margin) * 0.5) 0;
					position: relative;
					top: 0;
				}
			}

			@include breakpoint(small) {
				@include padding(3em, 0);
				background-color: transparent !important;
				border-top: solid 2px _palette(border);
				width: 100%;

				&:first-child {
					border-top: 0;
				}
			}
		}
	}

/* Spotlight */

	.spotlight {

   	@include vendor('align-items', 'center');
 		@include vendor('display', 'flex');

		a {
			padding:0;
			margin:0;
			@include vendor('transition', ('color #{_duration(transitions)} ease', 'border-bottom-color #{_duration(transitions)} ease'));
			border-bottom: none;
			color: inherit;
			text-decoration: none;

			&:hover {
				border-bottom-color: none;
			}
		}

		.image {
			@include vendor('order', '1');
			border-radius: 0;
			width: 40%;
			img {
				border-radius: 0;
				width: 100%;
			}
		}

		.content {
			@include padding(2em, 4em);
			@include vendor('order', '2');
		}
		.content-wrap {
			width: 60%;
		}
		&:nth-child(1n) {
			text-align: right;
		}
		&:nth-child(2n) {
			@include vendor('flex-direction', 'row-reverse');
			text-align: left;
		}

		@for $i from 1 through _misc(max-spotlights) {
			$j: 0.075 * $i;
			&:nth-child(#{$i}) {
				background-color: rgba(0,0,0, $j);
			}
		}

		@include breakpoint(large) {
			.image {
				width: 45%;
			}
			.content-wrap {
				width: 60%;
			}
		}

		@include breakpoint(medium) {
			display: block;
			br {
				display: none;
			}
			.image {
				width: 100%;
			}
			.content {
				@include padding(4em, 3em);
				max-width: none;
				text-align: center;
			}
			.content-wrap {
				width: 100%;
			}
		}

		@include breakpoint(small) {
			.content {
				@include padding(3em, 2em);
			}
		}

	}

/* Wrapper */

	@mixin wrapper($p) {
		background-color: _palette($p, bg);
		color: _palette($p, fg);

		// Basic

			strong, b {
				color: _palette($p, fg-bold);
			}

			h2, h3, h4, h5, h6 {
				color: _palette($p, fg-bold);
			}

			hr {
				border-color: _palette($p, border);
			}

			blockquote {
				border-color: _palette($p, border);
			}
			/*
			code {
				background: _palette($p, border-bg);
			}
			*/

		// Section/Article

			header {
				p {
					color: _palette($p, fg-light);
				}

				&.major {
					h1, h2, h3, h4, h5, h6 {
						border-color: _palette($p, border);
					}

					p {
						color: _palette($p, fg);
					}
				}
			}

		// Form

			label {
				color: _palette($p, fg-bold);
			}

			input[type="text"],
			input[type="password"],
			input[type="email"],
			select,
			textarea {
				background: _palette($p, border-bg);
			}

			.select-wrapper {
				&:before {
					color: _palette($p, border);
				}
			}

			input[type="checkbox"],
			input[type="radio"], {
				& + label {
					color: _palette($p, fg);

					&:before {
						background: _palette($p, border-bg);
					}
				}

				&:checked + label {
					&:before {
						background: _palette($p, fg-bold);
						color: _palette($p, bg);
					}
				}
			}

			::-webkit-input-placeholder {
				color: _palette($p, fg-light) !important;
			}

			:-moz-placeholder {
				color: _palette($p, fg-light) !important;
			}

			::-moz-placeholder {
				color: _palette($p, fg-light) !important;
			}

			:-ms-input-placeholder {
				color: _palette($p, fg-light) !important;
			}

			.formerize-placeholder {
				color: _palette($p, fg-light) !important;
			}

		// Icon

			.icon {
				&.major {
					border-color: _palette($p, border);
				}
			}

		// List

			ul {
				&.alt {
					li {
						border-color: _palette($p, border);
					}
				}
			}

		// Table

			table {
				tbody {
					tr {
						border-color: _palette($p, border);

						&:nth-child(2n + 1) {
							background-color: _palette($p, border-bg);
						}
					}
				}

				th {
					color: _palette($p, fg-bold);
				}

				thead {
					border-color: _palette($p, border);
				}

				tfoot {
					border-color: _palette($p, border);
				}

				&.alt {
					tbody {
						tr {
							td {
								border-color: _palette($p, border);

								&.Nvar0 {
									border-color: _palette(accent3, border);
									color: _palette(accent7, fg);
									background-color: _palette(accent3, bg);
								}
								&.Nvar1 {
									border-color: _palette(accent2, border);
									color: _palette(accent7, fg);
									background-color: _palette(accent2, bg);
								}
								&.Nvar2 {
									border-color: _palette(accent7, border2);
									color: _palette(accent7, fg-bold);
									background-color: _palette(accent7, border);
								}
								&.Nvar3 {
									border-color: _palette(accent6, bg);
									color: black; /*_palette(accent6, fg-bold);*/
									background-color: _palette(accent6, fg-light);
								}
							}
						}
					}
				}
			}

		// Button

			input[type="submit"],
			input[type="reset"],
			input[type="button"],
			button,
			.button {
				box-shadow: inset 0 0 0 2px _palette($p, border);
				color: _palette($p, fg-bold);

				&:hover {
					background-color: _palette($p, border-bg);
				}

				&:active {
					background-color: _palette($p, border2-bg);
				}
			}

		// Features

			.features {
				li {
					@include breakpoint(small) {
						border-top-color: _palette($p, border);
					}
				}
			}

    // Post listing
    
      .post-list {
				margin: 0;
    		/* width: 100%; */
    		text-align: left;
    		vertical-align: top;
    		display: block;
    		font-size: 1em;
    
    		> li {
    			vertical-align: top;
    			display: inline-block;
    			/* width: 240px; */
    			list-style: none;
					margin: 0.25em 0 0.5em 0.5em;
    			padding: 0;
    			/*
    			&:first-child {
    				margin-left: 0;
    			}
    			&.featured {
    				border: solid 4px black;
    			}
    			*/
    			.post-date {
						font-family: _font(ctrl-family);
    				font-style: italic;
    				padding: 0 0 5px 0;
    				margin: 0;
    				font-size: _font(ctrl-size-small);
    				line-height: _font(ctrl-lheight-small);
    			}
    			.post-feature {
    				padding: 0;
    				margin: 0;
    				font-style: italic;
    				font-weight: _font(weight-bold);
    				line-height: _font(ctrl-size-small);
    			}
    			.post-title {
    				padding: 0;
    				margin: 0;
						font-family: _font(ctrl-family);
    				font-weight: _font(weight-bold);
    				font-size: _font(ctrl-size-small);
    				line-height: _font(ctrl-lheight-small);
						white-space: nowrap;
						overflow: hidden;
						text-overflow: ellipsis;
    			}
    			.post-desc{
    				padding: 0;
    				margin: 0;
						font-family: _font(ctrl-family);
    				font-size: _font(ctrl-size-xsmall);
    				line-height: _font(ctrl-lheight-smaller);
						white-space: nowrap;
						overflow: hidden;
						text-overflow: ellipsis;
    			}
    			.container {
						@include vendor('appearance', 'none');
						@include vendor('transition', ('background-color #{_duration(transitions)} ease-in-out', 'color #{_duration(transitions)} ease-in-out'));
						background: transparent; /* _palette($p, border2-bg); */
    				/* box-shadow: 1px 1px _palette($p, border2); */
    				/* width: 240px; */
						height: 6.5em;
    				/* line-height: _font(prose-lheight-small); */
    				margin: 0;
      			padding: 0.8em;
						border-radius: 3px;
						border: 0;
						box-shadow: inset 0 0 0 2px _palette($p, border);
						color: _palette($p, fg-bold);
						cursor: pointer;
						font-size: _font(ctrl-bttn-size);
						font-weight: _font(weight-bold);
						letter-spacing: _size(letter-spacing);
						line-height: _font(ctrl-bttn-lheight);
						text-decoration: none;
						text-transform: uppercase;
						text-align: center;
												
						&:hover {
							background: _palette($p, border-bg);
						}
				
						&:active {
							background: _palette($p, border2-bg);
						}
				
					}
    		}
    	}

    // tags
      .techlist {
      	margin: 0;
      	padding: 0;
      	width: 100%;
      	text-align: left;
      	vertical-align: top;
      	li {
      		vertical-align: top;
      		display: inline-block;
					box-shadow: 1px 1px _palette($p, border2);
      		list-style: none;
      		background: _palette($p, border2-bg);
      		padding: 0 6px 0 6px;
      		margin: 0 4px 10px 0;
      	}
      	.tech {
      		font-family: _font(ctrl-family);
      		font-size: _font(ctrl-size-xsmall);
      	}
      }
      .inner > .techlist {
      	margin-bottom: 2em;
      }

	}

/* Breadcrumb */

	.breadcrumb {
		margin: 0;
		padding: 0 2em 0 1.5em;
		width: 100%;
		text-align: left;
		vertical-align: top;
		display: block;
		font-size: 0.8em;
		@include wrapper(accent7);

		li {
			display: inline;
			list-style: none;
			line-height: 1em;
			margin-left: 0;
			padding-left: 0.3em;
			&:before {
			  content: "\0BB \020 \020";
			}
			&:first-child {
				border-left: 0;
				margin-left: 0;
				padding-left: 0;
				&:before {
				  content: " ";
				}
			}
			&:last-child {
				font-weight: bold;
			}
			@include breakpoint(dinky) {
				border: 0;
				display: block;
				line-height: 0.9em;
				margin: 0;
				padding: 0.5em 0;
			}
		}
	}


	.wrapper {
		@include padding(3em, 0); //6

		.minihead {
			@include padding(1em, 0);
		}

		> .inner {
			width: 60em;
			margin: 0 auto;

			&.fullwidth {
				width: 100%;
				padding: 0 16px 0 16px;
			}

			@include breakpoint(large) {
				//width: 90%;
				width: 60em;
			}

			@include breakpoint(medium) {
				width: 100%;
			}

		}

		&.alt {
			padding: 0;
		}

		&.style1 {
			@include wrapper(accent1);
		}

		&.style2 {
			background-color: _palette(bg);
		}

		&.style3 {
			@include wrapper(accent5);
		}

		&.style4 {
			background-color: transparent;
		}

		&.style5 {
			@include wrapper(accent7);
		}

		@include breakpoint(medium) {
			@include padding(4em, 3em);//4
		}

		@include breakpoint(small) {
			@include padding(3em, 2em);//3
		}
	}

  .author {
  	padding: 3px 0;
	  .auth-desc {
	  	font-style: italic;
	  	vertical-align: top;
	  	border-left: solid 5px _palette(border-bg);
	  	display:inline-block;
	  	width:50%;
	  	min-height:100px;
	  	margin-left: 20px;
	  	padding-left:20px;

	  	@include breakpoint(small) {
	  		margin-left: 0px;
	  		width: 100%;
	  	}
	  }
  }

/* Page Wrapper + Menu */

	#page-wrapper {
		@include vendor('transition', 'opacity #{_duration(menu)} ease');
		opacity: 1;
		padding-top: 3em;

		&:before {
			background: rgba(0,0,0,0);
			content: '';
			display: block;
			display: none;
			height: 100%;
			left: 0;
			position: fixed;
			top: 0;
			width: 100%;
			z-index: _misc(z-index-base) + 1;
		}
	}

	#menu {
		@include vendor('transform', 'translateX(20em)');
		@include vendor('transition', 'transform #{_duration(menu)} ease');
		-webkit-overflow-scrolling: touch;
		background: _palette(accent1, bg);
		color: _palette(accent1, fg-bold);
		height: 100%;
		max-width: 80%;
		overflow-y: auto;
		padding: 3em 2em;
		position: fixed;
		right: 0;
		top: 0;
		width: 20em;
		z-index: _misc(z-index-base) + 2;

		ul {
			list-style: none;
			padding: 0;

			> li {
				border-top: solid 1px _palette(accent1, border);
				margin: 0.5em 0 0 0;
				padding: 0.5em 0 0 0;
				font-family: _font(ctrl-family);

				&:first-child {
					border-top: 0 !important;
					margin-top: 0 !important;
					padding-top: 0 !important;
				}

				> a {
					border: 0;
					color: inherit;
					display: block;
					font-size: _font(hdr-size-xsmall);
					letter-spacing: _size(letter-spacing-alt);
					outline: 0;
					text-decoration: none;
					text-transform: uppercase;

					@include breakpoint(small) {
						line-height: 3em;
					}
				}
			}
		}

		.close {
			background-image: url('images/close.svg');
			background-position: 4.85em 1em;
			background-repeat: no-repeat;
			border: 0;
			cursor: pointer;
			display: block;
			height: 3em;
			position: absolute;
			right: 0;
			top: 0;
			vertical-align: middle;
			width: 7em;
		}

		@include breakpoint(small) {
			padding: 3em 1.5em;
		}
	}

	body.is-menu-visible {
		#page-wrapper {
			opacity: 0.35;

			&:before {
				display: block;
			}
		}

		#menu {
			@include vendor('transform', 'translateX(0)');
		}
	}

/* Header */

	#header {
		@include vendor('transition', 'background-color #{_duration(transitions)} ease');
		background: _palette(bg);
		height: 3em;
		left: 0;
		line-height: 3em;
		position: fixed;
		top: 0;
		width: 100%;
		z-index: _misc(z-index-base);

		h1 {
			@include vendor('transition', 'opacity #{_duration(transitions)} ease');
			height: inherit;
			left: 1.25em;
			line-height: inherit;
			position: absolute;
			top: 0;
			text-transform: none;

			a {
				border: 0;
				display: block;
				height: inherit;
				line-height: inherit;

				@include breakpoint(small) {
					font-size: _font(hdr-size-xsmall);
				}
			}
		}

		nav {
			height: inherit;
			line-height: inherit;
			position: absolute;
			right: 0;
			top: 0;

			> ul {
				list-style: none;
				margin: 0;
				padding: 0;
				white-space: nowrap;

				> li {
					display: inline-block;
					padding: 0;

					> a {
						border: 0;
						color: _palette(fg-bold);
						display: block;
						font-size: _font(hdr-size-xsmall);
						letter-spacing: _size(letter-spacing-alt);
						padding: 0 1.5em;
						text-transform: uppercase;

						&.menuToggle {
							outline: 0;
							position: relative;

							&:after {
								background-image: url('images/bars.svg');
								background-position: right center;
								background-repeat: no-repeat;
								content: '';
								display: inline-block;
								height: 3.75em;
								vertical-align: top;
								width: 2em;
							}

							@include breakpoint(small) {
								padding: 0 1.5em;

								span {
									display: none;
								}
							}
						}

						@include breakpoint(small) {
							padding: 0 0 0 1.5em;
						}
					}

					&:first-child {
						margin-left: 0;
					}
				}
			}
		}

		&.alt {
			background: transparent;

			h1 {
				@include vendor('pointer-events', 'none');
				opacity: 0;
			}
		}
	}

/* Banner */

	#banner {
		@include vendor('display', 'flex');
		@include vendor('flex-direction', 'column');
		@include vendor('justify-content', 'center');
		cursor: default;
		height: 100vh;
		min-height: 35em;
		overflow: hidden;
		position: relative;
		text-align: center;

		h1 {
			@include vendor('transform', 'scale(1)');
//		@include vendor('transition', ('transform 0.5s ease', 'opacity 0.5s ease'));
			@include vendor('transition', ('transform 0.2s ease', 'opacity 0.2s ease'));
			display: inline-block;
			font-size: 1.75em;
			line-height: 1.75em;
			opacity: 1;
			padding: 0.35em 1em;
			position: relative;
			z-index: 1;
			text-transform: none;

			&:before, &:after {
//			@include vendor('transition', 'width 0.85s ease');
//			@include vendor('transition-delay', '0.25s');
				@include vendor('transition', 'width 0.85s ease');
				@include vendor('transition-delay', '0');
				background: _palette(fg-bold);
				content: '';
				display: block;
				height: 2px;
				position: absolute;
				width: 100%;
			}

			&:before {
				top: 0;
				left: 0;
			}

			&:after {
				bottom: 0;
				right: 0;
			}
		}

		p {
			letter-spacing: _size(letter-spacing-alt);
			text-transform: uppercase;

			a {
				color: inherit;
			}
		}

		.more {
			@include vendor('transition', ('transform 0.75s ease', 'opacity 0.75s ease'));
//		@include vendor('transition-delay', '3.5s');
			@include vendor('transition-delay', '0');
			@include vendor('transform', 'translateY(0)');
			border: none;
			bottom: 0;
			color: inherit;
			font-size: 0.8em;
			height: 8.5em;
			left: 50%;
			letter-spacing: _size(letter-spacing-alt);
			margin-left: -8.5em;
			opacity: 1;
			outline: 0;
			padding-left: _size(letter-spacing-alt);
			position: absolute;
			text-align: center;
			text-transform: uppercase;
			width: 16em;
			z-index: 1;

			&:after {
				background-image: url('images/arrow.svg');
				background-position: center;
				background-repeat: no-repeat;
				background-size: contain;
				bottom: 4em;
				content: '';
				display: block;
				height: 1.5em;
				left: 50%;
				margin: 0 0 0 -0.75em;
				position: absolute;
				width: 1.5em;
			}
		}

		&:after {
			@include vendor('pointer-events', 'none');
			@include vendor('transition', 'opacity #{_duration(fadein)} ease-in-out');
//		@include vendor('transition-delay', '1.25s');
			@include vendor('transition-delay', '0');
			content: '';
			background: _palette(bg);
			display: block;
			width: 100%;
			height: 100%;
			position: absolute;
			left: 0;
			top: 0;
			opacity: 0;
		}

		@include breakpoint(small) {
			@include padding(7em, 3em);
			height: auto;
			min-height: 0;

			h1 {
				font-size: 1.25em;
			}

			br {
				display: none;
			}

			.more {
				display: none;
			}
		}
	}

	body.is-loading {
		#banner {
			h1 {
				@include vendor('transform', 'scale(0.95)');
				opacity: 0;

				&:before, &:after {
					width: 0;
				}
			}

			.more {
				@include vendor('transform', 'translateY(8.5em)');
				opacity: 0;
			}

			&:after {
				opacity: 1;
			}
		}
	}

/* CTA */

	#cta {
		.inner {
			@include vendor('display', 'flex');
			max-width: 45em;

			header {
				@include vendor('order', '1');
				padding-right: 3em;
				width: 70%;

				p {
					color: inherit;
				}
			}

			.actions {
				@include vendor('order', '2');
				width: 30%;
			}

			@include breakpoint(medium) {
				display: block;
				text-align: center;

				header {
					padding-right: 0;
					width: 100%;
				}

				.actions {
					margin-left: auto;
					margin-right: auto;
					max-width: 20em;
					width: 100%;
				}
			}

			@include breakpoint(small) {
				.actions {
					max-width: none;
				}
			}
		}
	}

/* Articles */

	#standard {
		> header {
			text-align: center;

			h1, h2 {
				font-size: _font(hdr-size-xxlarge);
				margin: 0 0 (_size(element-margin) * 0.25) 0;
			}

			p {
				color: inherit;
				letter-spacing: _size(letter-spacing-alt);
				text-transform: uppercase;
				top: 0;

				a {
					color: inherit;
				}
			}
		}
	}

	#minihead {
		> header {
			@include padding(1em, 1em);
			background: _palette(accent7, bg);
			text-align: left;

			h1, h2 {
				font-size: _font(hdr-size-xxlarge);
				margin: 0;
				color: _palette(accent7, fg);
			}

			p {
				color: _palette(bg);
				letter-spacing: _size(letter-spacing-alt);
				text-transform: uppercase;
				top: 0;

				a {
					color: inherit;
				}
			}
		}
	}

	#main {
		> header {
			@include padding(12em, 0);
			@include vendor('background-image', ('linear-gradient(top, rgba(0,0,0,0.3), rgba(0,0,0,0.3))', 'url("#{$baseurl}/banner.jpg")'));
			background-attachment: fixed;
			background-position: center center;
			background-repeat: no-repeat;
			background-size: cover;
			text-align: center;

			h1, h2 {
				font-size: _font(hdr-size-xxlarge);
				margin: 0 0 (_size(element-margin) * 0.25) 0;
			}

			p {
				color: inherit;
				letter-spacing: _size(letter-spacing-alt);
				text-transform: uppercase;
				top: 0;

				a {
					color: inherit;
				}
			}

			@include breakpoint(xlarge) {
				@include padding(8em, 0);
			}

			@include breakpoint(large) {
				@include padding(8em, 3em);
			}

			@include breakpoint(medium) {
				@include padding(6em, 3em);
			}

			@include breakpoint(small) {
				@include padding(3em, 3em);

				h1, h2 {
					font-size: _font(hdr-size-mlarge);
					margin: 0 0 (_size(element-margin) * 0.5) 0;
				}
			}
		}
	}

	body.is-mobile {
		#main {
			> header {
				background-attachment: scroll;
			}
		}
	}

/* Footer */

	#footer {
		@include padding(6em, 0);
		background-color: darken(_palette(bg), 8);
		text-align: center;

		.icons {
			font-size: 1.5em;

			a {
				color: _palette(fg-light);

				&:hover {
					color: _palette(fg);
				}
			}
		}

		.copyright {
			color: _palette(fg-light);
			font-size: 0.8em;
			letter-spacing: _size(letter-spacing-alt);
			list-style: none;
			padding: 0;
			text-transform: uppercase;

			li {
				border-left: solid 1px _palette(fg-light);
				display: inline-block;
				line-height: 1em;
				margin-left: 1em;
				padding-left: 1em;

				&:first-child {
					border-left: 0;
					margin-left: 0;
					padding-left: 0;
				}

				a {
					color: inherit;

					&:hover {
						color: _palette(fg);
					}
				}

				@include breakpoint(xsmall) {
					border: 0;
					display: block;
					line-height: 1.65em;
					margin: 0;
					padding: 0.5em 0;
				}
			}
		}

		@include breakpoint(medium) {
			@include padding(4em, 3em);
		}

		@include breakpoint(small) {
			@include padding(3em, 2em);
		}
	}

/* Landing */

	body.landing {
		#page-wrapper {
			@include vendor('background-image', ('linear-gradient(top, rgba(0,0,0,0.3), rgba(0,0,0,0.3))', 'url("#{$baseurl}/banner.jpg")'));
			background-attachment: fixed;
			background-position: center center;
			background-repeat: no-repeat;
			background-size: cover;
			padding-top: 0;
		}

		#footer {
			background-color: darken(transparentize(_palette(bg), 0.1), 8);
		}
	}

	body.is-mobile {
		&.landing {
			#page-wrapper {
				background: none;
			}

			#banner,
			.wrapper.style4 {
				@include vendor('background-image', ('linear-gradient(top, rgba(0,0,0,0.3), rgba(0,0,0,0.3))', 'url("#{$baseurl}/banner.jpg")'));
				background-position: center center;
				background-repeat: no-repeat;
				background-size: cover;
			}

			#footer {
				background-color: darken(_palette(bg), 8);
			}
		}
	}

/* font variant */
	.ui {
		font-family: _font(ctrl-family);
	}

/* back/next links in works */

  .backnext {
  	width: 100%;
  	padding: 6px;
  	text-align: center;
  	vertical-align: baseline;

  	&.bntop {
  	  margin: 0 0 16px 0;
  	}
  	&.bnbottom {
  	  margin: 16px 0 0 0;
  	}

  	@include breakpoint(small) {
  	  padding-left: 0;
  	}

  	.back {
  	  text-align: right;
  	  margin-right: 6px;

  	  @include breakpoint(small) {
  	  	margin-bottom: 9px;
  	  }
  	}
  	.next {
  	  text-align: left;
  	  margin-left: 6px;
  	}
  	.back, .next {
  		width: 40%;
  		display: inline-block;

  		@include breakpoint(small) {
  			display: block;
  			width: 100%;
  			text-align: center;
  			margin-left: 0;
  			margin-right: 0;
  		}
  	}
  	.bpointer, .npointer {
  		> a {
  			text-decoration: none;
  		}
  	}
  	.btitle {
  		font-family: _font(prose-family);
  		padding-right: 36px;
  		@include breakpoint(small) {
  			padding-right: 0;
  		}
  	}
  	.ntitle {
  		font-family: _font(prose-family);
  		padding-left: 32px;
  		@include breakpoint(small) {
  			padding-left: 0;
  		}
  	}
  }

  .nobullet { list-style-type: none; }

  .works_inprogress {
  	font-family: _font(prose-family);
  	width:100%;
  	text-align:center;
  	margin-bottom:16px;
  }

/* Video embeds
     http://embedresponsively.com
     https://github.com/jeffehobbs/embedresponsively
     MIT License
  */
  .embed-container {
    position: relative;
    padding-bottom: 56.25%;
		margin: 0 0 _size(element-margin) 0;
    height: 0;
    overflow: hidden;
    max-width: 100%;

    iframe, object, embed {
       position: absolute;
       top: 0;
       left: 0;
       width: 100%;
       height:100%;
     }
  }

{% if site.custom_extensions == 'yes' %}
{% include _my/custom.scss %}
{% endif %}
