/*
Theme Name: MrGeekChris Modern
Theme URI: https://mrgeekchris.com/
Author: MrGeekChris
Author URI: https://mrgeekchris.com/
Description: A modern blog theme for MrGeekChris in the blue and black of the logo. A floating menu bar with the menu on the right, a floating social bar, and a right sidebar that follows the reader down the page.
Version: 1.1.1
Requires at least: 6.3
Tested up to: 6.8
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: mrgeekchris-modern
Tags: blog, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, sticky-post, threaded-comments, translation-ready
*/

/* ---------------------------------------------------------------
   1. Fonts (bundled, no outside requests)
   --------------------------------------------------------------- */

@font-face {
	font-family: "Bricolage Grotesque";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("assets/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Atkinson Hyperlegible";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Atkinson Hyperlegible";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2");
}

@font-face {
	font-family: "Atkinson Hyperlegible";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("assets/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
}

/* ---------------------------------------------------------------
   2. Tokens: every color comes from the logo's blue and black
   --------------------------------------------------------------- */

:root {
	--blue: #0067a4;
	--blue-deep: #00476f;
	--blue-pale: #e3f0f8;
	--blue-sky: #8fd0f5;
	--black: #000;
	--white: #fff;
	--text: #1d2830;
	--muted: #53626d;
	--paper: #f1f5f8;
	--line: #d3dfe8;

	--font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
	--font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;

	--wrap: 1200px;
	--gutter: 16px;
	--header-h: 68px;
	--float-gap: 12px;
	--admin-bar: var(--wp-admin--admin-bar--height, 0px);

	--radius-l: 24px;
	--radius-m: 16px;
	--radius-s: 10px;
	--shadow-float: 0 14px 34px -16px rgba(0, 40, 64, 0.5);
	--shadow-panel: 0 28px 56px -30px rgba(0, 40, 64, 0.45);
}

@media (min-width: 720px) {
	:root {
		--gutter: 24px;
		--header-h: 76px;
		--float-gap: 16px;
	}
}

/* ---------------------------------------------------------------
   3. Base
   --------------------------------------------------------------- */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + var(--float-gap) * 2 + var(--admin-bar));
}

body {
	margin: 0;
	padding-top: var(--float-gap);
	background: var(--paper);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.5em;
	color: var(--black);
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

p {
	margin: 0 0 1.2em;
}

a {
	color: var(--blue);
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--blue-deep);
}

img,
video,
iframe,
embed,
object {
	max-width: 100%;
}

img {
	height: auto;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

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

.band :focus-visible,
.site-footer :focus-visible,
.social-float :focus-visible {
	outline-color: var(--white);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	z-index: 1000;
	top: 8px;
	left: 8px;
	width: auto;
	height: auto;
	margin: 0;
	padding: 12px 18px;
	clip: auto;
	background: var(--black);
	color: var(--white);
	border-radius: 999px;
	font-weight: 700;
}

.wrap {
	width: min(var(--wrap), 100% - var(--gutter) * 2);
	margin-inline: auto;
}

.icon {
	display: block;
	flex: none;
}

/* ---------------------------------------------------------------
   4. Buttons and form fields
   --------------------------------------------------------------- */

.button,
.wp-block-button__link,
.wp-element-button,
input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 10px 22px;
	border: 0;
	border-radius: 999px;
	background: var(--black);
	color: var(--white);
	font-family: var(--font-body);
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s;
}

.button:hover,
.wp-block-button__link:hover,
.wp-element-button:hover,
input[type="submit"]:hover {
	background: var(--blue);
	color: var(--white);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="password"],
input[type="tel"],
input[type="number"],
textarea,
select {
	width: 100%;
	min-height: 46px;
	padding: 10px 14px;
	border: 1.5px solid var(--line);
	border-radius: var(--radius-s);
	background: var(--white);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline-offset: 0;
	border-color: var(--blue);
}

.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--black);
	color: var(--white);
	cursor: pointer;
	transition: background-color 0.15s;
}

.icon-btn:hover {
	background: var(--blue);
}

.search-form {
	display: flex;
	gap: 8px;
}

.search-form .search-field {
	flex: 1;
	min-width: 0;
	border-radius: 999px;
	padding-inline: 20px;
}

