/* ==========================================================================
   Coteau — old-world wine estate. Aged parchment + deep bordeaux + antique
   gold leaf, set in an editorial serif system (Cormorant Garamond display,
   EB Garamond body). Long-form, magazine-style layout — deliberately NOT the
   hero-plus-card-grid template. Three signatures: a real Three.js wine glass
   that fills as you scroll, a scroll-drawn SVG terroir cross-section, and an
   interactive vintage timeline.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

:root {
	--parchment:      oklch(94.5% 0.018 88);
	--parchment-deep: oklch(90% 0.024 82);
	--parchment-warm: oklch(92% 0.03 74);

	--ink:      oklch(25% 0.03 42);
	--ink-soft: oklch(41% 0.032 40);
	--ink-dim:  oklch(52% 0.03 42);

	--bordeaux:      oklch(37% 0.135 20);
	--bordeaux-deep: oklch(28% 0.11 22);
	--bordeaux-bright: oklch(46% 0.16 22);

	--cellar:      oklch(20% 0.045 30);
	--cellar-deep: oklch(15% 0.035 30);
	--oak:         oklch(52% 0.075 58);

	--gold:      oklch(72% 0.10 84);
	--gold-deep: oklch(58% 0.09 82);

	--paper-on-dark:     oklch(92% 0.02 84);
	--paper-on-dark-dim: oklch(74% 0.03 80);
	--line:         oklch(25% 0.03 42 / .18);
	--line-strong:  oklch(25% 0.03 42 / .34);
	--line-gold:    oklch(58% 0.09 82 / .55);
	--line-on-dark: oklch(92% 0.02 84 / .18);

	--display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
	--body-f:  'EB Garamond', Georgia, 'Times New Roman', serif;

	--fs-xs: .82rem;
	--fs-sm: .95rem;
	--fs-base: 1.2rem;
	--fs-md: 1.42rem;
	--fs-lg: 1.9rem;
	--fs-xl: 2.6rem;
	--fs-2xl: clamp(3rem, 6vw, 5rem);
	--fs-3xl: clamp(4rem, 11vw, 10rem);

	--radius: 3px;
	--lw: 1px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--ease-inout: cubic-bezier(.62, .04, .3, .98);
	--container: 1280px;
	--measure: 66ch;
	--gutter: clamp(22px, 5vw, 88px);
	--header-h: 76px;

	--sp-1: 8px; --sp-2: 14px; --sp-3: 24px; --sp-4: 40px;
	--sp-5: 68px; --sp-6: 104px; --sp-7: 160px;
}

html, body { background: var(--parchment); color: var(--ink); }
body {
	margin: 0;
	font-family: var(--body-f);
	font-size: var(--fs-base);
	line-height: 1.62;
	font-feature-settings: "liga" 1, "onum" 1, "kern" 1;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.02; margin: 0; letter-spacing: -0.005em; }
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
p { margin: 0 0 1.1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--bordeaux); color: var(--parchment); }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: 1600px; }
.container--text { max-width: 74ch; margin-inline: auto; padding-inline: var(--gutter); }

/* Skip link + a11y */
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: var(--sp-3); top: var(--sp-3); z-index: 999; background: var(--ink); color: var(--parchment); padding: 10px 16px; border-radius: var(--radius); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

/* Editorial labels — letterspaced small caps */
.kicker {
	font-family: var(--body-f);
	font-size: var(--fs-xs); font-weight: 500;
	letter-spacing: .28em; text-transform: uppercase;
	color: var(--bordeaux);
	display: inline-flex; align-items: center; gap: .8em;
}
.kicker::before { content: ''; width: 34px; height: 1px; background: var(--gold-deep); }
.on-dark .kicker { color: var(--gold); }
.on-dark .kicker::before { background: var(--gold); }

/* Links — underline draws in */
.link-underline { position: relative; display: inline-block; }
.link-underline::after {
	content: ''; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px;
	background: currentColor; transform: scaleX(0); transform-origin: right;
	transition: transform .5s var(--ease);
}
.link-underline:hover::after { transform: scaleX(1); transform-origin: left; }

