@import "normalize.css";
@import "base.css";
@import "type.css";
@import "components.css";
@import "layout.css";

.page-main {
/*	display: flex;
	flex-grow: 1;
	justify-content: center;*/
}


/* Header */

.site-header {
	padding: clamp(1rem, 5vw, 2.5rem) 0;
	background: var(--colorWhite);
	border-top: 0.5rem solid var(--colorIndigo);

	.cols {
		justify-content: space-between;
		align-items: center;
	}

	[class*="col-"] {
		padding-top: 0;
		padding-bottom: 0;
	}

}

.header-logo {
	padding-right: 0;

	img {
		width: 100%;
		max-width: 13.5rem;
	}

}

.site-nav {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	/*flex: 0 0 0;*/
	justify-content: space-between;
	padding-top: 0;
	padding-bottom: 0;

	.site-nav-mobile-toggle {
		width: auto;
		padding: 0.625em 1em 0.6875em 1.5em;

		&::before,
		&:hover::before {
			/*margin-left: 1.25em;*/
			width: 1.25em;
			height: 1.25em;
			margin-left: 0.5em;
			background: none;
			font-size: 1.25em;
			line-height: 1.25em;
		}

	}

	.site-nav-list {
		display: none;
		position: absolute;
		z-index: 1;
		top: 100%;
		width: clamp(16rem, 50vw, 20rem);
    border-radius: 1rem;
		background: white;
		border: 1px solid var(--colorNeutralMid);
		align-items: center;
		margin: 0.5rem 0 0 0;
    padding: 0.5rem;
		font-family: var(--fontBody);
		font-size: clamp(1.0625rem, 1.89vw, 1.25rem);
		font-weight: 400;

		li {
			position: relative;
			display: block;
			flex: 0 0 auto;
			margin: 0 0 -1px;

			&:first-child a::before {
				display: none;
			}

			a,
			button {
				position: relative;
				display: block;
				width: 100%;
				padding: 0.625em 2em 0.6875em;
				background: transparent;
				border: 0;
				border-radius: 0.5rem;
				font-family: var(--fontBody);
				font-weight: 400;
				text-align: center;
				text-decoration: none;
				color: var(--colorControlPrimary);

				&::before {
					content: "";
					position: absolute;
					top: 0;
					left: 0;
					right: 0;
					display: block;
					width: calc(100% - 4em);
					height: 1px;
					margin: 0 auto;
					background: var(--colorNeutralLight);
				}

				&:hover {
					z-index: 5;
					background: var(--colorNeutralLighter);
					color: var(--colorControlSecondary);

					&::before {
						background: transparent;
					}

				}

			}

			&.current {
				z-index: 10;

				a {
					z-index: 10;
					background: var(--colorControlSecondary);
					color: var(--colorWhite);

					&::before {
						background: transparent;
					}

				}

			}

		}

	}

}

@media (min-width: 56.25rem) {


	.site-nav {

		.site-nav-mobile-toggle {
			display: none;
		}

		.site-nav-list {
			display: flex;
			position: static;
			background: transparent;
			width: auto;
			margin: 0;
			padding: 0;
			border: 0;
			border-radius: 0;
			font-family: var(--fontDisplay);
			font-size: clamp(1.25rem, 2.22vw, 1.5rem);

			li {
				margin: 0;

				&.current {
					margin: 0 clamp(0.5em, 1vw, 0.75em);
				}

				a,
				button {
					width: auto;
					padding: 0.625em clamp(1em, 2vw, 1.5em) 0.6875em;
					border-radius: 2em;

					&::before {
						display: none;
					}

				}

			}

		}

	}

}


/* Footer */

.site-footer {
	border-top: 0.125rem solid var(--colorIndigo);
	box-shadow: 0 0.75rem 0 0 inset var(--colorNeutralLight);
	background: var(--colorBackgroundAlternate);

	p {
		font-size: clamp(0.9375rem, 1.67vw, 1.0625rem);
	}

	a {
		color: var(--colorIndigo);
	}

}

.site-footer-content {
	padding: clamp(1rem, 5vw, 2.5rem) 0;
}

.site-footer-heading {
	font-size: clamp(1.375rem, 2.44vw, 1.6875rem);
	line-height: 1.3;
	color: var(--colorDisplaySecondary);
}

.badge {
	display: flex;
	justify-content: center;
	margin: 0 0 1rem;

	img {
		display: block;
		width: 0;
		flex: 1;
		max-width: 6.25rem;
		margin: 0 0.5rem;
	}

}

.site-footer-heading {
	margin: 0 0 1.25rem;
}

.site-footer-info {
	margin: 0;
	font-style: normal;
}

.connect-links {
	/*display: flex;
	gap: 2em;*/
	margin: 0 ;
	padding: 0;
	font-size: clamp(1.125rem, 2vw, 1.375rem);
	line-height: 1.2;

	li {
		display: block;
		margin: 0 0 1.5rem;

		a {
			display: inline-flex;
			gap: 0.5em;
			align-items: center;
			text-decoration: none;
		}

		a:hover {
			color: var(--colorPurple);
		}

		a::before {
			content: "";
			flex-shrink: 0;
			display: block;
			width: 2em;
			height: 2em;
			background: var(--colorLink);
			/*border: 2px solid var(--colorLink);*/
			border-radius: 50%;
			font-family: var(--fontIcons);
			line-height: 2em;
			text-align: center;
			color: var(--colorWhite);
			/*color: var(--colorLink);*/
			transition: all 0.125s linear;
		}

		&.connect-email a::before {
			content: var(--iconSend) / "";
			padding: 2px 2px 0 0;
		}

		&.connect-linkedin a::before {
			content: var(--iconUserPlus) / "";
		}

		&.connect-resume a::before {
			content: var(--iconDoc) / "";
		}

		a:hover::before {
			background: var(--colorPurple);
			/*border-color: var(--colorPurple);
			color: var(--colorPurple);*/
		}

	}

}


