/*
Theme Name: VN Cafe
Theme URI: https://haidang.space/
Author: Hai Dang
Description: A bilingual (Vietnamese and English) block theme for Vietnamese cafés and coffee chains: menu with prices, branches with live opening hours, events, news, delivery links and contact. Display only, no online ordering. Each café picks a "look" (colors, fonts, shapes) that is applied in code, so theme updates reach every café.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vn-cafe
Tags: food-and-drink, block-styles, full-site-editing, translation-ready
*/

/*
 * Colors, fonts and spacing live in theme.json and looks/*.json. Shapes that
 * differ per look (outlines, shadows, radii, how <em> in a heading stands out)
 * are custom properties in the same files: --wp--custom--*.
 */

:root {
	--vn-line: var(--wp--custom--line);
	--vn-stroke: var(--wp--custom--stroke);
	--vn-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- Base ---------- */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	border: 0;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	z-index: 100000;
	top: 5px;
	left: 5px;
	display: block;
	width: auto;
	height: auto;
	padding: 15px 23px 14px;
	clip: auto !important;
	clip-path: none;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	font-weight: 700;
}

html {
	scroll-behavior: smooth;
}

body {
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* Template parts sit flush: sections set their own spacing. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

::selection {
	background: var(--wp--preset--color--highlight);
	color: var(--wp--preset--color--contrast);
}

:focus-visible {
	outline: 3px solid var(--wp--preset--color--contrast);
	outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
	text-wrap: balance;
	text-transform: var(--wp--custom--heading--case);
}

:where(h1, h2, h3) em {
	padding: 0 0.04em;
	background: var(--wp--custom--em--background);
	color: var(--wp--custom--em--color);
	font-style: var(--wp--custom--em--style);
}

.vn-lead {
	max-width: 60ch;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.55;
}

.vn-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	width: fit-content;
	padding: 0.45em 0.95em;
	border: var(--wp--custom--eyebrow--border);
	border-radius: 999px;
	background: var(--wp--custom--eyebrow--background);
	color: var(--wp--custom--eyebrow--color);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	line-height: 1;
	text-transform: uppercase;
	rotate: var(--wp--custom--eyebrow--rotate);
}

.vn-more {
	margin: 0;
}

.vn-more a,
.vn-footer__more a {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	font-weight: 800;
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
}

.vn-more a::after,
.vn-footer__more a::after {
	content: "→";
	transition: transform 0.2s var(--vn-ease);
}

.vn-more a:hover::after,
.vn-footer__more a:hover::after {
	transform: translateX(4px);
}

.vn-notice {
	padding: 1rem 1.25rem;
	border: var(--vn-stroke) dashed var(--vn-line);
	border-radius: var(--wp--custom--radius--small);
	background: var(--wp--preset--color--surface);
	font-size: 0.9375rem;
}

/* ---------- Buttons ---------- */

.wp-element-button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	text-decoration: none;
	transition: transform 0.18s var(--vn-ease), box-shadow 0.18s var(--vn-ease), background-color 0.18s, color 0.18s;
}

.wp-element-button:hover,
.wp-block-button__link:hover {
	transform: var(--wp--custom--lift);
}

.wp-element-button:active,
.wp-block-button__link:active {
	transform: none;
	box-shadow: none;
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--highlight);
	color: var(--wp--preset--color--contrast);
}

/* ---------- Header ---------- */

.vn-site-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
}

@media (max-width: 600px) {
	.vn-site-header {
		top: 0;
	}
}

.vn-header {
	border-bottom: var(--vn-stroke) solid var(--vn-line);
	background: var(--wp--preset--color--base);
	transition: box-shadow 0.2s;
}

.vn-header.is-stuck {
	box-shadow: 0 6px 0 color-mix(in srgb, var(--wp--preset--color--contrast) 8%, transparent);
}

.vn-header__row {
	min-height: 56px;
}

.vn-brand {
	flex: none;
}

.vn-brand__name {
	margin: 0;
	font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem);
	letter-spacing: -0.03em;
	line-height: 1;
	white-space: nowrap;
}

.vn-brand__name a {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	color: inherit;
	text-decoration: none;
}

