/* Reset, base elements and shared utilities (from the concept's base.css). */

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

/*
 * Site scale. Every size in the theme is in rem, so this one setting scales
 * the whole design: text, spacing, the page width. Laptops and desktops get
 * 120%; phones and tablets keep 100%, as their layouts are already sized
 * for small screens. Percentages keep visitors' own text-size settings.
 */
html {
	-webkit-text-size-adjust: 100%;
	font-size: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header) + 1rem);
}

@media (min-width: 1280px) {
	html {
		font-size: 120%;
	}
}

body {
	margin: 0;
	font: 1rem/1.6 var(--font-body);
	color: var(--color-text);
	background: var(--color-bg);
}

h1, h2, h3, h4 {
	margin: 0;
}

p {
	margin-top: 0;
	line-height: 1.65;
}

ul, ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

figure {
	margin: 0;
}

address {
	font-style: normal;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
	object-fit: cover;
	background: #d3d1c9;
}

a {
	color: inherit;
	text-underline-offset: 0.3125rem;
}

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

button,
summary {
	cursor: pointer;
}

button,
a,
summary {
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

:focus-visible {
	outline: 3px solid var(--color-focus);
	outline-offset: 0.3125rem;
}

[hidden] {
	display: none !important;
}

/* Accessibility helpers */
.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;
}

.skip-link:focus {
	position: fixed !important;
	top: 0.75rem;
	left: 1.25rem;
	z-index: 100;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0.75rem 1.25rem;
	clip: auto;
	background: #fff;
	color: #111;
}

/* Type utilities */
.display {
	font-family: var(--m);
	font-weight: 700;
	letter-spacing: -0.07em;
	line-height: 0.94;
}

.tag {
	font: 600 0.625rem/1.5 var(--g);
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.num {
	font-family: var(--g);
	font-variant-numeric: tabular-nums;
}

/* --stroke must be an explicit colour: currentColor would resolve to the transparent fill. */
.outline {
	-webkit-text-stroke: 1.8px var(--stroke, #111c1d);
	color: transparent;
}

@supports not (-webkit-text-stroke: 1px #000) {
	.outline {
		color: inherit;
		opacity: 0.45;
	}
}

.text-link {
	display: inline-block;
	padding-block: 0.625rem;
	color: var(--cyan);
	text-decoration: underline;
	background: none;
	border: 0;
	font-weight: 500;
}

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

	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
}
