/*! HTML5 Boilerplate v6.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: #2e334a;
	font-family: 'Mulish', sans-serif;
	font-size: 1em;
	line-height: 1.6;
}

/*
 * 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,
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
   ========================================================================== */
html {
	scroll-behavior: smooth;
}
.wrapper {
	margin: 0 auto;
	max-width: 1800px;
}
.side-gutters--standard {
	padding: 0 16px;
}

h1,
h2,
h3,
.text--heading,
a {
	color: #f16635;
	font-family: 'Ovo', serif;
	font-weight: normal;
}
h1 {
	font-size: 2.15em;
}
h2 {
	line-height: 1.2;
}
.text--standard {
	font-family: 'Mulish', sans-serif;
}
img {
	width: 100%;
}

a {
	border-bottom: 1px solid transparent;
	padding-bottom: 3px;
	transition: border-bottom 0.5s ease;
}
a:hover,
a:focus {
	border-bottom: 1px solid #f16635;
	outline: none;
}

ul {
	padding-left: 18px;
}
li {
	margin-bottom: 0.7em;
}
.list--style-none {
	padding: 0;
}
.list--style-none > li {
	display: block;
	float: left;
	list-style: none;
	margin: 0;
}
.list--grid {
	display: grid;
	grid-gap: 16px;
	grid-template-columns: repeat(auto-fill, 4em);
	justify-content: center;
	justify-items: center;
	margin: 1.5em 0;
}
.gray--dark {
	color: rgba(46, 51, 74, 0.35);
}
.gray--light {
	color: rgba(46, 51, 74, 0.55);
}

/* PROFILE GRID*/
header {
	display: grid;
	grid-template-columns: auto;
	grid-template-rows: auto 100px auto auto;
	grid-template-areas:
		'top'
		'middle'
		'bottom'
		'.';
	place-items: stretch;
}
.profile__pic {
	grid-area: top;
}
.profile__name {
	align-self: center;
	grid-area: middle;
}
.profile__name h1,
.profile__name h2 {
	margin: 0;
}
.profile__bio {
	grid-area: bottom;
}
.profile__bio p {
	margin-top: 0;
}

.skill-group {
    margin-bottom: 24px;
}