/* Buttons — thin ruled, letterspaced, elegant */
.btn {
	display: inline-flex; align-items: center; gap: .7em;
	font-family: var(--body-f); font-size: var(--fs-sm);
	letter-spacing: .16em; text-transform: uppercase;
	padding: 14px 30px; border: 1px solid var(--ink); border-radius: 999px;
	color: var(--ink); background: transparent; cursor: pointer;
	transition: background .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--parchment); }
.btn--solid { background: var(--bordeaux); border-color: var(--bordeaux); color: var(--parchment); }
.btn--solid:hover { background: var(--bordeaux-deep); border-color: var(--bordeaux-deep); }
.on-dark .btn { border-color: var(--paper-on-dark); color: var(--paper-on-dark); }
.on-dark .btn:hover { background: var(--gold); border-color: var(--gold); color: var(--cellar-deep); }
.on-dark .btn--solid { background: var(--gold); border-color: var(--gold); color: var(--cellar-deep); }

/* ==========================================================================
   Header — editorial, centered wordmark, gold hairline
   ========================================================================== */
.site-header {
	position: absolute; top: 0; left: 0; right: 0; z-index: 200;
	padding-top: var(--sp-3);
}
.site-header.is-fixed {
	position: fixed; background: color-mix(in oklch, var(--parchment) 92%, transparent);
	backdrop-filter: blur(8px); padding-block: 12px; border-bottom: 1px solid var(--line);
	animation: cot-drop .5s var(--ease);
}
@keyframes cot-drop { from { transform: translateY(-100%); } to { transform: none; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.brand { display: inline-flex; align-items: baseline; gap: .5em; }
.brand__name { font-family: var(--display); font-size: 1.7rem; font-weight: 600; letter-spacing: .02em; color: var(--ink); }
.brand__mark { width: 30px; height: 30px; flex-shrink: 0; }
.is-cover .site-header:not(.is-fixed) .brand__name,
.is-cover .site-header:not(.is-fixed) .primary-nav__list > li > a { color: var(--paper-on-dark); }
.is-cover .site-header:not(.is-fixed) .brand__mark { color: var(--gold); }

.primary-nav__list { display: flex; align-items: center; gap: var(--sp-4); list-style: none; margin: 0; padding: 0; }
.primary-nav__list > li > a {
	font-family: var(--body-f); font-size: var(--fs-sm);
	letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft);
	position: relative; transition: color .3s var(--ease);
}
.primary-nav__list > li > a::after {
	content: ''; position: absolute; left: 0; bottom: -5px; width: 100%; height: 1px;
	background: var(--gold-deep); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.primary-nav__list > li > a:hover { color: var(--bordeaux); }
.primary-nav__list > li > a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-cta { font-size: var(--fs-sm); }

.nav-mobile-cta { display: none; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: inherit; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: currentColor; margin: 6px 0; transition: transform .3s, opacity .3s; }
.is-cover .site-header:not(.is-fixed) .nav-toggle { color: var(--paper-on-dark); }

@media (max-width: 940px) {
	.primary-nav { position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); background: var(--cellar); color: var(--paper-on-dark);
		transform: translateX(100%); transition: transform .5s var(--ease-inout); z-index: 300; padding: var(--sp-6) var(--sp-4);
		display: flex; flex-direction: column; }
	.primary-nav.is-open { transform: none; }
	.primary-nav__list { flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
	.primary-nav__list > li > a { color: var(--paper-on-dark); font-size: var(--fs-md); letter-spacing: .1em; }
	.nav-mobile-cta { display: inline-flex; margin-top: var(--sp-3); }
	.header-actions .header-cta { display: none; }
	.nav-toggle { display: block; }
	.nav-scrim { position: fixed; inset: 0; background: oklch(15% 0.03 30 / .5); z-index: 250; opacity: 0; pointer-events: none; transition: opacity .4s; }
	.nav-scrim.is-open { opacity: 1; pointer-events: auto; }
}

/* ==========================================================================
   Cover — full-bleed, wine-glass canvas, big display serif
   ========================================================================== */
.cover {
	position: relative; min-height: 100svh; display: flex; align-items: flex-end;
	background: var(--cellar-deep); color: var(--paper-on-dark); overflow: hidden;
	padding-bottom: var(--sp-6);
}
.cover__bg { position: absolute; inset: 0; z-index: 0; }
.cover__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.cover__bg::after { content: ''; position: absolute; inset: 0;
	background: linear-gradient(180deg, oklch(15% 0.035 30 / .5) 0%, transparent 30%, oklch(13% 0.03 28 / .82) 100%); }
.cover__glass { position: absolute; top: 0; right: 0; width: 46%; height: 100%; z-index: 1; }
.cover__glass canvas { width: 100%; height: 100%; display: block; }
.cover .container { position: relative; z-index: 2; width: 100%; }
.cover__region { font-family: var(--body-f); letter-spacing: .26em; text-transform: uppercase; font-size: var(--fs-sm); color: var(--gold); margin-bottom: var(--sp-3); }
.cover__title { font-size: var(--fs-3xl); font-weight: 500; line-height: .92; letter-spacing: -0.01em; max-width: 12ch; }
.cover__title em { font-style: italic; color: var(--gold); }
.cover__line { font-size: var(--fs-md); font-style: italic; color: var(--paper-on-dark-dim); max-width: 34ch; margin-top: var(--sp-3); }
.cover__cta { margin-top: var(--sp-4); display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.cover__scroll { position: absolute; bottom: var(--sp-3); left: 50%; transform: translateX(-50%); z-index: 2; font-size: var(--fs-xs); letter-spacing: .24em; text-transform: uppercase; color: var(--paper-on-dark-dim); }
.cover__scroll::after { content: ''; display: block; width: 1px; height: 42px; margin: 10px auto 0; background: linear-gradient(var(--gold), transparent); }
@media (max-width: 860px) {
	.cover__glass { width: 100%; opacity: .5; }
	.cover__title { font-size: clamp(3.4rem, 17vw, 6rem); }
}

/* ==========================================================================
   Estate manifesto — long-form editorial, drop cap, pull quote, figures
   ========================================================================== */
.section { padding-block: var(--sp-7); position: relative; }
@media (max-width: 780px) { .section { padding-block: var(--sp-6); } }
.section--tight { padding-block: var(--sp-6); }

.manifesto { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }
.manifesto__lead { max-width: 30ch; font-family: var(--display); font-size: var(--fs-xl); font-weight: 500; line-height: 1.08; }
.manifesto__lead em { font-style: italic; color: var(--bordeaux); }
.prose { max-width: var(--measure); font-size: var(--fs-md); line-height: 1.66; color: var(--ink-soft); columns: 1; }
.prose p + p { margin-top: 0; }
.prose--drop > p:first-of-type::first-letter {
	font-family: var(--display); font-weight: 600; float: left;
	font-size: 5.4em; line-height: .74; padding: .06em .1em 0 0; color: var(--bordeaux);
}
.pull-quote {
	font-family: var(--display); font-style: italic; font-size: var(--fs-xl); line-height: 1.14;
	color: var(--bordeaux); max-width: 20ch; margin: var(--sp-4) 0;
	padding-left: var(--sp-3); border-left: 2px solid var(--gold-deep);
}
.figures {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4);
	margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--line-gold);
}
.figure__num { font-family: var(--display); font-size: var(--fs-xl); font-weight: 500; color: var(--bordeaux); line-height: 1; }
.figure__lab { font-family: var(--body-f); font-size: var(--fs-sm); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dim); margin-top: .6em; }
@media (max-width: 720px) { .figures { grid-template-columns: 1fr 1fr; gap: var(--sp-3); } }

