/**
 * base.css — design tokens, reset and typography.
 *
 * The colour tokens are overridden inline from CMS → Settings, so the values
 * here are the shipped defaults taken from the approved design.
 */

:root {
	/* Palette (overridable from the CMS). */
	--gold: #c9a96e;
	--gold-soft: #e3d2b4;
	--cream: #fbf2eb;
	--sand: #faf7f2;
	--ink: #1c2112;
	--ink-soft: #5b5950;
	--dark: #2c2825;
	--dark-alt: #34302b;
	--white: #ffffff;
	--line: rgba(28, 33, 18, 0.12);
	--line-light: rgba(255, 255, 255, 0.14);

	/* Type. */
	--font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
	--font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

	--step--1: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
	--step-0: clamp(1rem, 0.96rem + 0.18vw, 1.125rem);
	--step-1: clamp(1.25rem, 1.18rem + 0.35vw, 1.5rem);
	--step-2: clamp(1.5rem, 1.35rem + 0.75vw, 2rem);
	--step-3: clamp(2rem, 1.6rem + 2vw, 3.25rem);
	--step-4: clamp(2.5rem, 1.7rem + 4vw, 4.5rem);

	/* Space. */
	--space-xs: 0.5rem;
	--space-sm: 0.875rem;
	--space-md: 1.5rem;
	--space-lg: 2.5rem;
	--space-xl: 4rem;
	--space-2xl: clamp(4rem, 2.5rem + 6vw, 6.25rem);

	/* Shape. */
	--radius-sm: 8px;
	--radius-md: 16px;
	--radius-lg: 28px;
	--radius-pill: 999px;

	--shadow-card: 0 18px 40px -28px rgba(28, 33, 18, 0.35);
	--shadow-float: 0 30px 60px -30px rgba(28, 33, 18, 0.4);

	--container: 1240px;
	--gutter: clamp(1rem, 0.5rem + 2vw, 2.5rem);

	--header-height: 88px;
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	/* Anchors land below the sticky header rather than under it. */
	scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--step-0);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
h4 {
	margin: 0 0 var(--space-sm);
	font-family: var(--font-display);
	font-weight: 400;
	line-height: 1.12;
	letter-spacing: -0.01em;
	color: var(--ink);
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
h4 { font-size: var(--step-0); }

p {
	margin: 0 0 var(--space-md);
}

p:last-child {
	margin-bottom: 0;
}

a {
	color: inherit;
	text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
	text-underline-offset: 0.2em;
}

a:hover {
	text-decoration-color: currentColor;
}

ul,
ol {
	margin: 0 0 var(--space-md);
	padding-left: 1.25rem;
}

blockquote {
	margin: 0;
}

address {
	font-style: normal;
}

hr {
	border: 0;
	border-top: 1px solid var(--line);
	margin: var(--space-lg) 0;
}

/* Keyboard focus must always be visible and must never be removed. */
:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 3px;
	border-radius: 2px;
}

:focus:not(:focus-visible) {
	outline: none;
}

::selection {
	background: var(--gold);
	color: var(--white);
}

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

.skip-link {
	position: absolute;
	top: -100px;
	left: var(--gutter);
	z-index: 999;
	padding: 0.75rem 1.25rem;
	background: var(--ink);
	color: var(--white);
	border-radius: 0 0 var(--radius-sm) var(--radius-sm);
	text-decoration: none;
	font-size: var(--step--1);
	font-weight: 500;
	transition: top 0.2s ease;
}

.skip-link:focus {
	top: 0;
}

/* Shared type helpers used across the homepage sections. */
.eyebrow {
	margin: 0 0 var(--space-md);
	font-size: var(--step--1);
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

.section-title {
	margin: 0;
	font-size: var(--step-3);
}

.accent {
	font-style: italic;
	color: var(--gold);
}

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

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
}
