/*
Theme Name: Cavanis Journal
Theme URI: https://www.cavanispizza.co.uk
Author: Cavanis Italian Restaurant
Author URI: https://www.cavanispizza.co.uk
Description: An Italian food and wine journal theme for Cavanis Italian Restaurant, Farnham Common, Slough. Editorial layouts, accessible navigation, a built-in cookie consent interface and consent-gated video embeds. Works with the Cavanis Journal Content companion plugin for wines, wineries, product descriptions and videos.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cavanis-journal
Tags: blog, food-and-drink, one-column, two-columns, custom-menu, featured-images, threaded-comments, translation-ready, editor-style, accessibility-ready, block-styles, wide-blocks
*/
/* ==========================================================================
   1. FONTS  (self-hosted, so no request leaves this website before consent)
   ========================================================================== */
@font-face { font-family: "Bodoni Moda"; src: url("assets/fonts/bodoni-moda.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("assets/fonts/bodoni-moda-italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("assets/fonts/newsreader.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("assets/fonts/newsreader-italic.woff2") format("woff2"); font-weight: 400 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("assets/fonts/jost.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("assets/fonts/caveat.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

/* ==========================================================================
   2. DESIGN TOKENS
   --------------------------------------------------------------------------
   Colour   Cellar and lamplight. Limewash plaster for reading, an aubergine-black
            cellar for cinematic moments, garnet for emphasis, lamp amber for light.
            Contrast checked: ink on plaster 13.3:1, muted on plaster 6.3:1,
            garnet on plaster 7.6:1, cream on cellar 15.3:1, amber on cellar 9.3:1.
   Type     Bodoni Moda (display, after Giambattista Bodoni of Parma), Newsreader
            (reading), Jost (labels and interface), Caveat (kitchen notes only).
   Scale    Fluid, ratio about 1.25. Body 18 to 20px, line-height 1.7.
   Space    4px based, fluid at the top of the scale.
   ========================================================================== */
:root {
	/* Colour */
	--cellar: #1d1418;
	--cellar-2: #2a1d23;
	--cellar-3: #3d2b34;
	--plaster: #e4e3d6;
	--plaster-2: #d6d4c3;
	--limewash: #f0efe6;
	--ink: #241820;
	--muted: #5a4c54;
	--garnet: #7d2233;
	--garnet-deep: #5e1826;
	--amber: #e5b25d;
	--verdigris: #3d6b63;
	--cream: #f1ece0;
	--cream-muted: #c9beb3;
	--line: rgba(36, 24, 32, 0.22);
	--line-light: rgba(241, 236, 224, 0.22);
	--focus: var(--garnet);
	--mark: #f6e2a6;

	/* Type families */
	--font-display: "Bodoni Moda", "Bodoni 72", Didot, "Bodoni MT", "Playfair Display", Georgia, "Times New Roman", serif;
	--font-body: "Newsreader", Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
	--font-ui: "Jost", "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
	--font-hand: "Caveat", "Segoe Print", "Bradley Hand", "Chalkboard SE", "Comic Sans MS", cursive;

	/* Type scale */
	--step--2: clamp(0.8rem, 0.78rem + 0.1vw, 0.86rem);
	--step--1: clamp(0.92rem, 0.9rem + 0.1vw, 0.98rem);
	--step-0: clamp(1.125rem, 1.08rem + 0.2vw, 1.25rem);
	--step-1: clamp(1.3rem, 1.2rem + 0.5vw, 1.6rem);
	--step-2: clamp(1.6rem, 1.4rem + 1vw, 2.25rem);
	--step-3: clamp(2rem, 1.6rem + 2vw, 3.1rem);
	--step-4: clamp(2.5rem, 1.9rem + 3vw, 4.4rem);
	--step-5: clamp(2.9rem, 1.9rem + 5vw, 6.2rem);
	--step-6: clamp(3rem, 1.5rem + 6vw, 6.4rem);

	/* Space */
	--space-3xs: 0.25rem;
	--space-2xs: 0.5rem;
	--space-xs: 0.75rem;
	--space-s: 1rem;
	--space-m: 1.5rem;
	--space-l: 2rem;
	--space-xl: 3rem;
	--space-2xl: clamp(3rem, 6vw, 5rem);
	--space-3xl: clamp(4rem, 9vw, 8rem);

	/* Layout */
	--gutter: clamp(1.1rem, 3.5vw, 2.25rem);
	--container: 82rem;
	--measure: 41rem;      /* about 68 characters of body text */
	--header-h: 4.5rem;
	--radius: 2px;
	--arch: 999px 999px 0 0;
	--ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

/* ==========================================================================
   3. BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
	margin: 0;
	background: var(--plaster);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--step-0);
	line-height: 1.7;
	font-optical-sizing: auto;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
figure { margin: 0; }
::selection { background: var(--garnet); color: var(--cream); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-xl) 0; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: -0.012em;
	margin: 0 0 0.5em;
	text-wrap: balance;
	font-variant-numeric: lining-nums;
}
p { margin: 0 0 1.2em; text-wrap: pretty; }

a { color: var(--garnet); text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; }
a:hover { color: var(--garnet-deep); text-decoration-thickness: 0.14em; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 1px; }
:focus:not(:focus-visible) { outline: 0; }
main:focus { outline: 0; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	word-wrap: normal !important;
}
.screen-reader-text:focus {
	position: fixed !important;
	top: 0.75rem; left: 0.75rem;
	z-index: 200;
	width: auto; height: auto;
	clip: auto; clip-path: none;
	margin: 0;
	padding: 0.9rem 1.4rem;
	background: var(--cream); color: var(--cellar);
	font: 500 1rem/1 var(--font-ui);
	text-decoration: none;
	border: 2px solid var(--garnet);
}

/* Dark surfaces switch the focus colour so rings stay visible. */
.site-header, .hero, .cellar, .visit, .site-footer, .consent, .lightbox, .is-style-cav-cellar, .cav-embed-gate { --focus: var(--amber); }
.visit { --focus: var(--cream); }

/* Small utilities */
.hand { font-family: var(--font-hand); font-weight: 500; font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem); line-height: 1.1; margin: 0; }
.editor-note {
	margin: var(--space-m) 0 0;
	padding: 0.65rem 0.9rem;
	background: #fff6d6; color: #3b2a00;
	border-left: 4px solid var(--amber);
	font: 400 0.9rem/1.45 var(--font-ui);
	max-width: 40rem;
}
.cav-confirm { background: var(--mark); color: #3b2a00; padding: 0 0.25em; border-radius: 2px; font-family: var(--font-ui); font-size: 0.88em; }
noscript img { display: none; }
/* ==========================================================================
   4. LAYOUT
   ========================================================================== */
.site { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1 0 auto; }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--read { width: min(100% - 2 * var(--gutter), var(--measure)); }

.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-xs) var(--space-l); margin-bottom: var(--space-l); }
.section-head__title { font-size: var(--step-3); margin: 0; }
.section-head__links { display: flex; gap: var(--space-m); }
.section-head--light { color: var(--cream); }

/* ==========================================================================
   5. HEADER AND NAVIGATION
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--cellar); color: var(--cream); border-bottom: 1px solid var(--line-light); }
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
.site-header__inner { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: var(--space-m); }

.brand { display: flex; align-items: center; }
.brand__link { display: inline-flex; align-items: baseline; gap: 0.6rem; color: var(--cream); text-decoration: none; }
.brand__link:hover { color: var(--cream); }
.brand__name { font: italic 400 2rem/1 var(--font-display); letter-spacing: -0.015em; }
.brand__sub { font: 500 0.85rem/1 var(--font-ui); letter-spacing: 0.04em; color: var(--amber); padding-left: 0.6rem; border-left: 1px solid var(--line-light); }
.custom-logo { max-height: 3rem; width: auto; }
.brand__link--image img { display: block; height: 2.75rem; width: auto; max-width: 11rem; }

.nav-toggle { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.4rem 0.9rem; background: transparent; color: var(--cream); border: 1.5px solid var(--line-light); border-radius: var(--radius); font: 500 1rem/1 var(--font-ui); cursor: pointer; }
.nav-toggle:hover { border-color: var(--amber); }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
html:not(.js) .nav-toggle { display: none; }

.site-nav { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav .menu a, .search-toggle { color: var(--cream); text-decoration: none; font: 500 1rem/1.2 var(--font-ui); }

/* Mobile and tablet: a full-height sheet that opens under the header. */
.js .site-nav {
	display: none;
	position: fixed;
	inset: var(--header-h) 0 0 0;
	overflow-y: auto;
	background: var(--cellar);
	padding: var(--space-l) var(--gutter) var(--space-xl);
	z-index: 55;
}
body.admin-bar.js .site-nav, body.admin-bar .js .site-nav { top: calc(var(--header-h) + 32px); }
.js .site-nav.is-open { display: block; }
.site-nav .menu > li > a { display: block; padding: 0.55rem 0; font: 400 clamp(1.9rem, 7vw, 2.6rem)/1.15 var(--font-display); }
.site-nav .menu > li + li { border-top: 1px solid var(--line-light); }
.site-nav .current-menu-item > a, .site-nav [aria-current="page"] { color: var(--amber); }
.site-nav .sub-menu { padding: 0 0 0.6rem 1rem; }
.site-nav .sub-menu a { font-size: 1.1rem; display: block; padding: 0.3rem 0; }
.site-nav__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-m); margin-top: var(--space-l); }
.search-toggle { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; }
.search-toggle:hover { color: var(--amber); }
.no-js .site-nav, html:not(.js) .site-nav { padding-block: 0.5rem 1rem; }

@media (min-width: 72em) {
	.nav-toggle { display: none; }
	.js .site-nav, .site-nav { display: flex; position: static; inset: auto; overflow: visible; background: transparent; padding: 0; align-items: center; gap: var(--space-m); }
	body.admin-bar .js .site-nav { top: auto; }
	.site-nav .menu { display: flex; align-items: center; gap: 0.1rem; }
	.site-nav .menu > li + li { border: 0; }
	.site-nav .menu > li > a { position: relative; padding: 0.7rem 0.6rem; font: 500 0.95rem/1.1 var(--font-ui); }
	.site-nav .menu > li > a::after { content: ""; position: absolute; left: 0.6rem; right: 0.6rem; bottom: 0.3rem; height: 1.5px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
	.site-nav .menu > li > a:hover::after, .site-nav .menu > li > a:focus-visible::after, .site-nav .current-menu-item > a::after { transform: scaleX(1); }
	.site-nav .menu > li.menu-item-has-children { position: relative; }
	.site-nav .sub-menu { position: absolute; left: 0; top: 100%; min-width: 14rem; background: var(--cellar-2); padding: 0.5rem; display: none; border: 1px solid var(--line-light); }
	.site-nav .menu-item-has-children:hover > .sub-menu, .site-nav .menu-item-has-children:focus-within > .sub-menu { display: block; }
	.site-nav__actions { margin: 0 0 0 var(--space-xs); flex-wrap: nowrap; gap: var(--space-s); }
	.search-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.search-toggle { justify-content: center; width: 44px; border-radius: 50%; }
	.search-toggle:hover { background: var(--cellar-2); }
}
@media (min-width: 72em) and (max-width: 82em) {
	.brand__sub { display: none; }
	.site-nav .menu > li > a { padding-inline: 0.45rem; font-size: 0.9rem; }
}

.site-search { background: var(--cellar-2); border-bottom: 1px solid var(--line-light); }
.site-search__inner { width: min(100% - 2 * var(--gutter), 44rem); margin-inline: auto; padding-block: var(--space-m); }
.site-search .search-form__label { color: var(--cream); }

/* ==========================================================================
   6. BUTTONS, LINKS, CHIPS, META, FORMS
   ========================================================================== */
.btn, .wp-element-button, .wp-block-button__link, .comment-form .submit, .search-form button {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	min-height: 44px; padding: 0.7rem 1.5rem;
	background: var(--ink); color: var(--cream);
	border: 1.5px solid var(--ink); border-radius: var(--radius);
	font: 500 1rem/1.1 var(--font-ui); letter-spacing: 0.01em;
	text-decoration: none; cursor: pointer;
	transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.btn:hover, .wp-element-button:hover, .wp-block-button__link:hover, .comment-form .submit:hover, .search-form button:hover { background: var(--garnet); border-color: var(--garnet); color: var(--cream); }
.btn:active { transform: translateY(1px); }
.btn--small { min-height: 40px; padding: 0.55rem 1.1rem; font-size: 0.95rem; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.btn--amber { background: var(--amber); border-color: var(--amber); color: var(--cellar); }
.btn--amber:hover { background: var(--cream); border-color: var(--cream); color: var(--cellar); }
.btn--ghost-light { background: transparent; border-color: var(--cream-muted); color: var(--cream); }
.btn--ghost-light:hover { background: var(--cream); border-color: var(--cream); color: var(--cellar); }
.btn .icon { width: 1.05em; height: 1.05em; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--ink); }

.text-link { display: inline-block; font: 500 1rem/1.3 var(--font-ui); color: var(--garnet); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; padding-bottom: 0.2rem; transition: background-size 0.3s var(--ease), color 0.2s; }
.text-link:hover { background-size: 0 1.5px; background-position: 100% 100%; color: var(--garnet-deep); }
.text-link--light { color: var(--amber); }
.text-link--light:hover { color: var(--cream); }
.text-link .icon { width: 0.95em; height: 0.95em; margin-left: 0.3rem; vertical-align: -0.1em; }

.contact-link { color: inherit; text-decoration-thickness: 0.06em; }

.chips ul { list-style: none; margin: 0 0 var(--space-l); padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0.3rem 1rem; border: 1.5px solid var(--ink); border-radius: 999px; color: var(--ink); text-decoration: none; font: 500 0.95rem/1.1 var(--font-ui); transition: background-color 0.2s, color 0.2s; }
.chip:hover { background: var(--limewash); color: var(--garnet); border-color: var(--garnet); }
.chip.is-current { background: var(--ink); color: var(--cream); }

/* Metadata: separate items divided by a fine rule, never by symbols.
   Each item carries a left rule; the list is clipped so the rule never shows at the start of a wrapped line. */
.meta { list-style: none; margin: 0 0 1rem -0.8rem; padding: 0; overflow: hidden; display: flex; flex-wrap: wrap; font: 400 0.92rem/1.3 var(--font-ui); color: var(--muted); }
.meta > li { display: inline-flex; align-items: center; margin-left: -1px; padding: 0.1rem 0.8rem; border-left: 1px solid rgba(90, 76, 84, 0.45); }
.meta a { display: inline-block; padding: 0.25rem 0; color: var(--garnet); font-weight: 500; text-decoration: none; }
.meta a:hover { text-decoration: underline; }
.meta--plain { margin-top: 0.5rem; }
.meta--cats { margin-left: 0; overflow: visible; gap: 0.5rem; }
.meta--cats > li { padding: 0; margin: 0; border: 0; }
.meta--cats a { display: inline-block; padding: 0.15rem 0.7rem; border: 1px solid var(--garnet); border-radius: 999px; }
.meta--cats a:hover { background: var(--garnet); color: var(--cream); text-decoration: none; }
.byline .meta { margin-bottom: 0; }

/* Forms */
label, .search-form__label { font: 500 0.95rem/1.3 var(--font-ui); }
input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="password"], textarea, select {
	width: 100%; min-height: 46px; padding: 0.65rem 0.85rem;
	background: var(--limewash); color: var(--ink);
	border: 1.5px solid var(--muted); border-radius: var(--radius);
	font: 400 1.05rem/1.4 var(--font-body);
}
textarea { min-height: 9rem; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.search-form__row { display: flex; gap: 0.5rem; margin-top: 0.4rem; }
.search-form__field { flex: 1; }
.search-panel { margin: 0 0 var(--space-l); max-width: 36rem; }

/* Pagination */
.pagination { margin: var(--space-xl) 0 0; }
.pagination .nav-links, .navigation.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.pagination .page-numbers { display: inline-flex; align-items: center; gap: 0.35rem; min-width: 44px; min-height: 44px; justify-content: center; padding: 0.3rem 0.9rem; border: 1.5px solid var(--ink); border-radius: var(--radius); color: var(--ink); text-decoration: none; font: 500 1rem/1 var(--font-ui); }
.pagination a.page-numbers:hover { background: var(--ink); color: var(--cream); }
.pagination .page-numbers.current { background: var(--ink); color: var(--cream); }
.pagination .dots { border-color: transparent; }
.pagination .icon { width: 1em; height: 1em; }

/* Breadcrumbs */
.breadcrumbs ol { list-style: none; margin: 0 0 var(--space-l); padding: 0; display: flex; flex-wrap: wrap; gap: 0.2rem; font: 400 0.92rem/1.4 var(--font-ui); color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-inline: 0.55rem; opacity: 0.55; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--garnet); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink); }

/* Single-column grids must be allowed to shrink below their content, or images can force sideways scrolling on phones. */
.hero__grid, .manifesto__grid, .stories__grid, .cellar__grid, .moment__grid, .visit__grid, .page-hero__grid,
.article-hero__grid, .detail__grid, .legal__grid, .not-found__grid, .empty-state, .site-footer__inner,
.site-footer__cols, .consent__inner, .wine-spot, .winery-spot, .feature__grid, .related__list, .story-grid { grid-template-columns: minmax(0, 1fr); }
/* ==========================================================================
   7. MEDIA, ARCH, PLACEHOLDERS, LABEL CARD
   ========================================================================== */
.media { position: relative; display: block; overflow: hidden; background: var(--plaster-2); }
.media__img, .media img, .media .cav-ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.media--card { aspect-ratio: 3 / 2; }
.media--wide { aspect-ratio: 16 / 9; }
.media--square { aspect-ratio: 1; }
.media--portrait-soft { aspect-ratio: 4 / 5; border-top-left-radius: clamp(4rem, 14vw, 11rem); }
.media--rounded { border-radius: 2px; }
.arch { position: relative; aspect-ratio: 4 / 5; border-radius: var(--arch); overflow: hidden; background: var(--plaster-2); }
.arch > img, .arch > .cav-ph, .arch img { width: 100%; height: 100%; object-fit: cover; }
.caption, .wp-element-caption, figcaption { font: 400 0.9rem/1.45 var(--font-ui); color: var(--muted); margin-top: 0.6rem; }

/* Illustrated placeholders: abstract drawings that never pretend to be photographs. */
.cav-ph { position: relative; width: 100%; height: 100%; min-height: 100%; --ph-1: #e9c98d; --ph-2: #a8613f; --ph-3: #7d2233; --ph-4: #3d2b34; --ph-5: #f6e1a8; --ph-line: rgba(246, 225, 168, 0.55); }
.cav-ph svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cav-ph--pale { --ph-1: #dfe0d0; --ph-2: #a9b5a5; --ph-3: #6f8d84; --ph-4: #3d6b63; --ph-5: #f3e6b9; --ph-line: rgba(36, 24, 32, 0.35); }
.cav-ph--wine { --ph-1: #6b2a3a; --ph-2: #52202e; --ph-3: #3d1823; --ph-4: #241017; --ph-5: #e5b25d; --ph-line: rgba(229, 178, 93, 0.5); }
.cav-ph .p1 { fill: var(--ph-1); } .cav-ph .p2 { fill: var(--ph-2); } .cav-ph .p3 { fill: var(--ph-3); }
.cav-ph .p4 { fill: var(--ph-4); } .cav-ph .p5 { fill: var(--ph-5); } .cav-ph .pl { stroke: var(--ph-line); }
.cav-ph__note { position: absolute; left: 0.6rem; right: 0.6rem; bottom: 0.6rem; padding: 0.4rem 0.6rem; background: #fff6d6; color: #3b2a00; font: 400 0.8rem/1.35 var(--font-ui); border-left: 3px solid var(--amber); }

/* The label card: an aged wine label, double-ruled. Used sparingly. */
.label-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.3rem; padding: 1.7rem 1.6rem 1.5rem; background: radial-gradient(120% 90% at 50% 0%, #f7f5ea, var(--limewash) 55%, #e6e3d2); color: var(--ink); border: 1px solid var(--ink); outline: 1px solid var(--ink); outline-offset: -8px; }
.label-card__arch { width: 1.5rem; height: 2rem; border: 1.5px solid var(--garnet); border-bottom: 0; border-radius: var(--arch); margin-bottom: 0.3rem; }
.label-card__name { font: italic 400 clamp(2.1rem, 1.6rem + 1.6vw, 3rem)/1 var(--font-display); margin: 0; letter-spacing: -0.02em; }
.label-card__name a { color: inherit; text-decoration: none; }
.label-card__name a:hover { color: var(--garnet); }
.label-card__sub { font: 500 0.9rem/1.2 var(--font-ui); color: var(--muted); letter-spacing: 0.03em; }
.label-card__rule { width: 3.5rem; height: 1px; background: var(--garnet); margin: 0.5rem 0; }
.label-card__place { font: 400 0.95rem/1.3 var(--font-body); font-style: italic; color: var(--muted); }
.label-card__text { font-size: 1rem; line-height: 1.55; margin: 0.2rem 0 0.6rem; }
.label-card--wide { align-items: stretch; text-align: left; padding: clamp(1.4rem, 3vw, 2.2rem); }
.label-card--wide .label-card__arch { align-self: flex-start; }
.label-card--wide .label-card__rule { margin-left: 0; }

/* ==========================================================================
   8. HOME: OPENING
   ========================================================================== */
.hero { position: relative; overflow: hidden; background: var(--cellar); color: var(--cream); padding-block: clamp(2.5rem, 6vw, 5rem) clamp(4.5rem, 9vw, 8rem); }
.hero__glow { position: absolute; right: -15%; bottom: -35%; width: 80%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(229, 178, 93, 0.3), rgba(229, 178, 93, 0.06) 60%, transparent 72%); pointer-events: none; }
.hero__grid { position: relative; display: grid; gap: clamp(3rem, 6vw, 4rem); align-items: center; }
.hero__note { color: var(--amber); transform: rotate(-2deg); transform-origin: left; margin-bottom: var(--space-s); }
.hero__title { font-size: var(--step-6); line-height: 0.95; letter-spacing: -0.025em; margin: 0 0 var(--space-m); max-width: 12ch; color: var(--cream); }
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0.06em 0.02em 0.14em; margin: -0.06em 0 -0.14em; }
.hero__title .w > span { display: inline-block; animation: word-rise 1s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 80ms + 120ms); }
.hero__lead { font-size: var(--step-1); line-height: 1.45; color: var(--cream-muted); max-width: 30rem; margin-bottom: var(--space-l); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-s); }
.hero__visual { position: relative; width: min(100%, 28rem); margin-inline: auto; padding-bottom: 2.5rem; }
.hero__arch { outline: 1px solid rgba(229, 178, 93, 0.65); outline-offset: 12px; animation: arch-open 1.4s var(--ease) 0.15s backwards; }
.hero__label { position: absolute; left: -1rem; bottom: 0; width: 13.5rem; transform: rotate(-3deg); animation: label-settle 1s var(--ease) 0.9s backwards; }
@keyframes word-rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes arch-open { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0 round 999px 999px 0 0); } }
@keyframes label-settle { from { opacity: 0; transform: translateY(1.5rem) rotate(2deg); } to { opacity: 1; transform: rotate(-3deg); } }
@media (min-width: 62em) {
	.hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
	.hero__visual { width: 100%; margin: 0; padding-bottom: 0; justify-self: end; max-width: 30rem; }
	.hero__label { left: -4.5rem; bottom: 3rem; }
}
@media (min-width: 62em) { .hero__title { max-width: none; } }

