/*
Theme Name: Logo Design Love
Theme URI: https://www.logodesignlove.com/
Author: David Airey
Author URI: https://www.davidairey.com/
Description: A library of logos, symbols and marks, and the stories behind them. Works with the Logo Design Love Archive plugin, which holds the designers, credits, popularity and bookshelf.
Version: 2.0.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: specimen
Tags: one-column, grid-layout, custom-menu, threaded-comments, translation-ready
*/

/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
	--bg: #f4f4f3;
	--paper: #ffffff;
	--ink: #111111;
	--g1: #444444;
	--g2: #6b6b6b;
	--g3: #8a8a88;
	--rule: #e2e2e0;
	--rule-strong: #a8a8a6;
	--line: #c8c8c6;
	--field: #d6d6d4;
	--hover: #767674;
	--red: #e30613;
	--text: "neue-haas-grotesk-text", "Neue Haas Grotesk Text Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--display: "neue-haas-grotesk-display", "Neue Haas Grotesk Display Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--pad: 48px;
	--gap: 24px;
	--fade: .35s ease;
}

/* ==========================================================================
   Base
   ========================================================================== */

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

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--text);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); }
p, h1, h2, h3, h4, figure, blockquote, dl, dd, ol, ul { margin: 0; }
h1, h2, h3, h4 { font-size: 15px; font-weight: 500; }
button { font: inherit; color: inherit; }
input, textarea, select { font: inherit; color: var(--ink); }
em, i { font-style: italic; }
strong, b { font-weight: 500; }

.sr, .screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}
.skip:focus {
	position: fixed !important;
	top: 12px; left: 12px; z-index: 200;
	width: auto; height: auto;
	clip: auto; clip-path: none;
	padding: 10px 14px;
	background: var(--ink); color: #fff;
}

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.site { max-width: 1696px; margin: 0 auto; background: var(--bg); }

/* Display 65 Medium. Adobe numbers Neue Haas Grotesk Display's weights 45 Light = 400, 65 Medium = 600. */
.display { font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1.3; }
.soft { color: var(--g1); }
.note { font-size: 13px; color: var(--g3); }

/* The 12-column grid. */
.g12 {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: var(--gap);
	padding-left: var(--pad);
	padding-right: var(--pad);
}
.g12 .g12 { padding-left: 0; padding-right: 0; }
.wrap { padding-left: var(--pad); padding-right: var(--pad); }

/* ==========================================================================
   Links and buttons
   ========================================================================== */

a.u, .entry a, .c-text a, button.u {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 5px;
	text-decoration-color: var(--line);
	transition: text-decoration-color var(--fade);
}
a.u:hover, .entry a:hover, .c-text a:hover, button.u:hover { text-decoration-color: var(--ink); }

a.b {
	color: var(--g2);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 5px;
	text-decoration-color: transparent;
	transition: text-decoration-color var(--fade), color var(--fade);
}
a.b:hover { color: var(--ink); text-decoration-color: var(--ink); }

button.link { padding: 0; border: 0; background: none; cursor: pointer; font-size: inherit; }

.btn {
	display: inline-flex;
	align-items: center;
	height: 40px;
	padding: 0 18px;
	border: 0;
	border-radius: 0;
	background: var(--ink);
	color: #fff;
	font-size: 14px;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--fade);
	-webkit-appearance: none;
	appearance: none;
}
.btn:hover { background-color: var(--hover); color: #fff; }
button.btn, input.btn { padding: 0 16px; }

/* Fields. */
input[type="email"], input[type="text"], input[type="url"], textarea {
	width: 100%;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--field);
	border-radius: 0;
	background: #fff;
	font-size: 14px;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color var(--fade);
}
textarea { display: block; height: auto; padding: 10px 12px; line-height: 1.6; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--ink); }
input::placeholder, textarea::placeholder { color: var(--hover); opacity: 1; transition: color var(--fade); }
input:hover::placeholder, input:focus::placeholder, textarea:hover::placeholder, textarea:focus::placeholder { color: #b5b5b3; }

/* Search: a line, no box. */
.search { border-bottom: 1px solid var(--ink); }
input[type="search"] {
	display: block;
	width: 100%;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	font-size: 15px;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color var(--fade);
}
input[type="search"]:focus { outline: none; }
input[type="search"]::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
	width: 12px; height: 12px;
	margin-right: 4px;
	cursor: pointer;
	background:
		linear-gradient(45deg, transparent 45%, var(--g3) 45%, var(--g3) 55%, transparent 55%),
		linear-gradient(-45deg, transparent 45%, var(--g3) 45%, var(--g3) 55%, transparent 55%);
}

/* ==========================================================================
   Header
   ========================================================================== */

