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

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

:root {
	/** Theme Colors - Soft Earth */
	--bg-main: #eae7e1;
	--bg-secondary: #dedad3;

	--teal-50: #eaf0ef;
	--teal-100: #d4e0df;
	--teal-200: #a9c1bf;
	--teal-300: #7fa39f;
	--teal-400: #54847f;
	--teal-500: #29655f;
	--teal-600: #21514c;
	--teal-700: #193d39;
	--teal-800: #102826;
	--teal-900: #081413;

	--neutral-50: #faf9f7;
	--neutral-100: #f4f1ed;
	--neutral-200: #e8e4dc;
	--neutral-300: #d5d0c6;
	--neutral-400: #b0a99e;
	--neutral-500: #8a8278;
	--neutral-600: #6b6259;
	--neutral-700: #4d4640;
	--neutral-800: #322e29;
	--neutral-900: #1e1b18;
	--neutral-950: #110f0d;

	--text-main: var(--neutral-800);

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

	/* Font Families */
	--font-body: 'Libre Franklin', sans-serif;
	--font-heading: 'Space Grotesk', sans-serif;
}

a,
a:visited,
a:hover,
a:active,
a:focus {
	color: inherit;
	text-decoration: none;
}

* {
	z-index: 1;
}

html,
body {
	height: 100%;
	margin: 0;
	padding: 0;
	font-family: var(--font-body);
}

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

.navbar {
	position: sticky;
	top: 0;
	z-index: 50;
	background-color: rgba(234, 231, 225, 0.05);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	border-bottom: 1px solid var(--neutral-300);
}

.container {
	width: 100%;
	max-width: 50rem;
	margin-left: auto;
	margin-right: auto;
	padding: 3rem 1rem;
}

/* Header specific inner container matching the generic container width on md but flexible */
.header__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 0 auto;
	max-width: 50rem;
	height: 3rem;
	padding: 0rem 1rem;
}

footer {
	background-color: var(--bg-secondary);
	color: var(--text-muted);
	padding: 2rem 0;
	font-size: var(--font-sm);
	color: var(--text-main);
	z-index: -1;
}

.footer__content {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	a {
		color: var(--neutral-800);
		font-weight: 600;
	}
}

@media (min-width: 768px) {
	.footer__content {
		flex-direction: row;
	}
}

.footer__column {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-bottom: 1rem;
}

.footer__list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding-left: 0;
}

.logo-text {
	color: var(--text-main);
	font-weight: 700;
	font-family: var(--font-heading);
	font-size: var(--font-lg);
	letter-spacing: 0.1em;
}

.logo {
	height: 2rem;
	display: none;
	@media (min-width: 48rem) {
		display: inline-block;
	}
}

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

.header__logo-link {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
	color: inherit;
}

@font-face {
	font-family: 'Space Grotesk';
	src: url('/fonts/space_grotesk/SpaceGrotesk-VariableFont_wght.ttf') format('truetype');
	font-weight: 100 900;
	font-display: swap;
}

@font-face {
	font-family: 'Libre Franklin';
	src: url('/fonts/libre-franklin/LibreFranklin-VariableFont_wght.ttf') format('truetype');
	font-weight: 100 900;
	font-display: swap;
}

@font-face {
	font-family: 'Libre Franklin';
	src: url('/fonts/libre-franklin/LibreFranklin-Italic-VariableFont_wght.ttf') format('truetype');
	font-weight: 100 900;
	font-style: italic;
	font-display: swap;
}

ul,
ol {
	padding-left: 1.5rem;
}
ul {
	list-style: square;
}
ol {
	list-style: decimal;
}
h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: 600;
	font-family: var(--font-heading);
	color: var(--text-main);
}

.markdown {
	color: var(--text-main);
	hr {
		margin-top: 3rem;
		height: 0.125rem;
		background-color: var(--neutral-300);
	}
	p,
	li {
		margin-bottom: 1rem;
	}
	p {
		line-height: 1.6;
	}
	ul,
	ol {
		margin-top: 1.5rem;
		margin-bottom: 1.5rem;
		padding-left: 1rem;
	}
}

