/*
Theme Name: Wayfare
Theme URI: https://tenfoldthemes.example/wayfare
Author: Tenfold Themes
Author URI: https://tenfoldthemes.example
Description: A boutique travel-agency and tour-operator block theme with an atlas-romantic soul — postcard-frame heroes, passport-stamp badges, perforated ticket dividers and numbered itinerary connectors, 18 patterns, four full-page layouts, an Overnight Train dark style and locally hosted Yeseva One & Mulish fonts.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wayfare
Tags: block-theme, full-site-editing, block-patterns, block-styles, custom-colors, editor-style, featured-images, threaded-comments, translation-ready, wide-blocks, one-column, travel, entertainment, blog
*/

/* ---------------------------------------------------------------------------
 * Focus visibility & motion
 * ------------------------------------------------------------------------- */

:where(a, button, input, summary, textarea, select, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
	border-radius: 6px;
}

::selection {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
}

a,
.wp-block-button__link,
.wp-element-button {
	transition: var(--wp--custom--transition);
}

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

/* ---------------------------------------------------------------------------
 * Block style: Group — Postcard / Postcard (hover lift)
 * A framed postcard: deckle border with a faint inner rule, like the white
 * border printed around a vintage travel card.
 * ------------------------------------------------------------------------- */

.wp-block-group.is-style-card,
.wp-block-group.is-style-card-hover {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--m);
	box-shadow: var(--wp--preset--shadow--card), inset 0 0 0 6px var(--wp--preset--color--base), inset 0 0 0 7px var(--wp--preset--color--border);
	padding: var(--wp--preset--spacing--40);
}

.wp-block-group.is-style-card-hover {
	transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.wp-block-group.is-style-card-hover:hover {
	border-color: var(--wp--preset--color--accent);
	box-shadow: var(--wp--preset--shadow--lift), inset 0 0 0 6px var(--wp--preset--color--base), inset 0 0 0 7px var(--wp--preset--color--accent);
	transform: translateY(-5px);
}

/* ---------------------------------------------------------------------------
 * Block style: Group — Luggage sticker
 * Destination chip: sand ground, vermilion keyline, gently rounded like a
 * peel-and-stick travel sticker.
 * ------------------------------------------------------------------------- */

.wp-block-group.is-style-sticker {
	display: inline-block;
	background: var(--wp--preset--color--tint);
	border: 1.5px solid var(--wp--preset--color--accent);
	border-radius: var(--wp--custom--radius--s);
	padding: 0.4em 0.9em;
	box-shadow: 0 2px 0 var(--wp--preset--color--border);
}

.wp-block-group.is-style-sticker p {
	margin: 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--contrast);
}

/* ---------------------------------------------------------------------------
 * Block style: List — Itinerary
 * Numbered day stops joined by a dotted connector, like a routed trip plan.
 * ------------------------------------------------------------------------- */

ol.is-style-itinerary {
	list-style: none;
	counter-reset: stop;
	padding-left: 0;
	margin-left: 0;
}

ol.is-style-itinerary > li {
	counter-increment: stop;
	position: relative;
	padding-left: 3.25em;
	padding-bottom: 1.4em;
	min-height: 2.4em;
}

ol.is-style-itinerary > li::before {
	content: counter(stop);
	position: absolute;
	left: 0;
	top: 0;
	width: 2.15em;
	height: 2.15em;
	border-radius: 999px;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.85em;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	z-index: 1;
}

ol.is-style-itinerary > li::after {
	content: "";
	position: absolute;
	left: 1.02em;
	top: 2.15em;
	bottom: -0.35em;
	width: 0;
	border-left: 2px dotted var(--wp--preset--color--primary);
}

ol.is-style-itinerary > li:last-child::after {
	display: none;
}

/* ---------------------------------------------------------------------------
 * Block style: Separator — Perforated ticket edge
 * A tear-off strip: dashed rule with a rounded notch at each end.
 * ------------------------------------------------------------------------- */

hr.wp-block-separator.is-style-ticket-perf {
	border: none;
	height: 14px;
	max-width: 100%;
	width: 100%;
	background:
		radial-gradient(circle at left center, transparent 7px, var(--wp--preset--color--border) 7px, var(--wp--preset--color--border) 8px, transparent 8px) left / 40px 100% no-repeat,
		radial-gradient(circle at right center, transparent 7px, var(--wp--preset--color--border) 7px, var(--wp--preset--color--border) 8px, transparent 8px) right / 40px 100% no-repeat,
		linear-gradient(90deg, var(--wp--preset--color--border) 60%, transparent 60%) center / 16px 2px repeat-x;
	opacity: 1;
}

/* ---------------------------------------------------------------------------
 * Block style: Paragraph — Postmark label (eyebrow)
 * Wide-tracked label with a small vermilion postmark square as its prefix.
 * ------------------------------------------------------------------------- */

p.is-style-stamp-label {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
}

p.is-style-stamp-label::before {
	content: "";
	display: inline-block;
	width: 0.7em;
	height: 0.7em;
	margin-right: 0.7em;
	background: var(--wp--preset--color--accent);
	border-radius: 2px;
	transform: rotate(45deg) translateY(-0.05em);
}

/* ---------------------------------------------------------------------------
 * Details / FAQ affordance
 * ------------------------------------------------------------------------- */

.wp-block-details summary {
	cursor: pointer;
	list-style: none;
	position: relative;
	padding-right: 2rem;
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary::after {
	content: "+";
	position: absolute;
	right: 0.25rem;
	top: 50%;
	transform: translateY(-50%);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.35em;
	line-height: 1;
	color: var(--wp--preset--color--accent);
	transition: transform 0.2s ease;
}

.wp-block-details[open] summary::after {
	content: "\2212";
}

.wp-block-details > :not(summary) {
	font-weight: 400;
	color: var(--wp--preset--color--contrast-2);
}

/* ---------------------------------------------------------------------------
 * Tables — deposit schedules & fare charts
 * ------------------------------------------------------------------------- */

.wp-block-table thead {
	border-bottom: 2px solid var(--wp--preset--color--contrast);
}

.wp-block-table th {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-size: 0.8125rem;
}

.wp-block-table td {
	border-color: var(--wp--preset--color--border);
}

/* ---------------------------------------------------------------------------
 * Small refinements
 * ------------------------------------------------------------------------- */

.wp-block-navigation .current-menu-item > a {
	color: var(--wp--preset--color--accent);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	border-width: 1.5px;
}

.wp-block-image img {
	height: auto;
	max-width: 100%;
}