.manifesto { background: var(--plaster); padding-block: var(--space-3xl) var(--space-2xl); }
.manifesto__grid { display: grid; gap: var(--space-l); }
.manifesto__text { font: italic 400 var(--step-3)/1.18 var(--font-display); letter-spacing: -0.015em; max-width: 24em; margin: 0; text-wrap: balance; }
.manifesto__aside { color: var(--garnet); transform: rotate(-1.5deg); max-width: 12rem; padding-top: 0.5rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'%3E%3Cpath d='M2 8c14-7 24 3 38-2s26-4 38 0 28 4 40-2' fill='none' stroke='%237d2233' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") 0 0 / 7rem 0.5rem no-repeat; }
@media (min-width: 62em) {
	.manifesto__grid { grid-template-columns: minmax(0, 8fr) minmax(0, 3fr); align-items: end; }
	.manifesto__aside { padding-bottom: 0.4rem; justify-self: start; background-position: 0 0; }
}
.editor-band { padding-block: 0 var(--space-2xl); }

/* ==========================================================================
   9. HOME: FEATURE, STORIES, ROUTE
   ========================================================================== */
.feature { padding-block: var(--space-xl) var(--space-3xl); }
.feature__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.feature__flag { grid-column: 1 / -1; color: var(--garnet); transform: rotate(-2deg); margin-bottom: var(--space-s); }
.feature__media { grid-column: 1 / -1; grid-row: 2; border-top-left-radius: clamp(4rem, 16vw, 13rem); }
.feature__card { grid-column: 1 / -1; grid-row: 3; position: relative; margin: -3rem 0.75rem 0; padding: clamp(1.5rem, 4vw, 2.4rem); background: var(--limewash); border: 1px solid var(--ink); outline: 1px solid var(--ink); outline-offset: -8px; }
.feature__title { font-size: var(--step-4); line-height: 1; margin: 0.35rem 0 var(--space-s); }
.feature__title a { color: var(--ink); text-decoration: none; }
.feature__title a:hover { color: var(--garnet); }
.feature__excerpt { font-size: var(--step-0); color: var(--muted); max-width: 34rem; }
@media (min-width: 62em) {
	.feature__flag { grid-column: 1 / 6; }
	.feature__media { grid-column: 1 / 9; grid-row: 2; }
	.feature__card { grid-column: 7 / 13; grid-row: 2; align-self: end; margin: 0 0 -3rem; }
}

.stories { padding-block: 0 var(--space-3xl); }
.stories__grid { display: grid; gap: var(--space-xl) var(--gutter); }
.stories__a, .stories__b { min-width: 0; }
.stories__b { display: grid; gap: var(--space-l); align-content: start; }
.stories__list { grid-column: 1 / -1; list-style: none; margin: var(--space-m) 0 0; padding: var(--space-m) 0 0; border-top: 1px solid var(--line); display: grid; gap: var(--space-m) var(--gutter); }
@media (min-width: 48em) { .stories__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 62em) {
	.stories__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
	.stories__a { grid-column: 1 / 8; }
	.stories__b { grid-column: 8 / 13; }
	.stories__list { grid-column: 1 / -1; }
}

.route { background: var(--plaster-2); padding-block: var(--space-2xl) var(--space-3xl); }
.route__head { display: grid; gap: var(--space-xs); margin-bottom: var(--space-xl); max-width: 44rem; }
.route__title { font-size: var(--step-4); margin: 0; }
.route__stops { list-style: none; margin: 0; padding: 0 0 0 1.6rem; display: grid; gap: var(--space-l); position: relative; border-left: 2px dashed var(--garnet); }
.route__stop { position: relative; }
.route__stop::before { content: ""; position: absolute; left: calc(-1.6rem - 8px); top: 0.55rem; width: 14px; height: 14px; border-radius: 50%; background: var(--plaster-2); border: 3px solid var(--garnet); }
.route__stop:last-child::before { background: var(--garnet); }
.route__stop-title { font: 400 var(--step-2)/1.1 var(--font-display); margin: 0 0 0.4rem; }
.route__stop p { color: var(--muted); font-size: 1.05rem; margin: 0; max-width: 26rem; }
@media (min-width: 62em) {
	.route__stops { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); padding: 2.2rem 0 0; border-left: 0; border-top: 2px dashed var(--garnet); }
	.route__stop::before { left: 0; top: calc(-2.2rem - 8px); }
	.route__stop:nth-child(2) { margin-top: 1.2rem; }
	.route__stop:nth-child(3) { margin-top: 0.4rem; }
	.route__stop:nth-child(4) { margin-top: 1.6rem; }
	.route__stop:nth-child(2)::before { top: calc(-3.4rem - 8px); }
	.route__stop:nth-child(3)::before { top: calc(-2.6rem - 8px); }
	.route__stop:nth-child(4)::before { top: calc(-3.8rem - 8px); }
}

