/**
 * LHR redesign — base.css (chrome agent).
 * Shared tokens + primitives per research/notes/redesign-2026-07-contract.md §1/§4.
 *
 * Loads AFTER every legacy stylesheet and the dynamic-CSS block (see
 * includes/redesign-assets.php). Direction: classic editorial luxury —
 * warm ivory, hairline rules, Playfair Display, muted gold, letterspaced
 * small caps. Radius 0 everywhere.
 *
 * Other agents: USE these classes; do not redefine them outside base.css.
 */

/* ------------------------------------------------------------------
 * 1. Tokens
 * ---------------------------------------------------------------- */

:root {
	--lhr-cream: #f7f4ee;
	--lhr-card: #ffffff;
	--lhr-panel: #f1ede4;
	--lhr-ink: #22201c;
	--lhr-ink-soft: #6e675c;
	--lhr-ink-faint: #98917f;
	--lhr-gold: #a9885a;
	--lhr-gold-deep: #8d6f44;
	--lhr-gold-soft: #cbb48d;
	--lhr-dark: #191713;
	--lhr-hairline: #e5dfd2;
	--lhr-shadow: 0 18px 50px rgba(34, 32, 28, 0.1);

	--lhr-font-serif: 'Playfair Display', 'Meridian Serif Fallback', Georgia, 'Times New Roman', serif;
	--lhr-font-sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

	/* Signature small-caps label recipe (nav, eyebrows, buttons, meta). */
	--lhr-caps-size: 11px;
	--lhr-caps-track: 0.16em;

	--lhr-container: 1280px;
	--lhr-gutter: clamp(20px, 4vw, 40px);
	--lhr-section: clamp(56px, 7vw, 96px);
	--lhr-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ------------------------------------------------------------------
 * 2. Legacy token remap — every .m-* component inherits the new palette.
 *    body scope beats the :root dynamic-CSS declarations.
 * ---------------------------------------------------------------- */

body.lhr-redesign {
	--m-ink: var(--lhr-ink);
	--m-ink-soft: var(--lhr-ink-soft);
	--m-paper: var(--lhr-card);
	--m-paper-warm: var(--lhr-cream);
	--m-hairline: var(--lhr-hairline);
	--m-stone: var(--lhr-panel);
	--m-accent: var(--lhr-gold);
	--m-cta: var(--lhr-gold);
	--m-rating: var(--lhr-gold);
	--m-badge: var(--lhr-gold);
	--m-gold: var(--lhr-gold);
	--m-muted: var(--lhr-ink-soft);
	--m-faint: var(--lhr-ink-faint);
	--m-line-form: var(--lhr-hairline);
	--m-sage-tint: var(--lhr-panel);
	--m-field-bg: var(--lhr-card);
	--m-card-surface: var(--lhr-card);
	--m-font-heading: var(--lhr-font-serif);
	--m-font-body: var(--lhr-font-sans);
	--m-font-ui: var(--lhr-font-sans);
	--m-font-serif: var(--lhr-font-serif);
	--m-fs-body: 16px;
	--m-lh-body: 1.7;
	--m-lh-heading: 1.12;
	--m-container: 1280px;
	--m-gutter: var(--lhr-gutter);
	/* Sharp editorial geometry — kill every legacy pill. */
	--m-radius-pill: 0;
	--m-radius-btn: 0;
}

/* ------------------------------------------------------------------
 * 3. Page canvas + base typography
 * ---------------------------------------------------------------- */

body.lhr-redesign {
	background-color: var(--lhr-cream);
	color: var(--lhr-ink-soft);
	font-family: var(--lhr-font-sans);
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

.lhr-redesign ::selection {
	background: var(--lhr-gold-soft);
	color: var(--lhr-ink);
}

.lhr-redesign .m-site-content {
	background: transparent;
}

.lhr-redesign h1,
.lhr-redesign h2,
.lhr-redesign h3,
.lhr-redesign h4,
.lhr-redesign h5,
.lhr-redesign h6 {
	font-family: var(--lhr-font-serif);
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: -0.01em;
	color: var(--lhr-ink);
	text-transform: none;
}

.lhr-redesign h1 {
	font-size: clamp(2.75rem, 5vw, 4.25rem); /* 44 → 68 */
	line-height: 1.08;
}

.lhr-redesign h2 {
	font-size: clamp(1.75rem, 2.4vw, 2rem); /* 28 → 32 */
}

.lhr-redesign h3 {
	font-size: 1.375rem; /* 22 */
}

.lhr-redesign a {
	color: inherit;
	text-decoration-color: var(--lhr-gold-soft);
	transition: color 200ms var(--lhr-ease);
}

.lhr-redesign a:hover {
	color: var(--lhr-gold);
}

.lhr-redesign img {
	max-width: 100%;
	height: auto;
}

.lhr-redesign :focus-visible {
	outline: 2px solid var(--lhr-gold-soft);
	outline-offset: 2px;
}

/* ------------------------------------------------------------------
 * 4. Layout primitives
 * ---------------------------------------------------------------- */

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

.lhr-section {
	padding-block: calc(var(--lhr-section) / 2);
}

.lhr-section--flush {
	padding-block: 0;
}

/* Eyebrow row: small-caps label left, view-all link / carousel arrows right. */
.lhr-section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: clamp(20px, 3vw, 32px);
}

.lhr-section-head .lhr-eyebrow {
	margin: 0;
}

/* ------------------------------------------------------------------
 * 5. Small caps: eyebrow + label
 * ---------------------------------------------------------------- */

.lhr-eyebrow {
	display: block;
	font-family: var(--lhr-font-sans);
	font-size: var(--lhr-caps-size);
	font-weight: 600;
	letter-spacing: var(--lhr-caps-track);
	text-transform: uppercase;
	color: var(--lhr-ink);
	margin: 0 0 14px;
}

.lhr-eyebrow--gold {
	color: var(--lhr-gold);
}

.lhr-eyebrow--faint {
	color: var(--lhr-ink-faint);
}

/* Field / table / meta label — faint variant of the signature caps. */
.lhr-label {
	display: block;
	font-family: var(--lhr-font-sans);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--lhr-ink-faint);
}

