/* ==========================================================================
   Xata — main stylesheet
   Light linen look from the brand manual: Rojo Xata, Negro, Marfil lino,
   Kraft natural · Lora (text/headings) · Dusha V5 (dish names).
   Fonts are declared in theme.json and exposed as --wp--preset--font-family-*.
   ========================================================================== */

:root {
	--red: #E60000;
	--red-ink: #B80000; /* red for text and outlines on linen: passes AA contrast */
	--red-deep: #A50D0D;
	--ink: #1c1a17;
	--ink-soft: #57493d;
	--linen: #FEFDF9;
	--linen-2: #F6F0E4;
	--paper: #FFFFFF;
	--kraft: #C9A67B;
	--walnut: #7A5637;
	--line: #DCCBB2;

	--serif: var(--wp--preset--font-family--lora, Lora, Georgia, serif);
	--display: var(--wp--preset--font-family--dusha, 'Dusha V5', Lora, serif);
	--heading: var(--wp--preset--font-family--garamond, 'EB Garamond', Garamond, Georgia, serif);
	--title: #5A3A24;

	--container: 1200px;
	--text: 760px;
	--gutter: clamp(1rem, 4vw, 2rem);
	--header-h: 76px;
	--band-w: 64px;
	--radius: 3px;
	--shadow: 0 1px 2px rgba(60, 40, 20, .05), 0 6px 18px rgba(60, 40, 20, .07);
	--texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .48 0 0 0 0 .34 0 0 0 0 .2 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (max-width: 767px) {
	:root { --header-h: 64px; --band-w: 30px; }
}

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

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

body {
	margin: 0;
	background: var(--linen) var(--texture);
	color: var(--ink);
	font-family: var(--serif);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

img, svg, video, iframe { max-width: 100%; height: auto; display: block; }

a { color: var(--red-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--red); }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

h1, h2, h3, h4 { font-weight: 400; line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }

/* Section and page titles use EB Garamond; small card titles and body text stay in Lora. */
.hero__title,
.section-title,
.title-stars,
.delivery__title,
.cta__title,
.reserva__title,
.page-header__title,
.carta-cat__title,
.entry-content h2 { font-family: var(--heading); }
/* Titles in warm walnut (brand "Madera nogal", darkened for contrast); red stays for accents. */
.hero__title,
.section-title,
.title-stars,
.delivery__title,
.reserva__title,
.page-header__title,
.carta-cat__title,
.entry-content h2 { color: var(--title); }
p { margin: 0 0 1em; }

[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }

.container {
	width: 100%;
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.container--text { max-width: calc(var(--text) + 2 * var(--gutter)); }
.container--wide { max-width: calc(var(--container) + 2 * var(--gutter)); }

.center { text-align: center; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: 1rem; top: -100px;
	z-index: 1000;
	padding: .6rem 1rem;
	background: var(--ink);
	color: #fff;
}
.skip-link:focus { top: 1rem; }

.icon { flex: none; width: 1.15em; height: 1.15em; }
.star { display: inline-block; flex: none; width: 15px; height: 15px; image-rendering: pixelated; vertical-align: -2px; }

/* ---------- Buttons & links ---------- */

.btn,
.wp-element-button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	min-height: 48px;
	padding: .65rem 1.6rem;
	border: 1.5px solid transparent;
	border-radius: 2px;
	font: 500 1rem/1.2 var(--serif);
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}
.btn--sm { min-height: 42px; padding: .5rem 1.25rem; font-size: .95rem; }

/* Editor buttons in posts/pages: the global a:hover red must not reach their text. */
.wp-block-button__link:not(.has-text-color) { color: #fff; }
.wp-block-button__link:hover { filter: brightness(.88); text-decoration: none; }
.wp-block-button__link:not(.has-text-color):hover { color: #fff; }
.is-style-outline > .wp-block-button__link:not(.has-text-color),
.is-style-outline > .wp-block-button__link:not(.has-text-color):hover { color: var(--red-ink); }

.btn--red { background: var(--red-ink); color: #fff; }
.btn--red:hover { background: var(--red-deep); color: #fff; }

.btn--outline-red { border-color: var(--red-ink); color: var(--red-ink); background: transparent; }
.btn--outline-red:hover { background: var(--red-ink); color: #fff; }

.btn--white { background: var(--paper); color: var(--red-ink); }
.btn--white:hover { background: #fff; color: var(--red-deep); }

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	font-size: .95rem;
	text-decoration: none;
}
.link-arrow .icon { width: 1em; height: 1em; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Ornaments ---------- */

.divider {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .7rem;
}
.divider::before,
.divider::after {
	content: "";
	width: 64px;
	height: 1px;
	background: var(--red);
	opacity: .55;
}
/* Star in section dividers: large enough to read as the embroidered motif. */
.divider .star { width: 32px; height: 32px; }
.divider { gap: 1rem; }
.divider::before,
.divider::after { width: 80px; }
/* Left-aligned variant: star, then a single short line. */
.divider--left { justify-content: flex-start; margin-bottom: 1.2rem; }
.divider--left::before { display: none; }

/* Thin rule with a small diamond, left aligned (hero). */
.rule { display: flex; align-items: center; width: 190px; margin: 1.4rem 0; }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: var(--red); opacity: .5; }
.rule span { width: 7px; height: 7px; margin: 0 .5rem; background: var(--red); transform: rotate(45deg); }

.title-stars {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
	font-size: clamp(1.9rem, 3.6vw, 2.7rem);
	text-align: center;
}
.title-stars .star { width: 28px; height: 28px; }

/* Vertical embroidery strip (vector tile, repeats seamlessly).
   The hero starts at the very top of the page, so the strip runs through the header. */
.embroidery {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	z-index: 60;
	width: var(--band-w);
	background: url("../img/band-v.svg") repeat-y center top / 100% auto;
}

/* Faint floral branches on section edges. */
.floral {
	position: absolute;
	z-index: 0;
	width: 400px;
	height: auto;
	mix-blend-mode: multiply;
	opacity: .22;
	pointer-events: none;
}
.floral--right { right: -12px; top: 0; transform: scaleY(-1); }
.floral--left { left: -12px; top: -2rem; transform: scale(-1, -1); }
/* Decorations may poke past the viewport edge; never let them cause sideways scrolling. */
.home .site-main { overflow-x: clip; }
/* News list and posts: branches start below the page header and sit behind the content. */
.section:has(> .entry-content > .floral--news),
.post-single { position: relative; }
/* Anchor the news branches to the page edges, not to the (positioned) content column. */
.section > .entry-content:has(> .floral--news) { position: static; }
.site-main:has(.floral--news, .floral--post) { overflow-x: clip; }
.entry-content > .floral { margin: 0; }
/* The news cards fill the width, so there the branches frame the page title instead. */
.floral.floral--news,
.floral.floral--news-low { top: -215px; bottom: auto; width: 240px !important; }
.floral--post { top: 220px; }
.floral--post-low { top: auto; bottom: 8%; }
.floral.floral--post,
.floral.floral--post-low { width: 280px !important; }
/* Fainter than on the home page (overrides the lazy-load opacity fix below). */
.floral.floral.floral--news,
.floral.floral.floral--news-low,
.floral.floral.floral--post,
.floral.floral.floral--post-low { opacity: .13 !important; }
.post-grid--news,
.post-single > .section { position: relative; z-index: 1; }
@media (max-width: 1100px) {
	.floral { display: none; }
}

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

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid transparent;
	transition: border-color .2s;
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   trap the fixed mobile menu inside the header's box. */
.site-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(254, 253, 249, .93);
	backdrop-filter: blur(8px);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

/* Home, top of the page: the hero photo runs under the header, which fades
   from linen at the top to transparent. Turns solid once the page scrolls. */
.site-header::after {
	content: "";
	position: absolute;
	inset: 0 0 -28px;
	z-index: -1;
	background: linear-gradient(180deg, rgba(254, 253, 249, .96) 0%, rgba(254, 253, 249, .8) 45%, rgba(254, 253, 249, 0) 100%);
	opacity: 0;
	pointer-events: none;
	transition: opacity .3s;
}
.site-header::before { transition: opacity .3s; }
body.home:not(.nav-open) .site-header:not(.is-scrolled)::before { opacity: 0; }
body.home:not(.nav-open) .site-header:not(.is-scrolled)::after { opacity: 1; }
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	height: var(--header-h);
}

/* Home: keep the logo clear of the embroidery strip. */
.home .site-header__inner { padding-left: calc(var(--band-w) + var(--gutter)); }
@media (min-width: 1360px) {
	.home .site-header__inner { padding-left: var(--gutter); }
}

.logo { flex: none; display: block; }
.logo img { width: 170px; height: auto; }

.site-header__tools {
	display: flex;
	align-items: center;
	gap: .6rem;
	margin-left: auto;
}

.lang-switch {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: .85rem;
	letter-spacing: .05em;
}
.lang-switch a {
	display: block;
	padding: .35rem .4rem;
	color: var(--ink-soft);
	text-decoration: none;
	border-bottom: 1.5px solid transparent;
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current] { color: var(--red-ink); border-bottom-color: var(--red-ink); }

.cart-link {
	position: relative;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	color: var(--ink);
}
.cart-link .icon { width: 22px; height: 22px; }
.cart-link__count {
	position: absolute;
	top: 3px;
	right: 0;
	min-width: 19px;
	height: 19px;
	padding: 0 5px;
	border-radius: 10px;
	background: var(--red-ink);
	color: #fff;
	font: 600 .72rem/19px var(--serif);
	text-align: center;
}
.cart-link__count.is-empty { display: none; }

.nav-toggle {
	display: none;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ink);
	cursor: pointer;
}
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

.main-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: .2rem 1.9rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.main-nav__list a {
	display: block;
	padding: .4rem 0;
	color: var(--ink);
	font-size: .98rem;
	text-decoration: none;
}
.main-nav__list a:hover,
.main-nav__list .current-menu-item > a,
.main-nav__list .current_page_item > a { color: var(--red-ink); }
.main-nav__list .sub-menu { display: none; }
.main-nav__extra { display: none; }

@media (min-width: 1100px) {
	.main-nav { margin-left: auto; }
	.main-nav__list li { position: relative; }
	.main-nav__list li:hover > .sub-menu,
	.main-nav__list li:focus-within > .sub-menu {
		display: block;
		position: absolute;
		top: 100%;
		left: -1rem;
		min-width: 220px;
		padding: .5rem 1rem;
		list-style: none;
		background: var(--paper);
		box-shadow: var(--shadow);
	}
	.site-header__tools { margin-left: 1rem; }
}

@media (max-width: 1099px) {
	.nav-toggle { display: grid; }
	.main-nav {
		position: fixed;
		inset: var(--header-h) 0 0 0;
		z-index: 49;
		display: flex;
		flex-direction: column;
		gap: 2rem;
		padding: 1.5rem var(--gutter) 3rem;
		overflow-y: auto;
		background: var(--linen) var(--texture);
		visibility: hidden;
		opacity: 0;
		transform: translateY(-8px);
		transition: opacity .2s, transform .2s, visibility 0s .2s;
	}
	.admin-bar .main-nav { top: calc(var(--header-h) + var(--wp-admin--admin-bar--height, 46px)); }
	.main-nav.is-open {
		visibility: visible;
		opacity: 1;
		transform: none;
		transition: opacity .2s, transform .2s;
	}
	.main-nav__list { flex-direction: column; gap: 0; }
	.main-nav__list > li { border-bottom: 1px solid var(--line); }
	.main-nav__list a { padding: .9rem 0; font-size: 1.4rem; }
	.main-nav__list .sub-menu { display: block; margin: -.4rem 0 .6rem; padding-left: 1rem; list-style: none; }
	.main-nav__list .sub-menu a { padding: .4rem 0; font-size: 1.1rem; }
	.main-nav__extra { display: flex; flex-direction: column; align-items: flex-start; gap: 1.2rem; }
	.main-nav__contact { margin: 0; }
	.main-nav__contact a { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); text-decoration: none; font-size: 1.15rem; }
}

@media (max-width: 599px) {
	.logo img { width: 124px; }
	.site-header__inner { gap: .5rem; }
	.site-header__tools { gap: .15rem; }
	.site-header__tools .lang-switch { font-size: .8rem; }
	.site-header__tools .lang-switch a { padding: .35rem .28rem; }
	.header-book { display: none; }
}

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

.section { position: relative; padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.section--tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.section--flush-top { padding-top: 0; }
.section--tint { background: var(--linen-2) var(--texture); }
/* No z-index here: a stacking context would stop the multiply-blended
   decorations from blending with the page background. */
.section > .container { position: relative; }

.section-head { text-align: center; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-head .divider { margin-bottom: .9rem; }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin: 0 0 .3em; }
.section-sub { margin: 0; font-size: 1.1rem; color: var(--ink-soft); }

/* ---------- Hero ---------- */

.hero {
	position: relative;
	display: flex;
	align-items: center;
	/* Fills the window, leaving a strip of the next section visible as a scroll hint. */
	min-height: max(620px, min(calc(100vh - 56px), 1100px));
	min-height: max(620px, min(calc(100svh - 56px), 1100px));
	/* Pulled up under the transparent header. */
	margin-top: calc(-1 * var(--header-h));
	padding: calc(var(--header-h) + 3rem) 0 4rem;
	/* No overflow: hidden here — the embroidery strip reaches up into the header. */
}
.hero__media {
	position: absolute;
	inset: 0 0 0 auto;
	width: 62%;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .55) 18%, #000 42%);
	mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .55) 18%, #000 42%);
}
/* Keep the outgoing frame opaque until the next photo has faded in above it.
   The scoped selector also wins over lazy-load plugins' generic image rules. */
.hero__media { overflow: hidden; }
.hero__media .hero__slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
	opacity: 0;
	transition: opacity 1.6s ease;
}
.hero__media .hero__slide.is-active { z-index: 1; opacity: 1; }
.hero__media .hero__slide.is-entering { z-index: 2; }
.hero__content { position: relative; z-index: 1; padding-left: calc(var(--band-w) + var(--gutter) + 1.5rem); }
@media (min-width: 1360px) {
	.hero__content { padding-left: var(--gutter); }
}
.hero__content > * { max-width: 520px; }
.hero__divider { justify-content: flex-start; width: max-content; margin-bottom: 1.4rem; }
.hero__divider .star { width: 36px; height: 36px; }
.hero__title {
	font-size: clamp(2.6rem, 5.2vw, 4.4rem);
	line-height: 1.08;
	letter-spacing: -.01em;
	margin: 0;
}
.hero__text { max-width: 400px; font-size: 1.05rem; color: var(--ink-soft); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 2rem 0 2.6rem; }
.hero__actions .btn { min-width: 170px; }
.hero__badges {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem 1.8rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: .95rem;
}
.hero__badges li { display: flex; align-items: center; gap: .6rem; }
/* Small red diamond, same as the one in the rule under the title: crisp at any size. */
.hero__badges li::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--red); transform: rotate(45deg); }

