/**
 * FIND TECH design system, applied to the NITPCO theme.
 * Canvas, type, and components follow find-tech-design-system.md.
 */

:root {
	--canvas: #0a0e14;
	--section: #10141a;
	--card: #141922;
	--inset: #181c24;
	--line: #262d3a;
	--text-strong: #f1f5f9;
	--text-emphasis: #e2e8f0;
	--text-body: #cbd5e1;
	--text-muted: #94a3b8;
	--text-faint: #64748b;
	--text-placeholder: #475569;
	--text-on-brand: #020617;
	--brand: #d97706;
	--brand-hover: #f59e0b;
	--brand-soft: #fbbf24;
	--focus: #f59e0b;
	--font-sans: "Hanken Grotesk", Tahoma, sans-serif;
	--font-display: "Space Grotesk", "Hanken Grotesk", sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, monospace;
	--header-height: 5rem;
	--container: 80rem;
	--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
	--page-title-display: block;
}

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

html {
	color-scheme: dark;
}

body {
	margin: 0;
	background: var(--canvas);
	color: var(--text-body);
	font-family: var(--font-sans);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.625;
	-webkit-font-smoothing: antialiased;
}

::selection {
	color: #fcd34d;
	background: rgb(245 158 11 / 0.2);
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--text-emphasis);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	transition: color 150ms;
}

a:hover {
	color: var(--brand-hover);
}

button,
input,
textarea {
	font: inherit;
}

:focus-visible {
	outline: 2px solid var(--focus);
	outline-offset: 2px;
}

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	white-space: nowrap;
}

.skip-link:focus {
	clip-path: none;
	height: auto;
	width: auto;
	margin: 0;
	padding: 12px 16px;
	background: var(--section);
	color: var(--text-strong);
	z-index: 100000;
	position: fixed;
	inset-block-start: 8px;
	inset-inline-start: 8px;
}

.nitpco-container {
	width: min(var(--container), 100%);
	margin-inline: auto;
	padding-inline: 1.5rem;
}

.kicker,
.posted-on {
	display: block;
	margin: 0 0 0.75rem;
	color: rgb(245 158 11 / 0.8);
	font-family: var(--font-mono);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	line-height: 1.4;
	text-transform: uppercase;
}

.site-header {
	position: fixed;
	z-index: 50;
	inset-block-start: 0;
	inset-inline: 0;
	height: var(--header-height);
	background: rgb(10 14 20 / 0.9);
	border-bottom: 1px solid var(--line);
	backdrop-filter: blur(12px);
}

body.admin-bar .site-header {
	inset-block-start: 32px;
}

body:has(.site-header) .site-main {
	padding-top: var(--header-height);
}

.site-header__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	height: 100%;
}

.site-brand,
.custom-logo-link {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
	color: var(--text-strong);
	text-decoration: none;
}

.site-brand__mark {
	display: inline-grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	flex: 0 0 auto;
	border: 1px solid var(--line);
	border-radius: 4px;
	background: var(--inset);
	color: var(--brand-hover);
	font-family: var(--font-mono);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0;
	transition: border-color 150ms;
}

.site-brand:hover .site-brand__mark {
	border-color: var(--brand-hover);
}

.site-brand__name {
	color: var(--text-strong);
	font-family: var(--font-display);
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.2;
}

.custom-logo {
	max-height: 2rem;
	width: auto;
}

.site-nav {
	position: relative;
	display: flex;
	align-items: center;
}

.nav-toggle-input {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}

.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	cursor: pointer;
}

.nav-toggle-input:focus-visible + .nav-toggle {
	outline: 2px solid var(--focus);
	outline-offset: 2px;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block;
	width: 1.125rem;
	height: 1px;
	background: var(--text-strong);
	position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
	content: "";
	position: absolute;
	inset-inline-start: 0;
}

.nav-toggle__bars::before {
	top: -6px;
}

.nav-toggle__bars::after {
	top: 6px;
}

.site-nav .menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav .menu a {
	color: var(--text-muted);
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none;
}

