:root {
	--max-width: 60rem;
	--highlight: #FFD74A;
	--section-highlight: #EBEEF2;
	--border-color: #ededed;
	--border-radius: 0.3125em;
	--brand-blue: #2F4866;
	--brand-blue-dark: hsl(213 37% 20% / 1);
	--box-background: var(--section-highlight);
}

@font-face {
	font-family: 'Noto Serif';
	src: url('/assets/fonts/NotoSerif-Regular.ttf') format('truetype');
	font-weight: 400;
	font-display: swap;
	font-style: normal;
}

@font-face {
	font-family: 'Noto Serif';
	src: url('/assets/fonts/NotoSerif-Medium.ttf') format('truetype');
	font-weight: 500;
	font-display: swap;
	font-style: normal;
}

@font-face {
	font-family: 'Nunito Sans';
	src: url('/assets/fonts/NunitoSans-VariableFont.ttf') format('truetype');
	font-weight: 100 800;
	font-display: swap;
	font-style: normal;
}

html {
	font-family: 'Nunito Sans', Helvetica, Arial, sans-serif;
	color: var(--brand-blue);
	line-height: 1.5;
	font-weight: 550;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

a {
	padding: 0.125em;
	color: var(--brand-blue);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 0.25rem;
	border: 0.125rem solid transparent;
}

a:hover {
	color: #9d3615;
}

footer a:hover {
	color: #782910;
}

a:focus {
	text-decoration: none;
	border-radius: var(--border-radius);
	border: 0.125rem solid var(--brand-blue);
	outline: 0;
}

.masthead {
	position: sticky;
	top: 0;
	padding-bottom: 0.3125rem;
	border-bottom: 2px solid var(--border-color);
	background-color: #fff;
	z-index: 10;
}

.main-menu {
	padding: 2rem 1rem 1rem;
	display: grid;
	grid-template-rows: auto 1fr;
	grid-gap: 1rem;
	background-color: var(--brand-blue);
}

@media(min-width: 50em) {
	.main-menu {
		grid-template-columns: auto 1fr;
		grid-gap: 1rem;
		border-top: 0.3125rem solid var(--highlight);
	}
}

.menu-group {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
}

.main-menu button {
	margin-top: -0.35rem;
	margin-left: auto;
	padding: 0.5rem;
	display: block;
	width: fit-content;
	max-width: 8ch;
	outline: none;
	border: none;
	color: var(--brand-blue);
	background-color: #fff;
	border-radius: var(--border-radius);
	border: 0.125rem solid #fff;
}

.main-menu button:focus {
	border: 0.125rem solid var(--highlight);
}

.main-menu ul {
	list-style: none;
}

.nav-items {
	display: none;
}

.main-menu li {
	margin-bottom: 0.5rem;
	padding-bottom: 0.5rem;
	display: block;
	border-bottom: 1px solid #ffffff50;
}

.main-menu li:last-of-type {
	border: none;
}

@media(min-width: 50em) {
	.main-menu ul {
		margin-left: auto;
		display: block;
	}

	.main-menu li {
		margin-right: 0.75rem;
		margin-bottom: 0;
		padding-bottom: 0;
		display: inline;
		border: none;
	}

	.main-menu li:last-of-type {
		margin-right: 0;
	}

	.main-menu button {
		display: none;
	}
}

.menu-group a {
	text-transform: uppercase;
}

.main-menu a {
	color: #fff;
	text-decoration: none;
}

.main-menu a:hover {
	color: var(--highlight);
}

.main-menu a:focus {
	border: 2px solid var(--highlight);
}

.main-menu a::after {
	content: '';
}

h1 {
	font-family: 'Noto Serif', serif;
	font-size: 2.5rem;
	font-weight: 500;
	line-height: 1.3;
	color: var(--brand-blue-dark);
}

h2 {
	font-family: 'Noto Serif', serif;
	font-size: 2rem;
	font-weight: 500;
	line-height: 1.3;
	color: var(--brand-blue-dark);
}

h3 {
	font-size: 1.35rem;
	line-height: 1.3;
	text-transform: uppercase;
	color: var(--brand-blue-dark);
}

@media(min-width: 90em) {
	h3 {
		font-size: 1.35rem;
	}
}

.content-box h3 {
	margin-top: 0;
}

@media(min-width: 37.5em) {
	h2 {
		font-size: 2rem;
	}
}

@media(min-width: 90em) {
	h2 {
		font-size: 2.5rem;
	}
}

@media(min-width: 50em) {
	h1 {
		font-size: 2.5rem;
	}
}

@media(min-width: 90em) {
	h1 {
		font-size: 3rem;
	}
}

@media(max-width: 350px) {
	h1, h2, h3 {
		word-break: break-all;
	}
}

.centered {
	text-align: center;
}

.page-wrapper {
	margin: auto;
	max-width: var(--max-width);
}

.highlight {
	position: relative;
	display: inline-block;
	z-index: 1;
}

.highlight::after {
	position: absolute;
	left: 0;
	content: '';
	display: block;
	height: 0.35em;
	background-color: var(--highlight);
	width: calc(100%);
	margin-left: 0.25em;
	bottom: 0.1em;
	z-index: -1;
}

.intro {
	padding: 1rem;
	display: grid;
	grid-column-gap: 2rem;
}

@media(min-width: 50em) {
	.intro {
		grid-column-gap: 4rem;
	}
}

.intro .headline {
	grid-area: 1 / 1 / 2 / 2;
}

@media(min-width: 37.5em) {
	.intro .headline {
		grid-area: 1 / 1 / 2 / 2;
	}
}

.intro h1 {
	text-align: right;
}

.intro .description {
	padding-top: 1rem;
	grid-area: 3 / 1 / 4 / 2;
	display: flex;
	flex-direction: column;
	align-items: start;
	justify-content: center;
	font-size: 1.125rem;
	font-weight: 550;
}

@media(min-width: 50em) {
	.intro .description {
		font-size: 1.125rem;
	}
}

@media(min-width: 90em) {
	.intro .description {
		font-size: 1.25rem;
	}
}

.intro .media {
	grid-area: 2 / 1 / 3 / 2;
	display: flex;
	justify-content: flex-end;
	align-items: flex-start;
}

@media(min-width: 37.5em) {
	.intro h1 {
		padding: 1rem;
	}

	.intro .description {
		grid-area: 1 / 2 / 3 / 3;
	}

	.intro .media {
		margin-right: -1rem;
		margin-left: -1rem;
		grid-area: 2 / 1 / 3 / 2;
	}
}

@media(min-width: 37.5em) {
	.intro .media img {
		max-width: 350px;
	}
}

.cta {
	margin: 0.5rem 0;
	padding: 0.5rem 1rem;
	display: inline-block;
	color: #fff;
	text-decoration: none;
	border-radius: var(--border-radius);
	border: 0.125rem solid var(--brand-blue);
	background-color: var(--brand-blue);
	transition: background-color 150ms ease-in, color 300ms;
}

.cta:hover {
	color: var(--brand-blue);
	background-color: #fff;
}

.cta:focus {
	color: #fff;
	border-color: var(--highlight);
	background-color: var(--brand-blue);
}

.cta::after {
	content: ' ➔';
}

.cta[href^='https']::after {
	display: inline-block;
	content: ' ➔';
	rotate: -45deg;
}

.grid-dual {
	display: grid;
	grid-template-columns: 1fr;
}

@media(min-width: 37.5em) {
	.grid-dual {
		grid-template-columns: 1fr 1fr;
		grid-gap: 3rem;
	}
}

.grid-dual-offset {
	display: grid;
	grid-template-columns: 1fr;
}

@media(min-width: 37.5em) {
	.grid-dual-offset {
		grid-template-columns: 1fr 1.6fr;
		grid-gap: 3rem;
	}
}

.grid-dual-offset .media {
	display: flex;
	align-items: center;
}

.grid-triple {
	display: grid;
	grid-gap: 2rem;
}

@media(min-width: 37.5em) {
	.grid-triple {
		grid-template-columns: 1fr 1fr 1fr;
	}
}

.section-default {
	margin: 3rem auto;
	padding: 0 1rem;
	max-width: var(--max-width);
	scroll-margin-top: 120px;
}

@media(min-width: 50em) {
	.section-default {
		scroll-margin-top: 130px;
	}
}

.section-highlight {
	padding: 4rem 0;
	background-color: var(--section-highlight);
	scroll-margin-top: 100px;
}

.section-narrow {
	margin: 0 auto 5rem;
	padding: 0 1rem;
	max-width: 50em;
}

.section-highlight > .section-default {
	margin: 0 auto 1rem;
}

.section-centered {
	margin-top: 3rem;
	max-width: 40rem;
}

@media(min-width: 90em) {
	.section-centered {
		margin-top: 4rem;
	}
}

.section-centered h2 {
	text-align: center;
}

.content-box {
	margin: 0 auto 3rem;
	padding: 2rem;
	border-radius: var(--border-radius);
	border: 0.125em solid var(--border-color);
}

.content-box .media img {
	margin: auto;
}

@media(min-width: 300px) {
	.content-box .media img {
		max-width: 200px;
	}
}

.card {
	margin-top: 4rem;
	padding: 1rem 2rem 2rem;
	border-radius: var(--border-radius);
	border: 0.125em solid transparent;
	background-color: var(--box-background);
}

.card .media {
	margin-top: -4rem;
}

.card .media img {
	margin: auto;
	max-height: 300px;
	border-radius: 0.3125rem;
	border: 1rem solid var(--box-background);
}

.card:nth-child(odd) .media {
	rotate: -8deg;
}

.card:nth-child(even) .media {
	rotate: 2.5deg;
}

#s5.section-centered {
	max-width: var(--max-width);
}