.masthead {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: var(--gap);
	align-items: baseline;
	padding: 28px var(--pad);
	border-bottom: 1px solid var(--rule);
}
.brand {
	grid-column: 1 / span 6;
	justify-self: start;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: .01em;
	text-decoration: none;
	color: var(--ink);
	transition: color var(--fade);
}
.brand:hover { color: var(--hover); }
.mast-right { grid-column: 9 / -1; display: grid; }
.links, .mast-search { grid-area: 1 / 1; transition: opacity .3s ease, visibility .3s ease; }
.links { display: flex; justify-content: space-between; gap: 8px 16px; font-size: 15px; }
.links a, .menu-close, .menu-open {
	padding-bottom: 2px;
	border-bottom: 1px solid transparent;
	text-decoration: none;
	color: var(--ink);
	transition: border-color var(--fade);
}
.links a:hover, .links a[aria-current] { border-bottom-color: var(--ink); }
.links .search-open { color: var(--g2); cursor: pointer; }
.links .search-open:hover { color: var(--g2); }

.mast-search {
	display: flex;
	align-items: flex-end;
	gap: 20px;
	margin-bottom: -6px;
	opacity: 0;
	visibility: hidden;
}
.mast-search .sf { flex: 1; min-width: 0; }
.mast-search input[type="search"] { height: 28px; border-bottom: 1px solid var(--ink); }
.mast-search input[type="search"]:focus { background: transparent; }
.search-close {
	display: flex;
	align-items: center;
	height: 28px;
	padding: 0;
	border: 0;
	border-bottom: 1px solid transparent;
	background: none;
	color: var(--g2);
	font-size: 15px;
	cursor: pointer;
	transition: border-color var(--fade), color var(--fade);
}
.search-close:hover { color: var(--ink); border-bottom-color: var(--ink); }
.searching .mast-search { opacity: 1; visibility: visible; }
.searching .links { opacity: 0; visibility: hidden; }
.menu-open { display: none; }

/* Phone menu. */
.menu {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	background: var(--bg);
	opacity: 0;
	visibility: hidden;
	transition: opacity .35s ease, visibility .35s ease;
}
.menu:target, .menu.is-open { opacity: 1; visibility: visible; }
.menu-open:focus:not(:focus-visible), .menu-close:focus:not(:focus-visible) { outline: none; }
.menu-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex: none;
	height: 60px;
	padding: 0 20px;
	border-bottom: 1px solid var(--rule);
}
.menu-close, .menu-open {
	display: inline-flex;
	align-items: center;
	height: 44px;
	padding-bottom: 0;
	border-bottom: 0;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 5px;
	text-decoration-color: transparent;
	transition: text-decoration-color var(--fade);
}
.menu-close:hover, .menu-open:hover { text-decoration-color: var(--ink); }
.mast-right .menu-open { display: none; }
.menu-search { margin: 28px 20px 0; border-bottom: 1px solid var(--ink); }
.menu-search input[type="search"] { height: 48px; font-size: 16px; }
.menu-links { display: flex; flex-direction: column; margin: 24px 20px 0; }
.menu-links a {
	display: flex;
	align-items: center;
	height: 56px;
	border-bottom: 1px solid var(--rule);
	font-family: var(--display);
	font-size: 22px;
	font-weight: 600;
	text-decoration: none;
	color: var(--ink);
	transition: color var(--fade);
}
.menu-links a:hover { color: var(--hover); }
.menu-foot {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-top: auto;
	padding: 40px 20px 36px;
	font-size: 13px;
}
.menu-open-page { overflow: hidden; }

/* ==========================================================================
   Footer
   ========================================================================== */

.foot {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: var(--gap);
	row-gap: 20px;
	align-items: center;
	margin-top: 160px;
	padding: 32px var(--pad) 40px;
	border-top: 1px solid var(--rule);
	font-size: 13px;
	color: var(--g2);
}
.dots { display: flex; align-self: flex-start; text-decoration: none; }
.foot .dots { grid-column: 1 / span 3; justify-self: start; align-self: center; }
.dots span { width: 15px; height: 15px; border-radius: 50%; background: var(--ink); transition: background-color var(--fade); }
.dots span:last-child { background: var(--red); }
.dots:hover span:not(:last-child) { background: var(--hover); }
.foot-text { grid-column: 4 / span 5; }
.social { display: flex; flex-wrap: wrap; gap: 20px; }
.foot .social { grid-column: 9 / -1; justify-content: flex-end; }

/* ==========================================================================
   Tiles
   ========================================================================== */

.tiles {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 24px 20px;
}
.t { display: block; text-decoration: none; color: var(--ink); }
.t-img {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--paper);
	outline: 1px solid transparent;
	outline-offset: -1px;
	transition: outline-color var(--fade);
}
.t:hover .t-img { outline-color: var(--line); }
.t-img img { width: 100%; height: 100%; object-fit: contain; }
.t-img img.fill, .cell-img img.fill { object-fit: cover; }
.tx { display: block; min-height: calc(1.35em * 3 + 13px); font-size: 13px; }
.t-title {
	display: -webkit-box;
	margin-top: 10px;
	overflow: hidden;
	line-height: 1.35;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	transition: color var(--fade);
}
.t:hover .t-title { color: var(--g3); }
.t-credit { display: block; margin-top: 3px; color: var(--g3); }

