/* =========================================================================
   2. Reset & base elements
   ========================================================================= */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	/* anchor links ("See more") glide instead of jumping */
}

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

/* Column layout: the content grows, so the footer stays at the bottom of short pages */
body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: var(--size-m)/1.6 var(--font-sans);
	-webkit-font-smoothing: antialiased;
}

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

/* Headings */
h1,
h2,
h3,
h4 {
	margin: 0 0 var(--space-2);
	font-family: var(--font-serif);
	font-weight: 400;
	line-height: 1.15;
}

h1 {
	font-size: var(--size-xl);
}

h2 {
	font-size: var(--size-l);
}

h3 {
	font-size: 1.25rem;
}

/* Text & links */
p {
	margin: 0 0 var(--space-2);
}

a {
	color: inherit;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

button {
	font: inherit;
}

figure {
	margin: 0;
}

ul.menu,
ul.social {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Accessibility */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.skip-link {
	position: absolute;
	top: 0;
	left: -999px;
	z-index: 100;
	padding: var(--space-1) var(--space-2);
	background: var(--ink);
	color: var(--paper);
}

.skip-link:focus {
	left: var(--space-2);
}