#s5 .centered {
	margin-bottom: 1.25rem;
}

#s5 .media img {
	margin: auto;
}

@media(min-width: 320px) {
	#s5 .media img {
		max-width: 300px;
	}
}

.site-footer {
	padding: 2rem 0;
	outline-offset: 0.3125rem;
	outline: 2px solid var(--border-color);
	background-color: var(--highlight);
}

ul, ol {
	list-style-position: inside;
}

.linkedin {
	display: block;
	width: fit-content;
	text-decoration: none;
}

.linkedin:focus {
	border: 0.125rem solid var(--brand-blue);
}

.linkedin img {
	margin-top: -1px;
	width: 2rem;
}

@media(min-width: 40em) {
	figure {
		margin: 1rem 2rem;
	}
}

figure img {
	margin: auto;
}

figure a {
	border: none;
}

@media(max-width: 40em) {
	figure.xsmall img {
		max-width: 180px;
	}

	figure.small img {
		max-width: 300px;
	}

	figure.medium img {
		max-width: 500px;
	}

	figure.large img {
		max-width: 100%;
	}

	figure.xlarge img {
		max-width: 100%;
	}
}

@media(min-width: 55em) {
	figure.xlarge {
		margin-right: -2rem;
		margin-left: -2rem;
	}
}