/* ==========================================================================
   10. HOME: CELLAR, PICTURES AND FILMS, TOPICS, VISIT
   ========================================================================== */
.cellar { background: var(--cellar); color: var(--cream); padding-block: var(--space-3xl); position: relative; overflow: hidden; }
.cellar::before { content: ""; position: absolute; left: -20%; top: -30%; width: 70%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(125, 34, 51, 0.5), transparent 70%); pointer-events: none; }
.cellar .container { position: relative; }
.cellar__grid { display: grid; gap: var(--space-2xl) var(--gutter); }
@media (min-width: 62em) { .cellar__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; } }

.wine-spot { display: grid; gap: var(--space-m); align-items: center; }
.wine-spot__bottle { justify-self: center; width: clamp(5rem, 14vw, 8rem); }
.wine-spot .label-card { color: var(--ink); }
@media (min-width: 40em) { .wine-spot { grid-template-columns: auto minmax(0, 1fr); gap: var(--space-l); } .wine-spot__bottle { width: clamp(6rem, 12vw, 9rem); } }

.bottle { display: block; width: 100%; height: auto; overflow: visible; --glass: #4a2431; }
.bottle__glass { fill: var(--glass); stroke: rgba(241, 236, 224, 0.4); stroke-width: 1.5; }
.bottle__label { fill: var(--limewash); }
.bottle__rule { stroke: var(--garnet); stroke-width: 1.5; fill: none; }
.bottle__shine { stroke: rgba(241, 236, 224, 0.28); stroke-width: 3; stroke-linecap: round; fill: none; }
.bottle--white { --glass: #6b6a3a; } .bottle--rose { --glass: #9c5a63; } .bottle--sparkling { --glass: #5b6b52; }
.bottle--sweet { --glass: #8a6a2a; } .bottle--fortified { --glass: #56331f; } .bottle--red { --glass: #4a2431; } .bottle--other { --glass: #3f3a42; }

.facts { margin: 0 0 var(--space-m); padding: 0; }
.facts__row, .facts > div { display: grid; grid-template-columns: minmax(7rem, 9rem) 1fr; gap: 0.25rem 1rem; padding: 0.55rem 0; border-top: 1px solid var(--line); }
.facts dt { font: 500 0.9rem/1.5 var(--font-ui); color: var(--muted); }
.facts dd { margin: 0; font-size: 1.05rem; }
.facts--compact > div { grid-template-columns: 6.5rem 1fr; padding: 0.35rem 0; }
.facts--compact dd { font-size: 0.98rem; }

.winery-spot { display: grid; gap: var(--space-m); }
.winery-spot__arch { width: min(100%, 17rem); aspect-ratio: 4 / 5; outline: 1px solid rgba(229, 178, 93, 0.6); outline-offset: 10px; margin: 10px; }
.winery-spot__flag { color: var(--amber); transform: rotate(-2deg); margin-bottom: 0.2rem; }
.winery-spot__title { font-size: var(--step-3); margin: 0 0 0.3rem; }
.winery-spot__title a { color: var(--cream); text-decoration: none; }
.winery-spot__title a:hover { color: var(--amber); }
.winery-spot__place { color: var(--amber); font: 500 0.95rem/1.3 var(--font-ui); }
.winery-spot__rel { font: italic 400 1rem/1.4 var(--font-body); color: var(--cream-muted); }
.winery-spot p { color: var(--cream-muted); }
@media (min-width: 40em) and (max-width: 61.99em) { .winery-spot { grid-template-columns: 15rem 1fr; align-items: center; } }

.moment { padding-block: var(--space-3xl); }
.moment__grid { display: grid; gap: var(--space-xl) var(--gutter); }
@media (min-width: 62em) { .moment__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; } }
.moment__mosaic { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); grid-auto-rows: clamp(4.2rem, 10vw, 7.5rem); gap: 0.6rem; }
.moment__empty, .moment__mosaic > .editor-note { grid-column: 1 / -1; margin: 0.3rem 0 0; }
.moment__empty { color: var(--muted); font-style: italic; }
.photo--m1 { grid-column: 1 / 5; grid-row: 1 / 5; }
.photo--m2 { grid-column: 5 / 9; grid-row: 1 / 3; }
.photo--m3 { grid-column: 5 / 7; grid-row: 3 / 5; }
.photo--m4 { grid-column: 7 / 9; grid-row: 3 / 5; }
.photo--m1:not(.photo--empty) .photo__link, .photo--m1 .media { border-radius: var(--arch); }
.photo--m5 { display: none; }
.moment__film-title { font-size: var(--step-2); margin: var(--space-s) 0 0; }
.moment__film-title a { color: var(--ink); text-decoration: none; } .moment__film-title a:hover { color: var(--garnet); }
.film-empty .media { position: relative; }
.film-empty__play { position: absolute; inset: 0; margin: auto; width: 4.2rem; height: 4.2rem; display: grid; place-items: center; background: var(--cellar); color: var(--amber); border-radius: 50%; }
.film-empty__play .icon { width: 1.8rem; height: 1.8rem; }

.topics { padding-block: 0 var(--space-3xl); }
.topics__list { list-style: none; margin: var(--space-l) 0 0; padding: 0; border-bottom: 1px solid var(--line); }
.topic { display: grid; gap: 0.2rem var(--space-l); padding: var(--space-m) 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: padding-left 0.35s var(--ease), background-color 0.3s; }
.topic__name { font: 400 var(--step-2)/1.1 var(--font-display); }
.topic__desc { color: var(--muted); font-size: 1.05rem; max-width: 32rem; }
.topic__count { font: 500 0.92rem/1.4 var(--font-ui); color: var(--garnet); }
.topic:hover { padding-left: 1rem; background: var(--limewash); color: var(--garnet); }
@media (min-width: 48em) { .topic { grid-template-columns: minmax(12rem, 1fr) 2fr auto; align-items: baseline; } }

.visit { background: var(--garnet); color: var(--cream); padding-block: var(--space-3xl); }
.visit__grid { display: grid; gap: var(--space-l) var(--space-2xl); align-items: end; }
.visit__title { font-size: var(--step-4); margin: 0 0 var(--space-s); color: var(--cream); }
.visit__text { font-size: var(--step-1); line-height: 1.5; max-width: 34rem; margin: 0; color: #f3e6dd; }
.visit__actions { display: grid; gap: var(--space-xs); justify-items: start; }
.visit__contact { margin: 0; font: 500 1.15rem/1.3 var(--font-ui); }
.visit .text-link--light { color: var(--cream); }
.visit .btn--amber { background: var(--cream); border-color: var(--cream); }
.visit .btn--amber:hover { background: var(--amber); border-color: var(--amber); }
@media (min-width: 62em) { .visit__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); } }
/* ==========================================================================
   11. PAGE OPENINGS AND ARCHIVES
   ========================================================================== */