.more { margin-top: 28px; font-size: 13px; }
.more--phone { display: none; }

.sec { margin-top: 112px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 20px; }
.sec-links { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 13px; }

/* ==========================================================================
   Homepage
   ========================================================================== */

.hero { padding-top: 120px; padding-bottom: 88px; }
.hero-title { grid-column: 1 / span 6; }
.hero-search { grid-column: 9 / -1; align-self: end; }

.book-panel {
	align-items: center;
	margin: 112px var(--pad) 0;
	padding: 72px 40px;
	background: var(--paper);
}
.book-panel-cover { grid-column: 2 / span 5; display: flex; justify-content: flex-end; }
.cov { display: block; }
.book-panel .cov { width: 62%; }
.cov img {
	width: 100%;
	box-shadow: 0 20px 40px rgba(0, 0, 0, .16);
	outline: 1px solid transparent;
	outline-offset: 12px;
	transition: outline-color var(--fade);
}
.cov:hover img { outline-color: var(--line); }
.book-panel-text { grid-column: 8 / span 4; display: flex; flex-direction: column; gap: 14px; }
.praise-s blockquote { color: var(--ink); }
.praise-s:first-of-type { margin-top: 6px; }
.praise-s figcaption { margin-top: 4px; font-size: 13px; color: var(--g3); }
.actions { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.book-panel .actions { margin-top: 10px; font-size: 13px; }
.book-panel .actions .btn { font-size: 13px; }

.nl-home {
	align-items: start;
	margin: 40px var(--pad) 0;
	padding: 32px 40px;
	background: var(--paper);
}
.nl-home h2 { grid-column: 1 / span 3; }
.nl-home-text { grid-column: 4 / span 4; }
.nl-home-text .nl-note { margin-top: 4px; }
.nl-home-form { grid-column: 8 / -1; margin-top: 3px; }
.nl-form { display: flex; gap: 16px; }
.nl-form input[type="email"] { flex: 1; min-width: 0; }
.nl-form .btn { flex: none; height: 40px; font-size: 14px; }
.nl-note { font-size: 13px; color: var(--g3); }

/* Bookshelf: covers drawn to scale, bottom-aligned along each row. */
.shelf {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	column-gap: 20px;
	row-gap: 0;
}
.shelf--panel { padding: 48px; background: var(--paper); }
.bk {
	display: grid;
	grid-row: span 3;
	grid-template-rows: subgrid;
	row-gap: 0;
	align-content: start;
	text-decoration: none;
	color: var(--ink);
}
.bk-cover { display: flex; align-items: flex-end; min-height: 0; }
.bc {
	display: block;
	max-width: 100%;
	height: auto;
	overflow: hidden;
	background: #e4e2dd;
	box-shadow: 0 8px 18px rgba(0, 0, 0, .10);
	transition: transform var(--fade), box-shadow var(--fade);
}
.bc img { width: 100%; height: 100%; object-fit: cover; }
a.bk:hover .bc { transform: translateY(-4px); box-shadow: 0 16px 28px rgba(0, 0, 0, .14); }
.bt { display: block; margin-top: 14px; font-size: 13px; line-height: 1.35; transition: color var(--fade); }
a.bk:hover .bt { color: var(--g3); }
.ba { display: block; margin-top: 3px; margin-bottom: 48px; font-size: 13px; color: var(--g3); }
.shelf--panel { padding-bottom: 0; }
.shelf-note { margin-top: 20px; }

/* ==========================================================================
   Pages: page heads, rows
   ========================================================================== */

.page-head { align-items: start; padding-top: 120px; }
.page-head > h1 { grid-column: 1 / span 3; }
.page-intro { grid-column: 4 / span 6; }
.page-intro .lead-text, .page-intro .search, .page-intro .soft { margin-top: 32px; }
.lead-text { line-height: 1.65; }

.sec-row { padding-top: 112px; align-items: baseline; }
.sec-row > h2 { grid-column: 1 / span 3; }

/* Book. */
.book-main { grid-column: 4 / span 5; }
.book-main .lead-text, .book-main .actions { margin-top: 32px; }
.book-main .btn, .book-main .actions .u { font-size: 14px; }
.book-details { margin-top: 48px; }
.book-details > div { grid-template-columns: 96px minmax(0, 1fr); }
.book-cover { grid-column: 10 / -1; align-self: start; }
.stores { grid-column: 4 / -1; padding: 28px 32px; background: var(--paper); }
.stores ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 0; list-style: none; }
a.iss { display: block; text-decoration: none; color: var(--ink); }
a.iss .ti { display: block; transition: color var(--fade); }
a.iss:hover .ti { color: var(--g3); }
a.iss .note { display: block; margin-top: 2px; }
.toc { grid-column: 4 / span 6; padding: 0; list-style: none; border-bottom: 1px solid var(--rule); }
.toc ol { padding: 0; list-style: none; }
.toc > li + li { margin-top: 40px; }
.toc-part, .toc ol li { display: grid; grid-template-columns: 64px minmax(0, 1fr); padding: 12px 0; }
.toc-part { border-top: 1px solid var(--rule-strong); font-size: 13px; color: var(--g2); }
.toc ol li { border-top: 1px solid var(--rule); }
.toc-n { padding-top: 1px; font-size: 13px; color: var(--g3); }
.chapter-row { padding-top: 56px; }
.chapter {
	grid-column: 4 / span 6;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	padding: 32px;
	background: var(--paper);
}
.chapter .note { margin-top: 4px; }
.chapter .btn { flex: none; }
.praise { grid-column: 4 / span 6; display: flex; flex-direction: column; gap: 32px; }
.praise blockquote { font-size: 20px; line-height: 1.3; }
.praise figcaption { margin-top: 10px; }
.book-more > p { grid-column: 4 / span 6; }
.book-more > h2:nth-of-type(2), .book-more > p:nth-of-type(2) { margin-top: 56px; }