/* Section heads for editorial sections */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-5); }
.section-head h2 { font-size: var(--fs-2xl); max-width: 16ch; }
.section-head__aside { max-width: 34ch; font-size: var(--fs-md); color: var(--ink-soft); font-style: italic; }

/* ==========================================================================
   Terroir cross-section (signature #2) — dark, scroll-drawn SVG
   ========================================================================== */
.terroir { background: var(--cellar); color: var(--paper-on-dark); }
.terroir__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--sp-5); align-items: center; }
.terroir__intro h2 { color: var(--paper-on-dark); }
.terroir__intro .prose { color: var(--paper-on-dark-dim); }
.terroir__strata { font-family: var(--body-f); margin-top: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); }
.terroir__stratum { display: flex; gap: var(--sp-2); align-items: baseline; opacity: .4; transition: opacity .5s var(--ease); }
.terroir__stratum.is-lit { opacity: 1; }
.terroir__stratum .depth { font-family: var(--display); font-size: var(--fs-md); color: var(--gold); min-width: 3.4em; }
.terroir__stratum .desc strong { display: block; letter-spacing: .12em; text-transform: uppercase; font-size: var(--fs-xs); }
.terroir__stratum .desc span { font-size: var(--fs-sm); color: var(--paper-on-dark-dim); font-style: italic; }
.terroir__figure svg { width: 100%; height: auto; display: block; }
.cross .soil-band { transition: opacity .6s var(--ease); }
.cross .root-path { fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; }
.cross .band-label { font-family: 'EB Garamond', serif; fill: var(--paper-on-dark-dim); font-size: 12px; letter-spacing: .08em; }
@media (max-width: 860px) { .terroir__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   The cellar — cuvées as alternating full-width editorial spreads
   ========================================================================== */
.cuvee-spread { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); align-items: center; margin-bottom: var(--sp-7); }
.cuvee-spread:last-child { margin-bottom: 0; }
.cuvee-spread--flip .cuvee-spread__media { order: 2; }
.cuvee-spread__media { position: relative; }
.cuvee-spread__media .frame { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 3/4; background: var(--parchment-deep); }
.cuvee-spread__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.cuvee-spread:hover .cuvee-spread__media img { transform: scale(1.045); }
.cuvee-spread__no { position: absolute; top: -.3em; left: -.1em; font-family: var(--display); font-size: clamp(5rem, 12vw, 11rem); font-weight: 500; color: var(--bordeaux); opacity: .1; line-height: 1; pointer-events: none; }
.cuvee-spread--flip .cuvee-spread__no { left: auto; right: -.1em; }
.cuvee-spread__body { max-width: 42ch; }
.cuvee-spread__range { font-family: var(--body-f); letter-spacing: .2em; text-transform: uppercase; font-size: var(--fs-xs); color: var(--oak); }
.cuvee-spread__title { font-size: var(--fs-2xl); margin: .1em 0 .2em; }
.cuvee-spread__title a { transition: color .4s var(--ease); }
.cuvee-spread__title a:hover { color: var(--bordeaux); }
.cuvee-spread__vintage { font-family: var(--display); font-style: italic; font-size: var(--fs-lg); color: var(--gold-deep); }
.cuvee-spread__desc { font-size: var(--fs-md); color: var(--ink-soft); margin: var(--sp-2) 0 var(--sp-3); }
.cuvee-spec { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2) var(--sp-3); border-top: 1px solid var(--line); padding-top: var(--sp-3); margin-bottom: var(--sp-3); }
.cuvee-spec div { font-size: var(--fs-sm); }
.cuvee-spec dt { font-family: var(--body-f); letter-spacing: .12em; text-transform: uppercase; font-size: var(--fs-xs); color: var(--ink-dim); margin-bottom: 1px; }
.cuvee-spec dd { margin: 0; font-family: var(--display); font-size: var(--fs-md); }
@media (max-width: 860px) {
	.cuvee-spread { grid-template-columns: 1fr; gap: var(--sp-3); margin-bottom: var(--sp-6); }
	.cuvee-spread--flip .cuvee-spread__media { order: 0; }
}

