/*
Theme Name:        The IT Guy
Theme URI:         https://theitguy.uk
Author:            The IT Guy
Author URI:        https://theitguy.uk
Description:       Bespoke theme for The IT Guy, a break/fix computer repair and IT support business in Bedfordshire. One-page homepage with services, process, prices, FAQ and a booking form, plus blog and page templates. Homepage content, contact details, opening hours and the booking form are edited in Appearance → Customize.
Version:           1.0.1
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:       the-it-guy
Tags:              one-column, custom-logo, custom-menu, editor-style, featured-images, threaded-comments, translation-ready, wide-blocks
*/

/*
 * Global stylesheet: loaded on every page, and in the block editor.
 * Homepage sections live in assets/css/front-page.css and load on the homepage only.
 *
 * Contents
 *  1. Design tokens (light + dark)
 *  2. Base elements
 *  3. Utilities (labels, buttons, screen-reader text, skip link)
 *  4. Site header and navigation
 *  5. Page headers
 *  6. Post lists, single posts and comments
 *  7. Block / entry content
 *  8. Forms
 *  9. Job sheet component (homepage hero and 404)
 * 10. Site footer
 * 11. Responsive rules
 * 12. Reduced motion
 */

/* ==========================================================================
   1. Design tokens
   Layout concept: workbench page — a job-ticket hero, then services, process,
   pricing and contact in one narrow column with full-width bands.
   ========================================================================== */
:root {
	--bg: #f3f5f7;
	--surface: #ffffff;
	--ink: #14202b;
	--muted: #55636f;
	--line: #d5dce2;
	--accent: #f2b705;
	--accent-ink: #14202b;
	--stamp: #1f7a4d;
	--notice-bg: #fff3c4;
	--notice-line: #c99700;
	--band: #14202b;
	--band-ink: #eef2f5;
	--band-muted: #9fb0bd;
	--focus: #14202b;

	--display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
	--body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

	--wrap: 1080px;
	--content: 720px;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0f171e;
		--surface: #16212b;
		--ink: #e8edf1;
		--muted: #9aa9b5;
		--line: #2a3946;
		--stamp: #4cc38a;
		--notice-bg: #3a3110;
		--notice-line: #d9a90a;
		--band: #0a1015;
		--band-ink: #e8edf1;
		--band-muted: #8798a6;
		--focus: #f2b705;
		color-scheme: dark;
	}
}

/*
 * Keep the block editor colour palette (theme.json) in step with the tokens,
 * so colours picked in the editor also switch in dark mode.
 * html:root out-ranks the :root rule WordPress prints for presets.
 */
html:root {
	--wp--preset--color--accent: var(--accent);
	--wp--preset--color--ink: var(--ink);
	--wp--preset--color--muted: var(--muted);
	--wp--preset--color--surface: var(--surface);
	--wp--preset--color--background: var(--bg);
	--wp--preset--color--line: var(--line);
	--wp--preset--color--stamp: var(--stamp);
}

/* ==========================================================================
   2. Base elements
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--body);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-text-size-adjust: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--display);
	line-height: 1.05;
	text-wrap: balance;
	margin: 0;
}

h2 {
	font-size: clamp(1.9rem, 4vw, 2.6rem);
	font-weight: 800;
	font-stretch: 85%;
	letter-spacing: -0.01em;
}

h3 {
	font-size: 1.2rem;
	font-weight: 700;
}

p {
	margin: 0;
}

a {
	color: inherit;
}

img,
video,
iframe {
	max-width: 100%;
	height: auto;
}

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

.wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	padding-left: max(16px, env(safe-area-inset-left, 0px));
	padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.site-main {
	overflow-x: clip; /* lets full-width blocks reach the edges without a sideways scrollbar */
}

.site-main:focus {
	outline: none; /* focused only by the skip link */
}

.cta-row {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 28px;
}

/* ==========================================================================
   3. Utilities
   ========================================================================== */
.label {
	font-family: var(--mono);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--muted);
}