/* The drawn mascot stands in for a logo until the café uploads one. */
.vn-brand:not(:has(.wp-block-site-logo)) .vn-brand__name a::before {
	content: "";
	flex: none;
	width: 46px;
	height: 46px;
	background: url("assets/images/mascot.svg") center / contain no-repeat;
	transition: transform 0.35s var(--vn-ease);
}

.vn-brand:not(:has(.wp-block-site-logo)) .vn-brand__name a:hover::before {
	transform: rotate(-8deg) scale(1.05);
}

.vn-nav .wp-block-navigation-item__content {
	padding: 0.55em 0.8em;
	border-radius: 999px;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s, color 0.15s;
}

.vn-nav .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--accent-soft);
	color: var(--wp--preset--color--contrast);
}

.vn-nav .current-menu-item > .wp-block-navigation-item__content {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

.vn-header__tools {
	flex: none;
}

.vn-header__tools > p {
	margin: 0;
}

/* Too many links for one line under 1200px: use the menu button instead. */
@media (min-width: 600px) and (max-width: 1199px) {
	.vn-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.vn-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

@media (max-width: 1399px) {
	.vn-header__tools .vn-open {
		display: none;
	}
}

.vn-nav {
	order: 3;
}

@media (min-width: 1200px) {
	.vn-nav {
		order: 0;
	}
}

.vn-nav .wp-block-navigation__responsive-container-open {
	width: 46px;
	height: 46px;
	justify-content: center;
	align-items: center;
	border: var(--vn-stroke) solid var(--vn-line);
	border-radius: 50%;
	background: var(--wp--preset--color--highlight);
	color: var(--wp--preset--color--contrast);
	box-shadow: var(--wp--custom--shadow--s);
}

.vn-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.25rem clamp(1rem, 4.5vw, 2.75rem) 2rem;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
}

.vn-nav .is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: stretch;
	padding-top: 3.5rem;
}

.vn-nav .is-menu-open .wp-block-navigation__container {
	align-items: stretch;
	gap: 0;
	width: 100%;
}

.vn-nav .is-menu-open .wp-block-navigation-item {
	border-bottom: 2px dashed color-mix(in srgb, var(--wp--preset--color--contrast) 22%, transparent);
}

.vn-nav .is-menu-open .wp-block-navigation-item__content {
	display: block;
	width: 100%;
	padding: 0.9rem 0.25rem;
	border-radius: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	text-transform: var(--wp--custom--heading--case);
}

.vn-nav .is-menu-open .current-menu-item > .wp-block-navigation-item__content {
	background: none;
	color: var(--wp--preset--color--accent-deep);
}

.vn-nav .wp-block-navigation__responsive-container-close {
	top: 1.25rem;
	right: clamp(1rem, 4.5vw, 2.75rem);
	width: 46px;
	height: 46px;
	justify-content: center;
	align-items: center;
	border: var(--vn-stroke) solid var(--vn-line);
	border-radius: 50%;
	background: var(--wp--preset--color--surface);
}

/* ---------- Sections ---------- */

.vn-section {
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--60);
}

.vn-section.vn-flush {
	padding-top: 0;
}

.vn-tint {
	background: var(--wp--preset--color--base-2);
}

.vn-band {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--on-accent);
}

.vn-beans,
.vn-hero {
	background-color: var(--wp--preset--color--base);
	background-image: url("assets/images/pattern-beans.svg");
	background-size: 160px;
}

.vn-section-head {
	gap: 1rem 2rem;
	margin-bottom: clamp(1.75rem, 4.5vw, 3.25rem);
}

.vn-section-head__text {
	gap: 0.9rem;
	max-width: 46rem;
}

.vn-section-head__text > *,
.vn-section-head > * {
	margin: 0;
}

.vn-center {
	gap: 0.9rem;
	text-align: center;
}

/* Kit lists (menu, branches, events...) use the wide width wherever they are placed. */
.is-layout-constrained > :is(.vn-menu, .vn-menu__grid, .vn-tiles, .vn-branches, .vn-branch-teasers, .vn-events, .vn-reviews, .vn-news, .vn-apps, .vn-map, .vn-note, .vn-empty) {
	max-width: var(--wp--style--global--wide-size);
}

/* ---------- Home hero ---------- */

.vn-hero {
	padding-top: clamp(2rem, 5vw, 4rem);
	padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
}

