/*
Theme Name: Toraedor
Description: Block theme for a dated register of company exits abroad with weekly chronicle and long profiles: warm salmon paper, one deep teal ink, Ysabeau Office for prose and Martian Mono for register cells; both typefaces ship inside the theme.
Text Domain: toraedor
Requires at least: 7.0
Requires PHP: 8.1
Version: 0.1.10
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Update URI: false
*/

/* Лише те, чого theme.json не виражає. Кольори, шрифти, розміри й відступи беруться з пресетів; ширину колонки й поле контейнера задає theme.json. */

/* Клавіатурний фокус: мідне кільце 2 px з проміжком 2 px (5.39:1 на фоні, 4.90:1 на поверхні 1, 4.24:1 на поверхні 2). */
:focus-visible {
	outline: var(--wp--custom--ring--width) solid var(--wp--preset--color--flare);
	outline-offset: var(--wp--custom--ring--gap);
}
body .skip-link.screen-reader-text:focus {
	background: var(--wp--preset--color--lagoon);
	color: #fff;
	font-weight: 600;
}

a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	transition: color 120ms ease-out;
}
a:hover { text-decoration-thickness: 2px; }

html { text-size-adjust: 100%; }
body { overflow-wrap: break-word; }
img { max-width: 100%; height: auto; }

/* Локап (розд. 7.4) замість назви сайту: назва лишається текстом посилання (доступне ім'я), малюється локап. Висоти лише 23 px (до 720 px) і 46 px (від 720 px, у підвалі завжди): знак лягає на цілі пікселі. Дескриптор — лише на головній від 720 px. Адреси файлів тут, бо CSS блоків вбудовується в сторінку і втрачає відносні шляхи; шлях відносно цього файлу. Лише світле тло. */
.wp-block-site-title a {
	display: flex;
	align-items: center;
	min-height: 3.5rem;
	font-size: 0;
	line-height: 0;
	text-decoration: none;
}
.wp-block-site-title a::before {
	content: "";
	flex: none;
	width: 72.5px;
	height: 23px;
	background: url("assets/brand/entry-uk-unsettled.svg") left center / 100% 100% no-repeat;
}
html:lang(en) .wp-block-site-title a::before { width: 66px; background-image: url("assets/brand/entry-en-unsettled.svg"); }
@media (min-width: 45rem) {
	.wp-block-site-title a::before { width: 145px; height: 46px; }
	html:lang(en) .wp-block-site-title a::before { width: 132px; }
	.home .toraedor-masthead .wp-block-site-title a::before { width: 277px; background-image: url("assets/brand/entry-uk-descriptor-unsettled.svg"); }
	html:lang(en) .home .toraedor-masthead .wp-block-site-title a::before { width: 315px; background-image: url("assets/brand/entry-en-descriptor-unsettled.svg"); }
}
.toraedor-footer .wp-block-site-title a::before { width: 145px; height: 46px; }
html:lang(en) .toraedor-footer .wp-block-site-title a::before { width: 132px; }
@media (forced-colors: active) {
	.wp-block-site-title a::before { forced-color-adjust: none; }
}

/* Зображення запису (розд. «Зображення»): 16:9 над карткою й текстом, обрізання cover. Блок без зображення нічого не виводить: ні плейсхолдера, ні запасної картинки. Пропорцію задає aspectRatio блоку. */
.wp-block-post-featured-image { margin-block: var(--wp--preset--spacing--span-4); }
.wp-block-post-featured-image img { width: 100%; object-fit: cover; }
.toraedor-ai-caption { margin-block: var(--wp--preset--spacing--span-2) 0; color: var(--wp--preset--color--fog); font: 400 var(--wp--preset--font-size--leg-i)/1.4 var(--wp--preset--font-family--martian-mono); }

/* Комірки реєстру поза таблицею: дата, код країни, сума, статус. */
.toraedor-mono {
	font-family: var(--wp--preset--font-family--martian-mono);
	font-size: var(--wp--preset--font-size--leg-i);
}

@media (forced-colors: active) {
	.wp-element-button,
	.wp-block-button__link,
	button { border: 1px solid ButtonText; }
}

@media (prefers-reduced-motion: reduce) {
	*, ::before, ::after {
		animation: none !important;
		transition: none !important;
	}
}

/* Short pages: the footer sits at the bottom of the viewport, no bare strip under it. */
.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.wp-site-blocks > main {
	flex: 1 0 auto;
}