/* Newsletter page. */
.nl-page { padding-top: 56px; }
.nl-panel--page { grid-column: 4 / span 6; }
.issues { grid-column: 4 / span 6; padding: 0; list-style: none; border-bottom: 1px solid var(--rule); }
.issues li { padding: 18px 0 20px; border-top: 1px solid var(--rule); }
.issues li:first-child { border-top-color: var(--ink); }
.issues a.iss { display: grid; grid-template-columns: 120px minmax(0, 1fr); column-gap: 24px; }
.issues a.iss > .note { margin-top: 0; padding-top: 2px; }
.iss-sum { display: block; margin-top: 4px; color: var(--g2); }
.all-issues { grid-column: 4 / span 6; margin-top: 20px; font-size: 14px; }

/* About: selected work, one row of five, full width. */
.work-wide .fig-panel img.fill { width: 100%; height: 100%; max-width: none; margin: 0; object-fit: cover; }
.work-after { margin-top: 64px; }
.work-after > .work-wide { grid-column: 1 / -1; }

/* Bookshelf page. */
.shelf-sec { margin-top: 96px; }
.shelf-sec h2 { margin-bottom: 20px; }
.shelf-note--page { margin-top: 56px; }

/* Archive heads: designer, form, tag… */
.archive-head { align-items: end; padding-top: 96px; }
.archive-head > div { grid-column: 1 / span 6; }
.archive-head .filter-label { margin-bottom: 12px; }
.archive-head .soft { margin-top: 12px; }
.results { margin-top: 48px; }
.empty { color: var(--g2); }

/* 404. */
.nf-search { max-width: 520px; }

/* ==========================================================================
   Logos page
   ========================================================================== */

.logos-head { row-gap: 40px; align-items: end; padding-top: 96px; }
.logos-head h1 { grid-column: 1 / span 6; }
.logos-search { grid-column: 9 / -1; }
.filters {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	column-gap: var(--gap);
	font-size: 15px;
}
.filter-label { font-size: 13px; color: var(--g2); }
.results-line {
	grid-column: 1 / -1;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	margin-top: -8px;
}
.summary { display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: baseline; }
.soft-link { font-size: 13px; color: var(--g2); }
/* The order menu lines up with the filter columns above it. */
.sort { width: calc((100% - 6 * var(--gap)) / 7); min-width: 160px; flex: none; }
.logos-head + .results { margin-top: 40px; }

