/*
 * jasonmlarsen.com: the Current look.
 * Rebuilt by hand from the live Site's Monochrome Pro theme, keeping only the
 * rules the kept pages use, and the theme's breakpoints (1280, 1023, 782 px,
 * plus 481 px for the big headings; its 600 px rules were for parts this Site
 * doesn't have).
 */

/* Fonts (self-hosted, OFL: see the licence files beside them)
--------------------------------------------- */

@font-face {
	font-family: Mulish;
	font-style: normal;
	font-weight: 300 600;
	font-display: swap;
	src: url("/assets/fonts/mulish-latin.woff2") format("woff2");
}

@font-face {
	font-family: Mulish;
	font-style: italic;
	font-weight: 300 600;
	font-display: swap;
	src: url("/assets/fonts/mulish-italic-latin.woff2") format("woff2");
}

@font-face {
	font-family: "Open Sans Condensed";
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url("/assets/fonts/open-sans-condensed-300-latin.woff2") format("woff2");
}

/* Base
--------------------------------------------- */

html {
	box-sizing: border-box;
	-webkit-text-size-adjust: 100%;
}

*,
*::before,
*::after {
	box-sizing: inherit;
}

body {
	background-color: #fff;
	color: #000;
	font-family: Mulish, sans-serif;
	font-size: 18px;
	font-weight: 300;
	line-height: 1.875;
	margin: 0;
	overflow-x: hidden;
	/* Short pages push the footer to the bottom of the window, as the live Site did. */
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
}

