/*
Theme Name: Amieiro
Theme URI: https://www.jesusamieiro.com/
Author: Jesús Amieiro
Author URI: https://www.jesusamieiro.com/
Description: Personal theme for jesusamieiro.com. Monochrome design with a single WordPress-blue accent. Child theme of Twenty Twenty-Five.
Template: twentytwentyfive
Version: 0.1.0
Requires at least: 6.7
Requires PHP: 8.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: amieiro
*/

/* ---------- Header ---------- */
.amieiro-header {
	border-bottom: 2px solid var(--wp--preset--color--contrast);
}
.amieiro-header .wp-block-site-title a {
	text-decoration: none;
}
.amieiro-header .wp-block-site-title a::after {
	content: ".";
	color: var(--wp--preset--color--accent);
}
.amieiro-header .wp-block-navigation a {
	text-decoration: none;
}
.amieiro-header .wp-block-navigation a:hover,
.amieiro-header .wp-block-navigation .current-menu-item > a {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}
.amieiro-header .wp-block-search__button {
	background: transparent;
	color: var(--wp--preset--color--contrast);
	padding: 6px;
}

/* ---------- Home: hero ---------- */
.amieiro-hero {
	border-bottom: 2px solid var(--wp--preset--color--contrast);
}
.amieiro-hero h1 mark,
.amieiro-hero .amieiro-hl {
	background: linear-gradient(transparent 62%, var(--wp--preset--color--accent-soft) 62%);
	color: inherit;
	padding: 0;
}
.amieiro-hero .amieiro-photo img {
	aspect-ratio: 3 / 4;
	width: 100%;
	height: auto;
	object-fit: cover;
	filter: grayscale(1) contrast(1.05);
}

/* ---------- Home: stats ---------- */
.amieiro-stats {
	border-bottom: 1px solid var(--wp--preset--color--contrast);
}
.amieiro-stats .amieiro-stat-number {
	font-family: var(--wp--preset--font-family--inter-tight);
	font-weight: 800;
	font-size: 2.125rem;
	letter-spacing: -0.03em;
	line-height: 1.1;
	margin: 0;
}
.amieiro-stats .amieiro-stat-label {
	color: var(--wp--preset--color--muted);
	font-size: 0.85rem;
	margin: 0;
}

/* ---------- Section labels ---------- */
.amieiro-label {
	margin-bottom: 14px !important;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.9375rem !important;
}

/* ---------- Compact post lists (title + date) ---------- */
.amieiro-list .wp-block-post-template {
	margin: 0;
	padding: 0;
}
.amieiro-list .wp-block-post {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding: 13px 0;
	border-top: 1px solid var(--wp--preset--color--line);
	margin: 0;
}
.amieiro-list .wp-block-post-title {
	flex: 1;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.45;
	margin: 0;
}
.amieiro-list .wp-block-post-title a {
	text-decoration: none;
}
.amieiro-list .wp-block-post-title a:hover {
	text-decoration: underline;
}
.amieiro-list .wp-block-post-date {
	min-width: 5.6em;
	text-align: right;
	color: var(--wp--preset--color--muted);
	font-size: 0.85rem;
	white-space: nowrap;
	margin: 0;
}

/* ---------- Topic chips ---------- */
.amieiro-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.amieiro-chips a,
.amieiro-chips .wp-block-post-terms a {
	display: inline-block;
	border: 1px solid var(--wp--preset--color--contrast);
	padding: 4px 12px;
	font-size: 0.85rem;
	text-decoration: none;
}
.amieiro-chips a:hover {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

/* ---------- Single post ---------- */
.amieiro-post-meta {
	border-top: 1px solid var(--wp--preset--color--contrast);
	border-bottom: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--muted);
	font-size: 0.85rem;
}
.amieiro-post-meta > * {
	margin: 0;
}
.amieiro-post-meta a {
	color: inherit;
}
.amieiro-kicker a {
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--wp--preset--color--accent);
}