.page-hero { padding-block: var(--space-xl) var(--space-xl); border-bottom: 1px solid var(--line); margin-bottom: var(--space-xl); background: linear-gradient(180deg, var(--plaster) 0%, var(--plaster) 70%, #dcdacb 100%); }
.page-hero__grid { display: grid; gap: var(--space-m) var(--space-2xl); align-items: end; }
.page-hero__kicker { color: var(--garnet); transform: rotate(-2deg); transform-origin: left; margin-bottom: 0.3rem; }
.page-hero__title { font-size: var(--step-5); line-height: 0.98; letter-spacing: -0.02em; margin: 0; }
.page-hero__intro { font-size: var(--step-1); line-height: 1.5; color: var(--muted); max-width: 32rem; }
.page-hero__intro > :last-child { margin-bottom: 0; }
@media (min-width: 62em) { .page-hero__grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); } }
.archive-wrap { padding-bottom: var(--space-3xl); }
.section-intro { padding-bottom: var(--space-l); }
.section-intro .entry-content { --measure: 46rem; }

/* Story cards */
.card { position: relative; min-width: 0; }
.card__media { transition: transform 0.5s var(--ease); }
.card__media .media__img, .card__media img { transition: transform 0.8s var(--ease); }
.card:hover .card__media img { transform: scale(1.03); }
.card__body { padding-top: var(--space-s); }
.card__title { font: 400 var(--step-2)/1.1 var(--font-display); margin: 0 0 0.5rem; }
.card__title a { color: var(--ink); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size 0.4s var(--ease), color 0.2s; }
.card__title a:hover { color: var(--garnet); background-size: 100% 1.5px; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }   /* whole card is clickable */
.card__excerpt { color: var(--muted); font-size: 1.05rem; margin: 0; }
.card .meta a { position: relative; z-index: 2; }
.card--lead .card__title { font-size: var(--step-3); }
.card--row { display: grid; grid-template-columns: minmax(6.5rem, 9.5rem) minmax(0, 1fr); gap: var(--space-s); align-items: start; }
.card--row .card__body { padding-top: 0; }
.card--row .card__title { font-size: var(--step-1); }
.card--row .card__excerpt { display: none; }
.card--row .media--card { aspect-ratio: 1; }
.card--compact .card__title { font-size: var(--step-1); }
.card--compact .meta { margin-bottom: 0.3rem; }
.card--row .meta__read, .card--compact .meta__read { display: none; }
@media (min-width: 40em) { .card--row .card__excerpt { display: block; font-size: 0.98rem; } .card--row { grid-template-columns: minmax(8rem, 11rem) minmax(0, 1fr); } }