a {
	color: #06c;
	text-decoration: none;
	transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

a:hover,
a:focus {
	color: #000;
}

:focus-visible {
	outline: 2px solid #06c;
	outline-offset: 2px;
}

p {
	margin: 0 0 28px;
	padding: 0;
}

b,
strong {
	font-weight: 600;
}

img {
	border-style: none;
	height: auto;
	max-width: 100%;
}

figure {
	margin: 0;
}

hr {
	border: 0;
	border-top: 1px solid currentColor;
	clear: both;
	color: #eee;
	margin: 1em 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-weight: 500;
	line-height: 1.2;
	margin: 0 0 10px;
}

h1 { font-size: 36px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

/* Read by screen readers only. The live Site shows only the logo, so its title is here too. */
.site-title,
.skip-link {
	border: 0;
	clip: rect(0, 0, 0, 0);
	height: 1px;
	overflow: hidden;
	position: absolute !important;
	white-space: nowrap;
	width: 1px;
}

.skip-link:focus {
	background-color: #fff;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto;
	color: #000;
	font-weight: 600;
	height: auto;
	left: 10px;
	padding: 15px 23px 14px;
	top: 10px;
	width: auto;
	z-index: 100000;
}

/* Buttons: black, lightened on hover, as the live Site's block buttons are.
--------------------------------------------- */

.buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
}

.button {
	background-color: #000;
	border: 0;
	border-radius: 5px;
	color: #fff;
	cursor: pointer;
	display: inline-block;
	font-family: "Open Sans Condensed", sans-serif;
	font-size: 14px;
	font-weight: 300;
	padding: 12px 20px;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	white-space: normal;
}

.button:hover,
.button:focus {
	box-shadow: inset 0 0 200px rgba(230, 230, 230, 0.25);
	color: #fff;
}

/* Site header
--------------------------------------------- */

.site-header {
	background-color: #fff;
	border-bottom: 1px solid transparent;
	min-height: 80px;
	padding: 10px 40px;
	position: sticky;
	top: 0;
	width: 100%;
	z-index: 9999;
}

.site-header .wrap {
	align-items: flex-start;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

.title-area {
	height: 50px;
	margin-top: 5px;
}

.custom-logo-link {
	display: block;
}

.custom-logo {
	display: block;
	height: 50px;
	width: auto;
}


/* Menu
--------------------------------------------- */

.nav-primary {
	margin-top: 2px;
}

.menu {
	line-height: 1;
	list-style: none;
	margin: 0;
	padding: 0;
}

.menu li {
	display: inline-block;
}

.menu a {
	color: #000;
	display: block;
	font-family: Mulish, sans-serif;
	font-size: 15px;
	font-weight: 400;
	padding: 20px 10px;
}

.menu a:hover,
.menu a:focus,
.menu a[aria-current="page"] {
	color: #06c;
}

/* Shown only below 1024 px, and only when the menu script runs. */
.menu-toggle {
	display: none;
}

/* Content
--------------------------------------------- */

.site-inner {
	clear: both;
	flex: 1 0 auto;
	margin: 100px auto 0;
	width: 100%;
	max-width: 1200px;
	overflow-wrap: break-word;
}

.content {
	margin: 0 auto 100px;
	width: 680px;
}

/* Pages without a heading at the top, such as the home page and the About page, start right under the header. */
.title-hidden .site-inner {
	margin-top: 0;
}

/* Contains floats and keeps the last paragraph's margin inside, as the theme did. */
.entry-content::after {
	clear: both;
	content: "";
	display: table;
}

/* A page's own heading, with the short rule under it. */
.entry-content h1 {
	font-size: 42px;
	font-weight: 600;
	letter-spacing: -0.5px;
	margin-bottom: 0;
}

.entry-content h1::after {
	border-bottom: 1px solid #000;
	content: "";
	display: block;
	margin-bottom: 40px;
	padding-bottom: 40px;
	width: 2.5%;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin-bottom: 20px;
	margin-top: 40px;
}

.entry-content ol,
.entry-content ul {
	margin: 0 0 30px;
	padding-left: 40px;
}

.entry-content ol > li {
	list-style-type: decimal;
}

.entry-content ul > li {
	list-style-type: disc;
}

.entry-content ul ul > li {
	list-style-type: circle;
}

.entry-content ol ol,
.entry-content ul ul {
	margin-bottom: 0;
}

/* An image the text wraps around, such as the About page's photo, spaced as the live Site's image blocks. */
.entry-content .alignleft {
	float: left;
	margin: 0.5em 2em 0.5em 0;
}

.entry-content .alignleft img {
	vertical-align: bottom;
}

/* Column rows: side by side from 783 px, one column below, image first.
--------------------------------------------- */

.columns {
	display: flex;
	gap: 2em;
	margin-bottom: 30px;
}

.column {
	flex: 1 1 0;
	min-width: 0;
}

/* Smaller text in a column row, as on the home page. */
.small-text p,
.small-text li {
	font-size: 14px;
}

/* Bands. Their padding is a share of the content column's width, as the theme's was.
--------------------------------------------- */

.band {
	margin-left: calc(-100vw / 2 + 100% / 2);
	margin-right: calc(-100vw / 2 + 100% / 2);
	max-width: 100vw;
	padding: 10% 8%;
}

.band-inner {
	margin: 0 auto;
	max-width: 1200px;
}

.band-dark {
	background-color: #242424;
	color: #fff;
	padding-bottom: 16%;
	padding-top: 16%;
}

.band h3 {
	font-size: 16px;
	letter-spacing: -0.5px;
	margin-bottom: 10px;
	text-transform: uppercase;
}

.band hr {
	border: 0;
	border-bottom: 1px solid currentColor;
	color: #222;
	margin: 2.2em 0 2em;
	max-width: 3.5%;
}

/* The big, heavy headings on the home page. */
.entry-content .bold-heading {
	font-family: "Helvetica Neue", sans-serif;
	font-size: 48px;
	font-weight: 900;
	letter-spacing: -1px;
	line-height: 1;
	margin-bottom: 10px;
}

.entry-content h1.bold-heading {
	font-size: 60px;
	margin-top: 0;
}

.entry-content h1.bold-heading::after {
	content: none;
}

/* The home page's photo and intro. Both rows of the theme's nested columns are
   kept as one, so the row's bottom margin is doubled to keep the band's height. */
.hero {
	margin-bottom: 60px;
}

.hero-photo {
	flex: 0 1 15%;
}

.hero-photo img {
	display: block;
	margin-bottom: 1.2em;
}

.hero-text {
	flex: 0 1 85%;
}

.hero-text p {
	margin-bottom: 0;
}

/* Site footer
--------------------------------------------- */

.site-footer {
	background-color: #000;
	color: #fff;
	font-size: 13px;
	line-height: 1;
	padding: 40px 0;
	text-align: center;
}

.site-footer p {
	border-bottom: 1px solid transparent;
	margin-bottom: 0;
}

.site-footer a {
	border-bottom: 1px solid transparent;
	color: #fff;
	padding-bottom: 2px;
}

.site-footer a:hover,
.site-footer a:focus {
	border-bottom-color: currentColor;
	color: #ccc;
}

.footer-logo-link {
	border-bottom-width: 0;
	padding-bottom: 0;
	display: inline-block;
	height: 50px;
	margin-bottom: 10px;
}

.footer-logo {
	height: 50px;
	width: auto;
}

/* Breakpoints
---------------------------------------------------------------------------- */

@media only screen and (min-width: 1023px) {

	.hero-text h1,
	.hero-text p {
		padding-right: 60%;
	}

}

@media only screen and (max-width: 1280px) {

	.site-inner {
		max-width: 960px;
	}

}

@media only screen and (max-width: 1023px) {

	.site-inner {
		max-width: 720px;
	}

	.content {
		width: 100%;
	}

	.site-header {
		padding-left: 20px;
		padding-right: 20px;
	}

	.js .menu-toggle {
		align-items: center;
		background: transparent;
		border: 0;
		color: #000;
		cursor: pointer;
		display: flex;
		font: 400 15px/21px Mulish, sans-serif;
		letter-spacing: 1px;
		padding: 20px 0;
		text-transform: uppercase;
	}

	.js .menu-toggle:hover,
	.js .menu-toggle:focus {
		color: #06c;
	}

	.menu-toggle svg {
		height: 20px;
		margin-right: 5px;
		width: 20px;
	}

	.js .nav-primary {
		display: none;
		flex-basis: 100%;
	}

	.js .menu-toggle[aria-expanded="true"] + .nav-primary {
		display: block;
	}

	.js .menu li {
		display: block;
	}

	.js .menu a {
		margin-bottom: 1px;
		padding: 15px 20px;
	}

}

@media only screen and (max-width: 782px) {

	.site-inner {
		max-width: 100%;
		padding-left: 5%;
		padding-right: 5%;
	}

	.site-header {
		box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
	}

	.entry-content h1 {
		font-size: 36px;
	}

	.columns {
		flex-wrap: wrap;
	}

	.column {
		flex-basis: 100%;
	}

	.column:has(img) {
		order: -1;
	}

	.hero-photo,
	.hero-text {
		flex-basis: 100%;
	}

}

@media only screen and (max-width: 481px) {

	.entry-content .bold-heading,
	.entry-content h1.bold-heading {
		font-size: 40px;
	}

}
