/*
Theme Name: The Margin
Theme URI: https://bestbooksbylateshakellam.com/
Author: Sidney Hunter
Description: A standalone editorial theme for Latesha Kellam.
Version: 1.0.0
Text Domain: the-margin
*/

:root {
	--lkm-paper: #faf6ee;
	--lkm-sheet: #fffdf8;
	--lkm-ink: #171512;
	--lkm-body: #35302a;
	--lkm-muted: #62584d;
	--lkm-gold: #8a5d18;
	--lkm-gold-light: #d7b87d;
	--lkm-rule: #d8cbb6;
	--lkm-shadow: rgba(42, 31, 16, .1);
	--lkm-shell: 1120px;
	--lkm-copy: 68ch;
	--lkm-serif: Georgia, "Times New Roman", Times, serif;
	--lkm-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--lkm-paper);
	color: var(--lkm-body);
	font-family: var(--lkm-sans);
	font-size: 1.0625rem;
	line-height: 1.68;
	-webkit-font-smoothing: antialiased;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: #71480c;
	text-decoration-thickness: 1px;
	text-underline-offset: .18em;
}

a:hover {
	color: var(--lkm-ink);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
	outline: 3px solid var(--lkm-gold);
	outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
	margin: 0 0 .65em;
	color: var(--lkm-ink);
	font-family: var(--lkm-serif);
	font-weight: 700;
	line-height: 1.32;
}

h1 {
	font-size: clamp(2.15rem, 6vw, 4rem);
	letter-spacing: -.035em;
}

h2 {
	font-size: clamp(1.55rem, 3vw, 2.15rem);
	letter-spacing: -.018em;
}

h3 {
	font-size: 1.3rem;
}

p,
ul,
ol,
blockquote {
	margin-top: 0;
	margin-bottom: 1.15em;
}

ul,
ol {
	padding-left: 1.35rem;
}

li {
	margin-bottom: .35rem;
}

strong {
	color: var(--lkm-ink);
}

.lkm-shell {
	width: min(100% - 2.25rem, var(--lkm-shell));
	margin-inline: auto;
}

.lkm-skip {
	position: fixed;
	top: .5rem;
	left: -100vw;
	z-index: 100;
	padding: .8rem 1rem;
	background: var(--lkm-ink);
	color: #fff;
}

.lkm-skip:focus {
	left: .5rem;
}

.lkm-header {
	background: var(--lkm-sheet);
	border-bottom: 1px solid var(--lkm-rule);
}

.lkm-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 8.5rem;
}

.lkm-brand {
	flex: 0 1 266px;
}

.lkm-brand__logo,
.lkm-brand__logo .custom-logo-link {
	display: block;
}

.lkm-brand__logo img,
.lkm-brand__fallback img {
	width: 266px;
	height: 147px;
	object-fit: contain;
}

.lkm-brand__name {
	margin: 0;
	font-family: var(--lkm-serif);
	font-size: 2rem;
	font-style: italic;
}

.lkm-brand__name a {
	color: var(--lkm-ink);
	text-decoration: none;
}

.lkm-nav__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lkm-nav__list li {
	margin: 0;
}

.lkm-nav__list a {
	display: flex;
	align-items: center;
	min-height: 48px;
	padding: .7rem .8rem;
	border-bottom: 2px solid transparent;
	color: var(--lkm-ink);
	font-size: .91rem;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
}

.lkm-nav__list a:hover,
.lkm-nav__list .current-menu-item > a,
.lkm-nav__list .current_page_item > a {
	border-bottom-color: var(--lkm-gold);
	color: #71480c;
}

.lkm-hamburger {
	display: none;
	-webkit-appearance: none;
	appearance: none;
	border: 0;
	box-shadow: inset 0 0 0 1px var(--lkm-rule);
	background: var(--lkm-sheet);
	width: 48px;
	height: 48px;
	border-radius: 4px;
	position: relative;
	cursor: pointer;
	flex: 0 0 auto;
}

.lkm-hamburger span,
.lkm-hamburger::before,
.lkm-hamburger::after {
	content: "";
	position: absolute;
	left: 12px;
	right: 12px;
	height: 2px;
	background: var(--lkm-ink);
	transition: transform .15s ease, opacity .15s ease;
}

.lkm-hamburger::before {
	top: 16px;
}

