:root {
	--tbg-navy-deep: #0d1424;
	--tbg-navy: #18213a;
	--tbg-emerald: #00c36b;
	--tbg-emerald-glow: #2ae88c;
	--tbg-background: #080c16;
	--tbg-background-deep: #05080f;
	--tbg-foreground: #f8fafc;
	--tbg-surface: #111726;
	--tbg-surface-elevated: #161e30;
	--tbg-muted: #a3abbc;
	--tbg-border: rgba(255, 255, 255, .08);
	--tbg-border-strong: rgba(255, 255, 255, .12);
	--tbg-input: rgba(255, 255, 255, .12);

	--tbg-font-heading: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
	--tbg-font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

	--tbg-size-display: 3rem;
	--tbg-size-h1: 3rem;
	--tbg-size-h2: 2.25rem;
	--tbg-size-h2-lg: 3rem;
	--tbg-size-h3: 1.25rem;
	--tbg-size-h4: 1.125rem;
	--tbg-size-stat: 2.25rem;
	--tbg-size-stat-sm: 1.875rem;
	--tbg-size-ghost: 4.5rem;
	--tbg-size-lead: 1.125rem;
	--tbg-size-base: 1rem;
	--tbg-size-body: .875rem;
	--tbg-size-micro: .75rem;

	--tbg-lh-display: 1.05;
	--tbg-lh-h2: 1.1111;
	--tbg-lh-h2-lg: 1.25;
	--tbg-lh-h3: 1.4;
	--tbg-lh-lead: 1.556;
	--tbg-lh-base: 1.5;
	--tbg-lh-body: 1.4286;
	--tbg-lh-micro: 1.3333;
	--tbg-lh-quote: 1.375;

	--tbg-ls-display: -.025em;
	--tbg-ls-h2: -.02em;
	--tbg-ls-h3: -.02em;
	--tbg-ls-micro: .05em;
	--tbg-ls-caps: .05em;

	--tbg-weight-regular: 400;
	--tbg-weight-medium: 500;
	--tbg-weight-semibold: 600;
	--tbg-weight-bold: 700;

	--tbg-radius: 16px;
	--tbg-radius-sm: 12px;
	--tbg-radius-lg: 24px;
	--tbg-radius-pill: 999px;

	--tbg-container: 1280px;
	--tbg-container-medium: 1024px;
	--tbg-container-narrow: 768px;
	--tbg-gutter: clamp(1rem, .5rem + 2vw, 1.5rem);

	--tbg-section-y: 6rem;
	--tbg-gap: 1.5rem;
	--tbg-gap-sm: 1rem;

	--tbg-shadow-accent: 0 10px 40px -10px rgba(0, 195, 107, .4);
	--tbg-shadow-card: 0 20px 60px -20px rgba(0, 0, 0, .6);

	--tbg-ease: cubic-bezier(.22, .61, .36, 1);
	--tbg-header-h: 68px;
}

@supports (color: oklch(50% .1 200)) {
	:root {
		--tbg-navy-deep: oklch(18% .05 260);
		--tbg-navy: oklch(26% .08 258);
		--tbg-emerald: oklch(72% .18 155);
		--tbg-emerald-glow: oklch(82% .2 158);
		--tbg-background: oklch(14% .04 260);
		--tbg-background-deep: oklch(10% .04 260);
		--tbg-foreground: oklch(98% .005 250);
		--tbg-surface: oklch(20% .05 260);
		--tbg-surface-elevated: oklch(24% .06 260);
		--tbg-muted: oklch(72% .02 255);
	}
}

@media (min-width: 768px) {
	:root {
		--tbg-section-y: 8rem;
		--tbg-size-display: 4.5rem;
		--tbg-size-h1: 4.5rem;
		--tbg-size-h2: 3rem;
		--tbg-size-h2-lg: 3.75rem;
		--tbg-lh-h2: 1;
	}
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: var(--tbg-scroll-offset, calc(var(--tbg-header-h) + 16px));
}