@media (max-width: 899px) {
	.hero { display: block; min-height: 0; padding: 0 0 3rem; }
	.hero__media {
		position: relative;
		width: auto;
		height: calc(340px + var(--header-h));
		margin-left: var(--band-w);
		-webkit-mask-image: linear-gradient(0deg, transparent 0, #000 45%);
		mask-image: linear-gradient(0deg, transparent 0, #000 45%);
	}
	.hero__content { margin-top: -5rem; padding-left: calc(var(--band-w) + var(--gutter)); }
	.hero__divider { margin-bottom: 1rem; }
	.hero__actions .btn { flex: 1 1 160px; min-width: 0; }
}

/* ---------- Essence ---------- */

.essence__list {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 600px) {
	.essence__list { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
}
@media (min-width: 960px) {
	.essence__list { grid-template-columns: repeat(4, 1fr); }
}
.essence__item {
	padding: 1.25rem 1.75rem;
	text-align: center;
}
@media (min-width: 960px) {
	.essence__item + .essence__item { border-left: 1px solid var(--line); }
}
.essence__icon { width: 72px; height: 72px; margin: 0 auto 1rem; object-fit: contain; mix-blend-mode: multiply; }
.essence__title { font-size: 1.2rem; margin-bottom: .45em; }
.essence__item p { margin: 0; font-size: .93rem; line-height: 1.55; color: var(--ink-soft); }

/* ---------- Featured dishes ---------- */

.dish-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
	margin: 0 0 2.5rem;
	padding: 0;
	list-style: none;
}
/* Dish card: one thin dusty-rose line, softly rounded corners, photo flush at the
   top, title in the heading face, a star flanked by short lines at the bottom. */
.dish-card {
	display: flex;
	flex-direction: column;
	background: #FFFFFF;
	border: 1px solid #D9A9A1;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 14px rgba(60, 40, 20, .05);
	transition: transform .25s, box-shadow .25s;
}
.dish-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(60, 40, 20, .1); }
.dish-card__photo { overflow: hidden; }
.dish-card__photo img { width: 100%; aspect-ratio: 4 / 3.6; object-fit: cover; transition: transform .5s; }
.dish-card:hover .dish-card__photo img { transform: scale(1.04); }
.dish-card__body {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1;
	padding: 1.2rem 1.2rem 1.1rem;
	text-align: center;
	border-top: 1px solid #D9A9A1;
}
.dish-card__name { font-family: var(--heading); font-size: 1.45rem; color: var(--ink); margin-bottom: .35em; }
.dish-card__desc { font-size: .9rem; line-height: 1.55; color: var(--ink-soft); margin-bottom: .6rem; }
.dish-card__price { margin: auto 0 .6rem; color: var(--red-ink); font-weight: 600; font-size: .98rem; }
.dish-card__divider .star { width: 30px; height: 30px; }
.dish-card__divider { gap: .6rem; }
.dish-card__divider::before,
.dish-card__divider::after { width: 56px; background: #D9A9A1; opacity: 1; }

/* ---------- Warm corner (about + gallery) ---------- */

.corner__grid {
	display: grid;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
}
@media (min-width: 900px) {
	.corner__grid { grid-template-columns: 4fr 7fr; }
}
.corner__text p { color: var(--ink-soft); max-width: 40ch; margin-bottom: 1.8rem; }
/* Collage: main photo in an arch (like a window or the stove opening) with a thin
   offset outline, plus two tilted "polaroid" cards with a stitched star on the margin. */
.collage {
	position: relative;
	aspect-ratio: 6 / 5;
	max-width: 640px;
	margin-inline: auto;
	width: 100%;
}
.collage figure { margin: 0; }
.collage__arch {
	position: absolute;
	top: 3%;
	left: 22%;
	width: 52%;
	height: 92%;
}
.collage__arch .collage__frame {
	position: relative;
	z-index: 1;
	height: 100%;
	overflow: hidden;
	border-radius: 999px 999px var(--radius) var(--radius);
	box-shadow: var(--shadow);
}
.collage__arch::before {
	content: "";
	position: absolute;
	inset: -12px -12px -12px -12px;
	border: 1px solid var(--kraft);
	border-radius: 999px 999px 6px 6px;
}
.collage__card {
	position: absolute;
	z-index: 2;
	width: 36%;
	padding: 8px 8px 30px;
	background: #fffdf9;
	border-radius: 2px;
	box-shadow: 0 2px 4px rgba(60, 40, 20, .08), 0 14px 30px rgba(60, 40, 20, .16);
	transition: transform .4s ease;
}
.collage__card .collage__frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 1px; }
.collage__card::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 6px;
	width: 18px;
	height: 18px;
	margin-left: -9px;
	background: url("../img/star.svg") no-repeat center / contain;
}
.collage__card--a { left: 0; bottom: 0; transform: rotate(-6deg); }
.collage__card--b { right: 0; top: 0; width: 33%; transform: rotate(5deg); }
.collage__card--b .collage__frame { aspect-ratio: 1; }
.collage__card:hover { transform: rotate(0) scale(1.03); z-index: 3; }
/* Photos in a frame are stacked; the active one fades in (main.js cycles them). */
.collage__slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 1.4s ease;
}
.collage__slide.is-active { opacity: 1; }
/* Fills the empty corner: a faint branch peeking out behind the arch and a
   round stamp like the one on the take-away bags. */