.vn-hero__grid {
	gap: clamp(2rem, 4vw, 4rem);
}

.vn-hero__copy > * {
	margin-block: 0;
}

.vn-hero__copy {
	display: grid;
	gap: 1.4rem;
	justify-items: start;
}

.vn-hero__title {
	line-height: 0.98;
}

.vn-hero__copy .wp-block-buttons {
	margin: 0.25rem 0 0;
}

.vn-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 2.25rem;
	width: 100%;
	margin: 0;
	padding: 1.25rem 0 0;
	border-top: var(--vn-stroke) dashed var(--vn-line);
	list-style: none;
}

.vn-facts li {
	color: var(--wp--preset--color--muted);
	font-size: 0.9375rem;
	line-height: 1.3;
}

.vn-facts strong {
	display: block;
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.9rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.1;
}

.vn-facts-big strong {
	color: var(--wp--preset--color--accent);
	font-size: clamp(2.1rem, 1.6rem + 2vw, 3rem);
}

.vn-hero__art,
.vn-split__art {
	position: relative;
}

.vn-photo img {
	display: block;
	width: 100%;
	height: auto;
	border: var(--vn-stroke) solid var(--vn-line);
	border-radius: var(--wp--custom--radius--media);
	background: var(--wp--preset--color--tone);
	box-shadow: var(--wp--custom--shadow--l);
	object-fit: cover;
}

.vn-photo-hero img {
	aspect-ratio: 5 / 4;
}

.vn-tilt img {
	aspect-ratio: 4 / 5;
	rotate: -2deg;
}

.vn-sticker {
	position: absolute;
	z-index: 2;
	margin: 0;
	padding: 0.7em 1.1em;
	border: var(--vn-stroke) solid var(--vn-line);
	border-radius: 999px;
	background: var(--wp--preset--color--highlight);
	color: var(--wp--preset--color--contrast);
	box-shadow: var(--wp--custom--shadow--s);
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	line-height: 1.1;
	text-align: center;
	text-transform: uppercase;
}

.vn-sticker-one {
	top: 7%;
	left: -4%;
	rotate: -7deg;
}

.vn-sticker-two {
	right: -3%;
	bottom: 9%;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--on-accent);
	rotate: 6deg;
}

.vn-sticker-round {
	top: -1.25rem;
	right: -0.75rem;
	display: grid;
	place-items: center;
	width: 6.5rem;
	height: 6.5rem;
	padding: 0.5rem;
	border-radius: 50%;
	rotate: 10deg;
}

.vn-mascot img {
	width: 100%;
	height: auto;
}

.vn-hero__mascot {
	position: absolute;
	bottom: -9%;
	left: -6%;
	z-index: 3;
	width: 25%;
	margin: 0;
	transform-origin: 50% 100%;
	animation: vn-wiggle 4.5s ease-in-out infinite;
}

@keyframes vn-wiggle {
	0%, 100% { transform: rotate(-3deg); }
	50% { transform: rotate(3deg); }
}

@media (max-width: 781px) {
	.vn-hero__art {
		max-width: 520px;
		margin-inline: auto;
		padding-inline: 4%;
	}

	.vn-sticker-one {
		left: 0;
	}

	.vn-sticker-two {
		right: 0;
	}

	.vn-hero__mascot {
		left: 0;
		width: 22%;
	}

	.vn-sticker-round {
		right: 0.25rem;
		width: 5.5rem;
		height: 5.5rem;
		font-size: 0.75rem;
	}
}

/* In the editor, stickers and the mascot sit in the flow, so they are easy to click and edit. */
.editor-styles-wrapper .vn-sticker,
.editor-styles-wrapper .vn-hero__mascot {
	position: relative;
	inset: auto;
	display: inline-block;
	margin: 0.75rem 0.75rem 0 0;
}

.editor-styles-wrapper .vn-hero__mascot {
	width: 90px;
	animation: none;
}

/* ---------- Marquee ---------- */

.vn-marquee {
	overflow: hidden;
	border-block: var(--vn-stroke) solid var(--vn-line);
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

.vn-marquee__text,
.vn-marquee__track p {
	margin: 0;
	padding: 0.85rem 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.1rem, 0.9rem + 1vw, 1.6rem);
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1;
	text-align: center;
	text-transform: uppercase;
	white-space: nowrap;
}