/* ---------------------------------------------------------------
   5. Floating header, with the menu on the right
   --------------------------------------------------------------- */

.site-header {
	position: sticky;
	top: calc(var(--float-gap) + var(--admin-bar));
	z-index: 100;
	width: min(var(--wrap), 100% - var(--gutter) * 2);
	margin-inline: auto;
}

@media (max-width: 600px) {
	/* The WordPress toolbar scrolls away on phones. */
	.site-header {
		top: var(--float-gap);
	}
}

.header-bar {
	display: flex;
	align-items: center;
	gap: 12px;
	height: var(--header-h);
	padding: 0 12px 0 18px;
	border-radius: 22px;
	background: var(--white);
	box-shadow: var(--shadow-float);
}

.site-branding {
	flex: none;
	margin-right: auto;
}

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

/* !important: lazy-load plugins write their own sizes onto images, which
   would otherwise shrink the logo to a sliver. */
.custom-logo {
	display: block;
	width: auto !important;
	height: calc(var(--header-h) - 18px) !important;
	max-width: 52vw;
	object-fit: contain;
	object-position: left center;
	opacity: 1 !important;
}

.primary-nav {
	display: none;
}

.header-actions {
	display: flex;
	gap: 8px;
}

@media (min-width: 1040px) {
	.primary-nav {
		display: block;
	}

	.menu-toggle {
		display: none;
	}
}

.primary-nav .menu {
	display: flex;
	align-items: center;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-nav .menu > li {
	position: relative;
}

.primary-nav a {
	display: block;
	padding: 10px 14px;
	border-radius: 999px;
	color: var(--black);
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s;
}

.primary-nav a:hover {
	background: var(--blue-pale);
	color: var(--blue-deep);
}

.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a,
.primary-nav .current-menu-ancestor > a {
	background: var(--blue);
	color: var(--white);
}

.primary-nav .sub-menu {
	position: absolute;
	top: 100%;
	right: 0;
	min-width: 220px;
	margin: 0;
	padding: 8px;
	list-style: none;
	border-radius: var(--radius-m);
	background: var(--white);
	box-shadow: var(--shadow-float);
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.15s, visibility 0.15s;
}

.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu {
	visibility: visible;
	opacity: 1;
}

.primary-nav .sub-menu a {
	border-radius: var(--radius-s);
	white-space: normal;
}

/* ---------------------------------------------------------------
   6. Phone menu (slides in from the right) and search
   --------------------------------------------------------------- */

dialog {
	border: 0;
	color: var(--text);
}

dialog::backdrop {
	background: rgba(0, 30, 48, 0.6);
}

.drawer {
	position: fixed;
	inset: 12px 12px 12px auto;
	width: min(360px, 100% - 24px);
	height: calc(100% - 24px);
	max-height: none;
	margin: 0;
	padding: 16px 20px 24px;
	border-radius: var(--radius-l);
	background: var(--white);
	overflow-y: auto;
}

.drawer[open] {
	animation: drawer-in 0.22s ease-out;
}

@keyframes drawer-in {
	from {
		transform: translateX(24px);
		opacity: 0;
	}
}

.drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.drawer__title {
	color: var(--muted);
	font-weight: 700;
}

.drawer__nav .menu,
.drawer__nav .sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.drawer__nav a {
	display: block;
	padding: 12px 0;
	border-bottom: 1px solid var(--line);
	color: var(--black);
	font-family: var(--font-display);
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}

.drawer__nav .sub-menu a {
	padding-left: 18px;
	font-size: 1.125rem;
	font-weight: 600;
}

.drawer__nav .current-menu-item > a,
.drawer__nav .current_page_item > a,
.drawer__nav a:hover {
	color: var(--blue);
}

.search-dialog {
	width: min(680px, 100% - 24px);
	margin: 14vh auto auto;
	padding: 14px;
	border-radius: 999px;
	background: var(--white);
}

.search-dialog__inner {
	display: flex;
	align-items: center;
	gap: 8px;
}

.search-dialog .search-form {
	flex: 1;
	min-width: 0;
}

.search-dialog .search-field {
	border-color: transparent;
	font-size: 1.125rem;
}

.search-dialog .icon-btn {
	background: var(--blue-pale);
	color: var(--black);
}

.search-dialog .icon-btn:hover {
	background: var(--blue);
	color: var(--white);
}

@media (max-width: 520px) {
	.search-dialog {
		border-radius: var(--radius-l);
	}

	.search-dialog .search-submit {
		display: none;
	}
}

/* ---------------------------------------------------------------
   7. Social links, and the floating social bar
   --------------------------------------------------------------- */

.social-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 44px;
	height: 44px;
	border-radius: 999px;
	color: inherit;
	text-decoration: none;
	transition: background-color 0.15s, color 0.15s;
}