/* ------------------------------------------------------------------
 * 6. Buttons
 * ---------------------------------------------------------------- */

.lhr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px 28px;
	border: 0;
	border-radius: 0;
	background: transparent;
	font-family: var(--lhr-font-sans);
	font-size: var(--lhr-caps-size);
	font-weight: 600;
	letter-spacing: var(--lhr-caps-track);
	text-transform: uppercase;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 200ms var(--lhr-ease), color 200ms var(--lhr-ease), border-color 200ms var(--lhr-ease);
}

.lhr-btn--gold {
	background: var(--lhr-gold);
	color: #fff;
}

.lhr-btn--gold:hover,
.lhr-btn--gold:focus-visible {
	background: var(--lhr-gold-deep);
	color: #fff;
}

.lhr-btn--dark {
	background: var(--lhr-dark);
	color: #fff;
}

.lhr-btn--dark:hover,
.lhr-btn--dark:focus-visible {
	background: #000;
	color: #fff;
}

/* Text link button: READ MORE →, VIEW ALL → */
.lhr-btn--text {
	padding: 0;
	background: none;
	color: var(--lhr-ink);
	gap: 8px;
}

.lhr-btn--text:hover,
.lhr-btn--text:focus-visible {
	background: none;
	color: var(--lhr-gold);
}

.lhr-btn--text .lhr-btn__arrow {
	font-family: var(--lhr-font-sans);
	letter-spacing: 0;
	transition: transform 250ms var(--lhr-ease);
}

.lhr-btn--text:hover .lhr-btn__arrow {
	transform: translateX(3px);
}