.lkm-hamburger span {
	top: 23px;
}

.lkm-hamburger::after {
	top: 30px;
}

.lkm-hamburger[aria-expanded="true"]::before {
	transform: translateY(7px) rotate(45deg);
}

.lkm-hamburger[aria-expanded="true"]::after {
	transform: translateY(-7px) rotate(-45deg);
}

.lkm-hamburger[aria-expanded="true"] span {
	opacity: 0;
}

.lkm-main {
	min-height: 50vh;
}

.lkm-intro {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 15rem;
	gap: 4rem;
	padding-block: clamp(3rem, 7vw, 6.5rem);
	border-bottom: 1px solid var(--lkm-rule);
}

.lkm-intro__copy {
	max-width: 48rem;
}

.lkm-kicker {
	margin-bottom: .65rem;
	color: #71480c;
	font-size: .82rem;
	font-weight: 800;
	letter-spacing: .14em;
	line-height: 1.45;
	text-transform: uppercase;
}

.lkm-intro__standfirst {
	max-width: 42rem;
	color: var(--lkm-body);
	font-family: var(--lkm-serif);
	font-size: clamp(1.2rem, 2.3vw, 1.55rem);
	line-height: 1.5;
}

.lkm-intro__note,
.lkm-margin-note {
	position: relative;
	align-self: stretch;
	min-width: 0;
	overflow-wrap: anywhere;
	padding: 1.2rem 1.1rem 1rem;
	background: #f3e5c8;
	border: 1px solid #c49b58;
	box-shadow: 4px 5px 0 var(--lkm-shadow);
	color: var(--lkm-ink);
	font-family: var(--lkm-serif);
	font-size: .94rem;
	line-height: 1.5;
	transform: rotate(1.3deg);
}

.lkm-intro__note::before,
.lkm-margin-note::before,
.lkm-slip::before {
	content: "";
	position: absolute;
	top: -.45rem;
	left: 1rem;
	width: 3.6rem;
	height: .85rem;
	background: rgba(255, 253, 248, .72);
	border: 1px solid rgba(138, 93, 24, .25);
	transform: rotate(-3deg);
}

.lkm-heading {
	max-width: 48rem;
	padding-block: 3.5rem 2rem;
}

.lkm-heading__description {
	font-family: var(--lkm-serif);
	font-size: 1.25rem;
	line-height: 1.55;
}

.lkm-manuscript {
	margin: 0;
	padding: 0;
	list-style: none;
}

.lkm-entry {
	margin: 0;
	padding: 0;
}

.lkm-entry__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 15rem;
	gap: 4rem;
	padding: 2.4rem 0 2.7rem;
	border-bottom: 1px solid var(--lkm-rule);
}

.lkm-entry__main {
	position: relative;
	padding-left: 2rem;
}

.lkm-entry__main::before {
	content: "";
	position: absolute;
	top: .58rem;
	left: 0;
	width: 0;
	height: 0;
	border-top: .42rem solid transparent;
	border-bottom: .42rem solid transparent;
	border-left: .75rem solid var(--lkm-gold);
	transform: rotate(12deg);
}

.lkm-entry__title {
	margin-bottom: .45rem;
	font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.lkm-entry__title a {
	color: var(--lkm-ink);
	text-decoration: none;
}

.lkm-entry__title a:hover {
	color: #71480c;
	text-decoration: underline;
}

.lkm-entry__dek {
	max-width: 46rem;
	margin-bottom: .65rem;
}

.lkm-entry__meta,
.lkm-piece__meta {
	color: var(--lkm-muted);
	font-size: .875rem;
	line-height: 1.55;
}

.lkm-slip {
	position: relative;
	align-self: center;
	padding: 1.3rem 1rem 1rem;
	background: #f1dfba;
	clip-path: polygon(0 5%, 5% 1%, 10% 5%, 15% 1%, 20% 5%, 25% 1%, 30% 5%, 35% 1%, 40% 5%, 45% 1%, 50% 5%, 55% 1%, 60% 5%, 65% 1%, 70% 5%, 75% 1%, 80% 5%, 85% 1%, 90% 5%, 95% 1%, 100% 5%, 100% 95%, 95% 99%, 90% 95%, 85% 99%, 80% 95%, 75% 99%, 70% 95%, 65% 99%, 60% 95%, 55% 99%, 50% 95%, 45% 99%, 40% 95%, 35% 99%, 30% 95%, 25% 99%, 20% 95%, 15% 99%, 10% 95%, 5% 99%, 0 95%);
	color: var(--lkm-ink);
	transform: rotate(-1.1deg);
}

.lkm-slip__label {
	display: block;
	margin-bottom: .35rem;
	font-family: var(--lkm-serif);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.4;
}

.lkm-slip__time {
	display: block;
	color: #544434;
	font-size: .82rem;
	font-weight: 700;
	line-height: 1.45;
	text-transform: uppercase;
}

.lkm-piece {
	padding-block: clamp(3rem, 6vw, 6rem);
}

.lkm-piece__header {
	max-width: 52rem;
	margin-bottom: 2.5rem;
	padding-bottom: 2rem;
	border-bottom: 2px solid var(--lkm-gold);
}

.lkm-piece__title {
	margin-bottom: .4rem;
}

.lkm-piece__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 15rem;
	gap: 4rem;
}

