:root {
	--tfe-black: #070908;
	--tfe-panel: #101312;
	--tfe-panel-soft: #171c19;
	--tfe-paper: #c6b58c;
	--tfe-paper-dark: #817252;
	--tfe-steel: #4f5a55;
	--tfe-steel-dark: #28302d;
	--tfe-cyan: #26d8e6;
	--tfe-cyan-soft: rgba(38, 216, 230, 0.45);
	--tfe-text: #e8e0cf;
	--tfe-muted: #a9a08f;
	--tfe-rust: #8f4b36;
	--tfe-olive: #5d6b4a;
	--tfe-shadow: rgba(0, 0, 0, 0.72);
	--tfe-max: 1360px;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background:
		radial-gradient(circle at 18% 8%, rgba(38, 216, 230, 0.12), transparent 24rem),
		linear-gradient(180deg, rgba(6, 9, 11, 0.86), rgba(3, 4, 4, 0.95)),
		url("../images/background-sample-1.png") center/cover fixed;
	color: var(--tfe-text);
	font-family: "Courier New", Courier, monospace;
	line-height: 1.6;
}

body::before {
	position: fixed;
	inset: 0;
	z-index: -1;
	background:
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 7px),
		repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 9px);
	content: "";
	pointer-events: none;
	mix-blend-mode: screen;
}

a {
	color: var(--tfe-cyan);
	text-decoration: none;
}

a:hover,
a:focus {
	color: #f4fbfc;
}

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

.tfe-skip-link {
	position: absolute;
	left: 1rem;
	top: -10rem;
	z-index: 20;
	padding: 0.7rem 1rem;
	background: var(--tfe-black);
	border: 1px solid var(--tfe-cyan);
	color: var(--tfe-cyan);
}

.tfe-skip-link:focus {
	top: 1rem;
}

.tfe-site-shell {
	width: min(var(--tfe-max), calc(100% - 2rem));
	margin: 1rem auto;
	padding: clamp(1rem, 2vw, 1.5rem);
	border: 1px solid var(--tfe-cyan-soft);
	border-radius: 8px;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent 28%),
		rgba(5, 6, 6, 0.9);
	box-shadow:
		0 0 0 1px rgba(198, 181, 140, 0.16) inset,
		0 0 34px rgba(38, 216, 230, 0.16),
		0 28px 80px var(--tfe-shadow);
}

.tfe-archive-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: clamp(1rem, 4vw, 3rem);
	padding: clamp(1rem, 2.5vw, 2rem);
	border: 1px solid var(--tfe-cyan-soft);
	border-radius: 8px;
	background:
		linear-gradient(90deg, rgba(7, 9, 8, 0.95), rgba(18, 21, 19, 0.88)),
		url("../images/background-sample-2.png") center/cover;
	box-shadow: 0 0 22px rgba(38, 216, 230, 0.14) inset;
}

.tfe-header-brand {
	display: flex;
	align-items: center;
	gap: clamp(0.9rem, 2vw, 1.4rem);
	min-width: 0;
}

.tfe-logo-mark {
	display: grid;
	flex: 0 0 clamp(74px, 9vw, 120px);
	width: clamp(74px, 9vw, 120px);
	aspect-ratio: 1;
	place-items: center;
	border: 2px solid var(--tfe-cyan);
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.72);
	box-shadow: 0 0 18px rgba(38, 216, 230, 0.32);
	overflow: hidden;
}

.tfe-logo-mark img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.tfe-logo-fallback {
	color: var(--tfe-cyan);
	font-size: clamp(1.25rem, 3vw, 2rem);
	font-weight: 800;
	letter-spacing: 0;
}

.tfe-title-block {
	min-width: 0;
	text-transform: uppercase;
}

.tfe-site-kicker,
.tfe-site-title {
	margin: 0;
	line-height: 0.95;
}

.tfe-site-kicker {
	color: #f3eee3;
	font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
	font-size: clamp(2.2rem, 7vw, 5.7rem);
	text-shadow: 2px 2px 0 #2a2a2a;
}

.tfe-site-title {
	color: var(--tfe-cyan);
	font-size: clamp(1.6rem, 5vw, 4.25rem);
	font-weight: 400;
	text-shadow: 0 0 13px rgba(38, 216, 230, 0.66);
}

.tfe-header-tagline {
	flex: 0 1 430px;
	text-align: right;
	text-transform: uppercase;
}

.tfe-header-tagline p {
	margin: 0 0 0.7rem;
	padding-bottom: 0.55rem;
	border-bottom: 1px solid var(--tfe-paper-dark);
	color: #f2eadc;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1rem, 1.7vw, 1.35rem);
	letter-spacing: 0;
}

.tfe-header-tagline span {
	color: var(--tfe-cyan);
	font-weight: 700;
}