.collage__sprig {
	position: absolute;
	right: -8%;
	bottom: -10%;
	width: 42%;
	height: auto;
	opacity: .45;
	mix-blend-mode: multiply;
	pointer-events: none;
}
.collage__seal {
	position: absolute;
	z-index: 2;
	right: 3%;
	bottom: 5%;
	width: 24%;
	transform: rotate(-12deg);
	filter: drop-shadow(0 6px 14px rgba(60, 40, 20, .12));
}
.collage__seal svg { display: block; width: 100%; height: auto; font-family: var(--heading); }

/* ---------- Photo gallery (mosaic + lightbox) ---------- */

.gallery-section { border-top: 1px solid var(--line); }
.xgallery {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-auto-rows: 150px;
	grid-auto-flow: dense;
	gap: 10px;
}
@media (min-width: 700px) {
	.xgallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 190px; gap: 12px; }
}
@media (min-width: 1000px) {
	.xgallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
}
.xgallery__item {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 8px;
	background: var(--linen-2);
	box-shadow: 0 4px 14px rgba(60, 40, 20, .08);
}
.xgallery__item--wide { grid-column: span 2; }
.xgallery__item--tall { grid-row: span 2; }
.xgallery__item--big { grid-column: span 2; grid-row: span 2; }
.xgallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s ease, filter .6s ease;
}
/* Thin inner line, like the frames on the dish cards. */
.xgallery__item::after {
	content: "";
	position: absolute;
	inset: 8px;
	border: 1px solid rgba(255, 255, 255, .55);
	border-radius: 4px;
	opacity: 0;
	transition: opacity .4s;
	pointer-events: none;
}
.xgallery__item:hover img,
.xgallery__item:focus-visible img { transform: scale(1.05); filter: saturate(1.08); }
.xgallery__item:hover::after,
.xgallery__item:focus-visible::after { opacity: 1; }

