/*
Theme Name: Bonazzi
Description: Lightweight, minimal portfolio theme for Stefano Bonazzi. No jQuery, no web fonts, no icon fonts.
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: bonazzi
*/

/* ---------- Tokens ---------- */
:root {
	--bg: #fff;
	--fg: #141414;
	--muted: #767676;
	--line: #ececec;
	--soft: #f6f6f4;
	--accent: #253c49;

	--font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--font-serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;

	--wrap: 1180px;
	--text: 720px;
	--gutter: clamp(16px, 4vw, 40px);
	--gap: clamp(16px, 2.4vw, 32px);
	--header-h: 128px;   /* at the top of the page */
	--logo-h: 84px;
	--header-h-sm: 76px; /* once scrolled */
	--logo-h-sm: 48px;
	--radius: 2px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font: 400 17px/1.7 var(--font);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	display: flex; flex-direction: column; min-height: 100vh;
}
.site-main { flex: 1 0 auto; width: 100%; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .6em; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
p, ul, ol, figure, blockquote, pre, table { margin: 0 0 1.4em; }
figure { margin-left: 0; margin-right: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 3em 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--fg); color: var(--bg); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus { clip: auto; width: auto; height: auto; margin: 0; z-index: 100; top: 8px; left: 8px; padding: 8px 14px; background: var(--fg); color: var(--bg); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
	margin: 0 0 .9em;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--muted);
}
.eyebrow a { text-decoration: none; }

.icon { flex: none; }
.icon-btn {
	display: inline-grid; place-items: center;
	width: 40px; height: 40px; padding: 0;
	background: none; border: 0; border-radius: 50%;
	cursor: pointer; color: var(--fg);
	transition: background-color .2s;
}
.icon-btn:hover { background: var(--soft); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	border-bottom: 1px solid transparent;
	transition: border-color .3s;
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would trap the fixed mobile menu */
.site-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: rgba(255, 255, 255, .88);
	-webkit-backdrop-filter: saturate(1.6) blur(14px);
	backdrop-filter: saturate(1.6) blur(14px);
}
.nav-open .site-header::before { background: var(--bg); }
.is-scrolled .site-header { border-bottom-color: var(--line); }
.admin-bar .site-header { top: 32px; }

.header-inner {
	display: flex; align-items: center; gap: 24px;
	height: var(--header-h);
	transition: height .45s var(--ease);
}
.brand { margin: 0; font-size: inherit; line-height: 0; flex: none; }
.brand a { display: inline-block; text-decoration: none; }
/* The current logo file is 1024×240 with the monogram centred in empty space: crop to the mark.
   If you upload a tightly-cropped logo, change width to auto. */
.brand img {
	height: var(--logo-h); width: calc(var(--logo-h) * 1.19);
	object-fit: cover;
	transition: height .45s var(--ease), width .45s var(--ease);
}
/* Compact header once the page scrolls (class set by site.js) */
html.is-scrolled { --header-h: var(--header-h-sm); --logo-h: var(--logo-h-sm); }
.brand-name { font-size: 15px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1; }