.markdown h2 {
	margin-bottom: 1rem;
	margin-top: 3rem;
	font-size: 1.5rem;
	line-height: 1.3;
	font-family: var(--font-heading);
	color: var(--text-main);
}

.markdown h3 {
	margin-bottom: 1rem;
	margin-top: 2rem;
	font-size: 1.25rem;
	font-weight: 500;
	line-height: 1.3;
	color: var(--text-main);
}

blockquote {
	margin: 1.5rem 0rem;
	border-left: 0.25rem solid var(--teal-700);
	padding-left: 1rem;
	font-style: italic;
}

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

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

.markdown img {
	margin: auto;
	margin-top: 2rem;
	margin-bottom: 2rem;
	border-radius: var(--border-radius-lg);
	@media (min-width: 48rem) {
		max-width: 80%;
	}
}

.markdown iframe {
	max-width: 80%;
	margin: auto;
	margin-top: 2rem;
	margin-bottom: 2rem;
	border-radius: var(--border-radius-lg);
}

.markdown a {
	margin: 1rem 0rem;
}

.markdown .card {
	margin: 2rem 0rem;
}

.nav-items {
	display: flex;
	list-style: none;
	gap: 0.5rem;
	font-family: var(--font-heading);
	text-transform: uppercase;
	font-size: var(--font-sm);
	padding-left: 0;
}

.main-nav {
	height: 2rem;
	display: flex;
	align-items: center;
}

@keyframes blink {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0;
	}
}

.blink-cursor {
	display: inline-block;
	animation: blink 2s infinite step-end;
}

.text-link {
	text-decoration: none;
	font-weight: 500;
	color: var(--teal-600) !important;
}

.text-link:hover {
	text-decoration: underline;
}

.title-deco {
	font-size: var(--font-3xl);
	line-height: var(--line-height-3xl);
	font-family: var(--font-heading);
	margin-bottom: 1rem;
}

.button {
	font-weight: 600;
	border-radius: var(--border-radius-2xl);
	padding: 0.75rem 2rem;
	transition: all 0.2s ease;
	text-decoration: none;
	text-align: center;
	display: inline-block;
	text-transform: uppercase;
	font-size: var(--font-sm);
	letter-spacing: 0.05em;
}

.button-1 {
	background-color: var(--teal-700);
	color: var(--teal-100) !important;
	border: 2px solid var(--teal-700);
}

.button-1:hover {
	background-color: var(--teal-800);
	border: 2px solid var(--teal-800);
}

.button-2 {
	background-color: transparent;
	color: var(--text-main);
	border: 2px solid var(--neutral-400);
}

.button-2:hover {
	background-color: var(--neutral-200);
	border-color: var(--neutral-500);
}

.title-highlight {
	color: var(--accent-dark);
	font-weight: 700;
}

.card {
	background-color: var(--neutral-100);
	border-radius: var(--border-radius-xl);
	border: 1px solid var(--neutral-300);
	padding: 2rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.card__title-container {
	display: flex;
	justify-content: end;
}

.card__subtitle {
	color: var(--text-muted);
	margin: 0 !important;
}

.card__body {
	margin-bottom: 1rem;
}

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

.contact {
	margin: auto;
	padding: 2rem;
	width: 100%;
	max-width: 28rem;
	border-radius: var(--border-radius-xl);
	background-color: var(--neutral-100);
	border: 1px solid var(--neutral-300);
}

.contact input,
.contact textarea {
	width: 100%;
	color: var(--text-main);
	background-color: var(--neutral-50);
	padding: 0.75rem 1rem;
	border: 1px solid var(--neutral-300);
	border-radius: var(--border-radius-md);
}

.contact input:focus,
.contact textarea:focus {
	outline: 2px solid var(--accent-secondary);
	border-color: transparent;
	background-color: #fff;
}

.contact__subtitle {
	color: var(--text-muted);
	font-weight: 500;
}

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

.contact__button {
	width: 100%;
	cursor: pointer;
}

.form-label {
	margin-bottom: 0.5rem;
	display: block;
	font-weight: 500;
	color: var(--text-main);
}

.form-input {
	border-radius: var(--border-radius-md);
	height: 2.5rem;
	margin-bottom: 0;
}

.hero {
	position: relative;
	z-index: 20;
}

.hero__wrapper {
	display: flex;
	flex-direction: column;
	gap: 5rem;
}

.hero__content {
	margin-top: 4rem;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 3rem; /* space-y-12 */
}

@media (min-width: 768px) {
	.hero__content {
		max-width: 56rem; /* 4xl */
		flex: 1;
	}
}

.hero__title {
	font-family: var(--font-heading);
	font-size: var(--font-3xl);
	font-weight: 600;
	line-height: 1.2;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	color: var(--neutral-800);
	@media (min-width: 768px) {
		font-size: var(--font-5xl);
	}
}

.hero__subtitle {
	font-size: var(--font-xl);
	@media (min-width: 48rem) {
		font-size: var(--font-2xl);
	}
}

.hero__actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2rem;
}