.social-float {
	position: fixed;
	z-index: 90;
	right: 16px;
	bottom: 16px;
	display: flex;
	flex-direction: column-reverse;
	align-items: center;
	gap: 10px;
}

.social-float-left .social-float {
	right: auto;
	left: 16px;
}

.social-float__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	padding: 0;
	border: 2px solid var(--white);
	border-radius: 50%;
	background: var(--black);
	color: var(--white);
	box-shadow: var(--shadow-float);
	cursor: pointer;
	transition: background-color 0.15s;
}

.social-float__toggle:hover,
.social-float.is-open .social-float__toggle {
	background: var(--blue);
}

.social-float__close,
.social-float.is-open .social-float__open {
	display: none;
}

.social-float.is-open .social-float__close {
	display: block;
}

.social-float__panel {
	padding: 6px;
	border: 2px solid var(--white);
	border-radius: 999px;
	background: var(--black);
	color: var(--white);
	box-shadow: var(--shadow-float);
	visibility: hidden;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}

.social-float.is-open .social-float__panel {
	visibility: visible;
	opacity: 1;
	transform: none;
}

.social-list--float {
	flex-direction: column;
	flex-wrap: nowrap;
	gap: 2px;
}

.social-list--float .social-link:hover {
	background: var(--blue);
	color: var(--white);
}

/* Wide screens: the bar is always open, floating beside the content. */
@media (min-width: 1400px) {
	.social-float {
		top: calc(50% + var(--admin-bar) / 2);
		bottom: auto;
		transform: translateY(-50%);
	}

	.social-float__toggle {
		display: none;
	}

	.social-float__panel {
		visibility: visible;
		opacity: 1;
		transform: none;
	}
}

/* Space so the floating button never covers the last line of the footer. */
@media (max-width: 1399px) {
	.has-social-float .footer-base {
		padding-bottom: 92px;
	}
}

.social-list--drawer {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-top: 24px;
}

.social-list--drawer .social-link {
	justify-content: flex-start;
	width: 100%;
	padding: 0 14px;
	background: var(--paper);
	color: var(--black);
	font-weight: 700;
	font-size: 0.9375rem;
}

.social-list--drawer .social-link:hover {
	background: var(--blue);
	color: var(--white);
}

/* ---------------------------------------------------------------
   8. The blue band: page title area under the floating header
   --------------------------------------------------------------- */

.band {
	margin-top: calc(-1 * (var(--header-h) + var(--float-gap)));
	padding: calc(var(--header-h) + var(--float-gap) + 44px) 0 44px;
	background: var(--blue);
	color: var(--white);
}

@media (min-width: 720px) {
	.band {
		padding-top: calc(var(--header-h) + var(--float-gap) + 64px);
		padding-bottom: 60px;
	}
}

.band__title {
	max-width: 22ch;
	margin: 0;
	color: var(--white);
	font-size: clamp(2rem, 1.1rem + 3.4vw, 3.5rem);
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: -0.025em;
}

.band__title--intro {
	max-width: 14ch;
	font-size: clamp(2.6rem, 1rem + 6.4vw, 5.25rem);
	line-height: 0.98;
	letter-spacing: -0.035em;
}

.band__text {
	max-width: 46ch;
	margin: 20px 0 0;
	color: var(--white);
	font-size: 1.1875rem;
	line-height: 1.5;
}

.band__text p:last-child {
	margin-bottom: 0;
}

.band__topics {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px;
}

.band__topics a {
	padding: 5px 14px;
	border-radius: 999px;
	background: var(--white);
	color: var(--blue-deep);
	font-size: 0.9375rem;
	font-weight: 700;
	text-decoration: none;
}

.band__topics a:hover {
	background: var(--black);
	color: var(--white);
}