.vn-marquee__track {
	display: flex;
	width: max-content;
	animation: vn-marquee 40s linear infinite;
}

.vn-marquee__track p {
	padding-right: 1.4rem;
}

.vn-marquee:hover .vn-marquee__track {
	animation-play-state: paused;
}

@keyframes vn-marquee {
	to { transform: translateX(-50%); }
}

.vn-marquee__text {
	white-space: normal;
}

/* ---------- Features ---------- */

.vn-features {
	gap: clamp(1rem, 2.5vw, 1.5rem);
}

.vn-feature {
	gap: 0.8rem;
	padding: 1.5rem;
	border: var(--vn-stroke) solid var(--vn-line);
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	box-shadow: var(--wp--custom--shadow--m);
}

.vn-feature > * {
	margin: 0;
}

.vn-feature h3 {
	font-size: 1.3rem;
}

.vn-feature p:not(.vn-feature__icon) {
	color: var(--wp--preset--color--muted);
	font-size: 0.9375rem;
}

.vn-feature__icon {
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	border: var(--vn-stroke) solid var(--vn-line);
	border-radius: 50%;
	background: var(--wp--preset--color--highlight);
	font-size: 1.6rem;
	line-height: 1;
}

.vn-band .vn-eyebrow {
	--wp--custom--eyebrow--background: var(--wp--preset--color--highlight);
	--wp--custom--eyebrow--color: var(--wp--preset--color--contrast);
}

/* ---------- Split sections ---------- */

.vn-split {
	gap: clamp(2rem, 6vw, 5.5rem);
}

.vn-split__copy > * {
	margin-block: 0;
}

.vn-split__copy {
	display: grid;
	gap: 1.15rem;
	justify-items: start;
}

/* ---------- Call to action ---------- */

.vn-cta {
	gap: 2rem;
	padding: clamp(1.75rem, 5vw, 3.5rem);
	border: var(--vn-stroke) solid var(--vn-line);
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--on-accent);
	box-shadow: var(--wp--custom--shadow--l);
}

.vn-cta h2 {
	--wp--custom--em--color: inherit;
	--wp--custom--em--background: none;
}

.vn-cta h2 em {
	color: var(--wp--preset--color--highlight);
}

.vn-cta p {
	max-width: 52ch;
	font-size: var(--wp--preset--font-size--large);
}

.vn-cta-simple > * {
	margin: 0;
}

/* Outline buttons on a colored band: a light button in every look. */
.vn-cta .wp-block-button.is-style-outline > .wp-block-button__link,
.vn-band .wp-block-button.is-style-outline > .wp-block-button__link {
	border-color: var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
}

.vn-cta__copy > * {
	margin-block: 0 1rem;
}

.vn-cta .vn-photo img {
	aspect-ratio: 3 / 2;
	rotate: 2deg;
}

/* ---------- Inner page hero ---------- */

.vn-page-hero {
	padding-top: clamp(2.25rem, 6vw, 5rem);
	padding-bottom: clamp(2.25rem, 6vw, 5rem);
	border-bottom: var(--vn-stroke) solid var(--vn-line);
	background: var(--wp--preset--color--accent-soft);
}

.vn-page-hero__copy > * {
	margin-block: 0;
}

.vn-page-hero__copy {
	display: grid;
	gap: 1.15rem;
	justify-items: start;
}

.vn-page-hero__art {
	display: grid;
	justify-items: end;
}

.vn-page-hero__mascot {
	display: grid;
	place-items: center;
	width: min(100%, 280px);
	aspect-ratio: 1;
	margin: 0;
	border: var(--vn-stroke) solid var(--vn-line);
	border-radius: 50%;
	background: var(--wp--preset--color--highlight);
	box-shadow: var(--wp--custom--shadow--m);
}

.vn-page-hero__mascot img {
	width: 72%;
}

.vn-page-hero .vn-photo {
	width: min(100%, 420px);
}

.vn-page-hero .vn-photo img {
	aspect-ratio: 4 / 3;
}

@media (max-width: 781px) {
	.vn-page-hero__art {
		justify-items: start;
		order: -1;
	}

	.vn-page-hero__mascot {
		width: 140px;
	}
}