.site-nav .menu a:hover {
	color: var(--text-strong);
}

.site-nav .current-menu-item > a,
.site-nav .current-menu-ancestor > a {
	color: var(--brand-hover);
	font-weight: 600;
}

.site-nav .menu-item-has-children {
	position: relative;
}

.site-nav .sub-menu {
	display: none;
	position: absolute;
	z-index: 30;
	min-width: 12.5rem;
	margin: 0.5rem 0 0;
	padding: 0.5rem 0;
	list-style: none;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--card);
}

.site-nav .menu-item-has-children:hover > .sub-menu,
.site-nav .menu-item-has-children:focus-within > .sub-menu {
	display: block;
}

.site-nav .sub-menu a {
	display: block;
	padding: 0.5rem 1rem;
}

.site-main {
	min-height: 50vh;
}

.page-header {
	padding-block: 5rem 4rem;
	background: var(--section);
	border-bottom: 1px solid var(--line);
}

.page-header .entry-title {
	display: var(--page-title-display);
}

.entry-title,
.comments-title,
.post-card__title {
	margin: 0;
	color: var(--text-strong);
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.25;
}

.entry-title,
.comments-title {
	font-size: 1.875rem;
}

.archive-description,
.archive-description p,
.error-404 p:not(.kicker),
.no-results p {
	max-width: 48rem;
	margin: 1rem 0 0;
	color: var(--text-body);
	font-size: 1rem;
	line-height: 1.625;
}

.page-content {
	padding-block: 5rem;
}

body:not(.elementor-page) .page-content > :not(.elementor) {
	width: min(48rem, 100%);
	margin-inline: auto;
}

body.elementor-page .page-content,
body.elementor-page .nitpco-container.page-content {
	width: 100%;
	max-width: none;
	padding: 0;
}

.page-content > .elementor {
	width: 100%;
}

.post-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	padding-block: 5rem;
}

.post-card {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	padding: 1.25rem;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--card);
	transition: border-color 150ms, box-shadow 150ms;
}

.post-card:hover {
	border-color: rgb(245 158 11 / 0.5);
	box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.post-card__media {
	display: block;
	overflow: hidden;
	height: 12rem;
	border-radius: 8px;
	background: var(--inset);
}

.post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.9;
	transition: transform 300ms, opacity 300ms;
}

.post-card:hover .post-card__media img {
	opacity: 1;
	transform: scale(1.05);
}

.post-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 0.25rem 0.25rem 0.5rem;
}

.post-card__title {
	font-size: 1.125rem;
	font-weight: 600;
}

.post-card__title a {
	color: inherit;
	text-decoration: none;
}

.post-card:hover .post-card__title a {
	color: var(--brand-soft);
}

.post-card__excerpt,
.post-card__excerpt p {
	margin: 0;
	color: var(--text-muted);
	font-size: 0.875rem;
	line-height: 1.625;
}

.posts-pagination,
.post-navigation,
.page-links {
	padding-block: 0 5rem;
}

.posts-pagination .nav-links,
.post-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	gap: 1.5rem;
}

.posts-pagination .page-numbers,
.post-navigation a,
.page-links a {
	color: var(--text-muted);
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none;
}

.posts-pagination .page-numbers.current,
.post-navigation a:hover {
	color: var(--brand-hover);
}

.nav-label {
	display: block;
	margin-bottom: 0.25rem;
	color: var(--text-faint);
	font-family: var(--font-mono);
	font-size: 0.75rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.nav-title {
	color: var(--text-strong);
	font-family: var(--font-display);
	font-weight: 600;
}

.site-footer {
	padding-block: 4rem;
	background: var(--canvas);
	border-top: 1px solid var(--line);
	color: var(--text-muted);
}

.site-brand--footer .site-brand__mark {
	width: 1.75rem;
	height: 1.75rem;
	font-size: 0.65rem;
}

.site-brand--footer .site-brand__name {
	font-size: 1rem;
	text-transform: uppercase;
}

.site-footer__top {
	display: grid;
	gap: 2rem;
}

.site-footer__summary {
	max-width: 24rem;
	margin: 1rem 0 0;
	color: var(--text-muted);
	font-size: 0.875rem;
	line-height: 1.625;
}

.site-footer__nav .menu {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__nav a {
	color: var(--text-muted);
	font-size: 0.875rem;
	text-decoration: none;
}

.site-footer__nav a:hover {
	color: var(--brand-hover);
}

.site-footer__legal {
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--line);
}

.site-footer__copy {
	margin: 0;
	color: var(--text-muted);
	font-size: 0.75rem;
}

.search-form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1.5rem;
}