.btn,
.wp-block-button__link,
.wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	font-family: var(--body);
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.3;
	padding: 12px 20px;
	border-radius: 6px;
	text-decoration: none;
	border: 2px solid var(--ink);
	cursor: pointer;
}

.btn-primary,
.wp-block-button__link,
.wp-element-button {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--accent-ink);
}

.btn-primary:hover,
.wp-block-button__link:hover,
.wp-element-button:hover {
	filter: brightness(1.05);
}

.btn-ghost,
.is-style-outline > .wp-block-button__link {
	background: transparent;
	border-color: var(--ink);
	color: var(--ink);
}

.btn-ghost:hover,
.is-style-outline > .wp-block-button__link:hover {
	background: var(--surface);
	filter: none;
}

.btn[disabled] {
	opacity: 0.6;
	cursor: progress;
}

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	clip-path: none;
	height: auto;
	width: auto;
}

.skip-link:focus {
	position: fixed !important;
	top: calc(8px + env(safe-area-inset-top, 0px));
	left: max(8px, env(safe-area-inset-left, 0px));
	z-index: 100;
	padding: 12px 18px;
	background: var(--accent);
	color: var(--accent-ink);
	font-weight: 600;
	border-radius: 6px;
	text-decoration: none;
}

/* ==========================================================================
   4. Site header and navigation
   ========================================================================== */
.site-header {
	border-bottom: 1px solid var(--line);
	background: var(--bg);
}

.site-header .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-block: 14px;
	flex-wrap: wrap;
}

.logo {
	font-family: var(--display);
	font-weight: 900;
	font-stretch: 75%;
	font-size: 1.6rem;
	line-height: 1.2;
	text-decoration: none;
	letter-spacing: -0.01em;
	display: flex;
	align-items: center;
	gap: 10px;
}

.logo-mark {
	width: 30px;
	height: 30px;
	background: var(--accent);
	color: var(--accent-ink);
	display: grid;
	place-items: center;
	border-radius: 6px;
	font-size: 1rem;
	font-stretch: 100%;
	flex-shrink: 0;
}

.custom-logo-link {
	display: inline-flex;
}

.custom-logo {
	display: block;
	max-height: 48px;
	width: auto;
}

.menu-toggle {
	display: none; /* shown on small screens once JavaScript has loaded */
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 8px 14px;
	font: 600 0.95rem/1 var(--body);
	color: var(--ink);
	background: transparent;
	border: 2px solid var(--ink);
	border-radius: 6px;
	cursor: pointer;
}

.menu-toggle-icon {
	position: relative;
	width: 18px;
	height: 2px;
	background: currentColor;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
	content: "";
	position: absolute;
	left: 0;
	width: 18px;
	height: 2px;
	background: currentColor;
}

.menu-toggle-icon::before {
	top: -6px;
}