.amieiro-layout.has-toc {
	display: grid;
	grid-template-columns: 200px minmax(0, 680px);
	gap: 56px;
	justify-content: center;
}
.amieiro-layout.has-toc > .amieiro-article {
	margin-left: 0 !important;
	margin-right: 0 !important;
}
.amieiro-layout.has-toc > .amieiro-article > * {
	margin-left: 0 !important;
}
.amieiro-toc {
	position: sticky;
	top: 24px;
	align-self: start;
	font-size: 0.85rem;
	padding-top: 6px;
}
.admin-bar .amieiro-toc {
	top: 56px;
}
.amieiro-toc b {
	display: block;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.75rem;
	margin-bottom: 10px;
}
.amieiro-toc ol {
	list-style: none;
	margin: 0;
	padding: 0;
}
.amieiro-toc li {
	margin: 0 0 8px;
	line-height: 1.35;
}
.amieiro-toc a {
	text-decoration: none;
	color: var(--wp--preset--color--muted);
}
.amieiro-toc a:hover,
.amieiro-toc li.is-active a {
	color: var(--wp--preset--color--accent);
}
.amieiro-toc li.is-active a {
	font-weight: 600;
}
/* The sidebar TOC replaces the plugin box on wide screens. */
@media (min-width: 1000px) {
	.amieiro-layout.has-toc #ez-toc-container {
		display: none;
	}
}
@media (max-width: 999px) {
	.amieiro-layout.has-toc {
		display: block;
	}
	.amieiro-toc {
		display: none;
	}
}

.wp-block-post-content :not(pre) > code {
	background: var(--wp--preset--color--code-bg);
	padding: 0.1em 0.3em;
	font-size: 0.9em;
}
.wp-block-post-content blockquote {
	border-left: 3px solid var(--wp--preset--color--contrast);
	padding-left: 1.2em;
	margin-left: 0;
}

/* Author box */
.amieiro-author {
	border-top: 2px solid var(--wp--preset--color--contrast);
}
.amieiro-author .wp-block-image img {
	filter: grayscale(1);
	width: 72px;
	height: 72px;
	object-fit: cover;
}
.amieiro-author p {
	margin: 0;
}

/* Keep reading */
.amieiro-related .wp-block-post-template {
	gap: 20px;
}
.amieiro-related .wp-block-post {
	border-top: 1px solid var(--wp--preset--color--contrast);
	padding-top: 12px;
}
.amieiro-related .wp-block-post-title {
	font-size: 1.125rem;
	line-height: 1.3;
}
.amieiro-related .wp-block-post-title a {
	text-decoration: none;
}

/* ---------- Search ---------- */
.amieiro-searchform .wp-block-search__input {
	border: 2px solid var(--wp--preset--color--contrast);
	border-right: 0;
	border-radius: 0;
	padding: 12px 14px;
}
.amieiro-searchform .wp-block-search__button {
	background: var(--wp--preset--color--accent);
	color: #fff;
	border: 2px solid var(--wp--preset--color--accent);
	border-radius: 0;
	margin-left: 0;
	padding: 12px 18px;
}
.amieiro-results .wp-block-post {
	border-top: 1px solid var(--wp--preset--color--line);
	padding: 18px 0;
	margin: 0;
}
.amieiro-results .wp-block-post-title {
	font-size: 1.375rem;
	margin: 4px 0;
}
.amieiro-results .wp-block-post-title a {
	text-decoration: none;
}
.amieiro-results .amieiro-result-meta {
	color: var(--wp--preset--color--muted);
	font-size: 0.8rem;
}
.amieiro-results .amieiro-result-meta > * {
	margin: 0;
}
.amieiro-results .wp-block-post-excerpt p {
	margin: 4px 0 0;
}
mark {
	background: var(--wp--preset--color--accent-soft);
	color: inherit;
	padding: 0 2px;
}

/* ---------- Footer ---------- */
.amieiro-footer {
	border-top: 2px solid var(--wp--preset--color--contrast);
	font-size: 0.875rem;
}
.amieiro-footer a {
	text-decoration: none;
}
.amieiro-footer a:hover {
	text-decoration: underline;
}

/* ---------- Pagination ---------- */
.wp-block-query-pagination {
	font-weight: 600;
}
.wp-block-query-pagination a {
	text-decoration: none;
}

/* ---------- Mobile ---------- */
@media (max-width: 781px) {
	.amieiro-hero h1 {
		font-size: 2.6rem !important;
	}
	.amieiro-stats .wp-block-columns {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
	}
	.amieiro-list .wp-block-post {
		flex-direction: column;
		gap: 2px;
	}
}