body {
	margin: 0;
	background: var(--tbg-background);
	color: var(--tbg-foreground);
	font-family: var(--tbg-font-body);
	font-size: var(--tbg-size-base);
	font-weight: var(--tbg-weight-regular);
	line-height: var(--tbg-lh-base);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

img,
svg,
video,
canvas,
iframe {
	display: block;
	max-width: 100%;
	height: auto;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-family: var(--tbg-font-heading);
	font-weight: var(--tbg-weight-bold);
	line-height: var(--tbg-lh-h3);
	letter-spacing: var(--tbg-ls-h3);
	text-wrap: balance;
}

h1 {
	font-size: var(--tbg-size-h1);
	line-height: var(--tbg-lh-display);
	letter-spacing: var(--tbg-ls-display);
}

h2 {
	font-size: var(--tbg-size-h2);
	line-height: var(--tbg-lh-h2);
	letter-spacing: var(--tbg-ls-h2);
}

h3 {
	font-size: var(--tbg-size-h3);
}

h4 {
	font-size: var(--tbg-size-h4);
}

h5 {
	font-size: var(--tbg-size-base);
}

h6 {
	font-size: var(--tbg-size-body);
}

p,
figure,
blockquote,
fieldset,
dl,
dd {
	margin: 0;
}

fieldset {
	padding: 0;
	border: 0;
}

.tbg-accent {
	color: var(--tbg-emerald);
	background-image: linear-gradient(135deg, var(--tbg-emerald), var(--tbg-emerald-glow));
	background-clip: text;
	-webkit-background-clip: text;
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
	.tbg-accent {
		color: transparent;
		-webkit-text-fill-color: transparent;
	}
}

.tbg-display {
	font-family: var(--tbg-font-heading);
	font-size: var(--tbg-size-display);
	font-weight: var(--tbg-weight-bold);
	line-height: var(--tbg-lh-display);
	letter-spacing: var(--tbg-ls-display);
}

.tbg-micro {
	font-family: var(--tbg-font-body);
	font-size: var(--tbg-size-micro);
	font-weight: var(--tbg-weight-medium);
	line-height: var(--tbg-lh-micro);
	letter-spacing: var(--tbg-ls-micro);
	text-transform: uppercase;
	color: var(--tbg-muted);
}

.tbg-stat-value {
	font-family: var(--tbg-font-heading);
	font-size: var(--tbg-size-stat);
	font-weight: var(--tbg-weight-bold);
	line-height: 1;
	color: var(--tbg-emerald);
	font-variant-numeric: tabular-nums;
}

.tbg-ghost-number {
	font-family: var(--tbg-font-heading);
	font-size: var(--tbg-size-ghost);
	font-weight: var(--tbg-weight-bold);
	line-height: 1;
	color: rgba(255, 255, 255, .04);
}

.tbg-quote {
	font-family: var(--tbg-font-heading);
	font-size: var(--tbg-size-lead);
	font-weight: var(--tbg-weight-medium);
	line-height: var(--tbg-lh-quote);
}

ul, ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color .2s var(--tbg-ease);
}

button {
	font: inherit;
	color: inherit;
	cursor: pointer;
}

:where(a, button, input, select, textarea):focus-visible {
	outline: 2px solid var(--tbg-emerald);
	outline-offset: 2px;
	border-radius: 4px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: 1rem;
	left: 1rem;
	z-index: 200;
	width: auto;
	height: auto;
	padding: .75rem 1.25rem;
	clip: auto;
	background: var(--tbg-emerald);
	color: var(--tbg-background);
	border-radius: var(--tbg-radius);
	font-weight: 600;
}

.tbg-container {
	width: 100%;
	max-width: var(--tbg-container);
	margin-inline: auto;
	padding-inline: var(--tbg-gutter);
}

.tbg-container--medium {
	max-width: var(--tbg-container-medium);
}

.tbg-container--narrow {
	max-width: var(--tbg-container-narrow);
}

.tbg-main {
	min-height: 60vh;
}

.tbg-section {
	position: relative;
	padding-block: var(--tbg-section-y);
}

.tbg-section--bordered {
	border-block: 1px solid rgba(255, 255, 255, .07);
	background: rgba(255, 255, 255, .014);
}

.tbg-main:not(.tbg-main--landing) > .tbg-section:first-child {
	padding-top: calc(var(--tbg-header-h) + var(--tbg-section-y));
}

