/*
──────────────────────────────
  RESET
──────────────────────────────
*/

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

* {
	margin: 0;
	padding: 0;
	line-height: calc(1em + 0.5rem);
}

html, body {
	height: 100%;
}

img, svg {
	display: block;
	max-width: 100%;
}

ul {
	list-style: none;
}

em {
	font-style: normal;
}

/*
──────────────────────────────
	FONTS
──────────────────────────────
*/


@font-face {
	font-family: "Roslindale";
	src:	url('fonts/Roslindale-Variable-subset.woff2') format('woff2 supports variations'),
				url('fonts/Roslindale-Variable-subset.woff2') format('woff2-variations');
	font-weight: 100 1000;
	font-display: swap;
}

@font-face {
	font-family: "HEX Franklin";
	src:	url('fonts/HEX_Franklin_v0.2_Variable.woff2') format('woff2 supports variations'),
				url('fonts/HEX_Franklin_v0.2_Variable.woff2') format('woff2-variations');
	font-weight: 400 800;
	font-display: swap;
} 

/*
──────────────────────────────
	BASE
──────────────────────────────
*/

html {
	font-size: 100%;
	background-color: #f2f2ef;
}

@media screen and (min-width: 70em) {
	html {
		font-size: 150%;
	}
}

body {
	font-family: "Roslindale", Georgia, "Times New Roman", Times, serif;
	font-variation-settings: "opsz" 11, "wdth" 100, "wght" 400;
	color: #333;
}

.outer-wrapper {
	width: 100%;
	transition: 0.25s;
	border: 0.5rem solid #f2f2ef;
	background-color: #fff;
	padding: 1rem;
}

@media screen and (min-width: 40em) {
	.outer-wrapper {
		border-width: 2rem;
		padding: 2.5rem;
	}
}

@media screen and (min-width: 70em) {
	.outer-wrapper {
		border-width: 1.675rem;
	}
}

.inner-wrapper {
	margin: 0 auto;
	max-width: 57.5rem;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr;
	grid-template-areas:
		"headshot  headshot 	logo	logo"
		"text      text				text	text";
	column-gap: clamp(1rem, 3vw, 2.5rem);
}

@media screen and (min-width: 50em) {
	.inner-wrapper {
		grid-template-columns: 1fr 1fr 1fr 1fr;
		grid-template-areas:
			"logo      logo		logo	logo"
			"headshot  text		text	text";
	}
}

a {
	color: #333;
	transition: 0.15s;
	text-underline-offset: 3px;
	text-decoration-thickness: 0.175rem;
	text-decoration-skip-ink: none;
	text-decoration-color: #c9c8c1;
}

a:hover, a:active, a:focus {
	color: #000;
	text-decoration-color: #9b938a;
}

hr {
	grid-column: 1 / span 4;
	border: none;
	border-top: 0.75rem solid #eaebe7;
	margin: 2rem 0 2rem;
}

@media screen and (min-width: 40em) {
	hr {
		margin: 3rem 0 2rem;
	}
}

p + p {
	margin-top: 1.5rem;
}

h2 {
	font-size: 2.5rem;
	letter-spacing: 0.02rem;
	font-family: "HEX Franklin", Helvetica, Arial, Verdana, sans-serif;
	text-transform: uppercase;
	font-variation-settings: "wdth" 60, "wght" 800;
}

@media screen and (min-width: 40em) {
	h2 {
		font-size: 1.667rem;
	}
}

h3 {
	font-family: "HEX Franklin", Helvetica, Arial, Verdana, sans-serif;
	font-variation-settings: "wdth" 90, "wght" 700;
}

em {
	font-variation-settings: "opsz" 10, "wdth" 100, "wght" 400, "ital" 1;
}

/*
──────────────────────────────
	LEDE
──────────────────────────────
*/

.initials {
	grid-area: headshot;
	display: grid;
	align-items: center;
}

.initials svg {
	width: clamp(4rem, -0.875rem + 8.333vw, 5.5rem);
	height: auto;
}