.story-grid { display: grid; gap: var(--space-xl) var(--gutter); }
@media (min-width: 40em) { .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .story-grid .card--lead { grid-column: 1 / -1; } }
@media (min-width: 62em) {
	.story-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.story-grid .card { grid-column: span 2; }
	.story-grid .card--lead { grid-column: 1 / 5; }
	.story-grid .card--lead + .card { grid-column: 5 / 7; align-self: end; }
	.story-grid .card--lead + .card .media--card { aspect-ratio: 4 / 5; }
	/* After the lead pair: two wide cards, then three narrow ones, repeating. */
	.story-grid .card:nth-child(5n + 3):not(.card--lead), .story-grid .card:nth-child(5n + 4):not(.card--lead) { grid-column: span 3; }
	.story-grid .card:nth-child(5n + 3):not(.card--lead) .media--card, .story-grid .card:nth-child(5n + 4):not(.card--lead) .media--card { aspect-ratio: 16 / 9; }
	/* Later pages have no lead, so the rhythm starts from the first card. */
	.paged .story-grid .card:nth-child(5n + 3), .paged .story-grid .card:nth-child(5n + 4) { grid-column: span 2; }
	.paged .story-grid .card:nth-child(5n + 3) .media--card, .paged .story-grid .card:nth-child(5n + 4) .media--card { aspect-ratio: 3 / 2; }
	.paged .story-grid .card:nth-child(5n + 1), .paged .story-grid .card:nth-child(5n + 2) { grid-column: span 3; }
	.paged .story-grid .card:nth-child(5n + 1) .media--card, .paged .story-grid .card:nth-child(5n + 2) .media--card { aspect-ratio: 16 / 9; }
}
}

.empty-state { display: grid; gap: var(--space-l); align-items: center; padding: var(--space-m) 0; }
.empty-state__art { border-top-left-radius: 6rem; border-top-right-radius: 6rem; max-width: 26rem; }
.empty-state__title { font-size: var(--step-3); margin: 0 0 0.5rem; }
.empty-state__body p { color: var(--muted); max-width: 32rem; }
.empty-state--inline { padding-block: 0; }
@media (min-width: 48em) { .empty-state:not(.empty-state--inline) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); } }

/* Wine, winery, product and video grids */
.wine-grid, .winery-grid, .product-grid, .video-grid, .photo-grid { display: grid; gap: var(--space-xl) var(--gutter); }
.wine-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.winery-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }
.product-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.video-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr)); }

.wine-card { position: relative; display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: var(--space-m); align-items: center; padding: var(--space-m); background: var(--limewash); border: 1px solid var(--ink); outline: 1px solid var(--ink); outline-offset: -7px; transition: transform 0.4s var(--ease); }
.wine-card:hover { transform: translateY(-3px); }
.wine-card__visual { display: block; }
.wine-card__visual .bottle { max-height: 12rem; margin-inline: auto; }
.wine-card__visual img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--arch); }
.wine-card__type { font: 500 0.85rem/1.2 var(--font-ui); color: var(--garnet); margin: 0 0 0.3rem; }
.wine-card__title { font: italic 400 var(--step-1)/1.1 var(--font-display); margin: 0 0 0.3rem; }
.wine-card__title a { color: var(--ink); text-decoration: none; }
.wine-card__title a::after { content: ""; position: absolute; inset: 0; }
.wine-card__title a:hover { color: var(--garnet); }
.wine-card__producer { font: 500 0.95rem/1.3 var(--font-ui); margin: 0 0 0.2rem; }
.wine-card__facts { color: var(--muted); font-size: 0.98rem; line-height: 1.4; margin: 0 0 0.4rem; }
.wine-card__price { font: 500 1.05rem/1 var(--font-ui); margin: 0; color: var(--ink); }

.winery-card__media { border-top-left-radius: 4rem; }
.winery-card__place { display: flex; align-items: center; gap: 0.4rem; font: 500 0.95rem/1.3 var(--font-ui); color: var(--garnet); margin: var(--space-s) 0 0.3rem; }
.winery-card__place .icon { width: 1.1rem; height: 1.1rem; flex: none; }
.winery-card__title { font-size: var(--step-2); margin: 0 0 0.4rem; }
.winery-card__title a { color: var(--ink); text-decoration: none; } .winery-card__title a:hover { color: var(--garnet); }
.winery-card__title a::after { content: ""; position: absolute; inset: 0; }
.winery-card { position: relative; }
.winery-card__excerpt { color: var(--muted); margin: 0 0 0.5rem; }
.winery-card__rel { font: italic 400 0.98rem/1.4 var(--font-body); color: var(--verdigris); margin: 0; }

.product-card { position: relative; }
.product-card__body { padding-top: var(--space-s); }
.product-card__kind { font: 500 0.85rem/1.2 var(--font-ui); color: var(--garnet); margin: 0 0 0.3rem; }
.product-card__title { font-size: var(--step-1); margin: 0 0 0.4rem; }
.product-card__title a { color: var(--ink); text-decoration: none; } .product-card__title a:hover { color: var(--garnet); }
.product-card__title a::after { content: ""; position: absolute; inset: 0; }
.product-card__excerpt { color: var(--muted); font-size: 1rem; margin: 0 0 0.4rem; }
.product-card__price { color: var(--ink); font-weight: 500; }

.video-card__player { margin-bottom: var(--space-s); }
.video-card__title { font-size: var(--step-2); margin: 0 0 0.4rem; }
.video-card__title a { color: var(--ink); text-decoration: none; } .video-card__title a:hover { color: var(--garnet); }
.video-card__caption { color: var(--muted); margin: 0 0 0.3rem; }

/* Photo gallery */
.photo { position: relative; margin: 0; }
.photo__link { display: block; height: 100%; overflow: hidden; background: var(--plaster-2); }
.photo__link img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.photo__link:hover img { transform: scale(1.04); }
.photo__caption { font: 400 0.92rem/1.45 var(--font-ui); color: var(--muted); margin: 0.5rem 0 0; padding-left: 0.7rem; border-left: 2px solid var(--garnet); }
.photo__flag { display: inline-block; margin-top: 0.3rem; padding: 0.2rem 0.5rem; background: #fff6d6; color: #3b2a00; font: 400 0.8rem/1.3 var(--font-ui); }
.photo--empty .media { height: 100%; }
.photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; gap: var(--space-m) var(--gutter); }
.photo-grid .photo__link { aspect-ratio: 4 / 3; height: auto; width: 100%; }
.photo-grid .photo--tall .photo__link { aspect-ratio: 3 / 4; }
@media (min-width: 62em) {
	.photo-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.photo-grid .photo { grid-column: span 2; }
	.photo-grid .photo--tall { grid-row: span 2; }
	.photo-grid .photo--wide:nth-child(5n + 1) { grid-column: span 3; }
}
.moment__mosaic .photo__link { height: 100%; }

/* Search results */
.results { list-style: none; margin: var(--space-l) 0 0; padding: 0; }
.result { padding: var(--space-m) 0; border-top: 1px solid var(--line); }
.result__type { font: 500 0.85rem/1.2 var(--font-ui); color: var(--garnet); margin: 0 0 0.3rem; }
.result__title { font-size: var(--step-2); margin: 0 0 0.3rem; }
.result__title a { color: var(--ink); text-decoration: none; } .result__title a:hover { color: var(--garnet); text-decoration: underline; }
.result__excerpt { color: var(--muted); margin: 0; }
.search-hint { color: var(--muted); }

/* 404 */
.not-found { padding-block: var(--space-3xl); background: var(--plaster); }
.not-found__grid { display: grid; gap: var(--space-xl); align-items: center; }
.not-found__note { color: var(--garnet); transform: rotate(-2deg); transform-origin: left; }
.not-found__title { font-size: var(--step-5); line-height: 1; margin: 0.2em 0 0.4em; }
.not-found__text { max-width: 30rem; color: var(--muted); }
.not-found__links { display: flex; flex-wrap: wrap; gap: var(--space-s); }
.not-found__art { max-width: 20rem; justify-self: center; width: 100%; }
@media (min-width: 62em) { .not-found__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); } }

/* ==========================================================================
   12. ARTICLES AND WRITTEN CONTENT
   ========================================================================== */
.article-hero { padding-block: var(--space-xl) var(--space-xl); }
.article-hero__grid { display: grid; gap: var(--space-xl) var(--space-2xl); align-items: end; }
.article-title { font-size: var(--step-5); line-height: 1; letter-spacing: -0.022em; margin: 0.35em 0 0.3em; }
.article-dek { font: italic 400 var(--step-1)/1.45 var(--font-body); color: var(--muted); max-width: 34rem; margin-bottom: var(--space-m); }
.byline { display: flex; align-items: center; gap: 0.9rem; margin-top: var(--space-m); }
.byline__avatar { border-radius: 50%; width: 48px; height: 48px; }
.byline__name { margin: 0; font: 500 1rem/1.3 var(--font-ui); }
.byline__name a { color: var(--ink); text-decoration: none; } .byline__name a:hover { color: var(--garnet); text-decoration: underline; }
.byline .meta { margin-bottom: 0; }
.article-hero__media .caption { text-align: left; }
@media (min-width: 62em) {
	.article-hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
	.no-featured-image .article-hero__grid { grid-template-columns: minmax(0, 1fr); max-width: 56rem; }
}
.article-body { padding-inline: var(--gutter); padding-bottom: var(--space-2xl); }