/* ==========================================================================
   Vintage timeline (signature #3) — interactive scrubbed row
   ========================================================================== */
.vintages { background: var(--parchment-warm); }
.vintage-rail { position: relative; margin-top: var(--sp-4); border-top: 1px solid var(--line-gold); }
.vintage-track { display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.vintage-track::-webkit-scrollbar { display: none; }
.vintage {
	scroll-snap-align: start; flex: 0 0 clamp(220px, 26vw, 320px);
	padding: var(--sp-4) var(--sp-3) var(--sp-3); border-right: 1px solid var(--line);
	cursor: default; transition: background .5s var(--ease);
}
.vintage:hover { background: color-mix(in oklch, var(--bordeaux) 6%, transparent); }
.vintage__year { font-family: var(--display); font-size: var(--fs-2xl); font-weight: 500; line-height: 1; color: var(--bordeaux); }
.vintage__mark { display: inline-block; margin-top: var(--sp-2); font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--parchment); background: var(--oak); padding: 3px 10px; border-radius: 999px; }
.vintage__mark--exceptional { background: var(--bordeaux); }
.vintage__note { margin-top: var(--sp-2); font-size: var(--fs-sm); color: var(--ink-soft); font-style: italic; line-height: 1.5; }

/* ==========================================================================
   Season of the vine — annual cycle band
   ========================================================================== */