.lightbox {
	width: 100vw;
	max-width: 100vw;
	height: 100dvh;
	max-height: 100dvh;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
}
.lightbox::backdrop { background: rgba(20, 14, 10, .92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__figure { margin: 0; padding: 64px 72px; }
.lightbox__img {
	max-width: calc(100vw - 144px);
	max-height: calc(100dvh - 128px);
	width: auto;
	height: auto;
	border-radius: 6px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
	transition: opacity .25s;
}
.lightbox__img.is-loading { opacity: 0; }
.lightbox__btn {
	position: fixed;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 50%;
	background: rgba(0, 0, 0, .25);
	color: #fff;
	cursor: pointer;
	transition: background-color .2s, border-color .2s;
}
.lightbox__btn:hover { background: var(--red-ink); border-color: var(--red-ink); }
.lightbox__btn .icon { width: 22px; height: 22px; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__prev .icon { transform: scaleX(-1); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: fixed; bottom: 18px; left: 0; right: 0; margin: 0; text-align: center; font-size: .9rem; letter-spacing: .1em; opacity: .8; }
@media (max-width: 699px) {
	.lightbox__figure { padding: 56px 8px; }
	.lightbox__img { max-width: calc(100vw - 16px); }
	.lightbox__prev, .lightbox__next { top: auto; bottom: 8px; transform: none; }
}

/* Menu sheets (banquet, seasonal and drinks menus as images). */
.menu-sheets { display: grid; gap: 1.5rem; max-width: 900px; margin: 0 auto; }
.menu-sheet {
	display: block;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 6px 20px rgba(60, 40, 20, .08);
	cursor: zoom-in;
}
.menu-sheet img { width: 100%; height: auto; transition: transform .5s; }
.menu-sheet:hover img { transform: scale(1.015); }
.entry-content .wp-block-table { margin-inline: auto; max-width: 560px; }
.entry-content .wp-block-table td:last-child { text-align: right; white-space: nowrap; color: var(--red-ink); font-weight: 600; }
.entry-content .wp-block-buttons { justify-content: center; }

/* ---------- Take away / delivery ---------- */

.delivery {
	display: grid;
	overflow: hidden;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}
@media (min-width: 860px) {
	.delivery { grid-template-columns: 1fr 1fr; }
}
.delivery__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 70%; }
/* Desktop: the text sets the block height; the photo fills its half and is cropped. */
@media (min-width: 860px) {
	.delivery__media { position: relative; min-height: 380px; }
	.delivery__media img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
}
.delivery__body {
	position: relative;
	padding: clamp(1.75rem, 4vw, 3rem);
	overflow: hidden;
}
.delivery__body > :not(.delivery__house) { position: relative; z-index: 1; }
.delivery__title { display: flex; align-items: center; gap: .7rem; font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin-bottom: .25em; }
.delivery__sub { font-weight: 600; margin-bottom: 1rem; }
.delivery__body > p { color: var(--ink-soft); max-width: 36ch; font-size: .98rem; }
.delivery__actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.delivery__features {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 2.5rem;
	margin: 1.4rem 0 1.8rem;
	padding: 0;
	list-style: none;
}
.delivery__features li { display: flex; gap: .75rem; align-items: flex-start; max-width: 190px; }
.delivery__features .icon { width: 30px; height: 30px; color: var(--walnut); }
.delivery__features strong { display: block; font-weight: 600; font-size: .98rem; }
.delivery__features span { display: block; font-size: .85rem; line-height: 1.4; color: var(--ink-soft); }
.delivery__house {
	position: absolute;
	right: -40px;
	bottom: -30px;
	width: 300px;
	opacity: .2;
	mix-blend-mode: multiply;
	pointer-events: none;
}

/* ---------- Traditions ---------- */

.cards-3 {
	display: grid;
	gap: clamp(1rem, 2.5vw, 1.75rem);
}
@media (min-width: 800px) {
	.cards-3 { grid-template-columns: repeat(3, 1fr); }
}
.card {
	display: flex;
	flex-direction: column;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
}
.card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card__media:empty { display: none; }
.card__body { display: flex; flex-direction: column; align-items: center; flex: 1; padding: 1.3rem 1.4rem 1.5rem; text-align: center; }
.card__title { font-size: 1.3rem; margin-bottom: .4em; }
.card__body p { font-size: .93rem; line-height: 1.55; color: var(--ink-soft); }
.card__body .link-arrow { margin-top: auto; }

/* ---------- Closing call to action ---------- */

.cta {
	position: relative;
	padding-block: clamp(2.5rem, 5vw, 3.5rem);
	background: linear-gradient(90deg, var(--red-deep), #B80F0F 55%, var(--red-deep));
	color: #fff;
}
.cta::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--texture);
	opacity: .6;
	pointer-events: none;
}
.cta__inner {
	position: relative;
	display: grid;
	gap: 1.5rem 3rem;
	align-items: center;
}
@media (min-width: 860px) {
	.cta__inner { grid-template-columns: 1fr auto auto; }
}
.cta__title { font-size: clamp(1.8rem, 3.4vw, 2.5rem); color: #fff; margin-bottom: .2em; }
.cta__text p { margin: 0; color: rgba(255, 255, 255, .88); }
.cta__star { width: 44px; height: 44px; image-rendering: pixelated; }
@media (max-width: 859px) {
	.cta__star { display: none; }
	.cta__inner { text-align: center; }
}
.cta__actions { display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.cta__actions .btn { min-width: 210px; }
.cta__link { color: #fff; font-size: .95rem; }
.cta__link:hover { color: #fff; text-decoration-thickness: 2px; }

/* ---------- Reservation dialog ---------- */

.reserva {
	width: min(560px, calc(100vw - 2rem));
	max-height: calc(100dvh - 2rem);
	padding: 0;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--linen) var(--texture);
	color: var(--ink);
	box-shadow: 0 30px 80px rgba(30, 15, 5, .35);
}
.reserva::backdrop { background: rgba(28, 20, 14, .55); backdrop-filter: blur(2px); }
.reserva__inner { position: relative; padding: clamp(1.5rem, 5vw, 2.5rem); text-align: center; }
.reserva__close {
	position: absolute;
	top: .5rem;
	right: .5rem;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 0;
	background: none;
	color: var(--ink);
	cursor: pointer;
}
.reserva__close .icon { width: 22px; height: 22px; }
.reserva__title { font-size: clamp(1.7rem, 4vw, 2.2rem); margin: .8rem 0 .4rem; }
.reserva__text { font-size: .95rem; color: var(--ink-soft); }
.reserva__quick { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 1.5rem; }
.reserva__form { text-align: left; }
.reserva__hours {
	display: flex;
	justify-content: center;
	gap: .5rem;
	margin: 0 0 1rem;
	font-size: .88rem;
	color: var(--ink-soft);
	text-align: left;
}
.reserva__hours .icon { margin-top: .2em; }
/* TheFork widget: wider dialog, the calendar needs room. */
.reserva--thefork { width: min(720px, calc(100vw - 2rem)); }
/* The widget is a white cross-origin page we cannot restyle; multiply blending
   turns its white into the dialog linen while keeping text and buttons intact. */
.reserva__widget { display: block; width: 100%; height: min(640px, calc(100dvh - 15rem)); min-height: 460px; border: 0; mix-blend-mode: multiply; }
.reserva--thefork .reserva__text { margin: 1.2rem 0 .8rem; font-size: .9rem; color: var(--ink-soft); }
.reserva--thefork .reserva__quick { margin-bottom: 0; }

/* Contact Form 7 — wrap short fields in <div class="xata-form-grid"> to get two columns */
.xata-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0 1rem; }
.wpcf7 form > p,
.wpcf7 form .wpcf7-form > p { margin: 0 0 .9rem; }
.wpcf7 label { display: block; font-size: .92rem; color: var(--ink-soft); }
.wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.wpcf7 select,
.wpcf7 textarea {
	width: 100%;
	min-height: 46px;
	margin-top: .25rem;
	padding: .6rem .8rem;
	border: 1px solid #cdb999;
	border-radius: 2px;
	background: #fffdf9;
	color: var(--ink);
	font: 1rem/1.4 var(--serif);
}
.wpcf7 textarea { min-height: 90px; resize: vertical; }
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: var(--red); }
.wpcf7 input[type="submit"] {
	width: 100%;
	min-height: 50px;
	border: 0;
	border-radius: 2px;
	background: var(--red-ink);
	color: #fff;
	font: 500 1.05rem var(--serif);
	cursor: pointer;
}
.wpcf7 input[type="submit"]:hover { background: var(--red-deep); }
.wpcf7-spinner { display: block; margin: .6rem auto 0; }
.wpcf7-not-valid-tip { font-size: .85rem; color: var(--red-ink); }
.wpcf7 form .wpcf7-response-output { margin: 1rem 0 0; padding: .8rem 1rem; border-radius: 2px; font-size: .95rem; }

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

.site-footer {
	position: relative;
	background: var(--linen) var(--texture);
	border-top: 1px solid var(--line);
	font-size: .93rem;
	overflow: hidden;
}
.site-footer__inner {
	position: relative;
	display: grid;
	gap: 2rem;
	padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
@media (min-width: 640px) {
	.site-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
	.site-footer__inner { grid-template-columns: 1.3fr 1fr 1.1fr 1fr 1.4fr; }
}
.site-footer p { margin: 0; color: var(--ink-soft); }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--red-ink); text-decoration: underline; }
.site-footer__logo { width: 150px; margin-bottom: .9rem; }
.site-footer__brand p { max-width: 24ch; }
.site-footer__title { font-size: 1.05rem; font-weight: 600; margin-bottom: .8rem; }
.site-footer__col p { line-height: 1.85; }
.site-footer a.site-footer__maps { color: var(--red-ink); }
.site-footer__house {
	width: 100%;
	max-width: 260px;
	align-self: end;
	justify-self: end;
	opacity: .55;
	mix-blend-mode: multiply;
}
@media (max-width: 999px) {
	.site-footer__house { display: none; }
}

.socials { display: flex; gap: .5rem; margin: 1.1rem 0 0; padding: 0; list-style: none; }
.socials a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--red-ink);
	border-radius: 50%;
	color: var(--red-ink);
}
.socials a:hover { background: var(--red-ink); color: #fff; text-decoration: none; }
.socials .icon { width: 18px; height: 18px; }

.site-footer__bottom {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 1rem;
	padding-block: 1.1rem 1.4rem;
	border-top: 1px solid var(--line);
	font-size: .82rem;
}
.site-footer__star { width: 22px; height: 22px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; margin: 0; padding: 0; list-style: none; }
.footer-nav li + li::before { content: "|"; margin: 0 .8rem; color: var(--line); }
@media (max-width: 699px) {
	.site-footer__bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; }
	.site-footer__star { order: -1; }
	.footer-nav { justify-content: center; }
}