/* ---------- Code blocks (core + Enlighter) ---------- */
:root {
	--amieiro-code-bg: #111111;
	--amieiro-code-text: #ececea;
	--amieiro-code-muted: #8a8a86;
	--amieiro-code-line: #2a2a2a;
	--amieiro-code-key: #9fb1ff;
	--amieiro-code-string: #d7defe;
	--amieiro-code-var: #ffffff;
	--amieiro-code-num: #ffcf70;
}
.wp-block-post-content pre.wp-block-code,
.wp-block-post-content pre.wp-block-preformatted,
body .enlighter-default.enlighter-v-standard {
	position: relative;
	background: var(--amieiro-code-bg) !important;
	color: var(--amieiro-code-text) !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	font-family: var(--wp--preset--font-family--mono) !important;
	font-size: 0.84rem !important;
	line-height: 1.7 !important;
	margin: 1.6em 0 !important;
	padding: 18px 0 !important;
	overflow-x: auto;
}
.wp-block-post-content pre.wp-block-code,
.wp-block-post-content pre.wp-block-preformatted {
	padding: 18px 20px !important;
}
.wp-block-post-content pre.wp-block-code code {
	background: none;
	padding: 0;
	font-size: inherit;
	color: inherit;
}

/* Language label */
body .enlighter-default.enlighter-v-standard {
	padding-top: 38px !important;
}
body .enlighter-default.enlighter-v-standard::before {
	content: "code";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	padding: 7px 20px;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--amieiro-code-muted);
	border-bottom: 1px solid var(--amieiro-code-line);
}
body .enlighter-default.enlighter-l-shell::before,
body .enlighter-default.enlighter-l-bash::before { content: "shell"; }
body .enlighter-default.enlighter-l-php::before { content: "php"; }
body .enlighter-default.enlighter-l-js::before,
body .enlighter-default.enlighter-l-javascript::before { content: "javascript"; }
body .enlighter-default.enlighter-l-css::before { content: "css"; }
body .enlighter-default.enlighter-l-html::before { content: "html"; }
body .enlighter-default.enlighter-l-json::before { content: "json"; }
body .enlighter-default.enlighter-l-sql::before { content: "sql"; }
body .enlighter-default.enlighter-l-yaml::before { content: "yaml"; }
body .enlighter-default.enlighter-l-xml::before { content: "xml"; }
body .enlighter-default.enlighter-l-python::before { content: "python"; }
body .enlighter-default.enlighter-l-diff::before { content: "diff"; }
body .enlighter-default.enlighter-l-ini::before { content: "ini"; }

/* Lines */
body .enlighter-default .enlighter-code,
body .enlighter-default div.enlighter {
	background: transparent !important;
	font-family: inherit !important;
	font-size: inherit !important;
	line-height: inherit !important;
}
body .enlighter-default div.enlighter > div {
	background: transparent !important;
	padding: 0 20px 0 0;
}
body .enlighter-default div.enlighter > div:hover {
	background: rgba(255, 255, 255, 0.04) !important;
}
body .enlighter-default.enlighter-linenumbers div.enlighter > div::before {
	content: counter(enlighter, decimal);
	color: #555 !important;
	background: transparent !important;
	border: 0 !important;
	width: 32px;
	min-width: 32px;
	padding: 0 16px 0 12px !important;
	font-size: 0.85em;
	user-select: none;
}
body .enlighter-default div.enlighter > div > div {
	padding-left: 0;
}
/* A single line needs no number. */
body .enlighter-default.enlighter-linenumbers div.enlighter:not(:has(> div + div)) > div::before {
	display: none;
}
body .enlighter-default div.enlighter:not(:has(> div + div)) > div > div {
	padding-left: 20px !important;
}