/* Dropdowns. */
details.dd { position: relative; }
details.dd summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	height: 40px;
	border-bottom: 1px solid #cfcfcd;
	list-style: none;
	cursor: pointer;
	font-size: 15px;
	color: var(--ink);
	transition: border-color var(--fade);
}
details.dd summary > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
details.dd summary::-webkit-details-marker { display: none; }
details.dd summary:hover, details.dd.on summary, details.dd[open] summary { border-bottom-color: var(--ink); }
details.dd summary::after {
	content: "";
	flex: none;
	width: 5px;
	height: 5px;
	margin-right: 2px;
	border-right: 1px solid var(--ink);
	border-bottom: 1px solid var(--ink);
	transform: translateY(-2px) rotate(45deg);
	transition: transform .2s ease;
}
details.dd[open] summary::after { transform: translateY(1px) rotate(-135deg); }
details.dd ul {
	position: absolute;
	z-index: 5;
	top: 41px;
	left: 0;
	right: 0;
	min-width: 200px;
	max-height: 300px;
	margin: 0;
	padding: 6px 0;
	overflow: auto;
	list-style: none;
	background: #fff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
	font-size: 13px;
	line-height: 1.4;
}
.sort details.dd ul { left: auto; }
details.dd li a {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 7px 14px;
	text-decoration: none;
	color: var(--ink);
	transition: background-color .2s ease;
}
details.dd li a:hover { background: var(--bg); }
details.dd li a .n { color: var(--g3); }
details.dd li a[aria-current] { background: var(--hover); color: #fff; }
details.dd li a[aria-current] .n { color: var(--rule); }
.swatch { display: inline-block; width: 11px; height: 11px; margin-right: 10px; border-radius: 50%; vertical-align: -1px; }

/* Page numbers. */
.pages { display: flex; flex-wrap: wrap; gap: 24px; align-items: baseline; margin-top: 56px; font-size: 15px; }
.pages .page-numbers { padding-bottom: 2px; border-bottom: 1px solid transparent; text-decoration: none; color: var(--ink); transition: border-color var(--fade); }
.pages a.page-numbers:hover, .pages .current { border-bottom-color: var(--ink); }
.pages .next { margin-left: 8px; }
.pages .prev { margin-right: 8px; }
.pages .dots { border: 0; color: var(--g3); }

/* ==========================================================================
   Posts
   ========================================================================== */

.post { padding-top: 72px; }
.crumb { grid-column: 1 / span 3; padding-right: 24px; font-size: 13px; color: var(--g2); }
.post-head { grid-column: 4 / span 7; }
.post-title {
	font-family: var(--display);
	font-size: 24px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -.005em;
}
.post-title a { color: inherit; text-decoration: none; transition: color var(--fade); }
.post-title a:hover { color: var(--hover); }
.dek { max-width: calc((100% - 144px) / 7 * 6 + 120px); margin-top: 16px; line-height: 1.65; }

/* Lead image. */
.lead {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: var(--gap);
	margin-top: 48px;
}
.lead-panel { grid-column: 1 / -1; }
.lead--panel .lead-panel {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 9;
	max-height: 720px;
	width: 100%;
	padding: 48px;
	background: var(--paper);
}
.lead--panel .lead-panel img, .lead--panel .lead-panel a { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lead--panel .lead-panel a img { max-height: 624px; }
.lead--wide .lead-panel img { width: 100%; max-width: var(--max, 100%); margin: 0 auto; }
.lead figcaption, .fig--wide figcaption { grid-column: 4 / span 6; margin-top: 12px; font-size: 13px; color: var(--g2); }

/* Body: text column beside the credits, wide images across the full width. */
.post-body { grid-column: 1 / -1; margin-top: 52px; }
.post-credits { grid-column: 1 / span 3; grid-row: 1; align-self: start; margin-top: 4px; padding-right: 24px; font-size: 13px; line-height: 1.45; }
.run { grid-column: 4 / span 6; }
.run--first { grid-row: 1; }
.post-body > .fig--wide + .run, .post-body > .run + .fig--wide, .post-body > .fig--wide + .fig--wide { margin-top: 48px; }
.post-dates { grid-column: 4 / span 6; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--rule); }

.credits > div {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	gap: 12px;
	padding: 9px 0;
	border-top: 1px solid var(--rule);
	font-size: 13px;
	line-height: 1.45;
}
.credits > div:first-child { border-top-color: var(--rule-strong); }
.credits > div:last-child { border-bottom: 1px solid var(--rule); }
.credits dt { color: var(--g2); }
.credits dd a.u { text-underline-offset: 4px; }

/* Text. */
.entry { font-size: 15px; line-height: 1.65; overflow-wrap: break-word; }
.entry > :first-child { margin-top: 0; }
.entry > :last-child { margin-bottom: 0; }
.entry p, .entry ul, .entry ol, .entry dl, .entry table, .entry pre { margin: 0 0 20px; }
.entry ul, .entry ol { padding-left: 20px; }
.entry li + li { margin-top: 4px; }
.entry h2, .entry h3, .entry h4 { margin: 40px 0 12px; font-size: 15px; font-weight: 500; line-height: 1.4; }
.entry blockquote { margin: 32px 0; padding: 2px 0 2px 20px; border-left: 1px solid var(--rule-strong); }
.entry blockquote p { margin-bottom: 12px; }
.entry blockquote p:last-child { margin-bottom: 0; }
.entry blockquote cite, .entry blockquote footer { display: block; font-family: var(--text); font-size: 13px; font-style: normal; color: var(--g3); }
.entry hr { height: 1px; margin: 40px 0; border: 0; background: var(--rule); }
.entry table { width: 100%; border-collapse: collapse; font-size: 14px; }
.entry th, .entry td { padding: 8px 12px 8px 0; border-top: 1px solid var(--rule); text-align: left; vertical-align: top; }
.entry code, .entry pre { font-size: 13px; }
.entry img { height: auto; }
.entry .alignleft, .entry .alignright, .entry .aligncenter { float: none; margin-left: auto; margin-right: auto; }
.entry .wp-caption { max-width: 100%; }
.imgcred, .entry .note { display: block; margin-top: -10px; font-size: 13px; color: var(--g2); }

/* Figures in the text. */
.fig, .fig-grid, .video, .embed, .entry .wp-video { margin: 48px 0; }
.entry > .fig:first-child, .entry > .fig-grid:first-child { margin-top: 0; }
.fig figcaption, .cell figcaption { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--g2); }
.fig figcaption a { color: var(--ink); }
.fig--col .fig-panel img { width: 100%; }
.fig--small .fig-panel, .fig--auto .fig-panel {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 48px 24px;
	background: var(--paper);
}
.fig--small .fig-panel img, .fig--auto .fig-panel img { max-width: 100%; }
.fig--wide {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: var(--gap);
	margin: 0;
}
.fig--wide .fig-panel { grid-column: 1 / -1; }
.fig--wide .fig-panel img { width: 100%; max-width: var(--max, 100%); margin: 0 auto; }
.fig-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fig-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fig-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cell-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }
.cell-img img { width: 100%; height: 100%; object-fit: contain; }