.band .post-meta {
	margin-top: 20px;
	color: var(--white);
	font-size: 1rem;
}

.band .post-meta a {
	color: var(--white);
	font-weight: 700;
}

/* Homepage: the latest post and the sidebar float up over the band. */
.band--front {
	padding-bottom: 150px;
}

@media (min-width: 720px) {
	.band--front {
		padding-bottom: 170px;
	}
}

.is-front-listing .layout {
	margin-top: -110px;
	padding-top: 0;
}

/* ---------------------------------------------------------------
   9. Layout: content with the right sidebar
   --------------------------------------------------------------- */

.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 48px;
	padding-block: 40px 72px;
}

@media (min-width: 1040px) {
	.has-sidebar .layout:not(.layout--full) {
		grid-template-columns: minmax(0, 1fr) 320px;
		gap: 56px;
	}
}

.layout--full .content-area {
	width: min(820px, 100%);
	margin-inline: auto;
}

.layout--full .not-found {
	width: 100%;
}

.section-title {
	margin: 0 0 24px;
	font-size: 1.75rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.featured + .section-title {
	margin-top: 56px;
}

/* ---------------------------------------------------------------
   10. Latest post
   --------------------------------------------------------------- */

.featured {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius-l);
	background: var(--white);
	box-shadow: var(--shadow-panel);
}

.featured__image {
	display: block;
	aspect-ratio: 16 / 9;
	background: var(--blue-pale);
}

.featured__image img {
	display: block;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
}

.featured__flag {
	display: inline-block;
	margin: 0 0 14px;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--black);
	color: var(--white);
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.2;
}

.featured__image ~ .featured__body .featured__flag {
	position: absolute;
	top: 16px;
	left: 16px;
	margin: 0;
}

.featured__body {
	padding: 24px;
}

@media (min-width: 720px) {
	.featured__body {
		padding: 32px 36px 36px;
	}
}

.featured__title {
	margin: 0 0 12px;
	font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.375rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.025em;
}

.featured__title a,
.card__title a {
	color: var(--black);
	text-decoration: none;
}

.featured__title a:hover,
.card__title a:hover {
	color: var(--blue);
	text-decoration: underline;
	text-decoration-thickness: 2px;
}

.featured__excerpt {
	max-width: 62ch;
	color: var(--text);
}

.featured__excerpt p {
	margin-bottom: 0;
}

.featured__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
	margin-top: 24px;
}

.featured__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 18px;
}

/* ---------------------------------------------------------------
   11. Post listings
   --------------------------------------------------------------- */

.post-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 40px 32px;
}