.tbg-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .35rem .85rem;
	border: 1px solid rgba(0, 195, 107, .3);
	border-radius: var(--tbg-radius-pill);
	background: rgba(0, 195, 107, .08);
	color: var(--tbg-emerald);
	font-size: var(--tbg-size-micro);
	font-weight: var(--tbg-weight-semibold);
	line-height: var(--tbg-lh-micro);
}

.tbg-lead {
	color: var(--tbg-muted);
	font-size: var(--tbg-size-lead);
	line-height: var(--tbg-lh-lead);
	text-wrap: pretty;
}

.tbg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	padding: .75rem 1.5rem;
	border: 1px solid transparent;
	border-radius: var(--tbg-radius-pill);
	background: var(--tbg-emerald);
	color: var(--tbg-background);
	font-size: var(--tbg-size-body);
	font-weight: var(--tbg-weight-semibold);
	line-height: var(--tbg-lh-body);
	white-space: nowrap;
	box-shadow: var(--tbg-shadow-accent);
	transition: background-color .2s var(--tbg-ease), transform .2s var(--tbg-ease);
}

.tbg-btn:hover {
	background: var(--tbg-emerald-glow);
	transform: translateY(-1px);
}

.tbg-btn--ghost {
	background: rgba(255, 255, 255, .06);
	border-color: var(--tbg-border);
	color: var(--tbg-foreground);
	box-shadow: none;
}

.tbg-btn--ghost:hover {
	background: rgba(255, 255, 255, .1);
}

.tbg-btn[disabled] {
	opacity: .6;
	pointer-events: none;
}

.tbg-input {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--tbg-input);
	border-radius: var(--tbg-radius-sm);
	background: rgba(255, 255, 255, .04);
	color: var(--tbg-foreground);
	font: inherit;
	font-size: var(--tbg-size-body);
	line-height: var(--tbg-lh-body);
	transition: border-color .2s var(--tbg-ease), background-color .2s var(--tbg-ease);
}

label {
	display: inline-block;
	font-size: var(--tbg-size-micro);
	font-weight: var(--tbg-weight-medium);
	line-height: var(--tbg-lh-micro);
	letter-spacing: var(--tbg-ls-micro);
	text-transform: uppercase;
	color: var(--tbg-muted);
}

.tbg-input::placeholder {
	color: rgba(255, 255, 255, .35);
}

.tbg-input:focus {
	border-color: rgba(0, 195, 107, .5);
	background: rgba(255, 255, 255, .06);
}

.tbg-grid {
	display: grid;
	gap: var(--tbg-gap);
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.tbg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
	.tbg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.tbg-card {
	position: relative;
	border: 1px solid var(--tbg-border);
	border-radius: var(--tbg-radius);
	background: var(--tbg-surface);
	transition: transform .25s var(--tbg-ease), border-color .25s var(--tbg-ease), background-color .25s var(--tbg-ease);
}

.tbg-card--post {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.tbg-card--post:hover {
	transform: translateY(-4px);
	border-color: rgba(0, 195, 107, .45);
}

.tbg-card__media img {
	width: 100%;
	object-fit: cover;
	aspect-ratio: 4 / 3;
}

.tbg-card__body {
	display: flex;
	flex-direction: column;
	gap: .75rem;
	padding: 1.5rem;
}

.tbg-card__title {
	font-size: var(--tbg-size-h3);
	line-height: var(--tbg-lh-h3);
}

.tbg-card__text {
	color: var(--tbg-muted);
	font-size: var(--tbg-size-body);
	line-height: var(--tbg-lh-body);
}

.tbg-header {
	position: fixed;
	inset-inline: 0;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid transparent;
	transition: background-color .3s var(--tbg-ease), border-color .3s var(--tbg-ease);
}

.tbg-header.is-stuck {
	background: rgba(8, 12, 22, .82);
	backdrop-filter: blur(14px);
	border-bottom-color: var(--tbg-border);
}

.tbg-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	height: var(--tbg-header-h);
}

.tbg-brand {
	display: inline-flex;
	align-items: center;
	gap: .625rem;
	flex: none;
	font-family: var(--tbg-font-heading);
	font-weight: var(--tbg-weight-bold);
	font-size: 1.0625rem;
	letter-spacing: var(--tbg-ls-h3);
}

.tbg-brand img {
	max-height: 40px;
	width: auto;
}

.tbg-nav {
	display: none;
}

.tbg-nav__list {
	display: flex;
	align-items: center;
	gap: 2rem;
	font-size: var(--tbg-size-body);
	line-height: var(--tbg-lh-body);
	color: var(--tbg-muted);
}

.tbg-nav__list a:hover,
.tbg-nav__list .current-menu-item > a {
	color: var(--tbg-foreground);
}

.tbg-nav__list .current-menu-item > a {
	position: relative;
}

.tbg-nav__list .current-menu-item > a::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: -6px;
	height: 2px;
	border-radius: 2px;
	background: var(--tbg-emerald);
}