.skill-group h3 {
    margin-bottom: 8px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag, .tech-tag {
    background-color: rgba(46, 51, 74, 0.15);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.tech-tag {
	padding: 4px 8px;
}

.contact-links li,
.top-link__wrapper {
	border: 2px solid rgba(46, 51, 74, 0.35);
	border-radius: 50%;
	margin: 0;
	overflow: hidden;
}
.contact-links li:last-child {
	margin-right: 0;
}
.contact-links a,
.top-link {
	background-color: rgba(46, 51, 74, 0.01);
	border: none;
	display: block;
	height: 2em;
	padding: 12px;
	text-align: center;
	transition: background-color 0.5s ease;
	width: 2em;
}
.contact-links a:hover,
.contact-links a:focus,
.top-link:hover,
.top-link:focus {
	background-color: rgba(46, 51, 74, 0.15);
	outline: none;
}
.contact-links i {
	font-size: 2em;
}

/* PROJECTS */
.project {
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	grid-template-rows: repeat(3, auto);
}
.project h1 {
	font-size: 2em;
	line-height: 1.2;
	margin-bottom: 0;
}
.project h2 {
	margin-top: 16px;
}
.project h3 {
	font-size: 1em;
	line-height: 1;
	margin: 0;
	opacity: 75%;
}
.project .tech-stack {
    display: block;
    padding-left: 0;
    list-style-type: none;
}
.project .tech-tag {
	background-color: rgba(241,102,53,0.15);
	display: inline-block;
}
.project__footer {
	align-self: center;
	grid-column: span 2;
	justify-self: center;

	color: rgba(46, 51, 74, 0.55);
	font-family: 'Ovo', serif;
	font-size: 0.86em;
	font-weight: normal;
	grid-column: 1;
	margin-bottom: 24px;
}
.project:last-child .project__footer {
	margin-bottom: 4px;
}
.project__footer ul {
	display: inline-block;
}
.project__footer li {
	padding: 0 8px;
}
.project__footer li:not(:last-child) {
	border-right: 2px solid rgba(46, 51, 74, 0.35);
}
.project__footer a {
	text-decoration: none;
}

/* SITE FOOTER */
.top-link__wrapper {
	height: 2.5em;
	margin: 0 auto;
	position: relative;
	width: 2.5em;
}
.top-link {
	height: 100%;
	padding: 0;
	width: 100%;
}
.top-link__icon {
	font-size: 2em;
	position: absolute;
	left: 0;
	right: 0;
	margin: auto;
	text-align: center;
	top: 5px;
}
.top-link__text {
	font-size: 0.82em;
	left: 1px;
	margin: auto;
	position: absolute;
	right: 0;
	text-align: center;
	top: 1.1em;
}
.top-link__wrapper,
.top-link__icon,
.top-link__text {
	transition: 0.5s ease;
}
.site__footer p {
	font-size: 0.8em;
	text-align: center;
}

@media screen and (min-width: 768px) {
	header {
		align-content: start;
		grid-template-rows: 80px auto auto;

		height: calc(100vh - 40px);
		left: 0;
		max-width: 33.333%;
		position: fixed;
		overflow: auto;
		top: 0;
	}

	.profile__pic {
		grid-area: middle;
		border: 2px solid rgba(46, 51, 74, 0.35);
		margin: 0 16px 24px;
		padding: 16px;
	}
	.profile__pic,
	.profile__pic img {
		border-radius: 2px;
	}
	.profile__name {
		grid-area: top;
	}
	.profile__name h1 {
		font-size: 2em;
		margin: 0;
	}
	.profile__bio p {
		font-size: 0.9em;
	}

	main {
		float: right;
		max-width: calc(
			66.667% - 16px
		); /*extra space for sidebar scrollbar when needed */
	}
	.projects__header {
		height: 80px;
		line-height: 3.4;
		margin: 0;
		padding-left: 0;
	}
	.project {
		grid-template-columns: span 1;
		grid-template-rows: auto auto auto;
		grid-template-areas:
			'picture'
			'description'
			'proj-foot';
	}
	picture,
	.video-wrapper {
		grid-area: picture;
	}
	.project__desc {
		grid-area: description;
	}
	.project__footer {
		grid-area: proj-foot;
	}

	.site__footer {
		bottom: 0;
		left: 0;
		position: fixed;
	}
	.top-link__wrapper {
		bottom: 16px;
		-webkit-box-shadow: 0px 0px 8px -2px rgba(46, 51, 74, 1);
		-moz-box-shadow: 0px 0px 8px -2px rgba(46, 51, 74, 1);
		box-shadow: 0px 0px 8px -2px rgba(46, 51, 74, 1);
		position: fixed;
		right: 16px;
	}
	.top-link {
		background-color: rgba(252, 253, 253, 0.9);
	}
}

@media screen and (min-width: 1200px) {
	.side-gutters--standard {
		padding: 0 32px;
	}
	header {
		left: auto;
		max-width: 20%;
		width: 360px;
	}
	.profile__name h1 {
		line-height: 1;
	}
	.profile__pic {
		margin: 0 32px 32px;
	}
	.profile__pic,
	.contact-links li,
	.project__footer li:not(:last-child) {
		border-width: 1px;
	}
	main {
		max-width: calc(80% - 16px);
	}
	.projects__header {
		padding-left: 0;
	}
	.project {
		grid-auto-flow: column;
		grid-template-columns: repeat(3, 1fr);
		grid-template-rows: auto auto auto;
		grid-template-areas:
			'picture picture description'
			'proj-foot proj-foot description'
			'. . description';
	}
	picture {
		grid-area: picture;
	}
	.project__desc {
		grid-area: description;
		margin-bottom: 24px;
	}
	.project:last-child .project__desc {
		margin-bottom: 72px;
	}
	.project h1 {
		line-height: 1;
		margin: -4px 0 0;
	}
	.project h3 {
		margin-top: 8px;
	}
	.project__footer {
		grid-area: proj-foot;
	}
	.project__footer ul {
		margin-top: 24px;
	}

	.site__footer {
		left: auto;
	}
	.top-link__wrapper {
		border-width: 1px;
		transform: translate(-16px, -16px);
	}
}

@media screen and (min-width: 1910px) {
	.top-link__wrapper {
		bottom: 2em;
		height: 3.4em;
		right: 2em;
		width: 3.4em;
	}
	.top-link__icon {
		font-size: 3em;
		top: 0.14em;
	}
	.top-link__text {
		font-size: 1em;
		top: 1.45em;
	}
}

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

.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;
}

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