figcaption {
	margin-top: 0.5rem;
	font-size: 0.825rem;
	text-align: center;
}

blockquote {
	margin: 4rem auto;
	max-width: 80%;
	font-size: 2rem;
	line-height: 1.3;
	font-family: 'Noto Serif';
	font-weight: 400;
}

footer.blockquote  {
	font-size: 1.25rem;
	line-height: 1.3;
	font-family: 'Nunito';
	font-weight: 400;
}

/* Video */
.embed-container {
	position: relative;
	margin: 0;
	padding-bottom: 56.25%;
	height: 0;
	max-width: 100%;
	border: none;
	overflow: hidden;
}

.embed-container iframe, .embed-container object, .embed-container embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
}

.is-hidden {
	display: none;
}

::selection {
	color: black;
	background-color: var(--highlight);
}

/* Kirby */

.grid {
  --columns: 12;
  --gutter: 3rem;
  display: grid;
  grid-gap: var(--gutter);
  grid-template-columns: 1fr;
}
.grid > .column {
  margin-bottom: var(--gutter);
}

.autogrid {
  --gutter: 3rem;
  --min: 10rem;
  display: grid;
  grid-gap: var(--gutter);
  grid-template-columns: repeat(auto-fit, minmax(var(--min), 1fr));
  grid-auto-flow: dense;
}

@media screen and (min-width: 40rem) {
  .grid {
    grid-template-columns: repeat(12, 1fr);
  }

  .grid > .column {
    grid-column: span var(--columns);
  }
}

/*
.margin-s {
  margin-bottom: .75rem;
}
.margin-m {
  margin-bottom: 1.5rem;
}
.margin-l {
  margin-bottom: 3rem;
}
.margin-xl {
  margin-bottom: 4.5rem;
}
.margin-xxl {
  margin-bottom: 6rem;
}
 */