.seasons { background: var(--cellar-deep); color: var(--paper-on-dark); }
.season-ring { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); margin-top: var(--sp-5); }
.season { border-top: 1px solid var(--line-on-dark); padding-top: var(--sp-3); }
.season__mo { font-family: var(--body-f); letter-spacing: .18em; text-transform: uppercase; font-size: var(--fs-xs); color: var(--gold); }
.season__name { font-family: var(--display); font-size: var(--fs-lg); margin: .2em 0 .3em; color: var(--paper-on-dark); }
.season__desc { font-size: var(--fs-sm); color: var(--paper-on-dark-dim); font-style: italic; }
@media (max-width: 780px) { .season-ring { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   Visit / CTA
   ========================================================================== */
.visit { position: relative; overflow: hidden; }
.visit__bg { position: absolute; inset: 0; z-index: 0; }
.visit__bg img { width: 100%; height: 100%; object-fit: cover; }
.visit__bg::after { content: ''; position: absolute; inset: 0; background: oklch(16% 0.03 28 / .72); }
.visit .container { position: relative; z-index: 1; text-align: center; }
.visit h2 { font-size: var(--fs-2xl); max-width: 20ch; margin: 0 auto var(--sp-3); }
.visit .prose { margin-inline: auto; text-align: center; }
.visit__cta { margin-top: var(--sp-4); display: flex; gap: var(--sp-2); justify-content: center; flex-wrap: wrap; }

/* Press notes strip */
.press { border-top: 1px solid var(--line); }
.press-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.press blockquote { margin: 0; font-family: var(--display); font-style: italic; font-size: var(--fs-lg); line-height: 1.24; color: var(--ink); }
.press cite { display: block; margin-top: var(--sp-2); font-family: var(--body-f); font-style: normal; letter-spacing: .12em; text-transform: uppercase; font-size: var(--fs-xs); color: var(--oak); }
@media (max-width: 780px) { .press-row { grid-template-columns: 1fr; gap: var(--sp-4); } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--cellar-deep); color: var(--paper-on-dark-dim); padding-block: var(--sp-6) var(--sp-4); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--sp-4); padding-bottom: var(--sp-4); border-bottom: 1px solid var(--line-on-dark); }
.footer-brand__name { font-family: var(--display); font-size: 1.7rem; color: var(--paper-on-dark); }
.footer-brand p { max-width: 34ch; margin-top: var(--sp-2); font-style: italic; }
.footer-col h4 { font-family: var(--body-f); font-size: var(--fs-xs); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 0 0 var(--sp-2); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5em; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-2); padding-top: var(--sp-3); font-size: var(--fs-sm); }
@media (max-width: 780px) { .footer-top { grid-template-columns: 1fr; gap: var(--sp-3); } }

/* ==========================================================================
   Enquiry dialog
   ========================================================================== */
.inquiry-dialog { border: none; padding: 0; background: transparent; max-width: 560px; width: 92vw; }
.inquiry-dialog::backdrop { background: oklch(15% 0.03 30 / .6); backdrop-filter: blur(3px); }
.inquiry-dialog__panel { background: var(--parchment); border: 1px solid var(--line-gold); border-radius: var(--radius); padding: var(--sp-4); }
.inquiry-dialog h3 { font-size: var(--fs-xl); }
.inquiry-dialog .field { display: flex; flex-direction: column; gap: 4px; margin-bottom: var(--sp-2); }
.inquiry-dialog label { font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim); }
.inquiry-dialog input, .inquiry-dialog textarea {
	font-family: var(--body-f); font-size: var(--fs-base); padding: 10px 12px;
	background: var(--parchment-deep); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink);
}
.inquiry-dialog input:focus, .inquiry-dialog textarea:focus { outline: none; border-color: var(--gold-deep); }
.field--hp { position: absolute; left: -9999px; }
.form-actions { display: flex; gap: var(--sp-2); align-items: center; margin-top: var(--sp-3); }
.form-msg { font-size: var(--fs-sm); font-style: italic; }
.form-msg--ok { color: var(--oak); }
.form-msg--err { color: var(--bordeaux); }
.dialog-close { margin-left: auto; background: none; border: none; cursor: pointer; font-size: 1.6rem; color: var(--ink-dim); line-height: 1; }

