/** Reset by Josh W. Comeau 
https://www.joshwcomeau.com/css/custom-css-reset/
*/

/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
	box-sizing: border-box;
}

/* 2. Remove default margin */
* {
	margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
	html {
		interpolate-size: allow-keywords;
	}
}

body {
	/* 4. Add accessible line-height */
	line-height: 1.5;
	/* 5. Improve text rendering */
	-webkit-font-smoothing: antialiased;
}

/* 6. Improve media defaults */
img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input,
button,
textarea,
select {
	font: inherit;
}

/* 8. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
	overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
	text-wrap: pretty;
}
h1,
h2,
h3,
h4,
h5,
h6 {
	text-wrap: balance;
}

/*
	10. Create a root stacking context
  */
#root,
#__next {
	isolation: isolate;
}

/** My reset */
a,
a:visited,
a:hover,
a:active {
	color: inherit;
	text-decoration: none;
}

input,
textarea {
	height: 2.5rem;
	border: 1px solid var(--neutral-300);
	padding: 0.5rem;
	border-radius: var(--border-radius-sm);
}

button,
.btn {
	border: 0;
	border-radius: var(--border-radius-sm);
	padding: 0.25rem 1rem;
	text-align: center;
	align-items: center;
	font-weight: 500;
	cursor: pointer;
	height: 2.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.btn-1 {
	background-color: var(--neutral-800);
	color: var(--neutral-50) !important;
}

/** Vars */
:root {
	--neutral-50: #fafafa;
	--neutral-100: #f5f5f5;
	--neutral-200: #e5e5e5;
	--neutral-300: #d4d4d4;
	--neutral-400: #a3a3a3;
	--neutral-500: #737373;
	--neutral-600: #525252;
	--neutral-700: #404040;
	--neutral-800: #262626;
	--neutral-900: #171717;
	--neutral-950: #0a0a0a;

	--stone-50: #fafaf9;
	--stone-100: #f5f5f4;
	--stone-200: #e7e5e4;
	--stone-300: #d6d3d1;
	--stone-400: #a8a29e;
	--stone-500: #78716c;
	--stone-600: #57534e;
	--stone-700: #44403c;
	--stone-800: #292524;
	--stone-900: #1c1917;
	--stone-950: #0c0a09;

	--teal-50: #edf5f3;
	--teal-100: #daeae7;
	--teal-200: #b5d5d0;
	--teal-300: #91c0b8;
	--teal-400: #6caba1;
	--teal-500: #479689;
	--teal-600: #39786e;
	--teal-700: #2b5a52;
	--teal-800: #1c3c37;
	--teal-900: #0e1e1b;

	--blue-50: #ebf1f2;
	--blue-100: #d7e2e4;
	--blue-200: #afc5c9;
	--blue-300: #88a8ae;
	--blue-400: #608b93;
	--blue-500: #386e78;
	--blue-600: #2d5860;
	--blue-700: #224248;
	--blue-800: #162c30;
	--blue-900: #0b1618;

	/** These cannot be used in media queries yet.*/
	--bp-sm: 40rem;
	--bp-md: 48rem;
	--bp-lg: 64rem;
	--bp-xl: 80rem;
	--bp-2xl: 96rem;

	--font-xs: 0.75rem;
	--font-sm: 0.875rem;
	--font-base: 1rem;
	--font-lg: 1.125rem;
	--font-xl: 1.25rem;
	--font-2xl: 1.5rem;
	--font-3xl: 1.875rem;
	--font-4xl: 2.25rem;
	--font-5xl: 3rem;
	--font-6xl: 3.75rem;

	--line-height-xs: calc(1 / 0.75);
	--line-height-sm: calc(1.25 / 0.875);
	--line-height-base: calc(1.5 / 1);
	--line-height-lg: calc(1.75 / 1.125);
	--line-height-xl: calc(1.75 / 1.25);
	--line-height-2xl: calc(2 / 1.5);
	--line-height-3xl: calc(2.25 / 1.875);
	--line-height-4xl: calc(2.5 / 2.25);
	--line-height-5xl: 1;
	--line-height-6xl: 1;

	--border-radius-xs: 0.125rem;
	--border-radius-sm: 0.25rem;
	--border-radius-md: 0.375rem;
	--border-radius-lg: 0.5rem;
	--border-radius-xl: 0.75rem;
	--border-radius-2xl: 1rem;
	--border-radius-3xl: 1.5rem;
	--border-radius-4xl: 2rem;
}

/** Fonts */

@font-face {
	font-family: 'DM Sans';
	src: url('/fonts/dm-sans/DMSans-VariableFont_opsz,wght.ttf') format('truetype');
	font-weight: 100 900;
	font-display: swap;
}

@font-face {
	font-family: 'DM Sans';
	src: url('/fonts/dm-sans/DMSans-Italic-VariableFont_opsz,wght.ttf') format('truetype');
	font-weight: 100 900;
	font-display: swap;
	font-style: italic;
}

@font-face {
	font-family: 'Barlow';
	src: url('/fonts/barlow/Barlow-Regular.ttf') format('truetype');
	font-weight: 400;
	font-display: swap;
}

@font-face {
	font-family: 'Barlow';
	src: url('/fonts/barlow/Barlow-Medium.ttf') format('truetype');
	font-weight: 500;
	font-display: swap;
}

@font-face {
	font-family: 'Barlow';
	src: url('/fonts/barlow/Barlow-SemiBold.ttf') format('truetype');
	font-weight: 600;
	font-display: swap;
}

@font-face {
	font-family: 'Barlow';
	src: url('/fonts/barlow/Barlow-Bold.ttf') format('truetype');
	font-weight: 700;
	font-display: swap;
}

/** Styles */

html,
body {
	height: 100%;
	margin: 0;
	padding: 0;
}

.layout {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	margin: 0;
	padding: 0;
	background-color: var(--stone-100);
}

#main {
	flex: 1; /* Takes up remaining space */
	overflow-y: auto; /* Scroll inside body if content overflows */
}