/* Videos: a still until played. */
.video-box { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 0;
	border: 0;
	background: #000;
	cursor: pointer;
}
.video-play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity var(--fade); }
.video-play:hover img { opacity: .75; }
.video-label {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 40px;
	padding: 0 18px;
	background: var(--ink);
	color: #fff;
	font-size: 14px;
	transition: background-color var(--fade);
}
.video-label::before { content: ""; border-left: 9px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.video-play:hover .video-label { background: var(--hover); }
.video-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed iframe { max-width: 100%; }
.entry .wp-video, .entry .wp-video video { width: 100% !important; height: auto; }

/* After the text. */
.post-after { grid-column: 4 / span 6; }
.nl-panel { display: flex; flex-direction: column; gap: 14px; padding: 32px; background: var(--paper); }
.post-after .nl-panel { margin-top: 64px; }
.nl-panel .nl-note { margin-top: -2px; }
.post-body > .book-line { grid-column: 4 / span 6; margin-top: 4px; }
.book-line a { color: var(--ink); }

/* Comments. */
.comments { margin-top: 64px; }
.comments-title { margin-bottom: 8px; }
.c { padding: 16px 0; border-top: 1px solid var(--rule); font-size: 15px; }
.c .c { margin: 16px 0 -16px 24px; }
.c-meta { margin-bottom: 6px; font-size: 13px; color: var(--g2); }
.c-name { color: var(--ink); text-decoration: none; }
a.c-name:hover { text-decoration: underline; text-underline-offset: 4px; }
.c-date { color: var(--g2); text-decoration: none; }
.c-date:hover { color: var(--ink); }
.c-text { line-height: 1.65; overflow-wrap: break-word; }
.c-text p { margin-bottom: 12px; }
.c-text p:last-child { margin-bottom: 0; }
.c-wait { margin-bottom: 6px; font-size: 13px; color: var(--g3); }
.c-reply { margin-top: 6px; font-size: 13px; }
.c-reply a { color: var(--g2); text-decoration: none; }
.c-reply a:hover { color: var(--ink); }
.js .is-folded .c-more { display: none; }
.c-more.is-new { animation: c-fade .6s ease both; }
@keyframes c-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.comments-more { display: none; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 13px; }
.js .comments-more { display: block; }
.comments-closed { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--rule); }

.comment-respond { margin-top: 40px; }
.c .comment-respond { margin: 16px 0 0; }
.cf-title { margin-bottom: 4px; }
.cf-title small { margin-left: 12px; font-size: 13px; font-weight: 400; }
.cf-title small a { color: var(--g2); }
.cf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cf > * { grid-column: 1 / -1; }
.cf > .cf-field { grid-column: auto; }
.cf-note { font-size: 13px; color: var(--g3); }
.cf-submit { order: 10; margin-top: 0; }
/* Subscribe to Comments: its line of text (for the post's author) reads as a normal sentence. */
.cf .subscribe-to-comments, .cf .comment-form-subscriptions { margin-top: -2px; font-size: 13px; color: var(--g2); }
.cf .subscribe-to-comments a, .cf .comment-form-subscriptions a { color: var(--ink); }
/* With a tick box: box and label side by side. */
.cf p:has(> input[type="checkbox"]) {
	display: flex;
	gap: 10px;
	align-items: center;
	margin-top: -2px;
	font-size: 13px;
	color: var(--g2);
}
.cf input[type="checkbox"] { width: 15px; height: 15px; margin: 0; accent-color: var(--ink); }
.cf .btn { height: 40px; font-size: 14px; }

