

@property --mesh-x1 {
	syntax: '<percentage>';
	inherits: false;
	initial-value: 18%;
}


@property --mesh-y1 {
	syntax: '<percentage>';
	inherits: false;
	initial-value: 22%;
}


@property --mesh-x2 {
	syntax: '<percentage>';
	inherits: false;
	initial-value: 82%;
}


@property --mesh-y2 {
	syntax: '<percentage>';
	inherits: false;
	initial-value: 78%;
}


@property --mesh-angle {
	syntax: '<angle>';
	inherits: false;
	initial-value: 125deg;
}


:root {
	--ground: #15403f;
	--ground-dark: #0d2726;
	--ground-deep: #081817;
	--surface: #1b4d4c;
	--surface-border: #266361;
	--surface-hover: #225e5c;
	--bone: #f3f1ec;
	--bone-muted: #b8cccb;
	--bone-dim: #8faea9;
	--brass: #e6b843;
	--brass-bright: #fcd264;
	--brass-dim: rgba(230, 184, 67, 0.22);
	--brass-glow: rgba(230, 184, 67, 0.38);
	--danger: #d9534f;
	--danger-bg: rgba(217, 83, 79, 0.12);
	--success: #38a169;
	--success-bg: rgba(56, 161, 105, 0.14);


	--nibe-c43: 'Syne', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--nibe-794: "Space Mono", SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	--nibe-aa3: var(--nibe-794);


	--text-xs: clamp(0.72rem, 0.68rem + 0.2vw, 0.8rem);

	--text-sm: clamp(0.82rem, 0.78rem + 0.22vw, 0.92rem);
	--text-base: clamp(0.94rem, 0.88rem + 0.28vw, 1.05rem);
	--text-md: clamp(1.1rem, 1rem + 0.45vw, 1.28rem);
	--text-lg: clamp(1.35rem, 1.2rem + 0.75vw, 1.68rem);
	--text-xl: clamp(1.75rem, 1.5rem + 1.2vw, 2.25rem);
	--text-2xl: clamp(2.2rem, 1.85rem + 1.8vw, 3.1rem);
	--text-3xl: clamp(2.8rem, 2.3rem + 2.5vw, 4.2rem);
	--text-display: clamp(3.2rem, 2.5rem + 3.8vw, 5.8rem);


	--lh-tight: 1.15;
	--lh-heading: 1.22;
	--lh-snug: 1.45;
	--lh-body: 1.75;
	--lh-loose: 1.95;


	--tracking-tight: -0.035em;

	--tracking-snug: -0.02em;
	--tracking-normal: -0.01em;
	--tracking-wide: 0.05em;
	--tracking-wider: 0.12em;


	--space-3xs: clamp(0.2rem, 0.18rem + 0.1vw, 0.3rem);
	--space-2xs: clamp(0.4rem, 0.35rem + 0.2vw, 0.55rem);
	--space-xs: clamp(0.7rem, 0.6rem + 0.4vw, 0.95rem);
	--space-sm: clamp(1rem, 0.85rem + 0.6vw, 1.35rem);
	--space-md: clamp(1.5rem, 1.25rem + 1vw, 2.1rem);
	--space-lg: clamp(2.25rem, 1.85rem + 1.6vw, 3.2rem);
	--space-xl: clamp(3.25rem, 2.65rem + 2.4vw, 4.75rem);
	--space-2xl: clamp(4.5rem, 3.6rem + 3.6vw, 6.75rem);
	--space-3xl: clamp(6rem, 4.8rem + 5vw, 9.25rem);


	--radius-none: 0px;
	--radius-sm: 2px;
	--radius-md: 4px;


	--border-hairline: 1px solid var(--surface-border);
	--border-brass: 1px solid var(--brass);
	--border-brass-dim: 1px solid var(--brass-dim);


	--shadow-flat: 0 1px 2px rgba(0, 0, 0, 0.25);
	--shadow-raised: 0 4px 18px rgba(8, 24, 23, 0.45);
	--shadow-overlay: 0 16px 40px rgba(0, 0, 0, 0.65);


	--dur-fast: 140ms;
	--dur-normal: 220ms;
	--dur-slow: 420ms;
	--dur-mesh: 32s;


	--ease-standard: cubic-bezier(0.16, 1, 0.3, 1);
	--ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
	--ease-out: cubic-bezier(0, 0, 0.2, 1);


	--measure-prose: 54ch;
	--measure-narrow: 42ch;
	--measure-wide: 72ch;


	--header-height: 4.85rem;
	--rail-width: clamp(16rem, 14rem + 6vw, 22rem);
	--canvas-max: 1540px;
}


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


html {
	font-size: 16px;
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	background-color: var(--ground);
	color: var(--bone);
	color-scheme: dark;
}


body {
	min-height: 100vh;
	font-family: var(--nibe-aa3);
	font-size: var(--text-base);
	line-height: var(--lh-body);
	letter-spacing: var(--tracking-normal);
	color: var(--bone);
	background-color: var(--ground);
	overflow-x: hidden;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}


input,
button,
textarea,
select {
	font: inherit;
	color: inherit;
	letter-spacing: inherit;
}


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


a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}


p,
h1,
h2,
h3,
h4,
h5,
h6 { overflow-wrap: break-word; }


h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--nibe-c43);
	font-weight: 700;
	line-height: var(--lh-heading);
	letter-spacing: var(--tracking-snug);
	color: var(--bone);
}


h1 {
	font-size: var(--text-display);
	font-weight: 800;
	line-height: var(--lh-tight);
	letter-spacing: var(--tracking-tight);
}