.lkm-piece__body {
	min-width: 0;
	max-width: var(--lkm-copy);
	font-family: var(--lkm-serif);
	font-size: 1.08rem;
	line-height: 1.78;
	overflow-wrap: anywhere;
}

.lkm-piece__body h2 {
	margin-top: 2.2em;
	padding-top: .35em;
	border-top: 1px solid var(--lkm-rule);
}

.lkm-piece__body h3 {
	margin-top: 1.8em;
}

.lkm-piece__body a {
	font-weight: 600;
}

.lkm-piece__body blockquote {
	margin: 1.8rem 0;
	padding: 1.2rem 1.35rem;
	background: #f4ead6;
	border-top: 1px solid var(--lkm-gold-light);
	border-bottom: 1px solid var(--lkm-gold-light);
	color: var(--lkm-ink);
	font-style: italic;
}

.lkm-piece__body table {
	width: 100%;
	margin-bottom: 1.5rem;
	border-collapse: collapse;
	font-family: var(--lkm-sans);
	font-size: .92rem;
	line-height: 1.55;
}

.lkm-piece__body th,
.lkm-piece__body td {
	padding: .8rem;
	border: 1px solid var(--lkm-rule);
	text-align: left;
	vertical-align: top;
}

.lkm-piece__body th {
	background: var(--lkm-ink);
	color: #fff;
}

.lkm-piece__figure {
	margin: 0 0 2.25rem;
}

.lkm-piece__figure img {
	width: 100%;
	height: auto;
}

.lkm-margin {
	display: flex;
	flex-direction: column;
	min-width: 0;
	gap: 2rem;
	padding-top: 1rem;
	border-left: 1px solid var(--lkm-gold-light);
}

.lkm-margin__label {
	margin: 0 0 -.8rem;
	padding-left: 1rem;
	color: #71480c;
	font-size: .82rem;
	font-weight: 800;
	letter-spacing: .14em;
	line-height: 1.45;
	text-transform: uppercase;
}

.lkm-margin-note {
	margin-left: 1rem;
	font-size: .88rem;
	transform: rotate(-1.4deg);
}

.lkm-margin-note:nth-child(odd) {
	transform: rotate(1.1deg);
}

.lkm-margin-note strong {
	display: block;
	margin-bottom: .3rem;
}

.lkm-author {
	margin-top: 3rem;
	padding: 1.4rem;
	background: var(--lkm-sheet);
	border: 1px solid var(--lkm-rule);
}

.lkm-author__role {
	margin-bottom: .35rem;
	color: #71480c;
	font-size: .82rem;
	font-weight: 800;
	letter-spacing: .1em;
	line-height: 1.45;
	text-transform: uppercase;
}

.lkm-author__name {
	margin-bottom: .35rem;
	font-family: var(--lkm-serif);
	font-size: 1.35rem;
	font-weight: 700;
}

.lkm-author__text {
	margin-bottom: .5rem;
	font-size: .94rem;
	line-height: 1.6;
}

.lkm-adjacent {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin: 0 0 4rem;
}

.lkm-adjacent__link {
	display: block;
	min-height: 48px;
	padding: 1rem;
	background: var(--lkm-sheet);
	border: 1px solid var(--lkm-rule);
	color: var(--lkm-ink);
	text-decoration: none;
}