/* ------------------------------------------------------------------
 * 7. Cards + media crops
 * ---------------------------------------------------------------- */

.lhr-card {
	position: relative;
	background: var(--lhr-card);
	border: 1px solid var(--lhr-hairline);
	border-radius: 0;
}

.lhr-card a {
	text-decoration: none;
}

/* Fixed-ratio crop with the subtle 700ms zoom (contract §1). */
.lhr-media {
	display: block;
	position: relative;
	overflow: hidden;
}

.lhr-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 700ms var(--lhr-ease);
}

.lhr-media--43 { aspect-ratio: 4 / 3; }
.lhr-media--34 { aspect-ratio: 3 / 4; }
.lhr-media--1610 { aspect-ratio: 16 / 10; }
.lhr-media--167 { aspect-ratio: 16 / 7; }

.lhr-card:hover .lhr-media img,
a:hover > .lhr-media img,
.lhr-media a:hover img {
	transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
	.lhr-media img,
	.lhr-btn,
	.lhr-redesign a {
		transition: none;
	}
}

/* ------------------------------------------------------------------
 * 8. Forms: field, input, select
 * ---------------------------------------------------------------- */

.lhr-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.lhr-input,
.lhr-select {
	width: 100%;
	height: 48px;
	padding: 0 14px;
	background: var(--lhr-card);
	border: 1px solid var(--lhr-hairline);
	border-radius: 0;
	font-family: var(--lhr-font-sans);
	font-size: 14px;
	color: var(--lhr-ink);
	line-height: normal;
	appearance: none;
	-webkit-appearance: none;
	transition: border-color 200ms var(--lhr-ease);
}

textarea.lhr-input {
	height: auto;
	padding-block: 12px;
}

.lhr-input::placeholder {
	color: var(--lhr-ink-faint);
	opacity: 1;
}

.lhr-input:hover,
.lhr-select:hover {
	border-color: var(--lhr-gold-soft);
}

.lhr-input:focus,
.lhr-select:focus {
	border-color: var(--lhr-gold);
	outline: none;
}

.lhr-input:focus-visible,
.lhr-select:focus-visible {
	outline: 2px solid var(--lhr-gold-soft);
	outline-offset: 2px;
}

/* Select chevron: thin gold caret, inline SVG data URI. */
.lhr-select {
	padding-right: 38px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23a9885a' stroke-width='1.4'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	cursor: pointer;
}

/* ------------------------------------------------------------------
 * 9. Stars + rating
 * ---------------------------------------------------------------- */

.lhr-stars {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	color: var(--lhr-gold);
}

.lhr-stars svg {
	display: block;
	width: 14px;
	height: 14px;
	fill: currentColor;
	stroke: currentColor;
	stroke-width: 1px;
}

/* Playfair rating numeral: <span class="lhr-rating">4.9<small>/5</small></span> */
.lhr-rating {
	font-family: var(--lhr-font-serif);
	font-size: 28px;
	font-weight: 500;
	color: var(--lhr-ink);
	line-height: 1;
}

.lhr-rating small {
	font-size: 0.5em;
	font-weight: 400;
	color: var(--lhr-ink-faint);
	margin-left: 2px;
}

/* ------------------------------------------------------------------
 * 10. Dark image hero + scrim + overlap card
 * ---------------------------------------------------------------- */

.lhr-hero {
	position: relative;
	background: var(--lhr-dark);
	color: #fff;
	overflow: hidden;
}

.lhr-hero__media,
.lhr-hero > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.lhr-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.lhr-hero .lhr-container {
	position: relative;
	z-index: 2;
}

.lhr-hero h1,
.lhr-hero h2,
.lhr-hero h3 {
	color: #fff;
}

/* Left → right dark gradient (homepage/review hero). Modifiers for tiles. */
.lhr-scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(
		to right,
		rgba(25, 23, 19, 0.74) 0%,
		rgba(25, 23, 19, 0.42) 45%,
		rgba(25, 23, 19, 0.08) 80%,
		rgba(25, 23, 19, 0) 100%
	);
}

