/* ===========================
   CSS Reset & Base Styles
   =========================== */

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

/* ===========================
   CSS Variables
   =========================== */

:root {
	--color-background: #FFFFFF;
	--color-text: #000000;
	--color-border: rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] {
	--color-background: #000000;
	--color-text: #FFFFFF;
	--color-border: rgba(255, 255, 255, 0.25);
}

/* ===========================
   Base Elements
   =========================== */

html {
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	font-family: Consolas, 'Courier New', Courier, monospace;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--color-text);
	background-color: var(--color-background);
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
}

/* ===========================
   Header
   =========================== */

header {
	background-color: var(--color-background);
	border-bottom: 1px solid var(--color-border);
	padding: 0 5vw;
	min-height: 3rem;
	display: flex;
	align-items: center;
	position: sticky;
	top: 0;
	z-index: 100;
}

nav {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.nav-wrapper {
	display: flex;
	align-items: center;
	width: 100%;
}

.logo {
	display: flex;
	align-items: center;
}

.logo a {
	text-decoration: none;
	color: var(--color-text);
	display: flex;
	align-items: center;
	transition: background-color 150ms ease, color 150ms ease;
}

.logo img {
	height: 24px;
	width: auto;
	display: block;
	filter: invert(0);
}

[data-theme="dark"] .logo img {
	filter: invert(1);
}

@media (hover: hover) {
	.logo a:hover {
		background-color: var(--color-text);
		color: var(--color-background);
	}

	.logo a:hover img {
		filter: invert(1) !important;
	}

	[data-theme="dark"] .logo a:hover img {
		filter: invert(0) !important;
	}
}

.nav-links {
	display: flex;
	list-style: none;
	gap: 2ch;
	margin: 0;
	margin-left: auto;
	padding: 0;
}

/* Theme Toggle */
.theme-toggle {
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-text);
	transition: background-color 150ms ease, color 150ms ease;
}

.theme-icon {
	width: 24px;
	height: 24px;
	display: none;
}

[data-theme="light"] .theme-icon-light {
	display: block;
}

[data-theme="dark"] .theme-icon-dark {
	display: block;
}

[data-theme="dark"] .theme-icon {
	filter: invert(1);
}

@media (hover: hover) {
	.theme-toggle:hover {
		background-color: var(--color-text);
		color: var(--color-background);
	}

	.theme-toggle:hover .theme-icon {
		filter: invert(1);
	}

	[data-theme="dark"] .theme-toggle:hover .theme-icon {
		filter: none;
	}
}

/* ===========================
   Main Content
   =========================== */

main {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 0;
	width: 100%;
}

/* Hero Section */
.hero-section {
	height: 16rem;
	width: 100%;
	position: relative;
	overflow: hidden;
}

/* Content Blocks */
.block-1 {
	margin: 1rem 5vw;
	text-align: left;
	display: flex;
	flex-direction: column;
}

.block-1 p {
	font-size: 1rem;
	line-height: 1.6;
	margin: 0;
}

.block-2 {
	margin: 1rem 5vw;
	text-align: left;
	display: flex;
	flex-direction: column;
}

.block-2 p {
	font-size: 1rem;
	line-height: 1.6;
	margin: 0;
}

.block-2 a {
	color: var(--color-text);
	text-decoration: none;
	border-bottom: 2px dotted color-mix(in srgb, var(--color-text) 25%, transparent);
	transition: background-color 150ms ease, color 150ms ease;
}

@media (hover: hover) {
	.block-2 a:hover {
		background-color: var(--color-text);
		color: var(--color-background);
		border-bottom: 2px dotted color-mix(in srgb, var(--color-background) 25%, transparent);
	}
}

/* ===========================
   Footer
   =========================== */

footer {
	background-color: var(--color-background);
	border-top: 1px solid var(--color-border);
	padding: 0 5vw;
	min-height: 3rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	color: var(--color-text);
	font-size: 1rem;
}

footer p {
	margin: 0;
}
