/* =====================
   RESET & TOKENS
===================== */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

:root {
	--red: #471506;
	--red-mid: #632a19;
	--orange: #904d00;
	--orange-lt: #fe932c;
	--cream: #f5f0e8;
	--cream-dk: #ede5d0;
	--white: #fffcf9;
	--text: #211a18;
	--muted: #5a4540;
	--dark: #1a1210;
	--sh-sm: 3px 3px 0 #471506;
	--sh-lg: 5px 5px 0 #471506;
}

html {
	scroll-behavior: smooth;
}

body {
	background: var(--cream);
	color: var(--text);
	font-family: 'DM Sans', sans-serif;
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-webkit-text-size-adjust: 100%;
}

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

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

/* =====================
   UTILITIES
===================== */
.container {
	max-width: 960px;
	margin: 0 auto;
	padding: 0 20px;
}

.badge {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12px;
	font-style: italic;
	color: var(--cream);
	background: var(--dark);
	display: inline-block;
	padding: 5px 12px;
	margin-bottom: 22px;
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--cream);
	background: var(--red);
	padding: 4px 10px;
	margin-bottom: 20px;
}

.chip::before {
	content: '//';
	opacity: 0.45;
}

.section-title {
	font-family: 'Syne', sans-serif;
	font-size: clamp(30px, 5vw, 44px);
	font-weight: 800;
	color: var(--red);
	letter-spacing: -0.03em;
	line-height: 1.05;
	margin-bottom: 36px;
}

.divider {
	border: none;
	border-top: 3px solid var(--red);
}

/* =====================
   NAVIGATION
===================== */
.site-nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 200;
	background: var(--cream);
	border-bottom: 3px solid var(--red);
}

.nav-bar {
	height: 58px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 20px;
	max-width: 960px;
	margin: 0 auto;
}

.nav-logo {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 15px;
	font-weight: 600;
	color: var(--red);
	letter-spacing: -0.02em;
}

.nav-logo em {
	font-style: normal;
	color: var(--orange);
}

/* Desktop links */
.nav-links {
	display: none;
	list-style: none;
	gap: 24px;
	align-items: center;
}

.nav-links a {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
	transition: color 0.15s;
}

.nav-links a:not(.nav-cv) {
	position: relative;
}

.nav-links a:not(.nav-cv)::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: -4px;
	height: 2px;
	background: var(--red);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.2s;
}

.nav-links a:not(.nav-cv):hover,
.nav-links a:not(.nav-cv).active {
	color: var(--red);
}

.nav-links a:not(.nav-cv):hover::after,
.nav-links a:not(.nav-cv).active::after {
	transform: scaleX(1);
}

.nav-links .nav-cv {
	color: var(--cream);
	padding: 7px 14px;
	transition:
		transform 0.15s,
		box-shadow 0.15s;
}

/* Hamburger */
.hamburger {
	background: none;
	border: 2px solid var(--red);
	padding: 8px 10px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 5px;
	box-shadow: var(--sh-sm);
}

.hamburger span {
	display: block;
	width: 20px;
	height: 2px;
	background: var(--red);
	transition:
		transform 0.3s,
		opacity 0.3s;
	transform-origin: center;
}

.hamburger[aria-expanded='true'] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded='true'] span:nth-child(2) {
	opacity: 0;
}

.hamburger[aria-expanded='true'] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* Mobile overlay */
.mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 199;
	background: var(--dark);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 32px;
	transform: translateX(101%);
	transition: transform 0.38s cubic-bezier(0.76, 0, 0.24, 1);
}

.mobile-menu.is-open {
	transform: translateX(0);
}

.mobile-menu a {
	font-family: 'Syne', sans-serif;
	font-size: clamp(34px, 9vw, 52px);
	font-weight: 800;
	color: var(--cream);
	text-transform: uppercase;
	letter-spacing: -0.03em;
	transition: color 0.2s;
}

.mobile-menu a:not(.mobile-cv) {
	position: relative;
}

.mobile-menu a:not(.mobile-cv)::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: -4px;
	height: 3px;
	background: var(--orange-lt);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.2s;
}

.mobile-menu a:not(.mobile-cv):hover,
.mobile-menu a:not(.mobile-cv).active {
	color: var(--orange-lt);
}

.mobile-menu a:not(.mobile-cv):hover::after,
.mobile-menu a:not(.mobile-cv).active::after {
	transform: scaleX(1);
}

.mobile-menu .mobile-cv {
	color: var(--cream);
	padding: 12px 24px;
	margin-top: 8px;
	transition:
		transform 0.15s,
		box-shadow 0.15s;
	width: auto;
}

@media (min-width: 768px) {
	.hamburger {
		display: none;
	}

	.nav-links {
		display: flex;
	}
}

.btn-primary {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	background: var(--red);
	color: var(--cream);
	padding: 14px 22px;
	box-shadow: var(--sh-lg);
	transition:
		transform 0.15s,
		box-shadow 0.15s;
	display: inline-block;
}

.btn-primary:hover {
	transform: translate(2px, 2px);
	box-shadow: 2px 2px 0 var(--red);
	color: var(--cream);
}

.btn-primary-down {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	background: var(--red);
	color: var(--cream);
	padding: 14px 22px;
	box-shadow: var(--sh-lg);
	transition:
		transform 0.15s,
		box-shadow 0.15s;
	display: inline-block;
}

.btn-primary-down:hover {
	transform: translate(-2px, -2px);
	box-shadow: 2px 2px 0 var(--red);
	color: var(--cream);
}

.btn-outline {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	background: transparent;
	color: var(--red);
	border: 2px solid var(--red);
	padding: 12px 20px;
	transition:
		background 0.15s,
		color 0.15s;
	display: inline-block;
}

.btn-outline:hover {
	background: var(--red);
	color: var(--cream);
}

/* =====================
   FOOTER
===================== */
.site-footer {
	background: var(--dark);
	border-top: 3px solid var(--red);
	padding: 44px 0;
}

.footer-inner {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

@media (min-width: 768px) {
	.footer-inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

.footer-logo {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 16px;
	font-weight: 600;
	color: var(--cream);
	letter-spacing: -0.01em;
}

.footer-logo em {
	font-style: normal;
	color: var(--orange-lt);
}

.footer-copy {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 10px;
	color: rgba(245, 240, 232, 0.3);
	letter-spacing: 0.05em;
	margin-top: 5px;
}

.footer-links {
	display: flex;
	gap: 22px;
}

.footer-links a {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 11px;
	font-weight: 600;
	color: rgba(245, 240, 232, 0.45);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	transition: color 0.15s;
}

.footer-links a:hover {
	color: var(--orange-lt);
}

@media (max-width: 479px) {
	.btn-primary,
	.btn-primary-down,
	.btn-outline {
		width: 100%;
		text-align: center;
	}
}

@media (max-width: 359px) {
	.nav-logo {
		font-size: 12px;
	}
}

:target {
	scroll-margin-top: 58px;
}