.container {
	padding: 4rem 1rem;
	margin: auto;
	@media (min-width: 48rem) {
		width: 50rem;
		padding: 8rem 0rem;
	}
}

.shadow-sm {
	box-shadow: 0 5px 10px rgba(0, 0, 0, 0.12);
}

.shadow-md {
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

ul {
	list-style: square;
}
ol {
	list-style: decimal;
}
ul,
ol {
	padding-left: 1.25rem;
}
body {
	background-color: var(--neutral-100);
	font-family: 'Barlow', sans-serif;
	color: var(--neutral-900);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: 'DM Sans', serif;
	font-weight: 500;
}

p {
	font-size: var(--font-lg);
	line-height: var(--line-height-lg);
}

h1 {
	font-size: var(--font-3xl);
	line-height: var(--line-height-3xl);
	@media (min-width: 48rem) {
		font-size: var(--font-6xl);
		line-height: var(--line-height-6xl);
	}
}

h2 {
	font-size: var(--font-xl);
	line-height: var(--line-height-xl);
	@media (min-width: 48rem) {
		font-size: var(--font-3xl);
		line-height: var(--line-height-3xl);
	}
}

.subscribe_container {
	margin: auto;
	background-color: var(--neutral-50);
	width: 100%;
	border-radius: var(--border-radius-md);
	padding: 1rem;
	@media (min-width: 48rem) {
		max-width: 40rem;
	}
}

.subscribe_message {
	@media (min-width: 48rem) {
		font-size: var(--font-lg);
	}
}

/** Utility classes */

.flex-1 {
	flex: 1;
}

.center {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.col-gap-1 {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.col-gap-2 {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.col-gap-4 {
	display: flex;
	flex-direction: column;
	gap: 4rem;
}

.font-small {
	font-size: var(--font-sm);
	color: var(--neutral-800);
}

/** Markdown */

.markdown p,
.markdown ul {
	margin-bottom: 1rem;
}

.markdown li {
	font-size: 1.125rem;
}

.markdown h1 {
	margin-bottom: 2rem;
}

.markdown h2 {
	font-size: 1.5rem;
	margin-top: 2rem;
	margin-bottom: 1rem;
	padding-left: 0.5rem;
	border-left: 4px solid var(--teal-400);
}

.markdown h3 {
	font-size: 1.125rem;
	margin-bottom: 1rem;
}

.markdown blockquote {
	border-left: 2px solid var(--teal-300);
	margin: 0;
	padding-left: 1rem;
	font-style: italic;
}

.markdown blockquote > p {
	margin-bottom: 1rem;
}

.markdown a {
	color: var(--teal-600);
	font-weight: 500;
	text-decoration: none;
}

.markdown a:hover {
	text-decoration: underline;
}

.markdown img,
.markdown iframe {
	max-width: 80%;
	margin: auto;
	border-radius: var(--border-radius-sm);
}

.section-color-1 {
	background-color: var(--stone-100);
}
.section-color-2 {
	background-color: var(--neutral-800);
	color: var(--neutral-100);
}
.section-color-3 {
	color: var(--teal-50);
	background: linear-gradient(180deg, rgb(20 111 87) 50%, rgb(24 87 71) 100%);
}

.font-medium {
	font-weight: 500;
}

.hero__title {
	text-align: center;
	color: var(--neutral-100);
}

.hero__subtitle {
	text-align: center;
	font-size: var(--font-xl);
	max-width: 40rem;
	color: var(--blue-50);
	@media (min-width: 48rem) {
		font-size: var(--font-2xl);
	}
}

.hero__btn {
	max-width: 20rem;
	font-size: 1.125rem;
}

.scroll-top-offset {
	scroll-margin-top: 2rem;
}

.contact {
	background-color: var(--stone-200);
}

.justify-center {
	display: flex;
	justify-content: center;
}

.banner {
	background-color: var(--blue-700);
	color: var(--blue-50);
	text-align: center;
	padding: 0.25rem 0.5rem;
	border-radius: var(--border-radius-sm);
}

.nav-item {
	text-transform: uppercase;
	font-size: 1rem !important;
}