/* Sponsor. */
.sponsor { margin-top: 64px; }
a.ad { display: flex; gap: 24px; align-items: center; padding: 32px; background: var(--paper); text-decoration: none; color: var(--g1); }
.ad-img { flex: none; width: 130px; }
.ad-img img { width: 130px; height: 100px; object-fit: cover; }
.ad-body { max-width: 300px; font-size: 13px; line-height: 1.5; }
.ad-t { display: block; color: var(--ink); transition: color var(--fade); }
a.ad:hover .ad-t { color: var(--g3); }
.ad-by { display: block; margin-top: 8px; color: var(--g3); }

#carbonads { padding: 32px; background: var(--paper); font-size: 13px; line-height: 1.5; }
#carbonads > span { display: grid; grid-template-columns: 130px minmax(0, 300px); grid-template-rows: auto auto; column-gap: 24px; align-items: center; }
#carbonads .carbon-wrap { display: contents; }
#carbonads .carbon-img { grid-row: 1 / span 2; align-self: center; }
#carbonads .carbon-img img { display: block; width: 130px; height: 100px; max-width: none; }
#carbonads .carbon-text { align-self: end; color: var(--ink); text-decoration: none; transition: color var(--fade); }
#carbonads .carbon-text:hover { color: var(--g3); }
#carbonads .carbon-poweredby { display: block; align-self: start; margin-top: 8px; color: var(--g3); text-decoration: none; }
#carbonads .carbon-poweredby::first-letter { text-transform: uppercase; }

/* Related. */
.related { grid-column: 1 / -1; margin-top: 96px; padding-top: 16px; border-top: 1px solid var(--rule-strong); }

/* Pages (About, Contact): text in the column. */
.page-lead { margin-top: 56px; }
.page-lead .lead { margin-top: 0; }
.page-body { margin-top: 56px; }
.page-body .run { grid-row: auto; }

/* ==========================================================================
   Narrower screens: tablets and phones
   ========================================================================== */

@media (max-width: 1023px) {
	:root { --pad: 32px; }

	.masthead { display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 var(--pad); }
	.mast-right { display: block; }
	.links, .mast-search { display: none; }
	.mast-right .menu-open { display: inline-flex; }
	.menu-head, .menu-search, .menu-links, .menu-foot { padding-left: var(--pad); padding-right: var(--pad); margin-left: 0; margin-right: 0; }
	.menu-search { margin: 28px var(--pad) 0; padding: 0; }
	.menu-links { padding: 0; margin: 24px var(--pad) 0; }

	.g12 { display: block; }
	.g12 > * + * { margin-top: 28px; }

	.hero { padding-top: 64px; padding-bottom: 48px; }
	.hero-title { max-width: 640px; }
	.hero-search input[type="search"] { height: 44px; font-size: 16px; }
	.search input[type="search"] { font-size: 16px; }

	.tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 16px; }

	.book-panel { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin: 64px var(--pad) 0; padding: 48px 32px; }
	.book-panel > * + * { margin-top: 0; }
	.book-panel-cover { display: block; width: 40%; margin-bottom: 18px; }
	.book-panel .cov { width: 100%; }
	.cov img { box-shadow: 0 14px 28px rgba(0, 0, 0, .16); }

	.nl-home { display: flex; flex-direction: column; gap: 14px; margin: 24px var(--pad) 0; padding: 32px; }
	.nl-home > * + * { margin-top: 0; }
	.nl-home-form { width: 100%; margin-top: 0; }
	.nl-form input[type="email"], .nl-form .btn { height: 44px; font-size: 16px; }

	.sec { margin-top: 64px; }
	.sec-head { display: block; margin-bottom: 20px; }
	.sec-head h2 { margin-bottom: 12px; }
	.sec-links { gap: 4px 18px; font-size: 14px; }
	.more { font-size: 14px; }
	.more--phone { display: block; }

	.shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ba { margin-bottom: 40px; }
	.shelf--panel { padding: 32px 32px 0; }

	.foot { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 72px; padding: 28px var(--pad) 36px; }

	/* Logos. */
	.logos-head { padding-top: 56px; }
	.filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px var(--gap); }
	.results-line { margin-top: 24px; flex-wrap: wrap; }
	.logos-head + .results { margin-top: 32px; }
	.archive-head { padding-top: 56px; }
	.results { margin-top: 32px; }

	/* Pages. */
	.page-head { padding-top: 56px; }
	.page-intro, .book-main { max-width: 640px; }
	.book-cover { display: block; width: 50%; max-width: 320px; margin-top: 40px; }
	.sec-row { padding-top: 64px; }
	.sec-row > h2 { margin-bottom: 16px; }
	.sec-row > h2 + * { margin-top: 0; }
	.book-more > h2:nth-of-type(2) { margin-top: 48px; }
	.book-more > p:nth-of-type(2) { margin-top: 0; }
	.chapter-row { padding-top: 40px; }
	.stores { padding: 24px; }
	.shelf-sec { margin-top: 56px; }

	/* Posts: one column, credits after the lead image. */
	.post { padding-top: 36px; }
	.post > * + * { margin-top: 0; }
	.crumb { margin-bottom: 12px; padding-right: 0; }
	.post-title { font-size: 22px; font-weight: 600; }
	.dek { max-width: none; }
	.lead { display: block; margin: 36px calc(var(--pad) * -1) 0; }
	.lead--panel .lead-panel { aspect-ratio: 4 / 3; max-height: none; padding: 32px; }
	.lead figcaption, .fig--wide figcaption { margin: 10px var(--pad) 0; }
	.post-body { display: flex; flex-direction: column; margin-top: 28px; }
	.post-body > * + * { margin-top: 0; }
	.post-credits { align-self: stretch; margin: 0 0 32px; padding: 0; }
	.post-body > .post-dates { margin-top: 32px; }
	.post-body > .book-line { margin-top: 4px; }
	.foot .dots { align-self: flex-start; }
	.credits > div { grid-template-columns: 84px minmax(0, 1fr); }
	.post-body > .fig--wide + .run, .post-body > .run + .fig--wide, .post-body > .fig--wide + .fig--wide { margin-top: 32px; }
	.fig--wide { display: block; margin: 0 calc(var(--pad) * -1); }
	.fig--wide.work-wide { margin: 0; }
	.work-after { margin-top: 48px; }
	.fig, .fig-grid, .video, .embed { margin: 32px 0; }
	.fig--small .fig-panel, .fig--auto .fig-panel { padding: 32px 20px; }
	.post-after .nl-panel { margin-top: 48px; padding: 24px; }
	.comments { margin-top: 48px; }
	.sponsor { margin-top: 48px; }
	.related { margin-top: 64px; }
	.page-lead .lead { margin-top: 0; }
	.page-body { margin-top: 40px; }
}