/* ---------- Steps, timeline, FAQ ---------- */

.vn-steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
	gap: 1.75rem 1.25rem;
	margin: 0 0 2rem;
	padding: 0;
	list-style: none;
	counter-reset: vn-step;
}

.vn-steps li {
	position: relative;
	padding: 1.9rem 1.35rem 1.35rem;
	border: var(--vn-stroke) solid var(--vn-line);
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--surface);
	box-shadow: var(--wp--custom--shadow--s);
	color: var(--wp--preset--color--muted);
	font-size: 0.9375rem;
	counter-increment: vn-step;
}

.vn-steps li::before {
	content: counter(vn-step);
	position: absolute;
	top: -1.1rem;
	left: 1.25rem;
	display: grid;
	place-items: center;
	width: 2.3rem;
	height: 2.3rem;
	border: var(--vn-stroke) solid var(--vn-line);
	border-radius: 50%;
	background: var(--wp--preset--color--highlight);
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 800;
}

.vn-steps strong {
	display: block;
	margin-bottom: 0.35rem;
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.2rem;
	line-height: 1.2;
}

.vn-timeline {
	display: grid;
	gap: 1.75rem;
	margin: 0;
	padding: 0 0 0 2rem;
	border-left: var(--vn-stroke) dashed var(--vn-line);
	list-style: none;
}

.vn-timeline li {
	position: relative;
	color: var(--wp--preset--color--muted);
}

.vn-timeline li::before {
	content: "";
	position: absolute;
	top: 0.35rem;
	left: calc(-2rem - 9px);
	width: 16px;
	height: 16px;
	border: var(--vn-stroke) solid var(--vn-line);
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
}

.vn-timeline strong {
	display: block;
	color: var(--wp--preset--color--accent-deep);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.6rem;
	letter-spacing: -0.03em;
	line-height: 1.1;
}

.vn-faq {
	margin-top: 0.9rem;
	border: var(--vn-stroke) solid var(--vn-line);
	border-radius: var(--wp--custom--radius--small);
	background: var(--wp--preset--color--surface);
	box-shadow: var(--wp--custom--shadow--s);
}

.vn-faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.25rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.3;
	list-style: none;
	cursor: pointer;
}

.vn-faq summary::-webkit-details-marker {
	display: none;
}

.vn-faq summary::after {
	content: "+";
	display: grid;
	flex: none;
	place-items: center;
	width: 1.9rem;
	height: 1.9rem;
	border: var(--vn-stroke) solid var(--vn-line);
	border-radius: 50%;
	background: var(--wp--preset--color--highlight);
	font-family: var(--wp--preset--font-family--body);
	font-weight: 800;
	transition: transform 0.25s var(--vn-ease);
}

.vn-faq[open] summary::after {
	transform: rotate(45deg);
}

.vn-faq > p {
	margin: 0;
	padding: 0 1.25rem 1.25rem;
	color: var(--wp--preset--color--muted);
}

/* ---------- Contact page ---------- */

.vn-contact-grid {
	gap: clamp(1.5rem, 5vw, 4rem);
}

/* ---------- News article and archive ---------- */