/* Written content shared by stories, pages and entries */
.entry-content { --read: var(--measure); font-size: var(--step-0); }
.entry-content > * { max-width: var(--read); margin-inline: auto; }
.page-body > .entry-content, .section-intro > .entry-content { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.page-body > .entry-content > *, .section-intro > .entry-content > * { margin-inline: 0; }
.entry-content > .alignwide, .entry-content > .wp-block-columns.alignwide, .entry-content > .wp-block-gallery.alignwide { max-width: min(100%, 68rem); }
.entry-content > .alignfull { max-width: min(100%, 82rem); }
.entry-content > .alignleft { float: left; margin: 0.3em 1.5em 1em 0; }
.entry-content > .alignright { float: right; margin: 0.3em 0 1em 1.5em; }
.entry-content > .aligncenter { margin-inline: auto; }
.entry-content h2 { font-size: var(--step-3); margin-top: 1.9em; }
.entry-content h3 { font-size: var(--step-2); margin-top: 1.7em; }
.entry-content h4 { font-size: var(--step-1); margin-top: 1.5em; font-family: var(--font-ui); font-weight: 500; letter-spacing: 0; }
.entry-content > :first-child { margin-top: 0; }
.article .entry-content > p:first-of-type:not([class*="is-style"]):not(.has-drop-cap)::first-letter { font: 400 4.6em/0.8 var(--font-display); float: left; padding: 0.06em 0.12em 0 0; color: var(--garnet); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin-bottom: 1.2em; }
.entry-content li { margin-bottom: 0.35em; }
.entry-content li::marker { color: var(--garnet); }
.entry-content img { border-radius: 0; }
.entry-content figure { margin-block: 2em; }
.entry-content table { width: 100%; border-collapse: collapse; font: 400 0.95rem/1.5 var(--font-ui); }
.entry-content th, .entry-content td { text-align: left; vertical-align: top; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); }
.entry-content th { font-weight: 500; background: var(--limewash); border-bottom: 2px solid var(--ink); }
.wp-block-table { overflow-x: auto; }
.entry-content code, .entry-content kbd { font: 0.88em/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--limewash); padding: 0.1em 0.35em; border-radius: 2px; }
.entry-content pre { overflow-x: auto; padding: 1rem; background: var(--limewash); }
.entry-content blockquote { margin-inline: auto; padding-left: 1.4rem; border-left: 3px solid var(--garnet); font: italic 400 var(--step-1)/1.5 var(--font-body); }
.entry-content blockquote cite { display: block; margin-top: 0.6rem; font: 400 0.92rem/1.4 var(--font-ui); font-style: normal; color: var(--muted); }
.entry-content .wp-block-separator { border: 0; height: 1px; background: var(--ink); opacity: 0.35; width: 6rem; margin-block: 2.4em; }
.entry-content .wp-block-pullquote { padding: var(--space-l) 0; border-block: 1px solid var(--ink); text-align: center; max-width: 44rem; }
.entry-content .wp-block-pullquote blockquote { border: 0; padding: 0; font: italic 400 var(--step-2)/1.25 var(--font-display); }
.page-links { display: flex; flex-wrap: wrap; gap: 0.4rem; font: 500 1rem/1 var(--font-ui); margin-top: var(--space-l); }
.page-links > span:not(.page-links__label), .page-links a { display: inline-flex; min-width: 40px; min-height: 40px; align-items: center; justify-content: center; border: 1.5px solid var(--ink); padding: 0 0.6rem; text-decoration: none; color: var(--ink); }

/* Embeds */
.wp-block-embed, .wp-block-video { margin-block: 2em; }
.wp-block-embed iframe, .embed-frame iframe { max-width: 100%; border: 0; }
.embed-frame iframe, .embed-frame video { width: 100%; aspect-ratio: 16 / 9; height: auto; display: block; background: var(--cellar); }
.embed-frame .wp-video, .embed-frame .mejs-container { width: 100% !important; }
.wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper { position: relative; }
.wp-block-embed.wp-has-aspect-ratio:has(.cav-embed-gate) .wp-block-embed__wrapper::before { display: none; }
.wp-block-embed.wp-has-aspect-ratio .cav-embed-gate { position: relative; inset: auto; }