.search-form__label {
	flex: 1 1 16rem;
}

.search-field,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 0.625rem 0.875rem;
	border: 1px solid var(--line);
	border-radius: 4px;
	background: var(--section);
	color: var(--text-strong);
	font-size: 0.875rem;
}

.search-field::placeholder,
.comment-form input::placeholder,
.comment-form textarea::placeholder {
	color: var(--text-placeholder);
}

.search-field:focus,
.comment-form input:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: var(--focus);
	box-shadow: 0 0 0 2px var(--focus);
}

.search-submit,
.comment-form .submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.625rem 1.25rem;
	border: 0;
	border-radius: 4px;
	background: var(--brand);
	box-shadow: var(--shadow-sm);
	color: var(--text-on-brand);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 150ms;
}

.search-submit:hover,
.comment-form .submit:hover {
	background: var(--brand-hover);
	color: var(--text-on-brand);
}

.error-404,
.no-results {
	padding-block: 5rem 7rem;
	background: var(--section);
	border-bottom: 1px solid var(--line);
}

body:not(.elementor-page) .comments-area,
body:not(.elementor-page) .post-navigation {
	width: min(48rem, 100%);
}

.comments-area {
	padding-block: 0 5rem;
}

.comments-title {
	margin-bottom: 1.5rem;
	font-size: 1.5rem;
}

.comment-list {
	margin: 0 0 2rem;
	padding: 0;
	list-style: none;
}

.comment-list .comment {
	padding-block: 1.25rem;
	border-top: 1px solid var(--line);
}

.comment-list .comment-author,
.comment-list .fn {
	color: var(--text-strong);
	font-family: var(--font-display);
	font-weight: 600;
}

.comment-list .comment-meta,
.comment-list .comment-meta a {
	color: var(--text-faint);
	font-family: var(--font-mono);
	font-size: 0.75rem;
	text-decoration: none;
}

.comment-form label {
	display: block;
	margin-bottom: 0.25rem;
	color: var(--text-body);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.comment-form p {
	margin: 0 0 1rem;
}

@media (min-width: 640px) {
	.entry-title {
		font-size: 2.25rem;
	}

	.site-footer__legal {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 1rem;
	}
}

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

	.site-nav > nav {
		display: block;
	}

	.post-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.site-footer__top {
		grid-template-columns: 5fr 7fr;
		align-items: start;
	}

	.site-footer__nav .menu {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: flex-end;
		gap: 0.5rem 1.5rem;
	}
}

@media (min-width: 1024px) {
	.nitpco-container {
		padding-inline: 2rem;
	}

	.page-header {
		padding-block: 6rem 5rem;
	}
}

@media (max-width: 767px) {
	.nav-toggle {
		display: inline-flex;
	}

	.site-nav > nav {
		display: none;
	}

	.nav-toggle-input:checked ~ nav {
		display: block;
		position: absolute;
		inset-inline-end: 0;
		inset-block-start: calc(100% + 0.5rem);
		width: min(17.5rem, 80vw);
		padding: 0.75rem;
		border: 1px solid var(--line);
		border-radius: 8px;
		background: var(--section);
	}

	.site-nav .menu,
	.site-nav .sub-menu {
		display: flex;
		flex-direction: column;
		gap: 0.25rem;
		position: static;
		min-width: 0;
		border: 0;
		padding: 0;
		background: transparent;
	}
}

@media (max-width: 782px) {
	body.admin-bar .site-header {
		inset-block-start: 46px;
	}
}