/* ---------- Page header (inner pages) ---------- */

.page-header {
	position: relative;
	padding-block: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 2.5rem);
	text-align: center;
	border-bottom: 1px solid var(--line);
}
.page-header .divider { margin-bottom: 1rem; }
.page-header__title { font-size: clamp(2.2rem, 5vw, 3.2rem); margin: 0; }
.page-header__subtitle { margin: .6rem auto 0; max-width: 60ch; color: var(--ink-soft); font-size: 1.05rem; }

.single-cover { margin-block: 2rem 0; }
/* Text-column width and capped height, whole picture shown (some covers are portrait posters). */
.single-cover img { display: block; width: auto !important; max-width: 100%; height: auto !important; aspect-ratio: auto !important; max-height: min(400px, 55vh); margin-inline: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.single-cover + .section { padding-top: clamp(1.75rem, 4vw, 2.5rem); }
/* Media & text blocks in posts: grid cells may not grow past the column with large images. */
.wp-block-media-text > * { min-width: 0; }
.wp-block-media-text__media img { width: 100% !important; height: auto; }
/* Smush's lazy placeholder forces the full pixel width; keep content images inside the column. */
.entry-content img { max-width: 100% !important; }

/* ---------- Posts ---------- */

.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: clamp(1rem, 2.5vw, 1.75rem);
	margin-bottom: 2.5rem;
}
.post-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
}
.post-card__link:hover { color: inherit; }
/* Same frame for every photo (posters are portrait): Smush's lazy placeholder ratio must not win. */
.post-card__photo { aspect-ratio: 3 / 2; overflow: hidden; background: var(--linen-2); }
.post-card__photo img { width: 100%; height: 100% !important; aspect-ratio: auto !important; object-fit: cover; object-position: center 30%; transition: transform .6s ease; }
.post-card__link:hover .post-card__photo img { transform: scale(1.04); }
.post-card__photo:empty { background: var(--linen-2) url("../img/star.svg") no-repeat center / 40px; }
.post-card__body { padding: 1.1rem 1.25rem 1.4rem; }
.post-card__date { display: block; font-size: .85rem; color: var(--walnut); letter-spacing: .03em; }
.post-card .post-card__title { font-size: 1.25rem; margin: .3rem 0 .5rem; }
.post-card__link:hover .post-card__title { color: var(--red-ink); }
.post-card__excerpt { font-size: .93rem; color: var(--ink-soft); margin: 0; }