.primary-nav { margin-left: auto; }
.primary-nav .menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.primary-nav li { position: relative; }
.primary-nav a {
	display: block;
	padding: 8px 10px;
	font-size: 12px; font-weight: 500;
	letter-spacing: .12em; text-transform: uppercase;
	text-decoration: none; color: var(--fg);
	white-space: nowrap;
	transition: color .2s;
}
@media (max-width: 1240px) {
	.primary-nav a { padding-left: 7px; padding-right: 7px; letter-spacing: .09em; }
	.primary-nav .menu > li > a::after { left: 7px; right: 7px; }
}
.primary-nav .menu > li > a { position: relative; }
.primary-nav .menu > li > a::after {
	content: ""; position: absolute; left: 10px; right: 10px; bottom: 4px;
	height: 1px; background: currentColor;
	transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.primary-nav .menu > li > a:hover::after,
.primary-nav .menu > .current-menu-item > a::after,
.primary-nav .menu > .current-menu-ancestor > a::after,
.primary-nav .menu > .current-menu-parent > a::after { transform: scaleX(1); }
.primary-nav a:hover { color: var(--fg); }

/* Dropdown */
.primary-nav .sub-menu {
	position: absolute; top: 100%; left: 0; z-index: 10;
	min-width: 220px; margin: 0; padding: 10px 0;
	list-style: none;
	background: var(--bg);
	border: 1px solid var(--line);
	box-shadow: 0 12px 32px rgba(0, 0, 0, .06);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { padding: 7px 20px; letter-spacing: .08em; color: var(--muted); }
.primary-nav .sub-menu a:hover,
.primary-nav .sub-menu .current-menu-item > a { color: var(--fg); }

.header-tools { display: flex; align-items: center; gap: 2px; }
.social { display: flex; align-items: center; gap: 2px; }
.social a {
	display: inline-grid; place-items: center;
	width: 34px; height: 34px;
	color: var(--muted); transition: color .2s;
}
.social a:hover { color: var(--fg); }
.social .icon { width: 16px; height: 16px; }
.social--nav { display: none; }
.menu-toggle { display: none; }
.menu-toggle .when-open { display: none; }

/* Search panel */
.search-panel { border-top: 1px solid var(--line); padding: 18px 0; animation: fade-down .25s var(--ease); }
.search-panel[hidden] { display: none; }
.search-form { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--fg); max-width: 560px; }
.search-panel .search-form { margin: 0 auto; }
.search-form input {
	flex: 1; min-width: 0;
	padding: 10px 0; border: 0; background: none;
	font: inherit; font-size: 18px; color: var(--fg);
	outline: none;
}
.search-form input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-form button { background: none; border: 0; padding: 6px; cursor: pointer; display: grid; }

@keyframes fade-down { from { opacity: 0; transform: translateY(-6px); } }

/* Mobile navigation */
@media (max-width: 1023px) {
	:root { --header-h: 92px; --logo-h: 60px; --header-h-sm: 64px; --logo-h-sm: 40px; }
	.social--header { display: none; }
	.header-tools { margin-left: auto; margin-right: -8px; }
	.menu-toggle { display: inline-grid; }
	.nav-open .menu-toggle .when-open { display: block; }
	.nav-open .menu-toggle .when-closed { display: none; }

	.primary-nav {
		position: fixed; inset: var(--header-h) 0 0 0; z-index: 40;
		margin: 0; padding: 24px var(--gutter) 40px;
		background: var(--bg);
		overflow-y: auto; overscroll-behavior: contain;
		opacity: 0; visibility: hidden;
		transition: opacity .25s, visibility .25s;
	}
	.admin-bar .primary-nav { top: calc(var(--header-h) + 46px); }
	.nav-open .primary-nav { opacity: 1; visibility: visible; }
	.nav-open { overflow: hidden; }

	.primary-nav .menu { flex-direction: column; gap: 0; }
	.primary-nav .menu > li { border-bottom: 1px solid var(--line); }
	.primary-nav .menu > li > a { padding: 16px 0; font-size: 15px; }
	.primary-nav .menu > li > a::after { display: none; }
	.primary-nav .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none;
		border: 0; box-shadow: none; padding: 0 0 14px; min-width: 0;
		columns: 2; column-gap: 16px;
	}
	.primary-nav .sub-menu a { padding: 6px 0; font-size: 12px; }
	.social--nav { display: flex; margin-top: 24px; margin-left: -8px; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* ---------- Main ---------- */
.site-main { padding: clamp(28px, 5vw, 56px) 0 clamp(64px, 10vw, 120px); min-height: 60vh; }

.page-head { text-align: center; padding: clamp(16px, 4vw, 40px) 0 clamp(32px, 5vw, 56px); }
.page-title { font-size: clamp(28px, 4.4vw, 46px); font-weight: 500; letter-spacing: -.02em; margin: 0; }
.page-desc { max-width: var(--text); margin: 16px auto 0; color: var(--muted); }
.page-desc p:last-child { margin-bottom: 0; }

/* ---------- Hero slider ---------- */
.hero { position: relative; margin-bottom: clamp(48px, 8vw, 96px); }
.hero-track {
	position: relative;
	width: 100%;
	height: min(calc((100vw - var(--gutter) * 2) * 800 / 1078), calc(var(--wrap) * 800 / 1078), 82vh);
	overflow: hidden;
	background: var(--soft);
}
.hero-slide {
	position: absolute; inset: 0; margin: 0;
	opacity: 0; transition: opacity 1.2s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-dots { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
.hero-dots button {
	width: 28px; height: 16px; padding: 0; border: 0; cursor: pointer;
	background: linear-gradient(var(--line), var(--line)) center / 100% 2px no-repeat;
	transition: background-size .3s;
}
.hero-dots button[aria-selected="true"] { background-image: linear-gradient(var(--fg), var(--fg)); }

/* ---------- Grid & cards ---------- */
.grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(36px, 5vw, 64px) var(--gap);
}
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 719px) {
	.grid, .grid--3 { grid-template-columns: minmax(0, 1fr); }
}

.card { margin: 0; }
.card-link { display: block; text-decoration: none; color: inherit; }
.card-media {
	aspect-ratio: 1040 / 800;
	overflow: hidden;
	background: var(--soft);
}
.card-media img {
	width: 100%; height: 100%; object-fit: cover;
	transition: transform 1s var(--ease), opacity .4s;
}
.card-link:hover .card-media img { transform: scale(1.025); }
.card-title {
	margin: 16px 0 0;
	font-size: 13px; font-weight: 500;
	letter-spacing: .14em; text-transform: uppercase;
	text-align: center;
	transition: color .2s;
}
.card-link:hover .card-title { color: var(--muted); }


/* Pagination */
.pagination { margin-top: clamp(48px, 7vw, 80px); }
.pagination .nav-links { display: flex; justify-content: center; align-items: center; gap: 4px; }
.pagination .page-numbers {
	display: inline-grid; place-items: center;
	min-width: 38px; height: 38px; padding: 0 6px;
	font-size: 13px; text-decoration: none; color: var(--muted);
	border-radius: 50%;
}
.pagination .page-numbers:hover { color: var(--fg); background: var(--soft); }
.pagination .page-numbers.current { color: var(--fg); font-weight: 600; }

.nothing { text-align: center; color: var(--muted); }
.nothing-search .search-form { margin: 24px auto 0; }

/* ---------- Single / page ---------- */
.entry-head { text-align: center; padding: clamp(8px, 3vw, 32px) var(--gutter) clamp(28px, 4vw, 48px); max-width: 900px; }
.entry-title { font-size: clamp(28px, 4.6vw, 50px); font-weight: 500; letter-spacing: -.02em; margin: 0; }
.entry-date { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

.entry-feature, .entry-gallery, .entry-embed {
	max-width: calc(1080px + var(--gutter) * 2);
	margin: 0 auto clamp(32px, 5vw, 56px);
	padding: 0 var(--gutter);
}
.entry-feature img { width: 100%; }
.entry-gallery figure { text-align: center; }
.entry-gallery { display: grid; gap: var(--gap); }
.entry-gallery figure { margin: 0; }
.entry-gallery figcaption, .entry-content figcaption, .wp-caption-text {
	margin-top: 10px; font-size: 13px; color: var(--muted); text-align: center;
}

/* Content column: text is narrow, media can be wider */
.entry-content { display: flow-root; }
.entry-content > * {
	max-width: calc(var(--text) + var(--gutter) * 2);
	margin-left: auto; margin-right: auto;
	padding-left: var(--gutter); padding-right: var(--gutter);
}
.entry-content > figure,
.entry-content > .wp-block-image,
.entry-content > .wp-block-gallery,
.entry-content > .wp-block-media-text,
.entry-content > .wp-block-columns,
.entry-content > .wp-block-embed,
.entry-content > .wp-block-video,
.entry-content > p:has(> img:only-child),
.entry-content > p:has(> a:only-child > img),
.entry-content > .alignwide {
	max-width: calc(1080px + var(--gutter) * 2);
}
.entry-content > .alignfull { max-width: none; padding: 0; }
/* Artworks: never upscale, always fit the viewport so a whole piece is visible */
.entry-content img { margin-left: auto; margin-right: auto; }
.entry-content > figure img,
.entry-content > .wp-block-image img,
.entry-content > p > img, .entry-content > p > a > img,
.entry-gallery img {
	width: auto; max-width: 100%;
	max-height: calc(100vh - var(--header-h-sm) - 64px);
	object-fit: contain;
}
.entry-content > .wp-block-image, .entry-content > figure { text-align: center; }
.entry-content p a img { pointer-events: none; cursor: default; } /* kept from previous theme */

.entry-content h2 { font-size: 26px; margin-top: 2em; }
.entry-content h3 { font-size: 21px; margin-top: 1.8em; }
.entry-content h4 { font-size: 17px; margin-top: 1.6em; }
.entry-content ul, .entry-content ol { padding-left: calc(var(--gutter) + 1.2em); }
.entry-content blockquote {
	font-family: var(--font-serif);
	font-size: 22px; line-height: 1.55; font-style: italic;
	padding-left: calc(var(--gutter) + 20px);
	background: linear-gradient(var(--fg), var(--fg)) var(--gutter) 0 / 1px 100% no-repeat;
}
.entry-content blockquote cite { display: block; margin-top: 10px; font-size: 13px; font-style: normal; font-family: var(--font); color: var(--muted); }
.entry-content .alignleft { float: left; margin: .3em 1.6em 1em 0; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.6em; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.entry-content table { width: 100%; font-size: 15px; }
.entry-content th, .entry-content td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content iframe { display: block; margin: 0 auto; }
.wp-block-media-text { margin-bottom: 20px; }
.has-large-font-size { font-size: 14px !important; line-height: normal !important; } /* kept from previous theme */

.wp-block-button__link, .entry-content input[type="submit"], .wpcf7-submit, .comment-form .submit {
	display: inline-block;
	padding: 13px 26px;
	border: 1px solid var(--fg); border-radius: var(--radius);
	background: var(--fg); color: var(--bg);
	font: 500 12px/1 var(--font); letter-spacing: .14em; text-transform: uppercase;
	text-decoration: none; cursor: pointer;
	transition: background-color .2s, color .2s;
}
.wp-block-button__link:hover, .entry-content input[type="submit"]:hover, .wpcf7-submit:hover, .comment-form .submit:hover { background: transparent; color: var(--fg); }

/* Forms (Contact Form 7, comments) */
.entry-content input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="image"]):not([type="hidden"]),
.entry-content textarea, .entry-content select,
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea {
	width: 100%;
	padding: 12px 0;
	border: 0; border-bottom: 1px solid #cfcfcf; border-radius: 0;
	background: transparent;
	font: inherit; font-size: 16px; color: var(--fg);
	transition: border-color .2s;
}
.entry-content input:focus, .entry-content textarea:focus, .comment-form input:focus, .comment-form textarea:focus { outline: none; border-bottom-color: var(--fg); }
.wpcf7-form label { display: block; font-size: 13px; color: var(--muted); }
.wpcf7-not-valid-tip { font-size: 13px; }
.wpcf7-response-output { font-size: 14px; }

/* PayPal "Buy now" box (Fine Art Prints) */
.entry-content form[action*="paypal.com"] {
	display: flex; flex-direction: column; align-items: center; gap: 22px;
	max-width: 420px; margin: 0 auto;
}
.entry-content > div:has(> form[action*="paypal.com"]) { margin-bottom: 2em; }
.entry-content form[action*="paypal.com"] table { width: 100%; margin: 0; }
.entry-content form[action*="paypal.com"] td {
	padding: 0; border: 0; text-align: center;
	font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.entry-content form[action*="paypal.com"] select {
	margin-top: 10px; padding: 12px 34px 12px 14px;
	border: 1px solid #d6d6d6; border-radius: var(--radius);
	background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='14' height='14'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23141414' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center;
	-webkit-appearance: none; appearance: none;
	font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--fg);
	cursor: pointer;
}
.entry-content form[action*="paypal.com"] select:focus { outline: none; border-color: var(--fg); }
/* PayPal's button is a small bitmap: show it at its native size so it stays sharp */
.entry-content input[type="image"] {
	width: auto; max-width: 100%; height: auto;
	padding: 0; border: 0; background: none;
	cursor: pointer; transition: opacity .2s;
}
.entry-content input[type="image"]:hover { opacity: .85; }

.entry-tags { max-width: var(--text); margin: 2em auto 0; padding: 0 var(--gutter); display: flex; flex-wrap: wrap; gap: 8px; }
.entry-tags a { font-size: 12px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; color: var(--muted); }
.entry-tags a:hover { color: var(--fg); border-color: var(--fg); }

/* Prev / next */
.post-nav {
	display: flex; justify-content: space-between; gap: 24px;
	margin-top: clamp(48px, 7vw, 80px);
	padding-top: 24px; border-top: 1px solid var(--line);
	max-width: calc(1080px + var(--gutter) * 2);
}
.post-nav a {
	display: inline-flex; align-items: center; gap: 10px;
	font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
	text-decoration: none; color: var(--muted);
}
.post-nav a:hover { color: var(--fg); }
.post-nav-next { margin-left: auto; text-align: right; }

/* Related */
.related { margin-top: clamp(56px, 9vw, 112px); }
.section-title {
	margin: 0 0 32px;
	font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
	text-align: center; color: var(--muted);
}

/* Comments */
.comments { max-width: calc(var(--text) + var(--gutter) * 2); margin: 64px auto 0; padding: 0 var(--gutter); }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-meta { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.comment-meta img { border-radius: 50%; }

/* 404 */
.error-404 { text-align: center; max-width: 640px; padding-top: 40px; }
.error-404 .page-title { margin-bottom: 12px; }
.error-404 > p { color: var(--muted); }
.error-404 .search-form { margin: 32px auto 56px; }
.widgets .widget-title { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.widgets ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.widgets a { font-size: 13px; text-decoration: none; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Footer ---------- */
.site-footer {
	background: var(--soft);
	padding: clamp(40px, 6vw, 64px) 0 28px;
	font-size: 12px;
}
.footer-top {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 24px 40px;
	padding-bottom: clamp(28px, 4vw, 40px);
	border-bottom: 1px solid #e3e3e0;
}
.footer-brand {
	font-size: 13px; font-weight: 600;
	letter-spacing: .2em; text-transform: uppercase;
	text-decoration: none; white-space: nowrap;
}
.footer-brand:hover { color: var(--fg); }
.footer-menu {
	display: flex; flex-wrap: wrap; justify-content: center;
	gap: 6px 22px; margin: 0; padding: 0; list-style: none;
}
.footer-menu a {
	font-size: 11px; font-weight: 500;
	letter-spacing: .14em; text-transform: uppercase;
	text-decoration: none; color: var(--muted);
	transition: color .2s;
}
.footer-menu a:hover, .footer-menu .current-menu-item > a { color: var(--fg); }
.social--footer { margin-right: -9px; }
.social--footer a { width: 36px; height: 36px; border-radius: 50%; transition: color .2s, background-color .2s; }
.social--footer a:hover { background: var(--bg); }

.footer-bottom {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 12px 24px;
	padding-top: 22px;
}
.copyright { margin: 0; font-size: 11px; line-height: 1.6; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-links a { font-size: 11px; color: var(--muted); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--fg); }

@media (max-width: 1100px) {
	.footer-top { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 20px; }
	.social--footer { margin: 0; }
}
@media (max-width: 700px) {
	.footer-bottom { flex-direction: column; text-align: center; }
	.footer-links { justify-content: center; }
}

/* ---------- Cookie banner (CookieLawInfo plugin) ----------
   The plugin writes inline styles from its settings, hence the !important. */
#cookie-law-info-bar {
	position: fixed !important;
	left: 20px !important; right: auto !important; bottom: 20px !important; top: auto !important;
	z-index: 9999 !important;
	width: auto !important; max-width: 380px !important;
	margin: 0 !important; padding: 20px 22px !important;
	background: var(--bg) !important; color: var(--fg) !important;
	border: 1px solid var(--line) !important; border-radius: 4px !important;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .10), 0 2px 8px rgba(0, 0, 0, .04) !important;
	font: 400 13px/1.6 var(--font) !important;
	text-align: left !important;
	animation: cookie-in .5s var(--ease) both;
}
#cookie-law-info-bar > span {
	display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px;
	color: var(--muted);
}
#cookie-law-info-bar .cli-plugin-button,
#cookie-law-info-bar .cli-plugin-main-link {
	margin: 0 !important;
	font: 500 11px/1 var(--font) !important;
	letter-spacing: .14em !important; text-transform: uppercase !important;
	text-decoration: none !important;
	border-radius: 99px !important;
	box-shadow: none !important;
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s !important;
}
#cookie-law-info-bar .cli-plugin-button {
	padding: 11px 20px !important;
	background: var(--fg) !important; color: var(--bg) !important;
	border: 1px solid var(--fg) !important;
}
#cookie-law-info-bar .cli-plugin-button:hover { background: transparent !important; color: var(--fg) !important; }
#cookie-law-info-bar .cli-plugin-main-link {
	padding: 11px 0 !important;
	background: none !important; color: var(--fg) !important;
	border: 0 !important;
	background-image: linear-gradient(currentColor, currentColor) !important;
	background-size: 100% 1px !important; background-position: 0 calc(100% - 7px) !important; background-repeat: no-repeat !important;
}
#cookie-law-info-bar .cli-plugin-main-link:hover { color: var(--muted) !important; }
/* "Privacy & Cookies Policy" tab shown after accepting: hidden, the policy is linked in the footer */
#cookie-law-info-again { display: none !important; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(12px); } }
@media (max-width: 600px) {
	#cookie-law-info-bar { left: 12px !important; right: 12px !important; bottom: 12px !important; max-width: none !important; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Print ---------- */
@media print {
	.site-header, .site-footer, .post-nav, .related, .hero-dots { display: none; }
}