.lhr-scrim--bottom {
	background: linear-gradient(
		to top,
		rgba(25, 23, 19, 0.78) 0%,
		rgba(25, 23, 19, 0.28) 45%,
		rgba(25, 23, 19, 0) 75%
	);
}

.lhr-scrim--even {
	background: rgba(25, 23, 19, 0.38);
}

/*
 * Homepage hero only (QA round 1): the white H1 sat on bright sky/water.
 * Two stacked layers — a stronger left plate fading out by 65% plus a long
 * soft veil — keep the imagery luminous on the right while the headline
 * column always reads. Specificity (0,3,0) beats home.css's
 * .lhr-home-hero__scrim (0,1,0) regardless of load order.
 */
.lhr-redesign.home .lhr-hero .lhr-scrim,
.lhr-redesign.home .lhr-home-hero .lhr-home-hero__scrim {
	background:
		linear-gradient(
			to right,
			rgba(25, 23, 19, 0.6) 0%,
			rgba(25, 23, 19, 0.38) 38%,
			rgba(25, 23, 19, 0) 65%
		),
		linear-gradient(
			to right,
			rgba(25, 23, 19, 0.32) 0%,
			rgba(25, 23, 19, 0.1) 55%,
			rgba(25, 23, 19, 0) 90%
		);
}

/* Under 768px the headline meets the sky: add a top-down layer (and keep a
 * gentle foot for the bottom-anchored mobile layout). */
@media (max-width: 767px) {
	.lhr-redesign.home .lhr-hero .lhr-scrim,
	.lhr-redesign.home .lhr-home-hero .lhr-home-hero__scrim {
		background:
			linear-gradient(
				to bottom,
				rgba(25, 23, 19, 0.55) 0%,
				rgba(25, 23, 19, 0.22) 42%,
				rgba(25, 23, 19, 0.14) 64%,
				rgba(25, 23, 19, 0.36) 100%
			),
			linear-gradient(
				to right,
				rgba(25, 23, 19, 0.5) 0%,
				rgba(25, 23, 19, 0) 80%
			);
	}
}

/* White card hanging over a hero's bottom edge (search card, filter bar,
   gallery strip). Pages set their own negative offset. */
.lhr-overlap-card {
	position: relative;
	z-index: 5;
	background: var(--lhr-card);
	border-radius: 0;
	box-shadow: var(--lhr-shadow);
}

/* ------------------------------------------------------------------
 * 11. Legacy neutralization — scoped resets so old modules sit quietly
 *     on cream until their agent re-dresses them.
 * ---------------------------------------------------------------- */

.lhr-redesign .m-btn,
.lhr-redesign button.m-btn,
.lhr-redesign input[type='submit'].m-btn {
	border-radius: 0;
	font-family: var(--lhr-font-sans);
	font-size: var(--lhr-caps-size);
	font-weight: 600;
	letter-spacing: var(--lhr-caps-track);
	text-transform: uppercase;
}

.lhr-redesign .m-btn--solid {
	background-color: var(--lhr-gold);
	color: #fff;
}

.lhr-redesign .m-btn--solid:hover {
	background-color: var(--lhr-gold-deep);
	color: #fff;
}

.lhr-redesign input[type='text'],
.lhr-redesign input[type='search'],
.lhr-redesign input[type='email'],
.lhr-redesign input[type='url'],
.lhr-redesign input[type='tel'],
.lhr-redesign input[type='number'],
.lhr-redesign input[type='date'],
.lhr-redesign select,
.lhr-redesign textarea {
	border-radius: 0;
	font-family: var(--lhr-font-sans);
}

/* Legacy warm-paper page headers flatten onto the cream canvas. */
.lhr-redesign .m-page-header {
	background: transparent;
}