.menu-toggle-icon::after {
	top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon {
	background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before {
	top: 0;
	transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after {
	top: 0;
	transform: rotate(-45deg);
}

.main-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 4px 20px;
	flex-wrap: wrap;
	font-size: 0.95rem;
}

.main-nav a {
	display: inline-block;
	padding-block: 4px;
	text-decoration: none;
	color: var(--muted);
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
	color: var(--ink);
}

.main-nav .sub-menu {
	display: none; /* the approved header is a single row; sub-items show in the mobile menu */
}

/* ==========================================================================
   5. Page headers (pages, posts, archives, search, 404)
   ========================================================================== */
.page-header {
	border-bottom: 1px solid var(--line);
}

.page-header .wrap {
	display: grid;
	gap: 14px;
	padding-block: 56px 48px;
}

.page-title {
	font-size: clamp(2.2rem, 5.5vw, 3.6rem);
	font-weight: 900;
	font-stretch: 75%;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	max-width: 22ch;
	overflow-wrap: break-word;
}

.page-intro {
	color: var(--muted);
	font-size: 1.1rem;
	max-width: 40em;
}

.page-body {
	padding-block: 48px 72px;
}

/* ==========================================================================
   6. Post lists, single posts and comments
   ========================================================================== */
.post-list {
	border-top: 2px solid var(--ink);
}

.post-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 240px;
	gap: 28px;
	padding-block: 28px;
	border-bottom: 1px solid var(--line);
	align-items: start;
}

.post-row:not(.has-post-thumbnail) {
	grid-template-columns: minmax(0, 1fr);
}

.post-row-text {
	display: grid;
	gap: 10px;
	min-width: 0;
}

.post-row h2 {
	font-size: clamp(1.4rem, 3vw, 1.8rem);
}

.post-row h2 a {
	text-decoration: none;
}

.post-row h2 a:hover {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.post-row-excerpt {
	color: var(--muted);
	max-width: 65ch;
}

.post-row-thumb img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: 4px;
	border: 1px solid var(--line);
}

.read-more {
	font-weight: 600;
	justify-self: start;
	padding-block: 2px;
}

.entry-meta a {
	color: inherit;
}

.featured-image {
	margin: 0 0 40px;
}

.featured-image img {
	display: block;
	width: 100%;
	border-radius: 4px;
}

.entry-footer {
	max-width: var(--content);
	margin: 40px auto 0;
	padding-top: 20px;
	border-top: 1px solid var(--line);
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
}

.post-navigation {
	max-width: var(--content);
	margin: 48px auto 0;
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	border-top: 2px solid var(--ink);
}

.post-navigation a {
	display: grid;
	gap: 6px;
	padding: 18px 0;
	text-decoration: none;
	font-weight: 600;
}

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

.post-navigation .nav-next a {
	justify-items: end;
}

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

.pagination .nav-links,
.comments-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-family: var(--mono);
}

.pagination .page-numbers,
.comments-pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: 6px;
	text-decoration: none;
	background: var(--surface);
}

.pagination .page-numbers.current,
.comments-pagination .page-numbers.current {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--bg);
}

.comments-area {
	max-width: var(--content);
	margin: 56px auto 0;
	display: grid;
	gap: 24px;
}

.comments-title {
	font-size: 1.6rem;
	font-weight: 800;
	font-stretch: 85%;
}

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

.comment-list {
	border-top: 2px solid var(--ink);
}

.comment-list .children {
	padding-left: 24px;
	border-left: 1px solid var(--line);
}

.comment-body {
	padding-block: 20px;
	border-bottom: 1px solid var(--line);
	display: grid;
	gap: 8px;
}

.comment-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	align-items: center;
	font-size: 0.9rem;
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
}

.comment-author .avatar {
	border-radius: 50%;
}

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

.comment-metadata {
	font-family: var(--mono);
	font-size: 0.75rem;
	color: var(--muted);
}

.comment-metadata a {
	text-decoration: none;
}

.comment-content p + p {
	margin-top: 0.8em;
}

.reply {
	font-size: 0.9rem;
	font-weight: 600;
}

.comment-respond {
	display: grid;
	gap: 14px;
}

.comment-reply-title {
	font-size: 1.4rem;
	font-weight: 800;
	font-stretch: 85%;
}

.comment-form p {
	display: grid;
	gap: 6px;
}

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

.comment-form .comment-form-cookies-consent input {
	margin: 0;
}

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

/* ==========================================================================
   7. Block / entry content
   Content column is --content wide; wide and full alignments break out of it.
   ========================================================================== */
.entry-content > * {
	max-width: var(--content);
	margin-left: auto;
	margin-right: auto;
}

.entry-content > * + * {
	margin-top: 1.25em;
}

.entry-content > .alignwide {
	max-width: var(--wrap);
}