/* Block styles: the editorial vocabulary */
.is-style-cav-note { font: 500 clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem)/1.2 var(--font-hand); color: var(--garnet); padding-left: 1rem; border-left: 3px solid var(--amber); transform: rotate(-0.8deg); }
.is-style-cav-lead { font: italic 400 var(--step-2)/1.28 var(--font-display); letter-spacing: -0.012em; color: var(--ink); }
.entry-content h2.is-style-cav-hand, .entry-content h3.is-style-cav-hand { font-family: var(--font-hand); font-weight: 500; letter-spacing: 0; color: var(--garnet); }
.wp-block-quote.is-style-cav-label { max-width: 34rem; text-align: center; padding: 2rem 1.8rem; border: 1px solid var(--ink); outline: 1px solid var(--ink); outline-offset: -8px; background: var(--limewash); font: italic 400 var(--step-1)/1.4 var(--font-display); }
.wp-block-quote.is-style-cav-label cite { margin-top: 1rem; }
.wp-block-image.is-style-cav-arch { max-width: 30rem; }
.wp-block-image.is-style-cav-arch img { border-radius: var(--arch); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.wp-block-image.is-style-cav-print { max-width: 34rem; background: var(--limewash); padding: 0.9rem 0.9rem 0.2rem; box-shadow: 0 1px 0 rgba(36, 24, 32, 0.1), 0 18px 26px -18px rgba(36, 24, 32, 0.5); transform: rotate(-0.8deg); }
.wp-block-group.is-style-cav-label-card { max-width: 30rem; padding: 1.8rem; background: radial-gradient(120% 90% at 50% 0%, #f7f5ea, var(--limewash) 55%, #e6e3d2); border: 1px solid var(--ink); outline: 1px solid var(--ink); outline-offset: -8px; }
.wp-block-group.is-style-cav-label-card > :last-child { margin-bottom: 0; }
.wp-block-group.is-style-cav-label-card h3 { font-style: italic; margin-top: 0; }
.wp-block-group.is-style-cav-cellar { background: var(--cellar); color: var(--cream); padding: var(--space-l); }
.wp-block-group.is-style-cav-cellar a { color: var(--amber); }
.is-style-cav-ticks { list-style: none; padding-left: 0 !important; }
.is-style-cav-ticks li { padding: 0.4rem 0 0.4rem 1.6rem; border-bottom: 1px dotted var(--line); position: relative; }
.is-style-cav-ticks li::before { content: ""; position: absolute; left: 0.2rem; top: 1.05rem; width: 0.5rem; height: 0.5rem; background: var(--garnet); transform: rotate(45deg); }

/* Journey timeline */
.cav-timeline { position: relative; padding-left: 1.8rem; border-left: 2px dashed var(--garnet); margin-block: var(--space-l); max-width: min(100%, 46rem); }
.cav-milestone { position: relative; margin-bottom: var(--space-l); }
.cav-milestone::before { content: ""; position: absolute; left: calc(-1.8rem - 8px); top: 0.5rem; width: 14px; height: 14px; border-radius: 50%; background: var(--plaster); border: 3px solid var(--garnet); }
.cav-milestone__when { font: 500 1.5rem/1.1 var(--font-hand); color: var(--garnet); margin: 0 0 0.2rem; }
.cav-milestone h3 { margin-top: 0; font-size: var(--step-2); }
.cav-milestone > :last-child { margin-bottom: 0; }

/* Story footer */
.article-foot { padding-bottom: var(--space-2xl); }
.tags { font: 400 0.95rem/1.8 var(--font-ui); color: var(--muted); }
.tags a { display: inline-block; margin: 0 0.3rem 0.3rem 0; padding: 0.1rem 0.7rem; border: 1px solid var(--muted); border-radius: 999px; color: var(--ink); text-decoration: none; }
.tags a:hover { border-color: var(--garnet); color: var(--garnet); }
.author-box { display: flex; gap: var(--space-m); align-items: flex-start; padding: var(--space-m) 0; border-block: 1px solid var(--line); margin-block: var(--space-l); }
.author-box__avatar { border-radius: 50%; flex: none; }
.author-box__name { font-size: var(--step-1); margin: 0 0 0.3rem; }
.author-box p { margin: 0; color: var(--muted); }
.story-cta { padding: var(--space-l); background: var(--limewash); border: 1px solid var(--ink); outline: 1px solid var(--ink); outline-offset: -8px; margin-top: var(--space-l); }
.story-cta__title { font-size: var(--step-2); margin: 0 0 0.4rem; }
.story-cta p:last-child { margin-bottom: 0; }
.related { padding-block: var(--space-xl) var(--space-2xl); background: var(--plaster-2); }
.related .section-head__title { margin-bottom: var(--space-l); }
.related__list { display: grid; gap: var(--space-l) var(--gutter); }
@media (min-width: 62em) { .related__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } .related .card--row { grid-template-columns: 1fr; } .related .card--row .media--card { aspect-ratio: 3 / 2; } .related .card--row .card__body { padding-top: var(--space-s); } }
.post-navigation .nav-links { display: grid; gap: 0; }
.post-navigation { border-top: 1px solid var(--line); }
.post-navigation a { display: block; padding: var(--space-l) var(--gutter); text-decoration: none; color: var(--ink); transition: background-color 0.25s; }
.post-navigation a:hover { background: var(--limewash); color: var(--garnet); }
.nav-sub { display: block; font: 500 0.9rem/1.3 var(--font-ui); color: var(--muted); }
.nav-title { display: block; font: 400 var(--step-1)/1.2 var(--font-display); }
.nav-next { text-align: right; }
@media (min-width: 48em) { .post-navigation .nav-links { grid-template-columns: 1fr 1fr; } .post-navigation .nav-next { border-left: 1px solid var(--line); } }

.reading-progress { position: fixed; z-index: 59; top: var(--header-h); left: 0; right: 0; height: 3px; pointer-events: none; }
body.admin-bar .reading-progress { top: calc(var(--header-h) + 32px); }
.reading-progress span { display: block; height: 100%; background: var(--garnet); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* Comments */
.comments { padding-block: var(--space-2xl); border-top: 1px solid var(--line); }
.comments__title, .comment-reply-title { font-size: var(--step-2); }
.comment-list { list-style: none; padding: 0; margin: 0 0 var(--space-l); }
.comment-list .children { list-style: none; padding-left: var(--space-m); }
.comment-body { padding: var(--space-m) 0; border-bottom: 1px solid var(--line); }
.comment-meta { font: 400 0.92rem/1.4 var(--font-ui); color: var(--muted); }
.comment-author .avatar { border-radius: 50%; float: left; margin-right: 0.8rem; }
.comment-author .fn { font: 500 1rem/1.3 var(--font-ui); font-style: normal; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; margin-bottom: 0.25rem; }
.comment-form-cookies-consent { display: flex; gap: 0.6rem; align-items: flex-start; }
.comment-form-cookies-consent input { margin-top: 0.4rem; width: 1.1rem; height: 1.1rem; accent-color: var(--garnet); }
.comment-form-cookies-consent label { margin: 0; font-weight: 400; }
.reply a { font: 500 0.95rem/1 var(--font-ui); }

/* ==========================================================================
   13. WINE, WINERY, PRODUCT AND VIDEO DETAIL PAGES
   ========================================================================== */
.detail__hero { padding-block: var(--space-xl) var(--space-xl); }
.detail__grid { display: grid; gap: var(--space-xl) var(--space-2xl); align-items: start; }
.detail__visual { max-width: 26rem; width: 100%; }
.detail__visual .arch { outline: 1px solid var(--garnet); outline-offset: 10px; margin: 10px; width: calc(100% - 20px); }
.detail__visual--wine { background: none; }
.detail__bottle { padding: var(--space-xl) var(--space-2xl); background: var(--cellar); border-top-left-radius: 999px; border-top-right-radius: 999px; aspect-ratio: 4 / 5; display: grid; place-items: center; }
.detail__bottle .bottle { max-height: 100%; width: auto; max-width: 8rem; }
.detail__kind { display: flex; align-items: center; gap: 0.4rem; font: 500 1rem/1.3 var(--font-ui); color: var(--garnet); margin: 0 0 0.6rem; }
.detail__kind .icon { width: 1.1rem; height: 1.1rem; }
.detail__title { font-size: var(--step-5); line-height: 1; margin: 0 0 0.3em; }
.detail__sub { font: italic 400 var(--step-1)/1.3 var(--font-body); margin-bottom: var(--space-m); }
.detail__lead { font-size: var(--step-1); line-height: 1.5; color: var(--muted); max-width: 34rem; }
.detail__relation { display: inline-block; padding: 0.3rem 0.8rem; background: var(--limewash); border-left: 3px solid var(--verdigris); font: 500 0.95rem/1.3 var(--font-ui); }
.detail__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-m); margin-top: var(--space-l); }
.detail .facts { max-width: 34rem; border-bottom: 1px solid var(--line); }
.detail-block { max-width: 36rem; margin-top: var(--space-l); }
.detail-block__title { font-size: var(--step-2); margin-bottom: 0.4rem; }
.detail-block--allergen { padding: 1rem 1.2rem; background: var(--limewash); border-left: 4px solid var(--garnet); }
.detail-block--allergen .detail-block__title { font-size: var(--step-1); font-family: var(--font-ui); font-weight: 500; }
@media (min-width: 62em) { .detail__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .detail__visual { position: sticky; top: calc(var(--header-h) + 2rem); } }
.video-hero { padding-block: var(--space-xl); }
.video-hero .detail__title { max-width: 18ch; }
.video-hero__player { margin-top: var(--space-m); max-width: 60rem; }
.transcript { margin-top: var(--space-l); padding: var(--space-s) var(--space-m); background: var(--limewash); border-left: 3px solid var(--garnet); }
.transcript summary { cursor: pointer; font: 500 1rem/1.4 var(--font-ui); min-height: 44px; display: flex; align-items: center; }

/* ==========================================================================
   14. LEGAL PAGES
   ========================================================================== */
.legal { padding-bottom: var(--space-3xl); }
.legal__grid { display: grid; gap: var(--space-l) var(--space-2xl); }
.legal__toc { font: 400 0.95rem/1.4 var(--font-ui); }
.legal__toc-title { font-weight: 500; margin: 0 0 0.6rem; }
.legal__toc ol { margin: 0; padding-left: 1.2rem; }
.legal__toc li { margin-bottom: 0.35rem; }
.legal__toc a { color: var(--ink); text-decoration: none; } .legal__toc a:hover { color: var(--garnet); text-decoration: underline; }
.legal__content { min-width: 0; max-width: 48rem; }
.legal__notice { padding: 0.9rem 1.1rem; background: var(--mark); color: #3b2a00; border-left: 4px solid var(--garnet); margin-bottom: var(--space-l); font: 500 1rem/1.4 var(--font-ui); }
.legal__notice p { margin: 0; }
.legal-content { --read: 100%; font-size: 1.1rem; }
.legal-content > * { margin-inline: 0; }
.legal-content h2 { font-size: var(--step-2); scroll-margin-top: calc(var(--header-h) + 1rem); }
.legal-content .wp-block-table { margin-block: 1.5em; }
@media (min-width: 62em) {
	.legal__grid { grid-template-columns: 16rem minmax(0, 1fr); align-items: start; }
	.legal__toc { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

/* ==========================================================================
   15. FOOTER
   ========================================================================== */
.site-footer { background: var(--cellar); color: var(--cream-muted); margin-top: auto; position: relative; overflow: hidden; }
.site-footer a { color: var(--cream); text-underline-offset: 0.2em; }
.site-footer a:hover { color: var(--amber); }
.site-footer__inner { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; padding-block: var(--space-2xl) var(--space-xl); display: grid; gap: var(--space-xl) var(--space-2xl); }
.site-footer__mark::before { content: attr(data-mark); }
.site-footer__mark { white-space: nowrap; font: italic 400 clamp(4rem, 2.4rem + 7vw, 9rem)/0.9 var(--font-display); color: var(--cellar-3); margin: 0 0 var(--space-s); letter-spacing: -0.03em; user-select: none; }
.site-footer__tagline { font: italic 400 var(--step-1)/1.4 var(--font-body); color: var(--cream); max-width: 26rem; }
.site-footer__cols { display: grid; gap: var(--space-l) var(--gutter); }
.footer-col__title { font: 500 0.95rem/1.2 var(--font-ui); letter-spacing: 0.03em; color: var(--amber); margin: 0 0 var(--space-s); }
.footer-address { font-style: normal; font-size: 1.05rem; line-height: 1.5; }
.footer-address p { margin: 0 0 0.5rem; }
.footer-address__label { display: block; font: 400 0.85rem/1.2 var(--font-ui); color: var(--cream-muted); }
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu li { margin-bottom: 0.15rem; }
.footer-menu a { display: inline-block; padding: 0.3rem 0; text-decoration: none; font-size: 1.05rem; }
.footer-menu a:hover { text-decoration: underline; }
.footer-col--legal { padding: var(--space-m); border: 1px solid var(--line-light); align-self: start; }
.footer-col__cookie { margin: var(--space-s) 0 0; }
.footer-cookie-btn { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; font: 500 1rem/1.2 var(--font-ui); text-decoration: none; }
.footer-cookie-btn .icon { width: 1.2rem; height: 1.2rem; color: var(--amber); }
.text-link--light.footer-link { color: var(--amber); }
.site-footer__base { border-top: 1px solid var(--line-light); }
.site-footer__base-inner { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; padding-block: var(--space-m); display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0; font: 400 0.95rem/1.5 var(--font-ui); }
.site-footer__base p { margin: 0; }
.site-footer__base .credit::before { content: ""; display: inline-block; width: 1px; height: 0.95em; background: var(--line-light); margin-inline: 1rem; vertical-align: -0.1em; }
@media (max-width: 34em) { .site-footer__base .credit::before { display: none; } .site-footer__base .credit { flex-basis: 100%; } }
@media (min-width: 62em) {
	.site-footer__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
	.site-footer__cols { grid-template-columns: 1fr 1fr 1fr; }
}
@media (min-width: 48em) and (max-width: 61.99em) { .site-footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Local initials avatar (no Gravatar request) */
.avatar-initials { display: inline-grid; place-items: center; flex: none; border-radius: 50%; background: var(--garnet); color: var(--cream); font-family: var(--font-display); font-style: italic; line-height: 1; letter-spacing: 0; }
.comment-author .avatar-initials { float: left; margin-right: 0.8rem; }
/* ==========================================================================
   16. COOKIE CONSENT
   Accept and Reject share one class, so they are always equally prominent.
   ========================================================================== */
.consent { position: fixed; z-index: 100; left: 0; right: 0; bottom: 0; background: var(--cellar); color: var(--cream); border-top: 3px solid var(--amber); padding: var(--space-m) var(--gutter); max-height: 90vh; overflow-y: auto; }
.consent[hidden], .consent-seal[hidden] { display: none; }
.consent:focus { outline: 0; }
.consent__inner { width: min(100%, var(--container)); margin-inline: auto; display: grid; gap: var(--space-m) var(--space-xl); align-items: center; }
.consent__title { font: 400 var(--step-1)/1.15 var(--font-display); margin: 0 0 0.4rem; }
.consent__text p { margin: 0; font: 400 1rem/1.55 var(--font-ui); color: var(--cream-muted); max-width: 46rem; }
.consent__text a { color: var(--amber); }
.consent__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.btn--consent { flex: 1 1 0; min-width: 12.5rem; background: var(--amber); border-color: var(--amber); color: var(--cellar); font-weight: 500; }
.btn--consent:hover { background: var(--cream); border-color: var(--cream); color: var(--cellar); }
.consent__settings { flex: 1 1 100%; min-height: 44px; background: none; border: 0; color: var(--cream); font: 500 1rem/1 var(--font-ui); text-decoration: underline; text-underline-offset: 0.25em; cursor: pointer; padding: 0.5rem; }
.consent__settings:hover { color: var(--amber); }
@media (min-width: 62em) {
	.consent__inner { grid-template-columns: minmax(0, 1fr) auto; }
	.consent__actions { flex-wrap: nowrap; }
	.btn--consent { flex: 0 0 15rem; min-width: 0; white-space: nowrap; }
	.consent__settings { flex: 0 0 auto; }
}

.consent-dialog { width: min(42rem, calc(100% - 1.5rem)); max-height: calc(100% - 1.5rem); padding: 0; border: 0; background: var(--limewash); color: var(--ink); overflow: auto; --focus: var(--garnet); border-top: 4px solid var(--garnet); }
.consent-dialog::backdrop { background: rgba(29, 20, 24, 0.78); }
.consent-dialog:not([open]) { display: none; }
.consent-dialog__panel { padding: clamp(1.2rem, 4vw, 2rem); }
.consent-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.consent-dialog__head h2 { font-size: var(--step-3); margin: 0 0 0.6rem; }
.icon-btn { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; background: transparent; border: 1.5px solid var(--ink); border-radius: 50%; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--ink); color: var(--cream); }
.consent-dialog__intro { color: var(--muted); font-size: 1.05rem; }
.consent-cat { padding: var(--space-m) 0; border-top: 1px solid var(--line); }
.consent-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.3rem; }
.consent-cat__head h3 { font: 400 var(--step-1)/1.2 var(--font-display); margin: 0; }
.consent-cat p { font-size: 1rem; margin: 0 0 0.6rem; color: var(--muted); }
.consent-cat__locked { font: 500 0.9rem/1 var(--font-ui); color: var(--verdigris); padding: 0.35rem 0.7rem; border: 1px solid var(--verdigris); border-radius: 999px; white-space: nowrap; }
.consent-cat__items { margin: 0.4rem 0 0; padding: 0.7rem 0.9rem; background: var(--plaster); font: 400 0.92rem/1.5 var(--font-ui); }
.consent-cat__items > div + div { margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px dotted var(--line); }
.consent-cat__items dt { font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.consent-cat__items dd { margin: 0.1rem 0 0; color: var(--muted); }
.consent-cat__none { font: italic 400 0.92rem/1.4 var(--font-ui) !important; }
.consent-dialog__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; padding-top: var(--space-m); border-top: 1px solid var(--line); }
.consent-dialog__actions .btn--consent { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.consent-dialog__actions .btn--consent:hover { background: var(--garnet); border-color: var(--garnet); color: var(--cream); }
.consent-dialog__foot { margin: var(--space-s) 0 0; font: 400 0.95rem/1.4 var(--font-ui); }

.switch { position: relative; display: inline-flex; align-items: center; gap: 0.6rem; cursor: pointer; min-height: 44px; }
.switch input { position: absolute; inset: 0 auto 0 0; width: 52px; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.switch__track { position: relative; flex: none; width: 52px; height: 30px; border-radius: 999px; background: var(--limewash); border: 2px solid var(--muted); transition: background-color 0.2s, border-color 0.2s; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); transition: transform 0.25s var(--ease), background-color 0.2s; }
.switch input:checked + .switch__track { background: var(--verdigris); border-color: var(--verdigris); }
.switch input:checked + .switch__track::after { transform: translateX(22px); background: var(--limewash); }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--focus); outline-offset: 3px; }
.switch__text { font: 500 0.95rem/1 var(--font-ui); min-width: 2rem; }

.consent-seal { position: fixed; z-index: 90; left: 0.9rem; bottom: 0.9rem; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; background: var(--garnet); color: var(--cream); border: 2px solid var(--limewash); border-radius: 50%; cursor: pointer; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25); transition: transform 0.25s var(--ease), background-color 0.2s; }
.consent-seal:hover { background: var(--garnet-deep); transform: scale(1.06); }
.consent-seal .icon { width: 1.4rem; height: 1.4rem; }
@media (max-width: 47.99em) { .consent-seal { display: none; } }   /* the footer button is always available on small screens */

/* ==========================================================================
   17. CONSENT-GATED EMBEDS
   ========================================================================== */
.cav-embed-gate { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; min-height: 16.5rem; padding: var(--space-s) var(--space-m); text-align: center; color: var(--cream); background: var(--cellar) var(--gate-poster, none) center / cover no-repeat; isolation: isolate; overflow: hidden; }
.cav-embed-gate::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(90% 90% at 50% 40%, rgba(61, 43, 52, 0.85), var(--cellar)); }
.cav-embed-gate.has-poster::before { background: linear-gradient(180deg, rgba(29, 20, 24, 0.6), rgba(29, 20, 24, 0.92)); }
.cav-embed-gate__inner { max-width: 32rem; }
.cav-embed-gate__title { font: 400 var(--step-1)/1.2 var(--font-display); margin: 0 0 0.4rem; color: var(--cream); }
.cav-embed-gate__text { font: 400 0.95rem/1.5 var(--font-ui); color: var(--cream-muted); margin: 0 0 var(--space-s); }
.cav-embed-gate__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 0.6rem; }
.cav-embed-gate .btn--small { background: var(--amber); border-color: var(--amber); color: var(--cellar); }
.cav-embed-gate .btn--small:hover { background: var(--cream); border-color: var(--cream); }
.cav-embed-gate .btn--ghost { background: transparent; color: var(--cream); border-color: var(--cream-muted); }
.cav-embed-gate .btn--ghost:hover { background: var(--cream); color: var(--cellar); }
.cav-embed-gate__link { color: var(--amber); font: 400 0.92rem/1.4 var(--font-ui); }
.cav-embed-gate.is-loading { cursor: progress; }
.cav-embed-gate.is-loading .cav-embed-gate__inner::after { content: ""; display: block; width: 1.6rem; height: 1.6rem; margin: 0.8rem auto 0; border: 3px solid var(--line-light); border-top-color: var(--amber); border-radius: 50%; animation: spin 0.8s linear infinite; }
.embed-loaded iframe { animation: fade-in 0.5s ease both; }
@media (max-width: 30em) { .cav-embed-gate { min-height: 18rem; } .cav-embed-gate__text { font-size: 0.88rem; } }