.tbg-mobile-nav__list .current-menu-item > a {
	color: var(--tbg-emerald);
}

:where(section, main):focus {
	outline: none;
}

.tbg-burger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: var(--tbg-radius-sm);
	background: transparent;
}

.tbg-burger__bars,
.tbg-burger__bars::before,
.tbg-burger__bars::after {
	display: block;
	width: 20px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform .25s var(--tbg-ease), opacity .2s var(--tbg-ease);
}

.tbg-burger__bars {
	position: relative;
}

.tbg-burger__bars::before,
.tbg-burger__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.tbg-burger__bars::before { top: -6px; }
.tbg-burger__bars::after { top: 6px; }

.tbg-burger[aria-expanded="true"] .tbg-burger__bars { background: transparent; }
.tbg-burger[aria-expanded="true"] .tbg-burger__bars::before { transform: translateY(6px) rotate(45deg); }
.tbg-burger[aria-expanded="true"] .tbg-burger__bars::after { transform: translateY(-6px) rotate(-45deg); }

.tbg-mobile-nav {
	border-top: 1px solid var(--tbg-border);
	background: rgba(8, 12, 22, .96);
	backdrop-filter: blur(16px);
	padding-block: 1.25rem 1.75rem;
}

.tbg-mobile-nav[hidden] {
	display: none;
}

.tbg-mobile-nav__list a {
	display: block;
	padding: .7rem 0;
	font-size: var(--tbg-size-lead);
	font-weight: var(--tbg-weight-medium);
	border-bottom: 1px solid rgba(255, 255, 255, .05);
}

@media (min-width: 1024px) {
	.tbg-nav { display: block; }
	.tbg-burger { display: none; }
	.tbg-mobile-nav { display: none !important; }
}

.tbg-footer {
	border-top: 1px solid rgba(255, 255, 255, .1);
	background: rgba(13, 20, 36, .6);
	padding-block: 64px;
}

@supports (color: oklch(50% .1 200)) {
	.tbg-footer { background: oklch(18% .05 260 / .6); }
}

.tbg-footer__widgets {
	display: grid;
	gap: 2.5rem;
	margin-bottom: 3rem;
}

@media (min-width: 640px) {
	.tbg-footer__widgets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
	.tbg-footer__widgets { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3rem; }
}

.tbg-widget__title {
	font-family: var(--tbg-font-body);
	font-size: var(--tbg-size-body);
	font-weight: var(--tbg-weight-bold);
	line-height: var(--tbg-lh-body);
	letter-spacing: var(--tbg-ls-caps);
	text-transform: uppercase;
	margin-bottom: 1.25rem;
}

.tbg-widget ul {
	display: flex;
	flex-direction: column;
	gap: .75rem;
	color: var(--tbg-muted);
	font-size: var(--tbg-size-body);
	line-height: var(--tbg-lh-body);
}

.tbg-widget a:hover {
	color: var(--tbg-emerald-glow);
}

.tbg-footer__bar {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	color: var(--tbg-muted);
	font-size: var(--tbg-size-micro);
	line-height: var(--tbg-lh-micro);
}

.tbg-footer__list {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
}

.tbg-footer__list a:hover {
	color: var(--tbg-foreground);
}