/* ==========================================================================
   Inner templates
   ========================================================================== */
.page-hero { background: var(--cellar); color: var(--paper-on-dark); padding-top: calc(var(--header-h) + var(--sp-5)); padding-bottom: var(--sp-5); }
.page-hero h1 { font-size: var(--fs-2xl); max-width: 20ch; }
.page-hero .lede { font-size: var(--fs-md); font-style: italic; color: var(--paper-on-dark-dim); max-width: 52ch; margin-top: var(--sp-2); }
.cuvee-index { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--sp-5) var(--sp-4); }
.cuvee-card__frame { overflow: hidden; border-radius: var(--radius); aspect-ratio: 3/4; background: var(--parchment-deep); margin-bottom: var(--sp-2); }
.cuvee-card__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.cuvee-card:hover .cuvee-card__frame img { transform: scale(1.05); }
.cuvee-card h3 { font-size: var(--fs-lg); }
.cuvee-card__meta { font-family: var(--body-f); font-style: italic; color: var(--ink-dim); font-size: var(--fs-sm); }

.single-cuvee { padding-top: calc(var(--header-h) + var(--sp-5)); }
.single-cuvee__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--sp-5); align-items: start; }
.single-cuvee__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; background: var(--parchment-deep); position: sticky; top: calc(var(--header-h) + var(--sp-3)); }
.single-cuvee__media img { width: 100%; height: 100%; object-fit: cover; }
.single-cuvee .prose { margin-top: var(--sp-3); }
.spec-table { border-top: 1px solid var(--line-gold); margin-top: var(--sp-4); }
.spec-table__row { display: flex; justify-content: space-between; gap: var(--sp-3); padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec-table__row dt { font-family: var(--body-f); letter-spacing: .14em; text-transform: uppercase; font-size: var(--fs-xs); color: var(--ink-dim); }
.spec-table__row dd { margin: 0; font-family: var(--display); font-size: var(--fs-md); }
@media (max-width: 860px) { .single-cuvee__grid { grid-template-columns: 1fr; } .single-cuvee__media { position: static; } }

.page-content { max-width: 74ch; margin-inline: auto; padding-block: var(--sp-6); }
.page-content h1 { font-size: var(--fs-2xl); margin-bottom: var(--sp-3); }
.post-list { display: flex; flex-direction: column; gap: var(--sp-4); }
.post-list__item { border-bottom: 1px solid var(--line); padding-bottom: var(--sp-4); }
.post-list__item h2 { font-size: var(--fs-xl); }
.error-404 { text-align: center; padding-block: var(--sp-7); }
.error-404 .big { font-family: var(--display); font-size: clamp(6rem, 20vw, 14rem); color: var(--bordeaux); line-height: .8; }

.searchform { display: flex; gap: var(--sp-2); }
.searchform input[type="search"] { flex: 1; font-family: var(--body-f); font-size: var(--fs-base); padding: 12px 16px; background: var(--parchment-deep); border: 1px solid var(--line); border-radius: 999px; }
.comments-area { max-width: 74ch; margin: var(--sp-5) auto 0; padding-top: var(--sp-4); border-top: 1px solid var(--line); }

/* ==========================================================================
   Reveal — directional editorial entrances (assigned by JS from position)
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal--left  { transform: translateX(-60px); }
.reveal--right { transform: translateX(60px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform 1s var(--ease); }
@media (prefers-reduced-motion: reduce) {
	.reveal, .reveal--left, .reveal--right { opacity: 1 !important; transform: none !important; }
}
#main { overflow-x: clip; }