.tfe-home-layout {
	display: grid;
	grid-template-columns: minmax(170px, 220px) minmax(0, 1fr);
	gap: 1rem;
	margin-top: 1rem;
}

.tfe-filing-cabinet {
	align-self: start;
	position: sticky;
	top: 1rem;
	padding-top: 0.5rem;
}

.tfe-drawer-list {
	display: grid;
	gap: 0.18rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tfe-drawer-list .menu-item a {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 58px;
	padding: 0.9rem 1rem 0.9rem 1.25rem;
	border: 1px solid rgba(0, 0, 0, 0.46);
	border-radius: 7px 3px 3px 7px;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 42%),
		linear-gradient(90deg, var(--drawer-color, var(--tfe-steel)), var(--tfe-steel-dark));
	box-shadow:
		0 4px 0 rgba(0, 0, 0, 0.52),
		0 0 0 1px rgba(255, 255, 255, 0.08) inset;
	color: #101210;
	font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
	font-size: clamp(1rem, 1.5vw, 1.28rem);
	text-transform: uppercase;
	transition: transform 240ms ease, box-shadow 240ms ease, color 240ms ease;
}

.tfe-drawer-list .menu-item:nth-child(1) a { --drawer-color: #b8944e; }
.tfe-drawer-list .menu-item:nth-child(2) a { --drawer-color: #657766; }
.tfe-drawer-list .menu-item:nth-child(3) a { --drawer-color: #566e71; }
.tfe-drawer-list .menu-item:nth-child(4) a { --drawer-color: #89513f; }
.tfe-drawer-list .menu-item:nth-child(5) a { --drawer-color: #8d7644; }
.tfe-drawer-list .menu-item:nth-child(6) a { --drawer-color: #5c754d; }
.tfe-drawer-list .menu-item:nth-child(7) a { --drawer-color: #5b7778; }
.tfe-drawer-list .menu-item:nth-child(8) a { --drawer-color: #b88d39; }

.tfe-drawer-list .menu-item a::after {
	position: absolute;
	right: 0.8rem;
	width: 34px;
	height: 7px;
	border: 1px solid rgba(11, 12, 12, 0.58);
	border-radius: 999px;
	background: rgba(220, 209, 184, 0.42);
	content: "";
}

.tfe-drawer-list .menu-item a:hover,
.tfe-drawer-list .menu-item a:focus,
.tfe-drawer-list .current-menu-item a {
	transform: translateX(10px);
	box-shadow:
		0 5px 0 rgba(0, 0, 0, 0.58),
		0 0 16px rgba(38, 216, 230, 0.48),
		0 0 0 1px rgba(38, 216, 230, 0.62) inset;
	color: #050706;
	outline: none;
}

.tfe-main-archive {
	display: grid;
	gap: 1rem;
	min-width: 0;
}

.tfe-featured-case,
.tfe-dashboard-panel,
.tfe-archive-footer {
	border: 1px solid var(--tfe-cyan-soft);
	border-radius: 8px;
	background:
		linear-gradient(135deg, rgba(198, 181, 140, 0.08), transparent 28%),
		rgba(10, 12, 11, 0.92);
	box-shadow:
		0 0 0 1px rgba(198, 181, 140, 0.14) inset,
		0 0 20px rgba(38, 216, 230, 0.14);
}

.tfe-featured-case {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.92fr);
	gap: clamp(1rem, 3vw, 2.4rem);
	padding: clamp(1rem, 3vw, 2rem);
}

.tfe-panel-label {
	display: inline-block;
	margin: 0 0 1rem;
	padding: 0.4rem 1rem;
	background: linear-gradient(90deg, var(--tfe-paper), var(--tfe-paper-dark));
	color: #141411;
	font-weight: 800;
	text-transform: uppercase;
}

.tfe-case-date {
	margin: 0 0 1rem;
	color: var(--tfe-cyan);
	text-transform: uppercase;
}

.tfe-case-copy h2 {
	margin: 0;
	color: #f3eee3;
	font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
	font-size: clamp(2.5rem, 7vw, 5.4rem);
	line-height: 0.95;
	text-transform: uppercase;
}

.tfe-case-location {
	margin: 1rem 0;
	color: var(--tfe-cyan);
	font-size: clamp(1rem, 2vw, 1.35rem);
	font-weight: 700;
	text-transform: uppercase;
}

.tfe-case-excerpt,
.tfe-case-copy > p:not(.tfe-panel-label, .tfe-case-date, .tfe-case-location) {
	max-width: 58ch;
	color: var(--tfe-text);
	font-size: 1rem;
}

.tfe-case-button,
.tfe-panel-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	margin-top: 1rem;
	padding: 0.6rem 1rem;
	border: 1px solid var(--tfe-cyan);
	border-radius: 4px;
	background: rgba(3, 10, 11, 0.62);
	box-shadow: 0 0 12px rgba(38, 216, 230, 0.12);
	color: var(--tfe-cyan);
	font-weight: 700;
	text-transform: uppercase;
	transition: background 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.tfe-case-button:hover,
.tfe-case-button:focus,
.tfe-panel-link:hover,
.tfe-panel-link:focus {
	background: rgba(38, 216, 230, 0.15);
	box-shadow: 0 0 18px rgba(38, 216, 230, 0.32);
	transform: translateY(-1px);
	outline: none;
}

.tfe-case-button-disabled {
	border-color: rgba(169, 160, 143, 0.5);
	color: var(--tfe-muted);
}

.tfe-case-photo {
	align-self: center;
	padding: 0.8rem 0.8rem 3.3rem;
	background: linear-gradient(180deg, #c7b894, #8d7d5e);
	box-shadow: 0 18px 34px rgba(0, 0, 0, 0.55);
	transform: rotate(3deg);
}

.tfe-case-photo img,
.tfe-photo-placeholder {
	width: 100%;
	aspect-ratio: 1 / 0.82;
	object-fit: cover;
	background:
		linear-gradient(135deg, rgba(38, 216, 230, 0.16), transparent),
		#111816;
}

.tfe-photo-placeholder {
	display: grid;
	place-items: center;
	min-height: 260px;
	color: var(--tfe-muted);
	text-transform: uppercase;
}

.tfe-dashboard-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.75rem;
}

.tfe-dashboard-panel {
	display: flex;
	flex-direction: column;
	min-height: 245px;
	padding: 1rem;
}

.tfe-dashboard-panel h2 {
	margin: 0 0 0.9rem;
	color: var(--tfe-cyan);
	font-size: 1.1rem;
	text-transform: uppercase;
}

.tfe-dashboard-panel-body {
	flex: 1;
	color: var(--tfe-text);
}

.tfe-update-list {
	display: grid;
	gap: 0.65rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tfe-update-list li::before {
	display: inline-block;
	width: 0.5rem;
	height: 0.5rem;
	margin-right: 0.5rem;
	border-radius: 50%;
	background: #52b866;
	content: "";
}

.tfe-live-status span {
	display: inline-block;
	width: 0.7rem;
	height: 0.7rem;
	margin-right: 0.5rem;
	border-radius: 50%;
	background: #e73232;
	box-shadow: 0 0 10px rgba(231, 50, 50, 0.7);
}

.tfe-archive-footer {
	display: grid;
	grid-template-columns: auto minmax(240px, 1fr) auto auto;
	gap: 1rem;
	align-items: center;
	margin-top: 1rem;
	padding: 1rem 1.25rem;
	color: var(--tfe-muted);
}

.tfe-footer-quote {
	margin: 0;
	color: var(--tfe-cyan);
	text-align: center;
}

.tfe-footer-count,
.tfe-copyright {
	margin: 0;
	white-space: nowrap;
}

.tfe-social-links {
	display: flex;
	gap: 0.5rem;
}

.tfe-social-links a {
	display: grid;
	width: 34px;
	aspect-ratio: 1;
	place-items: center;
	border: 1px solid rgba(198, 181, 140, 0.45);
	border-radius: 4px;
	color: var(--tfe-muted);
	font-size: 0.8rem;
}

.tfe-social-links a:hover,
.tfe-social-links a:focus {
	border-color: var(--tfe-cyan);
	color: var(--tfe-cyan);
	outline: none;
}

@media (max-width: 980px) {
	.tfe-archive-header,
	.tfe-home-layout,
	.tfe-featured-case,
	.tfe-dashboard-grid,
	.tfe-archive-footer {
		grid-template-columns: 1fr;
	}

	.tfe-archive-header {
		display: grid;
	}

	.tfe-header-tagline {
		text-align: left;
	}

	.tfe-filing-cabinet {
		position: static;
	}

	.tfe-drawer-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tfe-case-photo {
		max-width: 520px;
		margin: 0 auto;
	}

	.tfe-footer-quote {
		text-align: left;
	}
}

@media (max-width: 620px) {
	.tfe-site-shell {
		width: min(100% - 0.75rem, var(--tfe-max));
		padding: 0.5rem;
	}

	.tfe-header-brand {
		align-items: flex-start;
	}

	.tfe-drawer-list {
		grid-template-columns: 1fr;
	}

	.tfe-drawer-list .menu-item a {
		min-height: 50px;
	}

	.tfe-featured-case,
	.tfe-dashboard-panel,
	.tfe-archive-footer {
		border-radius: 6px;
	}

	.tfe-case-photo {
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}

	.tfe-drawer-list .menu-item a:hover,
	.tfe-drawer-list .menu-item a:focus,
	.tfe-drawer-list .current-menu-item a,
	.tfe-case-button:hover,
	.tfe-case-button:focus,
	.tfe-panel-link:hover,
	.tfe-panel-link:focus {
		transform: none;
	}
}