.lkm-adjacent__link--next {
	text-align: right;
}

.lkm-adjacent__label {
	display: block;
	color: var(--lkm-muted);
	font-size: .82rem;
	font-weight: 800;
	letter-spacing: .1em;
	line-height: 1.45;
	text-transform: uppercase;
}

.lkm-empty {
	padding: 2rem 0 5rem;
}

.lkm-pagination {
	margin: 2rem 0 4rem;
}

.lkm-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

.lkm-pagination a,
.lkm-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	min-height: 48px;
	padding: .55rem .8rem;
	border: 1px solid var(--lkm-rule);
	background: var(--lkm-sheet);
}

.lkm-search__label {
	display: block;
	margin-bottom: .4rem;
	font-size: .9rem;
	font-weight: 700;
	line-height: 1.45;
}

.lkm-search__row {
	display: flex;
	max-width: 34rem;
	gap: .5rem;
}

.lkm-search__input {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 48px;
	padding: .75rem;
	border: 1px solid #8b7c68;
	background: #fff;
	color: var(--lkm-ink);
	font: inherit;
}

.lkm-search__button {
	min-height: 48px;
	padding: .75rem 1.2rem;
	border: 1px solid var(--lkm-ink);
	background: var(--lkm-ink);
	color: #fff;
	font: inherit;
	font-weight: 800;
	cursor: pointer;
}

.lkm-footer {
	margin-top: 3rem;
	background: var(--lkm-ink);
	color: #eee5d7;
}

.lkm-footer a {
	color: #f1d59e;
}

.lkm-footer__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 3rem;
	padding-block: 3.5rem;
}

.lkm-footer__heading {
	color: #fff;
	font-family: var(--lkm-sans);
	font-size: .92rem;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.lkm-footer__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.lkm-footer__list li {
	margin: 0;
}

.lkm-footer__list a {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	line-height: 1.45;
}

.lkm-footer__copy {
	font-size: .94rem;
	line-height: 1.62;
}

.lkm-footer__base {
	padding-block: 1.35rem;
	border-top: 1px solid #584f43;
	color: #eee5d7;
	font-size: .82rem;
	line-height: 1.6;
}

.lkm-age {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.7rem;
	min-height: 2.7rem;
	margin-right: .5rem;
	border: 2px solid #f1d59e;
	border-radius: 50%;
	color: #fff;
	font-weight: 900;
}

@media (max-width: 63.99rem) {
	.lkm-header__inner {
		flex-direction: column;
		align-items: flex-start;
		padding-block: 1rem;
	}

	.lkm-brand {
		flex-basis: auto;
	}

	.lkm-nav {
		width: 100%;
		border-top: 1px solid var(--lkm-rule);
	}

	.lkm-nav__list {
		justify-content: flex-start;
	}

	.lkm-intro,
	.lkm-entry__row,
	.lkm-piece__layout {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.lkm-intro__note,
	.lkm-slip {
		max-width: 22rem;
	}

	.lkm-margin {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		border-top: 1px solid var(--lkm-gold-light);
		border-left: 0;
		padding-top: 2rem;
	}

	.lkm-margin__label {
		grid-column: 1 / -1;
		padding-left: 0;
	}

	.lkm-margin-note {
		margin-left: 0;
	}
}

@media (max-width: 42rem) {
	.lkm-shell {
		width: min(100% - 1.35rem, var(--lkm-shell));
	}

	.lkm-brand__logo img,
	.lkm-brand__fallback img {
		width: 190px;
		height: 105px;
	}

	.lkm-header__inner {
		min-height: auto;
		flex-wrap: wrap;
	}

	.lkm-hamburger {
		display: block;
	}

	.lkm-nav {
		width: 100%;
		order: 3;
	}

	.lkm-nav__list {
		display: none;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		width: 100%;
	}

	.lkm-nav__list.is-open {
		display: grid;
	}

	.lkm-nav__list a {
		padding-inline: .45rem;
	}

	.lkm-entry__main {
		padding-left: 1.5rem;
	}

	.lkm-margin,
	.lkm-footer__grid,
	.lkm-adjacent {
		grid-template-columns: 1fr;
	}

	.lkm-search__row {
		flex-direction: column;
	}

	.lkm-adjacent__link--next {
		text-align: left;
	}
}