.entry-content > .alignfull {
	max-width: none;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.entry-content > .alignleft {
	float: left;
	margin: 0.3em 1.5em 1em 0;
	max-width: 50%;
}

.entry-content > .alignright {
	float: right;
	margin: 0.3em 0 1em 1.5em;
	max-width: 50%;
}

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

.entry-content h2 {
	margin-top: 1.6em;
}

.entry-content h3,
.entry-content h4 {
	margin-top: 1.4em;
}

.entry-content h4 {
	font-size: 1.05rem;
	font-weight: 700;
}

.entry-content a {
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.entry-content a:hover {
	text-decoration-thickness: 2px;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.4em;
}

.entry-content li + li {
	margin-top: 0.35em;
}

.entry-content blockquote,
.wp-block-quote {
	border-left: 4px solid var(--accent);
	padding: 4px 0 4px 20px;
	margin-inline: auto;
	font-size: 1.1rem;
}

.wp-block-quote cite,
.wp-block-pullquote cite {
	display: block;
	margin-top: 8px;
	font-family: var(--mono);
	font-size: 0.75rem;
	font-style: normal;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--muted);
}

.wp-block-pullquote {
	border-top: 2px solid var(--ink);
	border-bottom: 2px solid var(--ink);
	padding: 28px 0;
	text-align: left;
}

.wp-block-pullquote p {
	font-family: var(--display);
	font-weight: 800;
	font-stretch: 85%;
	font-size: 1.6rem;
	line-height: 1.2;
}

.entry-content code,
.entry-content kbd {
	font-family: var(--mono);
	font-size: 0.9em;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 4px;
	padding: 0.05em 0.35em;
}

.entry-content pre,
.wp-block-code {
	font-family: var(--mono);
	font-size: 0.9rem;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 4px;
	padding: 16px 18px;
	overflow-x: auto;
}

.entry-content pre code {
	border: 0;
	padding: 0;
	background: none;
}

.entry-content hr,
.wp-block-separator {
	border: 0;
	border-top: 1px solid var(--line);
}

.wp-block-table {
	overflow-x: auto;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	border-top: 2px solid var(--ink);
	font-variant-numeric: tabular-nums;
}

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

/* Override core's boxed table borders (selectors also match inside the editor). */
.wp-block-table table th,
.wp-block-table table td {
	border-width: 0 0 1px;
	border-style: solid;
	border-color: var(--line);
	padding: 12px 12px 12px 0;
	text-align: left;
}

.wp-block-table table thead {
	border-bottom: 0;
}

.wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	border-top: 2px solid var(--ink);
}

.wp-block-table table th {
	font-family: var(--mono);
	font-size: 0.75rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--muted);
}

.entry-content th {
	font-family: var(--mono);
	font-size: 0.75rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--muted);
}

.entry-content figcaption,
.wp-caption-text,
.wp-element-caption {
	margin-top: 8px;
	font-size: 0.85rem;
	color: var(--muted);
}

.entry-content img {
	border-radius: 4px;
}

.wp-block-image img {
	display: block;
}

.wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.wp-block-details {
	border-bottom: 1px solid var(--line);
	padding-block: 14px;
}

.wp-block-details summary {
	font-weight: 600;
	cursor: pointer;
}

.has-text-align-center {
	text-align: center;
}

.has-text-align-right {
	text-align: right;
}

.sticky .label::after {
	content: " · Featured";
}

/* ==========================================================================
   8. Forms (shared by the booking form, search and comments)
   ========================================================================== */
input,
select,
textarea {
	font: inherit;
	color: var(--ink);
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: 6px;
	padding: 10px 12px;
	width: 100%;
	min-height: 46px;
}

input[type="checkbox"],
input[type="radio"] {
	width: 24px;
	height: 24px;
	min-height: 0;
	padding: 0;
	flex-shrink: 0;
	accent-color: var(--accent);
}

textarea {
	min-height: 120px;
	resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
	outline: 2px solid var(--accent);
	outline-offset: 0;
	border-color: var(--accent);
}

::placeholder {
	color: var(--muted);
	opacity: 1;
}

label {
	font-size: 0.9rem;
	font-weight: 500;
}

.search-form {
	display: flex;
	gap: 10px;
	max-width: 520px;
}

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

.search-form .btn {
	flex-shrink: 0;
}

/* ==========================================================================
   9. Job sheet component
   ========================================================================== */