h2 {
	font-size: var(--text-2xl);
	font-weight: 700;
}


h3 {
	font-size: var(--text-xl);
	font-weight: 700;
}


h4 {
	font-size: var(--text-lg);
	font-weight: 600;
}


h5 {
	font-size: var(--text-md);
	font-weight: 600;
}


h6 {
	font-size: var(--text-base);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: var(--tracking-wide);
}


p {
	margin-block-end: var(--space-sm);
	max-width: var(--measure-prose);
}


p:last-child { margin-block-end: 0; }


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


blockquote {
	border-left: 2px solid var(--brass);
	padding-left: var(--space-md);
	margin-block: var(--space-md);
	font-style: italic;
	color: var(--bone);
	max-width: var(--measure-prose);
}


code,
pre,
kbd,
samp {
	font-family: var(--nibe-794);
	font-size: var(--text-sm);
}


table {
	border-collapse: collapse;
	width: 100%;
	text-align: left;
}


th,
td {
	padding: var(--space-xs) var(--space-sm);
	border-bottom: 1px solid var(--surface-border);
}


th {
	font-family: var(--nibe-c43);
	font-weight: 700;
	font-size: var(--text-xs);
	text-transform: uppercase;
	letter-spacing: var(--tracking-wider);
	color: var(--brass);
}


.skip-link {
	position: absolute;
	top: -999px;
	left: 1rem;
	z-index: 9999;
	padding: var(--space-xs) var(--space-sm);
	background: var(--brass);
	color: var(--ground-deep);
	font-weight: 700;
	font-size: var(--text-sm);
	text-decoration: none;
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-raised);
}


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


.layout-shell {
	width: 100%;
	max-width: var(--canvas-max);
	margin-inline: 0 auto;
	padding-inline: clamp(1rem, 0.8rem + 1.8vw, 3.5rem);
}


.offcenter-canvas {
	width: 100%;
	max-width: var(--canvas-max);
	margin-left: 0;
	margin-right: auto;
	padding-left: clamp(1rem, 0.8rem + 2vw, 3.5rem);
	padding-right: clamp(1rem, 0.8rem + 1.5vw, 2.5rem);
}


.split-2-1 {
	display: grid;
	grid-template-columns: minmax(0, 1.85fr) minmax(0, 1.15fr);
	gap: var(--space-lg);
	align-items: start;
}


.split-1-2 {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.9fr);
	gap: var(--space-lg);
	align-items: start;
}


.reading-column {
	max-width: var(--measure-prose);
	min-width: 0;
}


.reading-column-wide {
	max-width: 100%;
	min-width: 0;
}


.reading-column-tight {
	max-width: var(--measure-narrow);
	min-width: 0;
}


.mesh-canvas {
	position: relative;
	background-color: var(--ground);
	background-image:
		radial-gradient(ellipse 65% 55% at var(--mesh-x1) var(--mesh-y1), rgba(27, 77, 76, 0.95), transparent 75%),
		radial-gradient(ellipse 70% 60% at var(--mesh-x2) var(--mesh-y2), rgba(13, 39, 38, 0.98), transparent 70%),
		conic-gradient(from var(--mesh-angle) at 50% 50%, rgba(21, 64, 63, 0.85), rgba(8, 24, 23, 0.95), rgba(27, 77, 76, 0.75), rgba(21, 64, 63, 0.85));
	background-blend-mode: normal, normal, multiply;
	animation: meshDrift var(--dur-mesh) ease-in-out infinite alternate;
}


@keyframes meshDrift {
	0% {
		--mesh-x1: 18%;
		--mesh-y1: 22%;
		--mesh-x2: 82%;
		--mesh-y2: 78%;

		--mesh-angle: 125deg;
	}
	33% {
		--mesh-x1: 32%;
		--mesh-y1: 65%;
		--mesh-x2: 72%;
		--mesh-y2: 35%;
		--mesh-angle: 190deg;
	}
	66% {
		--mesh-x1: 75%;
		--mesh-y1: 30%;
		--mesh-x2: 25%;
		--mesh-y2: 70%;
		--mesh-angle: 260deg;
	}
	100% {
		--mesh-x1: 45%;
		--mesh-y1: 80%;
		--mesh-x2: 60%;
		--mesh-y2: 20%;
		--mesh-angle: 340deg;
	}
}


.mesh-surface {
	position: relative;
	background: var(--ground-dark);
	background-image:
		radial-gradient(circle at 15% 25%, rgba(38, 99, 97, 0.28), transparent 55%),
		radial-gradient(circle at 85% 75%, rgba(8, 24, 23, 0.85), transparent 60%);
}


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


.color-brass { color: var(--brass); }


.color-muted { color: var(--bone-muted); }


.font-display { font-family: var(--nibe-c43); }


.font-mono { font-family: var(--nibe-794); }


@media (max-width: 900px) {
	.split-2-1,
	.split-1-2 {
		grid-template-columns: 1fr;
		gap: var(--space-md);
	}
}


@media (max-width: 480px) {
	.tech-indicator,
	.clock-label,
	.status-tag {
		white-space: normal;
		min-width: 0;
	}
	.tech-indicator span {
		white-space: normal;
		display: inline;
	}
}


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


	.mesh-canvas {
		animation: none;
		background-image:
			radial-gradient(ellipse 65% 55% at 20% 30%, rgba(27, 77, 76, 0.95), transparent 75%),
			radial-gradient(ellipse 70% 60% at 80% 70%, rgba(13, 39, 38, 0.98), transparent 70%);
	}
}