.headshot {
	border-radius: 50%;
	grid-column: 4 /span 1;
}

@media screen and (min-width: 50em) {
	.initials {
		margin: 0.4em 0 3em;
		grid-area: logo;
		justify-content: end;
	}

	.headshot {
		grid-area: headshot;
		justify-content: start;
		width: auto;
	}
}

.lede-text {
	grid-area: text;
	margin-top: 13.8%;
}

.lede-text p {
	font-size: 1.75rem;
	font-variation-settings: "opsz" 48, "wdth" 75, "wght" 325; /* Just a smidge more wght */
	hyphens: auto;
	line-height: calc(1em + 0.4rem);
}

.lede-text p strong {
	font-variation-settings: "opsz" 48, "wdth" 75, "wght" 525; /* Just a smidge more wght */
}

.lede-text p + p {
	margin-top: 1.5rem;
}

@media screen and (min-width: 40em) {
	.lede-text p {
		font-size: 1.82rem;
		font-variation-settings: "opsz" 48, "wdth" 88, "wght" 300; /* Display Narrow Light */
		hyphens: manual;
	}
	
	.lede-text p strong {
		font-variation-settings: "opsz" 48, "wdth" 88, "wght" 500; /* Display Narrow Medium' */
	}
}

@media screen and (min-width: 50em) {
	.lede-text p {
		font-size: clamp(1.5rem, 1.3000rem + 1.3333vw, 2.1rem);
	}
}

.section-hed, .section-body {
	grid-column: 1 /span 4;
}

@media screen and (min-width: 40em) {
	.section-hed {
		grid-column: 1;
	}
	.section-body {
		grid-column: 2 /span 3;
	}
}

/* Baseline alignment nudges across columns */
.past-versions-text, .about-me-text {
	margin-top: 0.65rem;
}

.selected-words-text {
	margin-top: 0.6rem;
}

/*
──────────────────────────────
	ABOUT ME
──────────────────────────────
*/


.about-me ul {
	margin: 0.5rem 0;
}

.about-me li {
	font-family: "HEX Franklin", Helvetica, Arial, Verdana, sans-serif;
	font-variation-settings: "wdth" 100, "wght" 400;
	display: inline-block;
	margin-right: 0.75rem;
}

.about-me li + li::before {
	content: "•";
	color: #c9c8c1;
	margin-right: 0.8rem;
}

.about-me li:last-child {
	margin-right: 0;
}

@media screen and (min-width: 40em) {
	.about-me ul {
		margin-top: 1.45rem;
	}
	
	.about-me li {
		display: block;
	}
	
	.about-me li + li {
		margin: 0.75rem 0 0;
	}
	
	.about-me li + li::before {
		content: none;
		margin-right: 0;
	}
}

/*
──────────────────────────────
	TYPE DESIGN
──────────────────────────────
*/

.typefaces {
	margin-top: 2em;
}

.typefaces h3 {
	font-variation-settings: "wdth" 100, "wght" 700;
	font-size: 1rem;
	padding-top: 0.3rem;
	margin-bottom: 0.25rem;
}

a.thumb-link img {
	border: 0.18em solid #eaebe7;
	transition: 0.25s;
}

.type-thumb {
	float: left;
	max-width: 6rem;
	margin: 0 1rem 0 0;
}

a:hover.thumb-link img, a:active.thumb-link, a:focus.thumb-link {
	border-color: #c9c8c1;
}

/*
──────────────────────────────
	MY BOOK
──────────────────────────────
*/

.my-book-text h3 {
	font-size: 1.5rem;
	margin: 0.15rem 0 0.5rem;
}

.my-book-text ul {
	margin-top: 1em;
}

.my-book-text li {
	font-family: "HEX Franklin", Helvetica, Arial, Verdana, sans-serif;
	font-variation-settings: "wdth" 100, "wght" 588.8888854980469;
	margin-top: 0.85rem;
}

.my-book-text li a, .my-book-text li a:visited {
	background-image: url(images/icon-arrow.svg);
	background-repeat: no-repeat;
	background-size: 1.2rem;
	padding-left: 1.8rem;
	background-position: left center;
}

