/* Base element styles and type styles. Values come from tokens.css. */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--color-white);
	color: var(--color-forest-a);
	font-family: var(--font-serif);
	font-size: var(--fs-35);
	font-weight: var(--fw-text);
	line-height: var(--lh-body);
	font-feature-settings: "onum" 1, "tnum" 1;
	-webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
	margin: 0;
}

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

a {
	color: inherit;
}

:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: var(--gutter);
	z-index: 100;
	padding: var(--space-10) var(--space-20);
	background: var(--color-white);
	color: var(--color-forest-a);
	font-family: var(--font-sans);
	font-size: var(--fs-20);
}

.skip-link:focus {
	top: var(--space-20);
}

/* Underlined link from Figma: 1px line 10px below the text, in the text color */
.link-line {
	display: inline-block;
	padding-bottom: var(--space-10);
	border-bottom: var(--stroke-hairline) solid currentColor;
	text-decoration: none;
	text-box: trim-both cap alphabetic;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Type styles. Figma trims text boxes to cap height; text-box does the same where supported. */

.t-headline,
.t-subheadline-a,
.t-subheadline-b,
.t-body,
.t-body-light,
.t-facts,
.t-nav,
.t-logo {
	text-box: trim-both cap alphabetic;
}

/* 01_Headline B */
.t-headline {
	font-family: var(--font-serif);
	font-size: var(--fs-150);
	font-weight: var(--fw-extralight);
	line-height: var(--lh-headline);
	letter-spacing: var(--ls-headline);
}

/* 02_Subheadline A */
.t-subheadline-a {
	font-family: var(--font-serif);
	font-size: var(--fs-100);
	font-weight: var(--fw-text);
	line-height: var(--lh-subheadline);
	letter-spacing: var(--ls-subheadline);
}

/* 02_Subheadline B */
.t-subheadline-b {
	font-family: var(--font-serif);
	font-size: var(--fs-100);
	font-weight: var(--fw-extralight);
	line-height: var(--lh-subheadline);
	letter-spacing: var(--ls-subheadline);
}

/* 03_Body A */
.t-body {
	font-family: var(--font-serif);
	font-size: var(--fs-35);
	font-weight: var(--fw-text);
	line-height: var(--lh-body);
}

/* Body A in the Light style, used for second lines such as "The Founders" */
.t-body-light {
	font-family: var(--font-serif);
	font-size: var(--fs-35);
	font-weight: var(--fw-light);
	line-height: var(--lh-body);
}

/* 04_Facts A */
.t-facts {
	font-family: var(--font-sans);
	font-size: var(--fs-20);
	font-weight: var(--fw-semibold);
	line-height: var(--lh-sans);
	letter-spacing: var(--ls-caps);
	text-transform: uppercase;
	font-feature-settings: "lnum" 1, "tnum" 1;
}

/* Menu links, footer links, contact details */
.t-nav {
	font-family: var(--font-sans);
	font-size: var(--fs-20);
	font-weight: var(--fw-text);
	line-height: var(--lh-sans);
	letter-spacing: var(--ls-nav);
	font-feature-settings: "lnum" 1, "tnum" 1;
}

/* "THE CLIFF VILLAGE" logo text */
.t-logo {
	font-family: var(--font-serif);
	font-size: var(--fs-14);
	font-weight: var(--fw-semibold);
	line-height: 1.4;
	letter-spacing: var(--ls-caps);
	text-transform: uppercase;
	font-feature-settings: "lnum" 1, "tnum" 1;
}