@media (min-width: 640px) {
	.post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 900px) {
	.post-grid--three {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.card__image {
	display: block;
	aspect-ratio: 16 / 10;
	margin-bottom: 16px;
	overflow: hidden;
	border-radius: var(--radius-m);
	background: var(--blue-pale);
}

.card__image img {
	display: block;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.card:hover .card__image img {
	transform: scale(1.03);
}

/* A post without a picture gets a panel of its own so the grid stays even. */
.card:not(:has(.card__image)) {
	padding: 24px;
	border-radius: var(--radius-m);
	background: var(--white);
}

.topic {
	color: var(--blue);
	font-size: 0.9375rem;
	font-weight: 700;
	text-decoration: none;
}

.topic:hover {
	text-decoration: underline;
}

.card__title {
	margin: 4px 0 10px;
	font-size: 1.375rem;
	line-height: 1.18;
	letter-spacing: -0.015em;
}

.card__excerpt {
	color: var(--text);
	font-size: 1rem;
}

.card__excerpt p {
	margin-bottom: 10px;
}

.post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 18px;
	color: var(--muted);
	font-size: 0.9375rem;
}

.post-meta__read {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.sticky .card__title::before {
	content: "";
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-right: 8px;
	border-radius: 50%;
	background: var(--blue);
	vertical-align: 0.12em;
}

.no-results {
	max-width: 620px;
}

.is-front-listing .no-results {
	padding: 28px;
	border-radius: var(--radius-l);
	background: var(--white);
	box-shadow: var(--shadow-panel);
}

/* Pagination */

.pagination,
.comments-navigation {
	margin-top: 48px;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 46px;
	height: 46px;
	padding: 0 16px;
	border-radius: 999px;
	background: var(--white);
	color: var(--black);
	font-weight: 700;
	text-decoration: none;
}

a.page-numbers:hover {
	background: var(--blue);
	color: var(--white);
}

.page-numbers.current {
	background: var(--black);
	color: var(--white);
}

.page-numbers.dots {
	background: none;
	padding: 0;
	min-width: 24px;
}

/* ---------------------------------------------------------------
   12. Right sidebar: one floating panel that follows the reader
   --------------------------------------------------------------- */

.sidebar {
	display: grid;
	gap: 16px;
	align-content: start;
	align-self: start;
}

@media (min-width: 1040px) {
	.sidebar {
		position: sticky;
		top: var(--sidebar-top, calc(var(--header-h) + var(--float-gap) * 2 + var(--admin-bar)));
	}
}

.sidebar__panel {
	padding: 4px 24px;
	border-radius: var(--radius-l);
	background: var(--white);
}

.is-front-listing .sidebar__panel {
	box-shadow: var(--shadow-panel);
}

.sidebar .widget {
	padding: 22px 0;
	font-size: 1rem;
	line-height: 1.4;
}

.sidebar .widget + .widget {
	border-top: 1px solid var(--line);
}

.widget-title,
.widget .wp-block-heading,
.widget > h2,
.widget > h3 {
	margin: 0 0 12px;
	font-size: 1.1875rem;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.widget-title a {
	color: inherit;
	text-decoration: none;
}

.widget-title a:hover {
	color: var(--blue);
}

.widget .rss-widget-icon {
	display: none;
}

.widget ul,
.widget ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.widget li {
	padding: 9px 0;
}

.widget li + li {
	border-top: 1px dashed var(--line);
}

.widget li:first-child {
	padding-top: 0;
}

.widget li:last-child {
	padding-bottom: 0;
}

.widget li a {
	color: var(--black);
	font-weight: 700;
	text-decoration: none;
}

.widget li a:hover {
	color: var(--blue);
	text-decoration: underline;
}

.widget .post-date,
.widget .rss-date,
.widget .wp-block-latest-posts__post-date,
.widget .wp-block-rss__item-publish-date {
	display: block;
	margin-top: 2px;
	color: var(--muted);
	font-size: 0.875rem;
}

.widget .rssSummary,
.widget cite {
	display: block;
	color: var(--muted);
	font-size: 0.9375rem;
	font-style: normal;
}

.widget select {
	appearance: none;
	padding-right: 40px;
	border-radius: 999px;
	padding-left: 18px;
	background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center;
	border-color: transparent;
	font-weight: 700;
	cursor: pointer;
}

.widget .search-form,
.widget .wp-block-search__inside-wrapper {
	display: flex;
	gap: 6px;
}

.widget .search-submit,
.widget .wp-block-search__button {
	padding-inline: 16px;
	margin: 0;
}

.widget .tagcloud a,
.widget .wp-block-tag-cloud a {
	display: inline-block;
	margin: 0 4px 6px 0;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--blue-pale);
	color: var(--blue-deep);
	font-size: 0.9375rem !important;
	font-weight: 700;
	text-decoration: none;
}

/* ---------------------------------------------------------------
   13. Posts and pages
   --------------------------------------------------------------- */

.entry__image {
	margin: 0 0 36px;
}

.entry__image img {
	display: block;
	width: 100%;
	border-radius: var(--radius-l);
}

.entry-content {
	font-size: 1.1875rem;
	line-height: 1.7;
}

.entry-content > * {
	max-width: 68ch;
}

.entry-content > .alignwide,
.entry-content > .alignfull,
.entry-content > .wp-block-table,
.entry-content > .wp-block-embed,
.entry-content > .wp-block-image,
.entry-content > .wp-block-gallery,
.entry-content > .wp-block-columns,
.entry-content > .wp-block-cover,
.entry-content > .wp-block-media-text,
.entry-content > pre,
.entry-content > table,
.entry-content > figure {
	max-width: 100%;
}

.entry-content h2 {
	margin: 1.7em 0 0.5em;
	font-size: 1.875rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.entry-content h3 {
	margin: 1.6em 0 0.4em;
	font-size: 1.5rem;
}

.entry-content h4 {
	margin: 1.5em 0 0.4em;
	font-size: 1.25rem;
}

.entry-content > :first-child {
	margin-top: 0;
}

.entry-content ul,
.entry-content ol {
	margin: 0 0 1.2em;
	padding-left: 1.3em;
}

.entry-content li {
	margin-bottom: 0.4em;
}

.entry-content li::marker {
	color: var(--blue);
	font-weight: 700;
}

.entry-content img {
	border-radius: var(--radius-s);
}

.entry-content figure {
	margin: 2em 0;
}

.entry-content figcaption,
.wp-caption-text,
.gallery-caption {
	margin-top: 8px;
	color: var(--muted);
	font-size: 0.9375rem;
	line-height: 1.4;
}

.entry-content blockquote {
	margin: 2em 0;
	padding: 4px 0 4px 24px;
	border-left: 5px solid var(--blue);
	color: var(--black);
	font-family: var(--font-display);
	font-size: 1.375rem;
	font-weight: 600;
	line-height: 1.35;
}

.entry-content blockquote p:last-child {
	margin-bottom: 0;
}

.entry-content blockquote cite {
	display: block;
	margin-top: 10px;
	color: var(--muted);
	font-family: var(--font-body);
	font-size: 1rem;
	font-style: normal;
	font-weight: 400;
}

.entry-content code,
.entry-content kbd {
	padding: 0.12em 0.4em;
	border-radius: 6px;
	background: var(--blue-pale);
	color: var(--blue-deep);
	font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
	font-size: 0.88em;
}

.entry-content pre {
	margin: 2em 0;
	padding: 20px 22px;
	overflow-x: auto;
	border-radius: var(--radius-m);
	background: var(--black);
	color: var(--white);
	font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
	font-size: 0.9375rem;
	line-height: 1.6;
	tab-size: 4;
}

.entry-content pre code {
	padding: 0;
	background: none;
	color: inherit;
	font-size: inherit;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 1rem;
	line-height: 1.4;
}

.entry-content th,
.entry-content td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.entry-content th {
	border-bottom: 2px solid var(--black);
	color: var(--black);
}

.entry-content hr {
	height: 2px;
	margin: 2.5em 0;
	border: 0;
	background: var(--line);
}

.alignleft {
	float: left;
	margin: 0.3em 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: 0.3em 0 1em 1.5em;
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.wp-caption {
	max-width: 100%;
}

.entry-content::after {
	content: "";
	display: block;
	clear: both;
}

.page-links {
	display: flex;
	gap: 6px;
	margin-top: 32px;
	font-weight: 700;
}

.entry__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 40px;
}

.entry__tags-label {
	color: var(--muted);
	font-weight: 700;
}

.entry__tags a {
	padding: 5px 14px;
	border-radius: 999px;
	background: var(--blue-pale);
	color: var(--blue-deep);
	font-size: 0.9375rem;
	font-weight: 700;
	text-decoration: none;
}

.entry__tags a:hover {
	background: var(--blue);
	color: var(--white);
}

.post-navigation {
	margin-top: 56px;
}

.post-navigation .nav-links {
	display: grid;
	gap: 12px;
}

@media (min-width: 640px) {
	.post-navigation .nav-links {
		grid-template-columns: 1fr 1fr;
	}

	.post-navigation .nav-next {
		grid-column: 2;
		text-align: right;
	}
}

.post-navigation a {
	display: block;
	height: 100%;
	padding: 18px 22px;
	border-radius: var(--radius-m);
	background: var(--white);
	text-decoration: none;
	transition: background-color 0.15s;
}

.post-navigation a:hover {
	background: var(--blue-pale);
}

.nav-label {
	display: block;
	color: var(--muted);
	font-size: 0.9375rem;
}

.nav-title {
	display: block;
	margin-top: 2px;
	color: var(--black);
	font-family: var(--font-display);
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.25;
}

/* ---------------------------------------------------------------
   14. Comments
   --------------------------------------------------------------- */

.comments {
	margin-top: 64px;
}

.comment-list,
.comment-list .children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.comment-list .children {
	margin-left: 20px;
	padding-left: 16px;
	border-left: 3px solid var(--blue-pale);
}

.comment-body {
	margin-bottom: 14px;
	padding: 18px 22px;
	border-radius: var(--radius-m);
	background: var(--white);
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--black);
	font-weight: 700;
}

.comment-author .avatar {
	flex: none;
	width: 44px !important;
	height: 44px !important;
	border-radius: 50%;
	object-fit: cover;
}

.comment-author .says {
	display: none;
}

.comment-author a {
	color: inherit;
	text-decoration: none;
}

.comment-metadata {
	margin: 4px 0 10px;
	font-size: 0.875rem;
}

.comment-metadata a {
	color: var(--muted);
	text-decoration: none;
}

.comment-content p:last-child {
	margin-bottom: 0;
}

.bypostauthor > .comment-body {
	box-shadow: inset 4px 0 0 var(--blue);
}

.reply {
	margin-top: 10px;
	font-size: 0.9375rem;
	font-weight: 700;
}

.comment-respond {
	margin-top: 40px;
}

.comment-form {
	display: grid;
	gap: 16px;
	max-width: 680px;
}

.comment-form p {
	margin: 0;
}

.comment-form label {
	display: block;
	margin-bottom: 6px;
	color: var(--black);
	font-weight: 700;
}

.comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.comment-form-cookies-consent label {
	margin: 0;
	font-weight: 400;
}

.comment-form-cookies-consent input {
	margin-top: 5px;
}

.comment-notes,
.logged-in-as {
	color: var(--muted);
	font-size: 0.9375rem;
}

/* ---------------------------------------------------------------
   15. Footer
   --------------------------------------------------------------- */

.site-footer {
	padding-top: 56px;
	background: var(--black);
	color: var(--white);
}

.site-footer a {
	color: var(--white);
}

.footer-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 32px;
	padding-bottom: 48px;
}

.footer-widgets .widget-title,
.footer-widgets .wp-block-heading {
	color: var(--white);
}

.footer-widgets .widget li + li {
	border-color: #333;
}

.footer-widgets .widget li a:hover {
	color: var(--blue-sky);
}

.footer-widgets .post-date,
.footer-widgets .rss-date {
	color: #b6c2cb;
}

.footer-main {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 28px 40px;
	padding-bottom: 40px;
}

.footer-brand__name {
	display: inline-block;
	font-family: var(--font-display);
	font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.035em;
	text-decoration: none;
}

.footer-brand__name:hover {
	color: var(--blue-sky);
}

.footer-brand__tagline {
	margin: 10px 0 0;
	color: #b6c2cb;
	font-size: 1.125rem;
}

.social-list--footer .social-link {
	width: 46px;
	height: 46px;
	background: #1c1c1c;
}

.social-list--footer .social-link:hover {
	background: var(--blue);
}

.footer-base {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 28px;
	padding-block: 22px;
	border-top: 1px solid #2b2b2b;
	color: #b6c2cb;
	font-size: 0.9375rem;
}

.footer-copy {
	margin: 0;
}

.footer-nav .menu {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-nav a,
.to-top {
	color: #b6c2cb;
	text-decoration: none;
}

.footer-nav a:hover,
.to-top:hover {
	color: var(--white);
	text-decoration: underline;
}

.to-top {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
}

/* ---------------------------------------------------------------
   16. Reduced motion and print
   --------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
}

@media print {
	.site-header,
	.social-float,
	.sidebar,
	.site-footer,
	.post-navigation,
	.comment-respond {
		display: none !important;
	}

	.band {
		margin-top: 0;
		padding: 0 0 16px;
		background: none;
		color: #000;
	}

	.band__title {
		color: #000;
	}
}

/* ---------------------------------------------------------------
   17. Search forms inside empty and not-found pages
   --------------------------------------------------------------- */

.not-found .search-form {
	max-width: 620px;
	margin-bottom: 56px;
}

.no-results .search-form {
	margin-top: 20px;
}

/* ---------------------------------------------------------------
   18. Post page: a white sheet that floats up over the blue band
   --------------------------------------------------------------- */

.has-sheet .band {
	padding-bottom: 130px;
}

@media (min-width: 720px) {
	.has-sheet .band {
		padding-bottom: 150px;
	}
}

.has-sheet .layout {
	margin-top: -90px;
	padding-top: 0;
}

.has-sheet .sidebar__panel {
	box-shadow: var(--shadow-panel);
}

.entry--sheet {
	overflow: hidden;
	border-radius: var(--radius-l);
	background: var(--white);
	box-shadow: var(--shadow-panel);
}

/* White behind the picture, so see-through pictures blend into the post. */
.entry--sheet .entry__image {
	margin: 0;
	background: var(--white);
}

.entry--sheet .entry__image img {
	height: auto !important;
	border-radius: 0;
}

.entry__body {
	padding: 28px 22px 30px;
}

@media (min-width: 720px) {
	.entry__body {
		padding: 44px 48px 44px;
	}
}

/* The opening paragraph reads as the post's summary. */
.entry--sheet .entry-content > p:first-child {
	color: var(--black);
	font-size: 1.375rem;
	line-height: 1.5;
}

.entry--sheet .entry-content h2 {
	scroll-margin-top: calc(var(--header-h) + var(--float-gap) * 2 + var(--admin-bar) + 8px);
}

.entry__foot {
	display: grid;
	gap: 22px;
	margin-top: 44px;
	padding-top: 26px;
	border-top: 2px solid var(--blue-pale);
}

.entry__foot .entry__tags {
	margin-top: 0;
}

.share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
}

.share__label {
	color: var(--black);
	font-family: var(--font-display);
	font-size: 1.125rem;
	font-weight: 700;
}

.share__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.share__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	border: 0;
	border-radius: 999px;
	background: var(--paper);
	color: var(--black);
	font-size: 0.9375rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s;
}

.share__link:hover,
.share__link.is-copied {
	background: var(--blue);
	color: var(--white);
}

/* The author sits on the same white sheet as the post, so the picture
   blends into the post instead of sitting in a box of its own. */
.author-box {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 0 22px;
	padding: 24px 0 30px;
	border-top: 2px solid var(--blue-pale);
}

@media (min-width: 720px) {
	.author-box {
		margin: 0 48px;
		padding: 28px 0 40px;
	}
}

/* The frame fixes the picture's size, whatever a plugin does to the image. */
.author-box__avatar {
	flex: 0 0 72px;
	width: 72px;
	height: 72px;
	overflow: hidden;
	border-radius: 50%;
}

.author-box__avatar img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	border-radius: 0;
	object-fit: cover;
}

