/* Olga's homes: the destination postmark and the homes page list.
   Loaded only where homes.php renders them. Italics use Georgia until
   assets/js/lora-emphasis.js swaps in Lora, as elsewhere on the site. */

.olga-home-head__note,
.olga-homes-list__note {
	font-family: Georgia, serif;
	font-synthesis: weight style;
}

.olga-country-archive > .olga-home-head {
	margin-bottom: clamp(1.5rem, 3vw, 2.75rem);
}

/* The quotation's large opening mark rises above its box; keep it clear of the note. */
.olga-home-head + .olga-country-intro--quote {
	margin-top: clamp(3rem, 6vw, 4.5rem);
}

.olga-home-head__inner {
	display: grid;
	gap: 0.35rem;
	width: fit-content;
	max-width: 100%;
}

.olga-home-head__title-row {
	display: flex;
	gap: clamp(0.75rem, 2vw, 1.5rem);
	align-items: center;
}

.olga-home-head .wp-block-query-title {
	min-width: 0;
	margin: 0;
}

.olga-home-stamp {
	display: block;
	flex: none;
	width: 4.6rem;
	aspect-ratio: 1;
	color: var(--wp--preset--color--accent);
	opacity: 0.82;
	transform: rotate(-9deg);
	transition: opacity 0.2s, transform 0.2s;
}

.olga-home-stamp:hover,
.olga-home-head:has(.olga-home-head__note a:hover) .olga-home-stamp {
	opacity: 1;
	transform: rotate(-4deg);
}

.olga-home-stamp__art {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.olga-home-stamp__ring {
	fill: currentColor;
	font-family: var(--wp--preset--font-family--ui);
	font-size: 9.2px;
	font-weight: 500;
}

.olga-home-stamp__window {
	fill: none;
}

.olga-home-head.is-current .olga-home-stamp__window {
	fill: currentColor;
}

.olga-home-stamp__smoke {
	stroke-width: 1.2;
	opacity: 0.8;
}

/* Contained, the note cannot widen the head, so it ends where the stamp does. */
.olga-home-head__note {
	contain: inline-size;
	margin: 0;
	font-size: 0.9375rem;
	font-style: italic;
	line-height: 1.5;
	text-align: right;
	text-wrap: pretty;
}

.olga-home-head__note a {
	color: var(--wp--preset--color--accent);
	text-decoration: underline transparent;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.28em;
	transition: color 0.2s, text-decoration-color 0.2s;
}

.olga-home-head__note a:hover,
.olga-home-head__note a:focus-visible,
.olga-home-head:has(.olga-home-stamp:hover) .olga-home-head__note a {
	color: var(--wp--preset--color--link);
	text-decoration-color: currentColor;
}

.olga-home-head__arrow {
	display: inline-block;
	font-family: var(--wp--preset--font-family--ui);
	font-size: 0.875em;
	font-style: normal;
	transition: transform 0.2s;
}

.olga-home-head__note a:hover .olga-home-head__arrow,
.olga-home-head:has(.olga-home-stamp:hover) .olga-home-head__arrow {
	transform: translateX(0.15em);
}

@media (max-width: 640px) {
	.olga-home-head__inner {
		width: 100%;
	}

	.olga-home-head__title-row {
		justify-content: space-between;
	}

	.olga-home-stamp {
		width: 3.8rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.olga-home-stamp,
	.olga-home-head__note a,
	.olga-home-head__arrow {
		transition: none;
	}
}

.olga-homes-list {
	margin-block: clamp(1.75rem, 4vw, 2.75rem) 0;
	padding: 0;
	list-style: none;
}

.olga-homes-list__home {
	display: grid;
	grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr);
	gap: 0.25rem 2rem;
	align-items: baseline;
	padding: 1.1rem 0;
	border-top: 1px solid var(--wp--preset--color--surface);
}

.olga-homes-list__home:last-child {
	border-bottom: 1px solid var(--wp--preset--color--surface);
}

.olga-homes-list__country {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.35rem;
	font-weight: 400;
	line-height: 1.3;
}

.olga-homes-list__country a {
	color: inherit;
	text-decoration: none;
}

.olga-homes-list__country a:hover,
.olga-homes-list__country a:focus-visible {
	color: var(--wp--preset--color--link);
}

.olga-homes-list__now {
	margin-left: 0.6rem;
	color: var(--wp--preset--color--accent);
	font-family: var(--wp--preset--font-family--ui);
	font-size: 0.6875rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	vertical-align: middle;
}

.olga-homes-list__note {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-style: italic;
}

@media (max-width: 640px) {
	.olga-homes-list__home {
		grid-template-columns: minmax(0, 1fr);
	}
}