/* ==========================================================================
   18. PHOTO VIEWER
   ========================================================================== */
.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--cream); }
.lightbox:not([open]) { display: none; }
.lightbox::backdrop { background: rgba(20, 13, 16, 0.95); }
.lightbox__stage { position: relative; display: grid; grid-template-rows: 1fr auto; height: 100%; padding: 3.6rem 1rem 1rem; }
.lightbox__figure { display: flex; align-items: center; justify-content: center; min-height: 0; }
.lightbox__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox.is-loading .lightbox__img { opacity: 0.25; }
.lightbox__cap { text-align: center; padding: var(--space-s) 3rem 0; font: 400 1rem/1.5 var(--font-ui); color: var(--cream); min-height: 3.4rem; }
.lightbox__count { display: block; color: var(--cream-muted); font-size: 0.88rem; margin-top: 0.2rem; }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; background: var(--cellar-2); color: var(--cream); border: 1.5px solid var(--line-light); border-radius: 50%; cursor: pointer; }
.lightbox__btn:hover { background: var(--amber); color: var(--cellar); border-color: var(--amber); }
.lightbox__btn[hidden] { display: none; }
.lightbox__close { top: 0.75rem; right: 0.75rem; }
.lightbox__prev { left: 0.6rem; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 0.6rem; top: 50%; translate: 0 -50%; }

/* ==========================================================================
   19. MOTION
   One orchestrated opening on the homepage, a gentle reveal on a few images,
   and everything switched off for people who ask for less motion.
   ========================================================================== */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes reveal-failsafe { to { opacity: 1; transform: none; clip-path: inset(0); } }
@media (prefers-reduced-motion: no-preference) {
	.js .reveal { opacity: 0; transform: translateY(0.9rem); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); animation: reveal-failsafe 0.01s 3s forwards; }
	.js .reveal.is-visible { opacity: 1; transform: none; }
	.js .reveal-media { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease); animation: reveal-failsafe 0.01s 3s forwards; }
	.js .reveal-media.is-visible { clip-path: inset(0); }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
	.hero__arch { clip-path: none; }
	.hero__label { transform: rotate(-3deg); opacity: 1; }
}

/* ==========================================================================
   20. ACCESSIBILITY PREFERENCES AND PRINT
   ========================================================================== */
@media (forced-colors: active) {
	.btn, .chip, .label-card, .wine-card, .feature__card, .consent { border: 1px solid CanvasText; }
	.switch__track { forced-color-adjust: none; border-color: ButtonText; }
	.hero__title .w > span { animation: none; }
}
@media (max-width: 30em) { html { font-size: 100%; } }
@media print {
	.site-header, .site-footer, .consent, .consent-seal, .reading-progress, .nav-toggle, .site-search, .post-navigation, .related, .comments, .story-cta, .cav-embed-gate__actions { display: none !important; }
	body { background: #fff; color: #000; font-size: 11.5pt; }
	a { color: #000; text-decoration: underline; }
	.entry-content a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
	.hero, .cellar, .visit { background: #fff; color: #000; }
}

/* Placeholder frame kept off-screen while a player loads */
.cav-embed-gate__frame { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.embed-loaded, .embed-loaded__inner { width: 100%; }
.embed-loaded iframe { width: 100%; }
