/* Reset (https://www.joshwcomeau.com/css/custom-css-reset/) */

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

* {
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  -webkit-font-smoothing: antialiased;
}

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

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

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

#root, #__next {
  isolation: isolate;
}

/* Custom styles */

:root {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 15px;
	line-height: 1.4;

	--gap-lg: 32px;
	--gap-md: 24px;
	--gap-sm: 16px;
	--gap-xs: 8px;

	--border-radius: 2px;

	--padding-lg: 32px;
	--padding-md: 24px;
	--padding-sm: 16px;
	--padding-xs: 8px;

	height: 100%;
	background: hsl(0, 0%, 100%);
}

body {
	max-width: 800px;
	margin-inline: auto;
}

nav {
	padding-block: var(--padding-sm);
	background-position: center;
	background-size: cover;
	padding-top: 80px;
	padding-bottom: 0;
}

.nav__items {
	padding-block: var(--padding-xs);
	padding-inline: var(--padding-sm);
	/* background: rgba(0, 20, 0, 0.3); */
	/* backdrop-filter: blur(3px); */
	position: relative;
	/* border-top: 1px solid rgba(255, 255, 255, 0.5); */
	color: white;
	display: flex;
	gap: 4px;
	padding-top: 24px;
	background-image: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8));
}

.nav__items::before {
	content: "";
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	bottom: 50%;
	right: 0;
	background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
	display: none;
}

.nav__item {
	color: white;
	opacity: 80%;
	filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.4));
	text-decoration: none;
}

.nav__item:hover {
	opacity: 100%;
	text-decoration: underline;
}

.nav__item--selected {
	opacity: 100%;
	pointer-events: none;
	font-weight: bold;
}

.nav__separator::before {
	content: '·' ;
	opacity: 0.7;
}

main {
	display: flex;
	flex-direction: column;
	gap: var(--gap-sm);
	padding-inline: var(--padding-sm);
	padding-block: 24px;
}

:is(h1, h2, h3, h4, h5, h6):not(:first-child) {
	margin-top: var(--gap-xs);
}

h1 {
	font-size: 1.4rem;
}

h2 {
	font-size: 1.2rem;
}

h3 {
	font-size: 1rem;
}

p {
	color: #212121;
}

pre {
	border: 1px solid hsl(36, 10%, 90%);
	border-radius: var(--border-radius);
	padding: var(--padding-sm);
	font-size: 13px;
	line-height: 1.4;
}

a {
	color: hsl(18, 95%, 50%);
}

.date {
	color: hsl(0, 0%, 50%);
	margin-top: calc(-1 * var(--gap-xs) - 4px);
	margin-bottom: var(--gap-xs)
}