/* News page: three columns, newest post as a wide card with the photo on the left. */
.container--text:has(> .post-grid--news) { max-width: calc(var(--container) + 2 * var(--gutter)); }
.post-grid--news { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
@media (min-width: 900px) {
	.post-grid--news { grid-template-columns: repeat(3, 1fr); }
	.post-card--featured { grid-column: 1 / -1; }
	.post-card--featured .post-card__link { display: grid; grid-template-columns: 3fr 2fr; }
	.post-card--featured .post-card__photo { aspect-ratio: 16 / 10; }
	.post-card--featured .post-card__body { align-self: center; padding: clamp(1.5rem, 3vw, 2.75rem); }
	.post-card.post-card--featured .post-card__title { font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.15; margin: .5rem 0 .9rem; }
	.post-card--featured .post-card__excerpt { font-size: 1.02rem; }
}

.pagination .nav-links { display: flex; justify-content: center; gap: .4rem; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); }
.pagination .page-numbers.current { background: var(--red-ink); border-color: var(--red-ink); color: #fff; }

.post-nav { display: flex; justify-content: space-between; gap: 1rem; padding-block: 2rem 4rem; border-top: 1px solid var(--line); }
.post-nav__next { margin-left: auto; text-align: right; }

/* ---------- Comments ---------- */

.comment-respond {
	margin-bottom: clamp(3rem, 6vw, 4.5rem);
	padding: clamp(1.5rem, 4vw, 2.5rem);
	border: 1px solid var(--line);
	border-top: 3px solid var(--red-ink);
	border-radius: var(--radius);
	background: var(--paper);
	box-shadow: var(--shadow);
}
.comment-respond .comment-reply-title { margin: 0 0 .35rem; font: 500 clamp(1.6rem, 3vw, 2rem)/1.2 var(--heading); color: var(--title); }
.comment-reply-title small { margin-left: .75rem; font: .9rem var(--serif); }
.comment-notes,
.logged-in-as { margin: 0 0 1.5rem; font-size: .92rem; color: var(--ink-soft); }
.comment-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem 1.25rem; }
.comment-form > p { grid-column: 1 / -1; margin: 0; }
.comment-form > .comment-form-author,
.comment-form > .comment-form-email,
.comment-form > .comment-form-url { grid-column: auto; }
.comment-form label { display: block; margin-bottom: .35rem; font-size: .9rem; color: var(--walnut); letter-spacing: .02em; }
.comment-form .required { color: var(--red-ink); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: .65rem .9rem;
	border: 1px solid #cdb999;
	border-radius: 2px;
	background: #fffdf9;
	color: var(--ink);
	font: 1rem/1.5 var(--serif);
	transition: border-color .2s, box-shadow .2s;
}
.comment-form textarea { height: 9.5rem; resize: vertical; }
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--red-ink); outline: none; box-shadow: 0 0 0 3px rgba(184, 0, 0, .12); }
.comment-form .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: .6rem; font-size: .9rem; color: var(--ink-soft); }
.comment-form .comment-form-cookies-consent input { flex: none; width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--red-ink); }
.comment-form .comment-form-cookies-consent label { margin: 0; font-size: inherit; color: inherit; letter-spacing: 0; }
.comment-form .form-submit .submit {
	min-height: 48px;
	padding: .65rem 1.8rem;
	border: 0;
	border-radius: 2px;
	background: var(--red-ink);
	color: #fff;
	font: 500 1rem var(--serif);
	cursor: pointer;
	transition: background-color .2s;
}
.comment-form .form-submit .submit:hover { background: var(--red-deep); }
.comment-form .xata-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 700px) {
	.comment-form { grid-template-columns: 1fr; }
	.comment-form .form-submit .submit { width: 100%; }
}