.my-book-text li a:hover, .my-book-text li a:active {
	background-position: 0.2rem center;
}

.book-cover {
	max-width: 75%;
	margin: 0.5rem 0 1.25rem;
}

@media screen and (min-width: 50em) {
	.book-cover {
		float: right;
		width: 12.5rem;
		margin: 0 0 0 2.5rem;
	}
	
	.my-book-text ul {
		margin-top: 2em;
	}
}

/*
──────────────────────────────
	SELECTED WORDS
──────────────────────────────
*/

.selected-words-text h3 {
	font-variation-settings: "wdth" 100, "wght" 700;
	font-size: 1rem;
}

.selected-words-text ul + h3 {
	margin-top: 2em;
}

.selected-words-text ul {
	margin-left: 1em;
}

.selected-words-text li {
	margin-top: 0.5rem;
}

/*
──────────────────────────────
	SITE VERSIONS
──────────────────────────────
*/

.site-versions {
	font-family: "HEX Franklin", Helvetica, Arial, Verdana, sans-serif;
	font-variation-settings: "wdth" 70, "wght" 400;
	list-style: none;
	margin-top: 1.5rem;
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem 1.75rem;
}
	
.site-versions li {
	text-align: center;
}

@media screen and (min-width: 40em) {
	.site-versions {
		margin-top: 2rem;
		gap: 1rem 2rem;
	}
}

.site-versions a {
	font-size: 2.3rem;
	padding: 0.5rem 0.8rem 0.6rem;
	border: 0.08em solid #eaebe7;
	display: block;
	text-align: center;
	min-width: 4.2rem;
	text-decoration: none;
	border-radius: 0.2em;
	background-color: #fff;
}

.site-versions a:hover, .site-versions a:active, .site-versions a:focus {
	background-color: #f9f9f8;
	border-color: #c9c8c1;
}

.site-versions span {
	margin-top: 0.25rem;
	letter-spacing: 0.02rem;
	font-size: 0.8rem;
	display: inline-block;
	color: #666;
}

/*
──────────────────────────────
	FOOTER
──────────────────────────────
*/

.footer-hed, .footer-text {
	font-size: 0.8rem;
	font-family: "HEX Franklin", Helvetica, Arial, Verdana, sans-serif;
	font-variation-settings: "wdth" 100, "wght" 400;
	margin-bottom: 0.5em;
}

.footer-text {
	margin-bottom: 2.5em;
}

.footer-hed p, .footer-text p {
	line-height: 1.4rem;
}

@media screen and (min-width: 40em) {
	.footer-hed, .footer-text {
		margin-bottom: 3em;
	}
}

/*
──────────────────────────────
	DARK MODE
──────────────────────────────
*/

@media (prefers-color-scheme: dark) {
	html {
		background-color: #17191d;
	}
	
	body {
		color: #ced2d8;
	}
	
	h2, h3, .lede-text { 
		color: #fff;
	}
	
	.outer-wrapper {
		border-color: #1c1f24;
		background-color: #17191d;
	}
	
	a {
		color: #ced2d8;
		text-decoration-color: #434a55;
	}
	
	a:hover, a:active, a:focus {
		color: #fff;
		text-decoration-color: #6a7687;
	}
	
	hr {
		border-color: #1f2328;
	}
	
	.logo-wordmark .initials-logo {fill: #fff}
	
	.about-me li + li::before {
		color: #434a55;
	}
	
	a.thumb-link img {
		border-color: #323840;
	}
	
	a:hover.thumb-link img, a:active.thumb-link, a:focus.thumb-link {
		border-color: #434a55;
	}
	
	.site-versions a {
		border-color: #1f2328;
		background-color: #17191d;
	}
	
	.site-versions a:hover, .site-versions a:active, .site-versions a:focus {
		background-color: #161616;
		border-color: #434a55;
	}
	
	.site-versions span {
		color: #838e9e;
	}
}