@media (max-width: 639px) {
	:root { --pad: 20px; }

	.hero { padding-top: 48px; padding-bottom: 36px; }
	.hero-title { font-size: 20px; line-height: 1.35; }
	.display { font-size: 22px; }

	.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
	.t-title { margin-top: 8px; }
	.t-credit { margin-top: 2px; }

	.book-panel { padding: 40px 24px; }
	.book-panel-cover { width: 52%; }
	.book-panel .actions { font-size: 14px; }
	.book-panel .actions .btn, .book-main .btn { height: 44px; font-size: 16px; }
	.nl-home { padding: 32px 24px; }
	.nl-form { gap: 12px; }

	.shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
	.shelf--panel { padding: 24px 20px 0; }

	.filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
	details.dd ul { min-width: 0; }
	.filters .filter:nth-child(even) details.dd ul { left: auto; right: 0; min-width: 200px; }
	.sort { width: 100%; }

	.stores ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.chapter { flex-direction: column; align-items: flex-start; padding: 24px; }
	.issues a.iss { grid-template-columns: minmax(0, 1fr); }
	.issues a.iss > .note { padding-top: 0; margin-bottom: 4px; }
	.praise blockquote { font-size: 18px; }

	.post-title { font-size: 22px; }
	.fig-grid, .fig-grid.cols-3, .fig-grid.cols-4 { grid-template-columns: minmax(0, 1fr); }
	.cf { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.cf input[type="text"], .cf input[type="email"], .cf input[type="url"], .cf textarea { font-size: 16px; }
	.cf input[type="text"], .cf input[type="email"], .cf input[type="url"], .cf .btn { height: 44px; }

	.c .c { margin-left: 16px; }
	a.ad { align-items: flex-start; gap: 16px; padding: 20px; }
	.ad-img, .ad-img img { width: 100px; height: 77px; }
	#carbonads { padding: 20px; }
	#carbonads > span { grid-template-columns: 100px minmax(0, 1fr); column-gap: 16px; }
	#carbonads .carbon-img img { width: 100px; height: auto; }
	.related .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	/* Two across: never leave a single tile on the last row. */
	.tiles > .t:last-child:nth-child(odd) { display: none; }
	.cf input[type="checkbox"] { width: 20px; height: 20px; }
}

/* Larger screens than the design: keep the text column steady. */
@media (min-width: 1024px) {
	.menu { display: none !important; }
	/* Six tiles fill two rows on tablets and three on phones; five across on wider screens. */
	.tiles--six > :nth-child(6) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
	.masthead, .menu, .foot, .post-after, .related, .crumb { display: none !important; }
	body { background: #fff; }
}