@media (min-width: 640px) {
	.tbg-footer__bar {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

.tbg-archive__header {
	margin-bottom: 3rem;
}

.tbg-archive__title {
	font-size: var(--tbg-size-h2);
	line-height: var(--tbg-lh-h2);
	letter-spacing: var(--tbg-ls-h2);
}

.tbg-archive__description,
.tbg-empty {
	color: var(--tbg-muted);
	margin-top: 1rem;
}

.tbg-post__header {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-bottom: 2.5rem;
}

.tbg-post__title {
	font-size: var(--tbg-size-h1);
	line-height: var(--tbg-lh-display);
	letter-spacing: var(--tbg-ls-display);
}

.tbg-post__meta {
	display: flex;
	gap: 1rem;
	color: var(--tbg-muted);
	font-size: var(--tbg-size-micro);
	line-height: var(--tbg-lh-micro);
}

.tbg-post__media img {
	border-radius: var(--tbg-radius);
	border: 1px solid var(--tbg-border);
}

.tbg-404 {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.25rem;
}

.tbg-prose {
	color: var(--tbg-muted);
	font-size: var(--tbg-size-lead);
	line-height: 1.7;
	text-wrap: pretty;
}

.tbg-prose > * + * {
	margin-top: 1.25rem;
}

.tbg-prose h2,
.tbg-prose h3,
.tbg-prose h4 {
	color: var(--tbg-foreground);
	margin-top: 2.5rem;
}

.tbg-prose h2 { font-size: 1.75rem; line-height: 1.15; }
.tbg-prose h3 { font-size: 1.375rem; line-height: 1.25; }

.tbg-prose a {
	color: var(--tbg-emerald);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tbg-prose ul,
.tbg-prose ol {
	padding-left: 1.25rem;
	list-style: revert;
}

.tbg-prose li + li {
	margin-top: .5rem;
}

.tbg-prose blockquote {
	margin: 2rem 0;
	padding-left: 1.25rem;
	border-left: 2px solid var(--tbg-emerald);
	color: var(--tbg-foreground);
}

.tbg-prose img {
	border-radius: var(--tbg-radius);
}

.tbg-prose code {
	padding: .15em .4em;
	border-radius: 6px;
	background: rgba(255, 255, 255, .07);
	font-size: .9em;
}

.tbg-prose pre {
	padding: 1.25rem;
	border-radius: var(--tbg-radius);
	background: var(--tbg-surface);
	border: 1px solid var(--tbg-border);
	overflow-x: auto;
}

.tbg-search {
	display: flex;
	gap: .625rem;
	max-width: 480px;
	margin-block: 1.5rem;
}

.tbg-comments {
	margin-top: 4rem;
	padding-top: 2.5rem;
	border-top: 1px solid var(--tbg-border);
}

.tbg-comments__title {
	font-size: 1.5rem;
	margin-bottom: 1.5rem;
}

.tbg-comments__list {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin-bottom: 2.5rem;
}

.tbg-comments__list .children {
	margin-top: 1.5rem;
	padding-left: 1.5rem;
	border-left: 1px solid var(--tbg-border);
}

.tbg-comments .comment-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.tbg-comments .comment-form input[type="text"],
.tbg-comments .comment-form input[type="email"],
.tbg-comments .comment-form input[type="url"],
.tbg-comments .comment-form textarea {
	width: 100%;
	padding: .8rem 1rem;
	border: 1px solid var(--tbg-input);
	border-radius: var(--tbg-radius-sm);
	background: rgba(255, 255, 255, .04);
	color: var(--tbg-foreground);
	font: inherit;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-top: 3rem;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding-inline: .75rem;
	border: 1px solid var(--tbg-border);
	border-radius: var(--tbg-radius-sm);
	color: var(--tbg-muted);
	font-size: var(--tbg-size-body);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
	border-color: rgba(0, 195, 107, .4);
	color: var(--tbg-emerald);
}

.alignwide {
	max-width: var(--tbg-container);
	margin-inline: auto;
}

.alignfull {
	max-width: none;
	width: 100%;
}

.aligncenter {
	margin-inline: auto;
}

.sticky,
.bypostauthor {
	display: block;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
	}
}