.vn-article__date,
.vn-post-card__date {
	color: var(--wp--preset--color--accent-deep);
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.vn-article__image img,
.vn-post-card .wp-block-post-featured-image img {
	border: var(--vn-stroke) solid var(--vn-line);
	border-radius: var(--wp--custom--radius--card);
	box-shadow: var(--wp--custom--shadow--m);
}

.vn-article__nav a {
	font-weight: 700;
}

.vn-post-grid {
	gap: clamp(1.25rem, 3vw, 2rem);
}

.vn-post-card > * {
	margin: 0;
}

.vn-post-card .wp-block-post-title a {
	text-decoration: none;
}

/* ---------- 404 ---------- */

.vn-404 {
	gap: 1.25rem;
	padding-top: clamp(2.5rem, 8vw, 6rem);
	padding-bottom: clamp(2.5rem, 8vw, 6rem);
	text-align: center;
}

.vn-404 > * {
	margin: 0;
}

.vn-404__art img {
	width: min(100%, 360px);
	height: auto;
}

/* ---------- Footer ---------- */

.vn-footer {
	position: relative;
	margin-top: 18px;
	background: var(--wp--custom--footer--background);
	color: var(--wp--custom--footer--color);
}

/* The scalloped edge of the sticker looks. */
.vn-footer::before {
	content: "";
	position: absolute;
	right: 0;
	bottom: calc(100% - 1px);
	left: 0;
	height: 18px;
	background: radial-gradient(circle at 18px 18px, var(--wp--custom--footer--background) 17.5px, transparent 18.5px) 0 0 / 36px 18px repeat-x;
}

.vn-footer a {
	color: inherit;
}

.vn-footer a:hover {
	color: var(--wp--custom--footer--title);
}

.vn-footer__grid {
	margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.vn-footer .vn-brand__name {
	font-size: 1.75rem;
}

.vn-footer__tagline {
	max-width: 34ch;
	margin-top: 1rem;
	opacity: 0.85;
	font-size: 0.9375rem;
}

.vn-footer__title {
	margin: 0 0 1rem;
	color: var(--wp--custom--footer--title);
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	line-height: 1;
	text-transform: uppercase;
}

.vn-footer__links {
	display: grid;
	gap: 0.55rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.9375rem;
}

.vn-footer__links a {
	text-decoration: none;
}

.vn-footer__links a:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.vn-footer__col > * + * {
	margin-top: 1rem;
}

.vn-footer .vn-hours {
	font-size: 0.875rem;
}

.vn-footer .vn-hours td {
	white-space: nowrap;
}

.vn-footer .vn-hours tr.is-today {
	background: color-mix(in srgb, currentColor 14%, transparent);
}

.vn-footer .vn-lang__link {
	color: var(--wp--preset--color--contrast);
}

.vn-footer .vn-lang__link.is-current {
	color: var(--wp--preset--color--base);
}

.vn-footer .vn-reach {
	display: grid;
	gap: 0.6rem;
}

.vn-footer .vn-iconline .vn-icon {
	color: var(--wp--custom--footer--title);
}

.vn-footer__more {
	font-size: 0.9375rem;
}

.vn-footer__bottom {
	padding-top: 1.25rem;
	border-top: 2px dashed color-mix(in srgb, currentColor 30%, transparent);
	opacity: 0.85;
}

/* ---------- Look details theme.json can't express ---------- */

.vn-look-vuon-tra .vn-footer::before,
.vn-look-vuon-tra .vn-hero__mascot,
.vn-look-vuon-tra .vn-page-hero__mascot {
	display: none;
}

.vn-look-vuon-tra .vn-footer {
	margin-top: 0;
}

.vn-look-vuon-tra .vn-tilt img,
.vn-look-vuon-tra .vn-cta .vn-photo img {
	rotate: none;
}

.vn-look-vuon-tra .vn-page-hero,
.vn-look-vuon-tra .vn-header,
.vn-look-vuon-tra .vn-marquee {
	border-color: transparent;
}

.vn-look-vuon-tra .vn-marquee {
	background: var(--wp--preset--color--accent-soft);
	color: var(--wp--preset--color--accent-deep);
}

.vn-look-nhan-do .vn-sticker {
	border-radius: 10px;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--accent);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.15rem;
	letter-spacing: 0.02em;
}

.vn-look-nhan-do .vn-sticker-two,
.vn-look-nhan-do .vn-sticker-round {
	background: var(--wp--preset--color--accent);
	color: #fff;
}

.vn-look-nhan-do .vn-sticker-round {
	border-radius: 50%;
}

.vn-look-nhan-do .vn-marquee {
	background: var(--wp--preset--color--accent);
	color: #fff;
}

/* ---------- Motion and print ---------- */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.vn-hero__mascot,
	.vn-marquee__track {
		animation: none;
	}

	.vn-marquee__track {
		width: auto;
		flex-wrap: wrap;
		justify-content: center;
	}

	.vn-marquee__track [aria-hidden="true"] {
		display: none;
	}

	.vn-marquee__track p {
		white-space: normal;
	}

	.wp-element-button,
	.wp-block-button__link {
		transition: none;
	}
}

@media print {
	.vn-site-header,
	.vn-site-footer,
	.vn-marquee,
	.vn-announce,
	.wp-block-buttons {
		display: none !important;
	}

	body {
		background: #fff;
	}
}