/* Tokens */
body .enlighter-default span.enlighter-text,
body .enlighter-default span.enlighter-g0,
body .enlighter-default span.enlighter-g1 { color: var(--amieiro-code-text) !important; }
body .enlighter-default span[class^="enlighter-k"],
body .enlighter-default span.enlighter-m0,
body .enlighter-default span.enlighter-m1,
body .enlighter-default span.enlighter-m2,
body .enlighter-default span.enlighter-m3 { color: var(--amieiro-code-key) !important; font-weight: 400 !important; }
body .enlighter-default span.enlighter-k7,
body .enlighter-default span.enlighter-k8,
body .enlighter-default span.enlighter-k9 { color: var(--amieiro-code-var) !important; font-weight: 600 !important; }
body .enlighter-default span[class^="enlighter-s"],
body .enlighter-default span.enlighter-r0 { color: var(--amieiro-code-string) !important; }
body .enlighter-default span[class^="enlighter-c"] { color: var(--amieiro-code-muted) !important; font-style: italic; }
body .enlighter-default span[class^="enlighter-n"],
body .enlighter-default span.enlighter-e0,
body .enlighter-default span.enlighter-e1 { color: var(--amieiro-code-num) !important; }
body .enlighter-default span[class^="enlighter-x"] { color: var(--amieiro-code-key) !important; }

/* Toolbar: only "copy", visible on hover */
body .enlighter-default .enlighter-toolbar {
	top: 4px;
	right: 8px;
}
body .enlighter-default .enlighter-toolbar .enlighter-btn {
	display: none;
}
body .enlighter-default .enlighter-toolbar .enlighter-btn-copy {
	display: inline-block;
	width: 22px;
	height: 22px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 0;
	background-color: transparent;
	background-size: 18px;
	background-position: center;
	background-repeat: no-repeat;
	filter: invert(1);
	opacity: 0.6;
}
body .enlighter-default .enlighter-toolbar .enlighter-btn-copy:hover {
	opacity: 1;
}

/* Inline Enlighter code looks like normal inline code. */
body .enlighter-default.enlighter-v-inline {
	background: var(--wp--preset--color--code-bg) !important;
	border: 0 !important;
	padding: 0.1em 0.3em !important;
	font-family: var(--wp--preset--font-family--mono) !important;
	font-size: 0.9em !important;
}
body .enlighter-default.enlighter-v-inline span {
	color: var(--wp--preset--color--contrast) !important;
}

