/* Foundations: the palette, the type and the header.
   Sober and editorial — the work is the protagonist, the design accompanies. */

:root {
	--xfb-canvas: #f7f7f5;
	--xfb-ink: #1a1a1a;
	--xfb-muted: rgba(26, 26, 26, 0.55);
	--xfb-rule: rgba(26, 26, 26, 0.12);

	--xfb-margin: clamp(1.25rem, 1.6vw, 1.5rem);
	--xfb-header-height: 4.5rem;

	--xfb-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html {
	background: var(--xfb-canvas);
}

body {
	margin: 0;
	background: var(--xfb-canvas);
	color: var(--xfb-ink);
	font-family: var(--xfb-font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
}

.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;
}

/* Header --------------------------------------------------------------- */

.xfb-header {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	align-items: flex-start;
	gap: clamp(1.5rem, 3vw, 3rem);
	padding: var(--xfb-margin);
	min-height: var(--xfb-header-height);
	background: var(--xfb-canvas);
}

.xfb-wordmark {
	flex: 0 0 auto;
	display: grid;
	gap: 0.15rem;
	text-decoration: none;
	color: inherit;
	line-height: 1.15;
}

.xfb-wordmark__name {
	display: grid;
	font-size: 0.72rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	text-align: right;
}

.xfb-wordmark__tag {
	position: relative;
	justify-self: end;
	padding-left: 1.6rem;
	font-size: 0.5rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	opacity: 0.75;
}

.xfb-wordmark__tag::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 1.2rem;
	height: 1px;
	background: currentColor;
}

.xfb-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0 clamp(0.85rem, 1.4vw, 1.4rem);
	list-style: none;
	margin: 0;
	padding: 0;
}

.xfb-nav a {
	font-size: 0.78rem;
	text-decoration: none;
	color: inherit;
	opacity: 0.85;
	transition: opacity 160ms ease;
}

.xfb-nav a:hover,
.xfb-nav .current-menu-item > a {
	opacity: 1;
	text-decoration: underline;
	text-underline-offset: 0.28em;
}

.xfb-nav--end {
	margin-left: auto;
}

/* Mobile --------------------------------------------------------------- */

.xfb-burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	margin-left: auto;
	padding: 0.5rem 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.xfb-burger__bar {
	display: block;
	width: 22px;
	height: 1px;
	background: var(--xfb-ink);
}

.xfb-mobile-nav {
	position: fixed;
	inset: var(--xfb-header-height) 0 0;
	z-index: 19;
	display: grid;
	align-content: start;
	gap: 1.25rem;
	padding: 2rem var(--xfb-margin);
	background: var(--xfb-canvas);
	overflow-y: auto;
}

.xfb-mobile-nav__list {
	display: grid;
	gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.xfb-mobile-nav a {
	font-size: 1.15rem;
	text-decoration: none;
	color: inherit;
}

@media (max-width: 860px) {
	.xfb-nav {
		display: none;
	}

	.xfb-burger {
		display: flex;
	}
}

@media (min-width: 861px) {
	.xfb-mobile-nav {
		display: none !important;
	}
}