.author-box__body {
	min-width: 0;
}

.author-box__name {
	margin: 0 0 4px;
	color: var(--black);
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.2;
}

.author-box__bio {
	max-width: 56ch;
	margin: 0 0 8px;
	color: var(--text);
	font-size: 1rem;
	line-height: 1.5;
}

.author-box__link {
	font-weight: 700;
}

.related {
	margin-top: 64px;
}

/* Reading progress, along the bottom edge of the floating header. */
.header-bar {
	position: relative;
}

.read-progress {
	position: absolute;
	right: 22px;
	bottom: 0;
	left: 22px;
	height: 4px;
	overflow: hidden;
	border-radius: 4px 4px 0 0;
}

.read-progress__bar {
	display: block;
	height: 100%;
	background: var(--blue);
	transform: scaleX(0);
	transform-origin: left center;
}

/* "In this post": the post's headings, in a floating panel of their own. */
.sidebar__toc {
	display: none;
}

@media (min-width: 1040px) {
	.sidebar__toc {
		display: block;
	}

	/* Sidebar taller than the window: the heading list stays in view and the
	   widgets scroll away underneath it, the same way posts pass under the header. */
	.sidebar--split {
		display: block;
		position: static;
		align-self: stretch;
	}

	.sidebar--split .sidebar__toc {
		position: sticky;
		top: var(--sidebar-rest, 120px);
		z-index: 2;
		margin-bottom: 16px;
		box-shadow: var(--shadow-float);
	}
}

.sidebar .toc li {
	padding: 0;
	border: 0;
}

.sidebar .toc li a {
	display: block;
	padding: 7px 12px;
	border-left: 3px solid var(--blue-pale);
	color: var(--text);
	font-weight: 400;
}

.sidebar .toc li a:hover {
	border-left-color: var(--blue);
	color: var(--blue);
	text-decoration: none;
}

.sidebar .toc li a[aria-current] {
	border-left-color: var(--blue);
	color: var(--black);
	font-weight: 700;
}