.comments-title { font: 500 clamp(1.5rem, 3vw, 1.9rem)/1.2 var(--heading); color: var(--title); }
.comment-list { margin: 0 0 2.5rem; padding: 0; list-style: none; }
.comment-list .children { margin: 0; padding-left: clamp(1rem, 4vw, 2.5rem); list-style: none; }
.comment-body { margin-bottom: 1rem; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.comment-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; margin-bottom: .5rem; font-size: .88rem; color: var(--walnut); }
.comment-author .avatar { float: left; margin-right: .6rem; border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata a { color: inherit; text-decoration: none; }
.comment-content p { margin: 0 0 .5rem; }
.comment-body .reply a { font-size: .9rem; }

/* ---------- Carta ---------- */

.carta-intro { margin-bottom: 2rem; text-align: center; }

.carta-nav {
	position: sticky;
	top: var(--header-h);
	z-index: 20;
	margin: 0 calc(-1 * var(--gutter)) 2rem;
	padding: .7rem var(--gutter);
	background: rgba(254, 253, 249, .96);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .carta-nav { top: calc(var(--header-h) + var(--wp-admin--admin-bar--height, 32px)); }
.carta-nav ul {
	display: flex;
	gap: .5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
	scroll-snap-type: x proximity;
}
.carta-nav ul::-webkit-scrollbar { display: none; }
@media (min-width: 1100px) {
	.carta-nav ul { flex-wrap: wrap; justify-content: center; overflow: visible; }
}
.carta-nav a {
	display: block;
	padding: .45rem 1rem;
	border: 1px solid var(--line);
	border-radius: 2px;
	background: var(--paper);
	color: var(--ink);
	font-size: .95rem;
	white-space: nowrap;
	text-decoration: none;
	scroll-snap-align: start;
	transition: background-color .2s, color .2s, border-color .2s;
}
.carta-nav a:hover { border-color: var(--red-ink); color: var(--red-ink); }
.carta-nav a.is-active { background: var(--red-ink); border-color: var(--red-ink); color: #fff; }

.carta-cat { margin-bottom: clamp(2.5rem, 6vw, 4rem); scroll-margin-top: calc(var(--header-h) + 76px); }
.carta-cat__title {
	display: flex;
	align-items: center;
	gap: .7rem;
	padding-bottom: .7rem;
	margin-bottom: 1.5rem;
	border-bottom: 1px solid var(--line);
	font-size: clamp(1.8rem, 3.4vw, 2.3rem);
}
.carta-cat__title .star { width: 36px; height: 36px; }
/* Carta page: a faint branch fixed in the bottom-right corner while the menu scrolls. */
.page-sprig { display: none; }
@media (min-width: 1100px) {
	.page-sprig {
		display: block;
		position: fixed;
		right: -20px;
		bottom: -30px;
		z-index: -1;
		width: 340px;
		height: auto;
		opacity: .3;
		pointer-events: none;
	}
}
.carta-cat__desc { margin-top: -.75rem; color: var(--ink-soft); }

.dishes {
	display: grid;
	gap: 0 3.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 900px) {
	.dishes { grid-template-columns: 1fr 1fr; }
}
.dish {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	padding-block: 1.1rem;
	border-bottom: 1px dashed var(--line);
}
.dish--photo { grid-template-columns: 96px 1fr; }
@media (min-width: 600px) {
	.dish--photo { grid-template-columns: 112px 1fr; }
}
.dish__photo img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: var(--radius);
}
.dish__name {
	display: flex;
	align-items: baseline;
	gap: .5rem;
	margin: 0 0 .25rem;
	font-family: var(--display);
	font-size: 1.28rem;
	line-height: 1.2;
	color: var(--red-ink);
}
.dish__dots { flex: 1; min-width: 1rem; border-bottom: 2px dotted var(--line); transform: translateY(-.25em); }
.dish__price { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; color: var(--ink); white-space: nowrap; }
.dish__desc { margin: 0; font-size: .95rem; line-height: 1.55; color: var(--ink-soft); }
.dish__add {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	margin-top: .6rem;
	padding: .3rem .9rem;
	border: 1px solid var(--red-ink);
	border-radius: 2px;
	color: var(--red-ink);
	font-size: .88rem;
	text-decoration: none;
	transition: background-color .2s, color .2s;
}
.dish__add:hover { background: var(--red-ink); color: #fff; }
.dish__add.loading { opacity: .5; pointer-events: none; }
.dish__body .added_to_cart { display: inline-block; margin: .6rem 0 0 .75rem; font-size: .9rem; }
.carta-empty { text-align: center; color: var(--ink-soft); }

/* ---------- Editor content ---------- */

.entry-content > * + * { margin-top: 1.25rem; }
.entry-content > :first-child { margin-top: 0; }
.entry-content h2 { font-size: clamp(1.8rem, 3.5vw, 2.3rem); margin-top: 2.5rem; }
.entry-content h3 { font-size: clamp(1.3rem, 2.5vw, 1.55rem); margin-top: 2rem; color: var(--red-ink); }
.entry-content ul, .entry-content ol { padding-left: 1.3rem; }
.entry-content li + li { margin-top: .3rem; }
.entry-content img { border-radius: var(--radius); }
.entry-content hr,
.wp-block-separator {
	border: 0;
	height: 17px;
	margin-block: 2.5rem;
	background:
		url("../img/star.svg") no-repeat center / 15px,
		linear-gradient(var(--line), var(--line)) no-repeat center / 100% 1px;
	opacity: 1;
}
.entry-content table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.entry-content th, .entry-content td { padding: .6rem .5rem; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content blockquote { margin-inline: 0; padding-left: 1.25rem; border-left: 3px solid var(--red); font-style: italic; font-size: 1.2rem; }

.entry-content > .alignwide,
.entry-content > .alignfull {
	position: relative;
	left: 50%;
	transform: translateX(-50%);
}
.entry-content > .alignwide { width: min(var(--container), 100vw - 2 * var(--gutter)); }
.entry-content > .alignfull { width: 100vw; max-width: 100vw; }
.wp-block-cover.alignfull, .wp-block-group.alignfull { border-radius: 0; }

/* ---------- WooCommerce (classic templates) ---------- */

.shop { padding-block: clamp(2rem, 5vw, 3.5rem); }
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
	min-height: 48px;
	padding: .75rem 1.4rem;
	border-radius: 2px;
	background: var(--red-ink);
	color: #fff;
	font: 500 1rem var(--serif);
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover { background: var(--red-deep); color: #fff; }
.woocommerce-message,
.woocommerce-info { border-top-color: var(--red); background: var(--paper); }
.woocommerce-message::before,
.woocommerce-info::before { color: var(--red); }
.woocommerce div.product .product_title { font-size: clamp(2rem, 4vw, 2.6rem); }
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce ul.products li.product .price { color: var(--red-ink); font-weight: 600; }
.woocommerce table.shop_table { border-radius: var(--radius); background: var(--paper); }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select { min-height: 48px; padding: .6rem .8rem; border: 1px solid #cdb999; border-radius: 2px; background: #fffdf9; }
/* Cart: pick-up notice, coupon */
.pickup-note {
	display: flex;
	align-items: center;
	gap: 1rem 1.25rem;
	margin-bottom: 2rem;
	padding: 1.1rem 1.4rem;
	border: 1px solid var(--line);
	border-left: 3px solid var(--red-ink);
	border-radius: var(--radius);
	background: var(--paper);
	box-shadow: var(--shadow);
}
.pickup-note__icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--linen-2); color: var(--red-ink); }
.pickup-note__icon .icon { width: 24px; height: 24px; }
.pickup-note__body { flex: 1; }
.pickup-note__body p { margin: 0; color: var(--ink-soft); }
.pickup-note .pickup-note__title { margin-bottom: .2rem; font: 500 1.35rem/1.2 var(--heading); color: var(--title); }
.pickup-note__btn { flex: none; display: inline-flex; align-items: center; gap: .5rem; }
.pickup-note__btn .icon { width: 20px; height: 20px; }
@media (max-width: 700px) {
	.pickup-note { flex-wrap: wrap; }
	.pickup-note__body { flex-basis: calc(100% - 68px); }
	.pickup-note__btn { width: 100%; justify-content: center; }
}
.woocommerce-cart table.cart td.actions { padding: 1rem; }
.woocommerce-cart table.cart td.actions .coupon { display: flex; gap: .5rem; align-items: stretch; }
.woocommerce-cart table.cart td.actions .coupon .input-text {
	width: 220px;
	min-height: 48px;
	margin: 0;
	padding: .6rem .9rem;
	border: 1px solid #cdb999;
	border-radius: 2px;
	background: #fffdf9;
	font: 1rem var(--serif);
}
.woocommerce-cart table.cart td.actions .coupon .input-text:focus { border-color: var(--red-ink); outline: none; box-shadow: 0 0 0 3px rgba(184, 0, 0, .12); }
.woocommerce-cart table.cart td.actions .coupon .button,
.woocommerce-cart table.cart td.actions > .button {
	border: 1px solid var(--red-ink);
	background: transparent;
	color: var(--red-ink);
}
.woocommerce-cart table.cart td.actions .coupon .button:hover,
.woocommerce-cart table.cart td.actions > .button:not(:disabled):hover { background: var(--red-ink); color: #fff; }
.woocommerce-cart table.cart td.actions > .button:disabled { opacity: .45; background: transparent; color: var(--red-ink); }
@media (max-width: 768px) {
	.woocommerce-cart table.cart td.actions .coupon { float: none; width: 100%; }
	.woocommerce-cart table.cart td.actions .coupon .input-text { flex: 1; width: auto; }
	.woocommerce-cart table.cart td.actions > .button { width: 100%; margin-top: .5rem; }
}
.woocommerce-shipping-destination { display: none; }
/* Block-based cart & checkout */
.wc-block-components-button:not(.is-link) { background: var(--red-ink); color: #fff; border-radius: 2px; }
.wc-block-components-button:not(.is-link):hover { background: var(--red-deep); color: #fff; }

/* ---------- Page-long embroidery (desktop) ----------
   On wide screens the strip runs down the left edge of every page, through the
   header and footer, and stays put while scrolling. The page is shifted right by
   its width so nothing sits underneath. On phones only the home hero has it. */
.embroidery--page { display: none; }
@media (min-width: 1100px) {
	body { padding-left: var(--band-w); }
	.embroidery--page {
		display: block;
		position: fixed;
		z-index: 70;
	}
	.admin-bar .embroidery--page { top: var(--wp-admin--admin-bar--height, 32px); }
	.hero > .embroidery { display: none; }
	.home .site-header__inner,
	.hero__content { padding-left: var(--gutter); }
	/* Full-width blocks in page content end at the strip, not under it. */
	.entry-content > .alignfull { width: calc(100vw - var(--band-w)); max-width: none; }
}

/* Lazy-load plugins (Smush, LiteSpeed) set opacity: 1 on loaded images; keep the
   decorative ones faint. */
.floral.floral { opacity: .22 !important; }
.collage__sprig { opacity: .45 !important; }
.page-sprig { opacity: .3 !important; }
.delivery__house { opacity: .2 !important; }
.site-footer__house { opacity: .55 !important; }

/* ---------- Link-in-bio page (Enlaces template) ---------- */

.links {
	width: 100%;
	max-width: 460px;
	margin: 0 auto;
	padding: 3rem 1.25rem 2.5rem;
	text-align: center;
}
.links-page { min-height: 100dvh; }
@media (max-width: 1099px) {
	.links-page .embroidery--page { display: block; position: fixed; inset: 0 auto 0 0; width: 18px; z-index: 1; }
}
.links__logo { width: 190px; margin: 0 auto 1.4rem; }
.links .divider { margin-bottom: 1rem; }
.links__tagline { color: var(--ink-soft); font-size: 1rem; margin-bottom: 1.8rem; }
.links__list { display: grid; gap: .75rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.links__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .7rem;
	min-height: 56px;
	padding: .8rem 1.2rem;
	border: 1px solid #D9A9A1;
	border-radius: 10px;
	background: #fff;
	color: var(--ink);
	font-size: 1.05rem;
	text-decoration: none;
	box-shadow: 0 3px 10px rgba(60, 40, 20, .05);
	transition: transform .2s, box-shadow .2s, border-color .2s;
}
.links__btn .icon { width: 20px; height: 20px; color: var(--red-ink); }
.links__btn:hover { transform: translateY(-2px); border-color: var(--red-ink); box-shadow: 0 8px 18px rgba(60, 40, 20, .1); color: var(--ink); }
.links__btn--primary { background: var(--red-ink); border-color: var(--red-ink); color: #fff; font-weight: 600; }
.links__btn--primary .icon { color: #fff; }
.links__btn--primary:hover { background: var(--red-deep); color: #fff; }
.links__info { font-size: .92rem; color: var(--ink-soft); text-align: left; display: grid; gap: .6rem; margin-bottom: 1.5rem; }
.links__info p { display: flex; gap: .6rem; margin: 0; }
.links__info .icon { margin-top: .2em; color: var(--walnut); }
.links__info a { color: var(--ink-soft); }
.links .lang-switch { justify-content: center; }

/* Phones and tablets: no embroidery strip (it only runs down the side on desktop). */
@media (max-width: 1099px) {
	:root { --band-w: 0px; }
	.hero > .embroidery,
	.links-page .embroidery--page { display: none; }
}

/* ---------- Motion ---------- */

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