/* Landing Page */

.landing-page {
/*	display: flex;
	flex-direction: column;
	min-height: 100%;
*/
	.page-main {
/*		flex-grow: 1;
		display: flex;
		flex-direction: column;
*/	}

	.landing-header {
		display: flex;
		align-items: center;
		justify-content: center;
		padding: clamp(1rem, 5vw, 2.5rem) 5%;
		background: var(--colorWhite);
		border-top: 0.5rem solid var(--colorIndigo);

		.header-logo {
			margin: 0;
			font-size: 1rem;
			line-height: 1;

			img {
				max-width: 16rem;
			}

		}

	}

	.landing-main {
		/*display: flex;*/
		padding: 0;

		.landing-content {
			padding: 2rem 0 0 0;
			flex-direction: row-reverse;

			&, & [class^="col"] {
				padding-bottom: 0;
			}

			.home-text {
				margin-bottom: 2rem;
			}

			.landing-img {
				align-self: flex-end;
			}

			.landing-img-inner {
				width: 100%;
				max-width: 25rem;
				margin: auto;
			}

		}

		.home-h1 {
			position: relative;
		}

		.home-h1-static {
			display: block;
		}

		.home-h1-next,
		.home-h1-current {
			position: absolute;
			left: 0;
			display: inline-block;
			color: var(--colorDisplaySecondary);
		}

		.home-h1-control {
			position: absolute;
			bottom: 0.25em;
			right: 0;
			text-indent: -9999px;
			width: 1em;
			height: 1em;
			padding: 0;
			background: none;
			border-radius: 50%;
			color: var(--colorNeutralMid);
			font-size: clamp(1.6875rem, 3vw, 2rem);
			line-height: 1em;
			transition: none;

			&::after {
				content: var(--iconPause);
				text-indent: 0;
				position: absolute;
				top: 0;
				left: 0;
				right: 0;
				bottom: 0;
				display: block;
				height: 1em;
				margin: auto;
				font-family: var(--fontIcons);
			}

			.paused &::after {
				content: var(--iconPlay);
				color: var(--colorControlPrimary);
			}

		}

	}

}


/* Home Page */

.home-work-items {

	.home-work-item {
		display: flex;
		flex-direction: column;
		max-width: 32rem;
		margin-left: auto;
		margin-right: auto;
		padding-top: 0;
		overflow: hidden;
		/*padding: 5%;*/
	}

	.home-work-item-title {
		margin: 0;
	}

	.home-work-item-img {
		order: -1;
		/*width: clamp(0rem, 75%, 14rem);
		padding-top: clamp(0rem, 75%, 14rem);
		margin: 0 auto 2rem auto;*/
		width: clamp(0rem, 100%, 22rem);
		padding-top: clamp(0rem, 100%, 22rem);
		margin: -4rem auto 2rem auto;
		background: var(--colorNeutralLight);
		border-radius: 50%;
	}

}


/* Blog */

.blog-feed {

	.blog-sidebar {
		padding-top: clamp(1.5rem, 3.5vw, 3rem);
		padding-bottom: clamp(1.5rem, 3.5vw, 3rem);

		.blog-sidebar-menu-toggle {
			margin: 0;
		}

		.blog-sidebar-menu {
			display: none;

			ul {
				margin: 0;
				padding: 1rem 1.5rem 0;
			}

			li {
				margin: 0;
			}

			a {
				display: inline-block;
				padding: 0.5rem 0;
				text-decoration: none;

				&::before {
					content: var(--iconFolder);
					position: relative;
					top: 0.125em;
					margin: 0 0.325em 0 0;
					font-family: var(--fontIcons);
					font-size: 1.25em;
				}

			}

		}

	}

	.blog-post {
		/*padding: clamp(1.5rem, 3.5vw, 3rem) 0;
		border-bottom: 1px solid var(--colorNeutralMidLight);*/
		position: relative;
		margin: -1px 0 0 0;
		transition: all 0.25s ease-in-out;

		&::after {
			content: "";
			position: absolute;
			left: clamp(1rem, 3.5%, 2.5rem);
			right: clamp(1rem, 3.5%, 2.5rem);
			bottom: -1px;
			height: 1px;
			margin: auto;
			background: var(--colorNeutralMidLight);
		}

		&:last-child::after {
			display: none;
		}

		&:not(:hover) {
			border-color: transparent;
			box-shadow: none;
		}

		&:hover {
			z-index: 10;

			.blog-post-title a {
				color: var(--colorPurple);
			}

		}

		.blog-post-title {
			font-size: clamp(1.875rem, 2.25vw, 2.5rem);

			a {
				text-decoration: none;
			}

		}

		.blog-post-date {
			font-size: clamp(0.875rem, 1.25vw, 1rem);
			text-transform: uppercase;
			font-weight: bold;
		}

	}

}

@media (min-width: 56.25rem) {

	.blog-feed {

		.blog-sidebar {

			.blog-sidebar-menu {
				display: block;

				ul {
					padding: 0;
				}

			}

		}

	}

}

.blog-post-header {

	.blog-post-title {
		font-size: clamp(2.25rem, 3.25vw, 3.25rem);
		font-weight: 400;
	}

}

.long-form {

	p, ul, ol {
		line-height: 1.75;
	}

}


/* Speaking and writing */