/* ---------- Talks archive ---------- */
.amieiro-talk-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 1.75rem 0 0.5rem;
}
.amieiro-talk-filters button {
	font: inherit;
	font-size: 0.82rem;
	font-weight: 500;
	padding: 5px 12px;
	border: 1px solid var(--wp--preset--color--contrast);
	background: transparent;
	color: var(--wp--preset--color--contrast);
	border-radius: 0;
	cursor: pointer;
}
.amieiro-talk-filters button:hover {
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent);
}
.amieiro-talk-filters button.is-active {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}
.amieiro-talk-count {
	color: var(--wp--preset--color--muted);
	font-size: 0.85rem;
	min-height: 1.4em;
}
.amieiro-talk-year {
	font-size: 1rem !important;
	color: var(--wp--preset--color--accent);
	letter-spacing: 0 !important;
	border-bottom: 2px solid var(--wp--preset--color--contrast);
	padding-bottom: 6px;
	margin: 2.25rem 0 0 !important;
}
.amieiro-talk-row {
	display: grid;
	grid-template-columns: 64px 1fr auto;
	gap: 18px;
	align-items: baseline;
	padding: 14px 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.amieiro-talk-row[hidden],
.amieiro-talk-year[hidden] {
	display: none;
}
.amieiro-talk-row time {
	color: var(--wp--preset--color--muted);
	font-size: 0.85rem;
	white-space: nowrap;
}
.amieiro-talk-row h3 {
	font-family: var(--wp--preset--font-family--inter);
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.35;
	margin: 0;
}
.amieiro-talk-row h3 a {
	text-decoration: none;
}
.amieiro-talk-row h3 a:hover {
	text-decoration: underline;
}
.amieiro-talk-row p {
	margin: 3px 0 0;
	font-size: 0.875rem;
	color: var(--wp--preset--color--muted);
}
.amieiro-lang {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	padding: 0 5px;
	border: 1px solid currentColor;
	vertical-align: 1px;
}
.amieiro-talk-links {
	display: flex;
	gap: 12px;
	margin: 0;
	font-size: 0.82rem;
	font-weight: 600;
	white-space: nowrap;
}
.amieiro-talk-row .amieiro-talk-links {
	margin: 0;
}
.amieiro-talk-links a {
	text-decoration: none;
	color: var(--wp--preset--color--accent);
}
.amieiro-talk-links a:hover {
	text-decoration: underline;
}
.amieiro-talk-links.is-large {
	font-size: 0.95rem;
	gap: 22px;
	margin-top: 1.25rem;
}
@media (max-width: 640px) {
	.amieiro-talk-row {
		grid-template-columns: 1fr;
		gap: 2px;
	}
}

/* ---------- Single talk ---------- */
.amieiro-talk-details {
	margin: 0;
	border-top: 2px solid var(--wp--preset--color--contrast);
}
.amieiro-talk-details > div {
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: 16px;
	padding: 9px 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.amieiro-talk-details dt {
	color: var(--wp--preset--color--muted);
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding-top: 2px;
}
.amieiro-talk-details dd {
	margin: 0;
}

/* Language badge next to titles and in post meta */
.amieiro-list .amieiro-lang {
	color: var(--wp--preset--color--muted);
	font-size: 0.65rem;
	align-self: center;
}
.amieiro-post-meta .amieiro-lang,
.amieiro-result-meta .amieiro-lang {
	margin-left: 4px;
}

/* ---------- About ---------- */
.amieiro-about-photo img {
	aspect-ratio: 3 / 4;
	width: 100%;
	height: auto;
	object-fit: cover;
	filter: grayscale(1) contrast(1.05);
}
.amieiro-profiles {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	padding: 0;
}
.amieiro-profiles a {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid var(--wp--preset--color--contrast);
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
}
.amieiro-profiles a:hover {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

/* ---------- Click-to-load video ---------- */
.amieiro-video-frame {
	position: relative;
	aspect-ratio: 16 / 9;
	background: var(--wp--preset--color--contrast);
}
.amieiro-video-frame iframe,
.amieiro-video-play {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
.amieiro-video-play {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	font: inherit;
	cursor: pointer;
}
.amieiro-video-icon {
	width: 72px;
	height: 72px;
	border: 2px solid currentColor;
	border-radius: 50%;
	position: relative;
}
.amieiro-video-icon::after {
	content: "";
	position: absolute;
	left: 27px;
	top: 20px;
	border-style: solid;
	border-width: 14px 0 14px 22px;
	border-color: transparent transparent transparent currentColor;
}
.amieiro-video-play:hover .amieiro-video-icon,
.amieiro-video-play:focus-visible .amieiro-video-icon {
	background: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
}
.amieiro-video-label {
	font-weight: 700;
	font-size: 1.05rem;
}
.amieiro-video-note {
	font-size: 0.8rem;
	opacity: 0.7;
	max-width: 30em;
	text-align: center;
	padding: 0 16px;
}
.amieiro-video-alt {
	margin: 8px 0 0;
	font-size: 0.8rem;
	color: var(--wp--preset--color--muted);
}
.amieiro-video-alt a {
	color: inherit;
}

/* ---------- Contact form (WPForms) ---------- */
.wpforms-container.wpforms-container {
	margin: 1.5rem 0 0.5rem;
}
.wpforms-container .wpforms-field {
	padding: 0 0 18px !important;
}
.wpforms-container .wpforms-field-label {
	font-weight: 600 !important;
	font-size: 0.9rem !important;
	margin-bottom: 6px !important;
}
.wpforms-container .wpforms-required-label {
	color: var(--wp--preset--color--accent) !important;
}
.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container textarea {
	width: 100% !important;
	max-width: 100% !important;
	font: inherit !important;
	padding: 12px 14px !important;
	border: 2px solid var(--wp--preset--color--contrast) !important;
	border-radius: 0 !important;
	background: var(--wp--preset--color--base) !important;
	color: var(--wp--preset--color--contrast) !important;
	box-shadow: none !important;
}
.wpforms-container input:focus,
.wpforms-container textarea:focus {
	outline: 3px solid var(--wp--preset--color--accent-soft) !important;
	border-color: var(--wp--preset--color--accent) !important;
}
.wpforms-container textarea {
	min-height: 200px !important;
}
.wpforms-container .wpforms-submit-container {
	padding-top: 4px !important;
}
.wpforms-container button.wpforms-submit {
	background: var(--wp--preset--color--accent) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 0 !important;
	padding: 13px 26px !important;
	font: inherit !important;
	font-weight: 700 !important;
	cursor: pointer;
}
.wpforms-container button.wpforms-submit:hover {
	background: var(--wp--preset--color--contrast) !important;
}
.wpforms-container label.wpforms-error {
	color: #b3261e !important;
	font-size: 0.85rem !important;
}
.wpforms-confirmation-container-full {
	background: var(--wp--preset--color--code-bg) !important;
	border: 0 !important;
	border-left: 3px solid var(--wp--preset--color--accent) !important;
	color: var(--wp--preset--color--contrast) !important;
}
.amieiro-form-notice {
	margin-top: 1rem !important;
}

/* ---------- Tables in pages ---------- */
.amieiro-table table {
	border-collapse: collapse;
	font-size: 0.9rem;
}
.amieiro-table th,
.amieiro-table td {
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding: 10px 12px 10px 0;
	text-align: left;
	vertical-align: top;
}
.amieiro-table thead th {
	border-bottom: 2px solid var(--wp--preset--color--contrast);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

/* ---------- Projects list (About) ---------- */
.amieiro-projects {
	list-style: none;
	padding: 0;
}
.amieiro-projects li {
	padding: 12px 0;
	border-top: 1px solid var(--wp--preset--color--line);
}
.amieiro-projects a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
.amieiro-projects a:hover strong {
	color: var(--wp--preset--color--accent);
}

/* ---------- Old post notice ---------- */
.amieiro-old-post {
	background: var(--wp--preset--color--code-bg);
	border-left: 3px solid var(--wp--preset--color--contrast);
	padding: 10px 14px;
	font-size: 0.875rem;
	color: var(--wp--preset--color--muted);
}

/* ---------- Talk box in posts ---------- */
.amieiro-talk-box {
	margin-top: 2.5rem !important;
	padding: 18px 20px;
	border: 2px solid var(--wp--preset--color--contrast);
}
.amieiro-talk-box p {
	margin: 0;
}
.amieiro-talk-box .amieiro-talk-box-label {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
	margin-bottom: 4px;
}
.amieiro-talk-box .amieiro-talk-box-title {
	font-weight: 700;
	font-size: 1.05rem;
}
.amieiro-talk-box .amieiro-talk-links {
	margin-top: 8px;
}

/* ---------- In short ---------- */
.amieiro-in-short {
	border-top: 2px solid var(--wp--preset--color--contrast);
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding: 14px 0 16px;
	margin-bottom: 2rem !important;
}
.amieiro-in-short p {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.6;
}
.amieiro-in-short .amieiro-in-short-label {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
	margin-bottom: 6px;
}

/* ---------- Subscribe ---------- */
.amieiro-subscribe {
	border: 2px solid var(--wp--preset--color--contrast);
}
.amieiro-subscribe p {
	margin: 0 0 6px;
}
.amieiro-subscribe .amieiro-subscribe-title {
	font-family: var(--wp--preset--font-family--inter-tight);
	font-weight: 800;
	font-size: 1.25rem;
	letter-spacing: -0.02em;
}
.amieiro-subscribe .wp-block-jetpack-subscriptions {
	margin-top: 12px;
}
.amieiro-subscribe .wp-block-jetpack-subscriptions__form-elements {
	display: flex;
	gap: 0;
}
.amieiro-subscribe input[type="email"] {
	flex: 1;
	font: inherit !important;
	padding: 12px 14px !important;
	border: 2px solid var(--wp--preset--color--contrast) !important;
	border-right: 0 !important;
	border-radius: 0 !important;
	margin: 0 !important;
	background: var(--wp--preset--color--base) !important;
	color: var(--wp--preset--color--contrast) !important;
}
.amieiro-subscribe button {
	font: inherit !important;
	font-weight: 700 !important;
	padding: 12px 20px !important;
	border: 2px solid var(--wp--preset--color--accent) !important;
	border-radius: 0 !important;
	background: var(--wp--preset--color--accent) !important;
	color: #fff !important;
	margin: 0 !important;
}

/* ---------- Dark mode: same design, palette swapped ----------
 * Follows the system unless the visitor picks light or dark with the header button
 * (html[data-theme], saved in localStorage).
 */
:root {
	color-scheme: light dark;
}
html[data-theme="light"] {
	color-scheme: light;
}
html[data-theme="dark"] {
	color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
html:not([data-theme="light"]) {
		--wp--preset--color--base: #0f0f10;
		--wp--preset--color--contrast: #ececea;
		--wp--preset--color--accent: #8ea2ff;
		--wp--preset--color--accent-soft: #2c3768;
		--wp--preset--color--muted: #a3a3a0;
		--wp--preset--color--line: #2a2a2d;
		--wp--preset--color--code-bg: #1b1b1e;
		--amieiro-code-bg: #000000;
		--amieiro-code-line: #26262a;
	}
html:not([data-theme="light"]) .wp-block-post-content pre.wp-block-code,
html:not([data-theme="light"]) .wp-block-post-content pre.wp-block-preformatted,
html:not([data-theme="light"]) body .enlighter-default.enlighter-v-standard {
		box-shadow: inset 0 0 0 1px var(--wp--preset--color--line) !important;
	}
/* The video placeholder stays dark, like a player. */
html:not([data-theme="light"]) .amieiro-video-frame,
html:not([data-theme="light"]) .amieiro-video-play {
		background: #000;
		color: #fff;
	}
html:not([data-theme="light"]) .amieiro-hero .amieiro-photo img,
html:not([data-theme="light"]) .amieiro-about-photo img,
html:not([data-theme="light"]) .amieiro-author .wp-block-image img {
		filter: grayscale(1) contrast(1.05) brightness(0.92);
	}
html:not([data-theme="light"]) .wp-block-post-content img:not(.amieiro-photo img) {
		filter: brightness(0.92);
	}
}
html[data-theme="dark"] {
		--wp--preset--color--base: #0f0f10;
		--wp--preset--color--contrast: #ececea;
		--wp--preset--color--accent: #8ea2ff;
		--wp--preset--color--accent-soft: #2c3768;
		--wp--preset--color--muted: #a3a3a0;
		--wp--preset--color--line: #2a2a2d;
		--wp--preset--color--code-bg: #1b1b1e;
		--amieiro-code-bg: #000000;
		--amieiro-code-line: #26262a;
	}
html[data-theme="dark"] .wp-block-post-content pre.wp-block-code,
html[data-theme="dark"] .wp-block-post-content pre.wp-block-preformatted,
html[data-theme="dark"] body .enlighter-default.enlighter-v-standard {
		box-shadow: inset 0 0 0 1px var(--wp--preset--color--line) !important;
	}
/* The video placeholder stays dark, like a player. */
html[data-theme="dark"] .amieiro-video-frame,
html[data-theme="dark"] .amieiro-video-play {
		background: #000;
		color: #fff;
	}
html[data-theme="dark"] .amieiro-hero .amieiro-photo img,
html[data-theme="dark"] .amieiro-about-photo img,
html[data-theme="dark"] .amieiro-author .wp-block-image img {
		filter: grayscale(1) contrast(1.05) brightness(0.92);
	}
html[data-theme="dark"] .wp-block-post-content img:not(.amieiro-photo img) {
		filter: brightness(0.92);
	}

/* ---------- Theme toggle ---------- */
.amieiro-theme-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--contrast);
	cursor: pointer;
}
.amieiro-theme-toggle:hover,
.amieiro-theme-toggle:focus-visible {
	color: var(--wp--preset--color--accent);
}
.amieiro-theme-toggle svg {
	width: 20px;
	height: 20px;
	display: none;
}
.amieiro-theme-toggle[data-mode="auto"] .icon-auto,
.amieiro-theme-toggle[data-mode="light"] .icon-light,
.amieiro-theme-toggle[data-mode="dark"] .icon-dark {
	display: block;
}

/* Header icons on one line */
.amieiro-header .wp-block-search,
.amieiro-header .wp-block-search__inside-wrapper {
	margin: 0;
	display: flex;
	align-items: center;
}
.amieiro-header .wp-block-search__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin: 0;
}
.amieiro-header .wp-block-group > .wp-block-group {
	align-items: center;
}
@media (max-width: 600px) {
	.amieiro-header .wp-block-group > .wp-block-group {
		gap: 10px !important;
	}
}