.ticket {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 4px;
	padding: 22px 22px 26px;
	position: relative;
	overflow: hidden;
	font-family: var(--mono);
	font-size: 0.9rem;
	box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(20, 32, 43, 0.35);
}

.ticket::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 6px;
	background: repeating-linear-gradient(90deg, var(--accent) 0 14px, var(--ink) 14px 28px);
	border-radius: 4px 4px 0 0;
}

.ticket-head {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 12px;
	border-bottom: 1px dashed var(--line);
	margin-top: 6px;
}

.ticket dl {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 10px 18px;
	margin: 16px 0 0;
}

.ticket dt {
	color: var(--muted);
	text-transform: uppercase;
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	padding-top: 2px;
}

.ticket dd {
	margin: 0;
	min-width: 0;
	overflow-wrap: anywhere;
}

.stamp {
	position: absolute;
	right: 18px;
	bottom: 18px;
	border: 3px solid var(--stamp);
	color: var(--stamp);
	font-family: var(--display);
	font-weight: 900;
	font-stretch: 75%;
	font-size: 1.5rem;
	letter-spacing: 0.06em;
	padding: 2px 12px;
	transform: rotate(-8deg);
	border-radius: 4px;
	opacity: 0.9;
	text-transform: uppercase;
}

.ticket-figure {
	margin: 0;
}

.error-404 {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 48px;
	align-items: start;
}

.error-404 .cta-row {
	margin-top: 24px;
}

.page-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	align-items: center;
	margin-top: 32px;
}

.ticket-note {
	margin-top: 10px;
	font-size: 0.8rem;
	color: var(--muted);
	font-family: var(--body);
}

/* ==========================================================================
   10. Site footer
   ========================================================================== */
.site-footer .wrap {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px 24px;
	flex-wrap: wrap;
	padding-block: 28px;
	color: var(--muted);
	font-size: 0.9rem;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-links a {
	display: inline-block;
	padding-block: 4px;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.footer-links a:hover {
	color: var(--ink);
}

/* ==========================================================================
   11. Responsive rules
   ========================================================================== */
@media (max-width: 860px) {
	.error-404 {
		grid-template-columns: 1fr;
		gap: 36px;
	}
}

@media (max-width: 720px) {
	.js .menu-toggle {
		display: inline-flex;
	}

	.js .main-nav {
		display: none;
		flex-basis: 100%;
	}

	.js .main-nav.is-open {
		display: block;
	}

	.js .main-nav ul {
		flex-direction: column;
		gap: 0;
		border-top: 2px solid var(--ink);
		font-size: 1.05rem;
	}

	.js .main-nav li {
		border-bottom: 1px solid var(--line);
	}

	.js .main-nav a {
		display: block;
		padding-block: 12px;
		color: var(--ink);
	}

	.js .main-nav .sub-menu {
		display: block;
		border-top: 0;
		padding-left: 16px;
	}

	.js .main-nav .sub-menu li:last-child {
		border-bottom: 0;
	}

	.post-row {
		grid-template-columns: minmax(0, 1fr);
	}

	.post-row-thumb {
		order: -1;
	}
}

@media (max-width: 520px) {
	.main-nav ul {
		gap: 4px 14px;
	}

	.page-header .wrap {
		padding-block: 40px 36px;
	}

	.post-navigation .nav-links {
		grid-template-columns: 1fr;
	}

	.post-navigation .nav-next {
		grid-column: 1;
		text-align: left;
	}

	.post-navigation .nav-next a {
		justify-items: start;
	}

	.entry-content > .alignleft,
	.entry-content > .alignright {
		float: none;
		margin: 1.25em auto 0;
		max-width: 100%;
	}

}

/* ==========================================================================
   12. Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
	.stamp {
		animation: the-it-guy-stamp 0.5s 0.4s cubic-bezier(0.2, 1.6, 0.4, 1) both;
	}

	@keyframes the-it-guy-stamp {
		from {
			transform: rotate(-8deg) scale(1.6);
		}

		to {
			transform: rotate(-8deg) scale(1);
		}
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
