/*
 * Design tokens, reset and typography.
 * Direction: "adem en rust" — warm linen, one deep wine colour, Sanne's photos,
 * Cormorant Garamond for display, Jost for text, lots of air.
 */

:root {
	/* Colour */
	--wine: #7e1733;
	--wine-deep: #5c0f24;
	--linen: #f7f1eb;
	--linen-deep: #efe5dc;
	--blush: #ead9d1;
	--sage: #9dbdb9;
	--sage-deep: #5f7f7b;
	--ink: #2b1d1f;
	--ink-soft: #55444a;
	--ochre: #735818; /* AA for small labels on linen and blush */
	--white: #fff;
	--line: rgba(43, 29, 31, 0.14);

	/* Type */
	--serif: "Cormorant Garamond", Georgia, serif;
	--sans: "Jost", "Helvetica Neue", Arial, sans-serif;
	/*
	 * Fluid type scale, 375px -> 1440px viewport. Body text 17 -> 19px.
	 * Up: ratio 1.25 (mobile) -> 1.333 (desktop). Down: ratio 1.125, so small
	 * text never drops below ~13px. Every font size in the theme uses a step
	 * (or an em of one), so changing --step-0 rescales the whole site.
	 */
	--step--2: clamp(0.8395rem, 0.8047rem + 0.1484vw, 0.9383rem); /* 13.4 -> 15.0px */
	--step--1: clamp(0.9444rem, 0.9053rem + 0.1669vw, 1.056rem);  /* 15.1 -> 16.9px */
	--step-0: clamp(1.062rem, 1.018rem + 0.1878vw, 1.188rem);     /* 17.0 -> 19.0px */
	--step-1: clamp(1.328rem, 1.238rem + 0.3834vw, 1.583rem);     /* 21.2 -> 25.3px */
	--step-2: clamp(1.66rem, 1.501rem + 0.6775vw, 2.111rem);      /* 26.6 -> 33.8px */
	--step-3: clamp(2.075rem, 1.815rem + 1.111vw, 2.815rem);      /* 33.2 -> 45.0px */
	--step-4: clamp(2.594rem, 2.186rem + 1.741vw, 3.753rem);      /* 41.5 -> 60.0px */
	--step-5: clamp(3.242rem, 2.622rem + 2.647vw, 5.004rem);      /* 51.9 -> 80.1px */

	/* Roles on the scale */
	--fs-display: var(--step-5);
	--fs-h1: var(--step-4);
	--fs-h2: var(--step-3);
	--fs-h3: var(--step-2);
	--fs-h4: var(--step-1);
	--fs-body: var(--step-0);
	--fs-small: var(--step--1);   /* card text, meta, nav, form messages */
	--fs-eyebrow: var(--step--2); /* uppercase tracked labels: eyebrows, buttons, text links */

	/* Space (one scale) */
	--s1: 0.25rem;
	--s2: 0.5rem;
	--s3: 0.75rem;
	--s4: 1rem;
	--s5: 1.5rem;
	--s6: 2rem;
	--s7: 3rem;
	--s8: 4.5rem;
	--s9: 6.5rem;
	--section: clamp(4rem, 9vw, 8.5rem);
	--gutter: clamp(1.25rem, 4vw, 3rem);

	--container: 1200px;
	--measure: 760px;
	--radius: 2px;
	--header-h: 88px;

	/* Legacy names used by layouts that are restyled in a later step. */
	--ls-bordeaux: var(--wine);
	--ls-gold: var(--ochre);
	--ls-powder: var(--blush);
	--ls-sage: var(--sage);
	--ls-cream: var(--linen);
	--ls-ink: var(--ink);
	--ls-text: var(--ink-soft);
	--ls-grey: #8a7d80;
	--ls-light-grey: #bbb;
	--ls-white: var(--white);
	--ls-serif: var(--serif);
	--ls-sans: var(--sans);
	--ls-container: var(--container);
	--ls-widget-gap: var(--s5);
}

@media (max-width: 767px) {
	:root { --header-h: 68px; }
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	background: var(--linen);
	font-family: var(--sans);
	font-size: var(--fs-body);
	font-weight: 400;
	line-height: 1.65;
	color: var(--ink);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-family: var(--serif);
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -0.01em;
	color: var(--wine);
	text-wrap: balance;
}

h1 em, h1 i, h2 em, h2 i, h3 em, h3 i {
	font-style: italic;
	font-weight: 400;
}

p {
	margin: 0 0 1em;
	text-wrap: pretty;
}

ul,
ol {
	margin: 0 0 1em;
	padding-left: 1.25em;
}

li + li {
	margin-top: 0.3em;
}

strong,
b {
	font-weight: 500;
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

button,
input,
textarea,
select {
	font: inherit;
	color: inherit;
	margin: 0;
}

button {
	cursor: pointer;
	background: none;
	border: 0;
	padding: 0;
}

blockquote,
figure {
	margin: 0;
}

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

::selection {
	background: var(--blush);
	color: var(--wine-deep);
}

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

.ls-skip {
	position: absolute;
	left: -10000px;
	top: 0;
	z-index: 100000;
	padding: var(--s3) var(--s4);
	background: var(--white);
	color: var(--ink);
}

.ls-skip:focus {
	left: var(--s3);
	top: var(--s3);
}

/* Layout primitives */
.ls-main {
	position: relative;
}

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

.ls-measure {
	max-width: var(--measure);
}

.ls-w {
	display: flow-root;
}

.ls-w:not(:last-child) {
	margin-bottom: var(--ls-widget-gap);
}

.ls-section {
	position: relative;
	padding-block: var(--section);
	background-color: var(--linen);
}

.ls-prose {
	padding-block: var(--s9);
}

/* Section heading pieces */
.ls-eyebrow {
	display: block;
	margin: 0 0 var(--s4);
	font-family: var(--sans);
	font-size: var(--fs-eyebrow);
	font-weight: 500;
	letter-spacing: 0.2em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--ochre);
}

/* Honeypot */
.ls-hp {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Entrance animations: a soft rise. */
@media (prefers-reduced-motion: no-preference) {
	.ls-js [data-reveal] {
		opacity: 0;
		transform: translate3d(0, 24px, 0);
		transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
	}

	.ls-js [data-reveal="left"] { transform: translate3d(-24px, 0, 0); }
	.ls-js [data-reveal="right"] { transform: translate3d(24px, 0, 0); }
	.ls-js [data-reveal="fade"] { transform: none; }

	.ls-js [data-reveal].is-revealed {
		opacity: 1;
		transform: none;
	}
}