.services {
	scroll-margin-top: 5rem;
	display: flex;
	flex-direction: column;
	gap: 3rem; /* space-y-12 */
}

.section-contact {
	scroll-margin-top: 5rem;
}

.services__grid {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	@media (min-width: 768px) {
		flex-direction: row;
		gap: 1rem;
	}
}

.grid-background {
	z-index: inherit;
	min-height: 100vh;
	width: 100%;
	background-color: var(--bg-main);
	position: relative;
	background-image:
		radial-gradient(at 0% 0%, hsla(35, 30%, 88%, 1) 0px, transparent 50%),
		radial-gradient(at 50% 0%, hsla(40, 25%, 86%, 1) 0px, transparent 50%),
		radial-gradient(at 100% 0%, hsla(30, 20%, 85%, 1) 0px, transparent 50%);
}

.service-card {
	padding: 1rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

@media (min-width: 768px) {
	.service-card {
		flex: 1;
	}
}

.service-card__title {
	font-size: var(--font-xl);
	text-transform: capitalize;
}

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

.service-card__subtitle {
	font-size: var(--font-lg);
}

.service-card__cta {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	font-weight: 600;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

.post-list {
	list-style: none;
	padding-left: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.post-card {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.post-card__image {
	width: 100%;
	max-width: 10rem;
	object-fit: cover;
	border-radius: var(--border-radius-lg);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.post-card__content {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.post-card__title {
	display: inline;
	font-size: var(--font-lg);
	text-transform: capitalize;
}

.post-card__meta {
	font-size: var(--font-sm);
	padding-top: 0.125rem;
}

.excerpt {
	font-size: var(--font-2xl);
	margin-bottom: 1.5rem;
	border-left: 2px solid var(--accent-primary); /* Assuming border-myTeal-500 maps here or similar, wait. Project has lime green as primary. User said 'keep style intact'. Teal might be custom color. */
	border-right: 2px solid var(--accent-primary);
	padding-left: 1.5rem;
	padding-right: 1.5rem;
	margin-top: 2rem;
	margin-bottom: 2rem;
}

.grid-background::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 0;
	pointer-events: none;
	opacity: 0.2;
	background-image:
		repeating-linear-gradient(0deg, transparent, transparent 19px, #c5bfb6 19px, #c5bfb6 20px),
		repeating-linear-gradient(90deg, transparent, transparent 19px, #c5bfb6 19px, #c5bfb6 20px);
	background-size: 40px 40px;
}

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

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

@keyframes jump {
	0% {
		transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
	}
	40% {
		transform: translate3d(0, -40%, 0) scale3d(0.9, 1.1, 1);
	}
	50% {
		transform: translate3d(0, -40%, 0) scale3d(1, 1, 1);
	}
	70% {
		transform: translate3d(0, 0, 0) scale3d(1.1, 0.9, 1);
	}
	100% {
		transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
	}
}
.jump {
	transform-origin: 50% 50%;
	animation: jump 0.5s linear alternate infinite;
}
