/* Boldstart supplementary styles
   theme.json handles color, type, and spacing. This file only covers
   the few things it can't: pseudo-element content, focus outlines,
   and a reduced-motion guard. */

/* Signature: a source-code bracket precedes every post title, on the
   index/archive loop and on the single template. It's the one bold
   flourish in the theme; everything else stays quiet. */
.entry-title,
.wp-block-post-title {
	position: relative;
	padding-left: 1.1em;
}

.entry-title::before,
.wp-block-post-title::before {
	content: "{";
	position: absolute;
	left: 0;
	color: var(--wp--preset--color--lime);
	-webkit-text-stroke: 1px var(--wp--preset--color--ink);
}

/* Query loop list markers echo the same bracket instead of bullets. */
.wp-block-post-template {
	list-style: none;
}

.wp-block-post-template > li {
	border-top: 2px solid var(--wp--preset--color--ink);
	padding-block: var(--wp--preset--spacing--40);
}

.wp-block-post-template > li:last-child {
	border-bottom: 2px solid var(--wp--preset--color--ink);
}

/* Visible keyboard focus everywhere, in the accent color. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
	outline: 3px solid var(--wp--preset--color--cobalt);
	outline-offset: 2px;
}

/* Skip link, hidden until focused. */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100000;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
	padding: 0.75em 1.25em;
	font-family: var(--wp--preset--font-family--mono);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.skip-link:focus {
	left: 1rem;
	top: 1rem;
}

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