/* Noble Pixels studio system. Loaded last on every page.
   Paper, ink, green. One typeface. One button. */

:root {
	--st-paper: #f3f3f0;
	--st-surface: #ffffff;
	--st-ink: #1a2744;
	--st-ink-2: #3d4a63;
	--st-mute: #5b6478;
	--st-line: rgba(26, 39, 68, 0.12);
	--st-line-strong: rgba(26, 39, 68, 0.28);
	--st-green: #6fa832;
	--st-green-ink: #3f6b17;
	--st-font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--st-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
	--st-radius: 6px;
	--st-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--st-wrap: 72rem;

	/* Legacy tokens, remapped so older components follow the brand. */
	--np-brand-yellow: var(--st-green);
	--np-lime-400: #8cc152;
	--np-lime-500: var(--st-green);
	--np-lime-600: var(--st-green-ink);
	--np-paper: var(--st-paper);
	--color-bg: var(--st-paper);
	--color-text: var(--st-ink);
	--color-text-muted: var(--st-ink-2);
	--color-text-subtle: var(--st-mute);
	--color-link: var(--st-ink);
	--color-link-hover: var(--st-green-ink);
	--color-accent: var(--st-green);
	--color-accent-text: var(--st-green-ink);
	--color-border: var(--st-line);
	--color-action-bg: var(--st-ink);
	--color-action-bg-hover: #0f1830;
	--color-action-text: var(--st-paper);
	--color-action-text-hover: var(--st-paper);
	--color-focus-ring: var(--st-green-ink);
	--np-cta-primary-bg: var(--st-ink);
	--np-cta-primary-text: var(--st-paper);
	--np-cta-primary-border: var(--st-ink);
	--np-cta-primary-hover-bg: #0f1830;
	--np-cta-primary-hover-text: var(--st-paper);
	--np-cta-primary-hover-border: #0f1830;
	--np-cta-primary-shadow: none;
	--np-cta-primary-hover-shadow: none;
	--np-cta-secondary-bg: transparent;
	--np-cta-secondary-text: var(--st-ink);
	--np-cta-secondary-border: var(--st-line-strong);
	--np-cta-secondary-hover-bg: transparent;
	--np-cta-secondary-hover-text: var(--st-ink);
	--np-cta-secondary-hover-border: var(--st-ink);
	--np-cta-secondary-shadow: none;
	--np-cta-outline-text: var(--st-ink);
	--np-cta-outline-border: var(--st-line-strong);
	--np-cta-outline-hover-bg: transparent;
	--np-cta-outline-hover-text: var(--st-ink);
	--np-cta-outline-hover-border: var(--st-ink);
	--heading-font-family: var(--st-font);
	--body-font-family: var(--st-font);
}

/* Typeface lock. Page templates set their own families inline; this wins. */
html body,
html body :is(h1, h2, h3, h4, h5, h6, p, a, li, dt, dd, span, strong, em, small, label, button, input, select, textarea, blockquote, figcaption, th, td, summary, legend, div, nav) {
	font-family: var(--st-font) !important;
}
html body :is(code, pre, kbd, samp, .st-mono, .st-kicker) {
	font-family: var(--st-mono) !important;
}

html body,
html body[data-page-theme] {
	background: var(--st-paper) !important;
	color: var(--st-ink);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
html body :is(h1, h2, h3, h4) {
	font-weight: 500;
	letter-spacing: -0.02em;
	font-style: normal;
}
html body :is(h1, h2, h3, h4) :is(em, i) {
	font-style: normal;
}

::selection {
	background: rgba(111, 168, 50, 0.28);
	color: var(--st-ink);
}

:focus-visible {
	outline: 2px solid var(--st-green-ink);
	outline-offset: 3px;
}

/* One button. Primary is ink; secondary is a quiet outline. */
html body .np-btn,
html body .st-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 2.875rem;
	padding: 0.75rem 1.25rem;
	border-radius: var(--st-radius);
	border: 1px solid var(--st-line-strong);
	background: transparent;
	color: var(--st-ink);
	font-size: 0.9375rem;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.2;
	text-decoration: none;
	box-shadow: none;
	transform: none;
	transition: background-color 0.2s var(--st-ease), border-color 0.2s var(--st-ease), color 0.2s var(--st-ease);
}
html body :is(.np-btn, .st-btn):hover {
	border-color: var(--st-ink);
	color: var(--st-ink);
	background: transparent;
	transform: none;
	box-shadow: none;
}
html body :is(.np-btn--primary, .st-btn--primary) {
	background: var(--st-ink);
	border-color: var(--st-ink);
	color: var(--st-paper);
}
html body :is(.np-btn--primary, .st-btn--primary):hover {
	background: #0f1830;
	border-color: #0f1830;
	color: var(--st-paper);
}
html body :is(.np-btn, .st-btn)::after {
	content: none;
}
html body .st-btn--primary .st-btn__arrow,
html body .np-btn--primary .st-btn__arrow {
	color: var(--st-green);
}

/* On ink bands the primary turns paper. */
html body .st-dark :is(.np-btn, .st-btn) {
	color: var(--st-paper);
	border-color: rgba(243, 243, 240, 0.32);
}
html body .st-dark :is(.np-btn, .st-btn):hover {
	border-color: var(--st-paper);
	color: var(--st-paper);
}
html body .st-dark :is(.np-btn--primary, .st-btn--primary) {
	background: var(--st-paper);
	border-color: var(--st-paper);
	color: var(--st-ink);
}
html body .st-dark :is(.np-btn--primary, .st-btn--primary):hover {
	background: #ffffff;
	border-color: #ffffff;
	color: var(--st-ink);
}

/* Header */
html body .np-site-header,
html body .np-site-header[data-header-theme] {
	background: rgba(243, 243, 240, 0.88);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid var(--st-line);
	box-shadow: none;
}

/* Shared layout vocabulary for rebuilt pages */
.st-page {
	background: var(--st-paper);
	color: var(--st-ink);
	overflow-x: clip;
}
.st-wrap {
	width: min(100% - 3rem, var(--st-wrap));
	margin-inline: auto;
}
.st-section {
	padding-block: clamp(4.5rem, 10vw, 8rem);
}
.st-section + .st-section {
	border-top: 1px solid var(--st-line);
}
.st-dark {
	background: var(--st-ink);
	color: var(--st-paper);
}
.st-dark + .st-section,
.st-section + .st-dark {
	border-top: 0;
}
.st-kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	margin: 0 0 1.5rem;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--st-green-ink);
}
.st-kicker::before {
	content: "";
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 2px;
	background: var(--st-green);
}
.st-dark .st-kicker {
	color: #a9d37a;
}
html body .st-page :is(h1, h2, h3) {
	color: var(--st-ink);
	margin: 0;
}
html body .st-page .st-dark :is(h1, h2, h3) {
	color: var(--st-paper);
}
.st-h1 {
	font-size: clamp(2.5rem, 6vw, 4.75rem);
	line-height: 1.02;
	letter-spacing: -0.035em !important;
	max-width: 15ch;
}
.st-h2 {
	font-size: clamp(1.875rem, 3.6vw, 3rem);
	line-height: 1.08;
	letter-spacing: -0.03em !important;
	max-width: 20ch;
}
.st-h3 {
	font-size: 1.1875rem;
	line-height: 1.3;
	letter-spacing: -0.01em !important;
}
.st-lead {
	margin: 1.75rem 0 0;
	max-width: 36rem;
	font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
	line-height: 1.6;
	color: var(--st-ink-2);
}
.st-dark .st-lead,
.st-dark p {
	color: rgba(243, 243, 240, 0.78);
}
.st-page p {
	color: var(--st-ink-2);
	line-height: 1.65;
}
.st-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 2.5rem;
}
.st-head {
	display: grid;
	gap: 1.25rem;
	margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 900px) {
	.st-head--split {
		grid-template-columns: 1.1fr 1fr;
		align-items: end;
		gap: 4rem;
	}
	.st-head--split .st-lead {
		margin: 0;
	}
}
.st-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 500;
	color: var(--st-ink);
	text-decoration: none;
	border-bottom: 1px solid var(--st-green);
	padding-bottom: 2px;
	transition: gap 0.2s var(--st-ease);
}
.st-link:hover {
	gap: 0.65rem;
	color: var(--st-ink);
}
.st-dark .st-link {
	color: var(--st-paper);
}

/* Grids and cards */
.st-grid {
	display: grid;
	gap: 1px;
	background: var(--st-line);
	border: 1px solid var(--st-line);
	border-radius: var(--st-radius);
	overflow: hidden;
}
@media (min-width: 720px) {
	.st-grid--2 { grid-template-columns: repeat(2, 1fr); }
	.st-grid--3 { grid-template-columns: repeat(3, 1fr); }
	.st-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1040px) {
	.st-grid--4 { grid-template-columns: repeat(4, 1fr); }
}
.st-cell {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: clamp(1.5rem, 3vw, 2.25rem);
	background: var(--st-paper);
	color: var(--st-ink);
	text-decoration: none;
	transition: background-color 0.25s var(--st-ease);
}
a.st-cell:hover {
	background: var(--st-surface);
}
.st-cell p {
	margin: 0;
	font-size: 0.9375rem;
}
.st-cell__meta {
	margin-top: auto;
	padding-top: 1rem;
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--st-mute);
}
.st-num {
	font-family: var(--st-mono) !important;
	font-size: 0.75rem;
	color: var(--st-green-ink);
}

/* Blueprint drawings: thin ink lines, one green accent. */
.st-bp {
	display: block;
	width: 100%;
	height: auto;
	color: var(--st-ink);
}
.st-bp .bp-line { fill: none; stroke: currentColor; stroke-width: 1; opacity: 0.5; }
.st-bp .bp-box { fill: var(--st-paper); stroke: currentColor; stroke-width: 1; }
.st-bp .bp-soft { fill: rgba(26, 39, 68, 0.06); stroke: none; }
.st-bp .bp-accent { fill: none; stroke: var(--st-green); stroke-width: 1.5; }
.st-bp .bp-dot { fill: var(--st-green); }
.st-bp .bp-text { font-family: var(--st-mono) !important; font-size: 9px; fill: var(--st-mute); letter-spacing: 0.04em; }
.st-bp .bp-draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--st-ease); }
.is-drawn .st-bp .bp-draw,
.st-bp.is-drawn .bp-draw { stroke-dashoffset: 0; }

/* Case cards: blueprint on top, system name below. */
.st-cases { display: grid; gap: 1.5rem; }
@media (min-width: 720px) { .st-cases--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .st-cases { grid-template-columns: repeat(3, 1fr); } .st-cases--2 { grid-template-columns: repeat(2, 1fr); } }
.st-case {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--st-line);
	border-radius: var(--st-radius);
	background: var(--st-paper);
	color: var(--st-ink);
	text-decoration: none;
	overflow: hidden;
	transition: border-color 0.3s var(--st-ease), background-color 0.3s var(--st-ease);
}
.st-case:hover { border-color: var(--st-line-strong); background: var(--st-surface); color: var(--st-ink); }
.st-case__draw { padding: 1.5rem 1.25rem; border-bottom: 1px solid var(--st-line); background: var(--st-surface); }
.st-cases--2 .st-case__draw { padding: 2rem 2.5rem; }
.st-case__body { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.5rem; flex: 1; }
.st-case__org { font-family: var(--st-mono) !important; font-size: 0.75rem; letter-spacing: 0.04em; color: var(--st-green-ink); }
.st-case p { margin: 0; font-size: 0.9375rem; }
.st-case__more { margin-top: auto; padding-top: 0.75rem; font-size: 0.875rem; font-weight: 500; color: var(--st-ink); }
.st-case:hover .st-case__more { color: var(--st-green-ink); }
.st-case:hover .bp-accent { stroke-width: 2; }

/* Plain list rows */
.st-rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--st-line); }
.st-rows a {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 1rem;
	align-items: baseline;
	padding: 1.1rem 0;
	border-bottom: 1px solid var(--st-line);
	color: var(--st-ink);
	text-decoration: none;
	transition: padding 0.25s var(--st-ease);
}
.st-rows a:hover { padding-left: 0.5rem; color: var(--st-ink); }
.st-rows strong { font-weight: 500; }
.st-rows span { font-size: 0.8125rem; color: var(--st-mute); }

/* Reveal on scroll */
.js .st-reveal {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.8s var(--st-ease), transform 0.8s var(--st-ease);
}
.js .st-reveal.is-in {
	opacity: 1;
	transform: none;
}

/* Footer: paper, after the ink close band on each page. */
.st-foot {
	background: var(--st-paper);
	color: var(--st-ink);
	padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem;
	border-top: 1px solid var(--st-line);
}
.st-foot a { color: var(--st-ink); text-decoration: none; }
.st-foot__top { display: grid; gap: 3rem; }
@media (min-width: 900px) { .st-foot__top { grid-template-columns: 1fr 1.6fr; gap: 4rem; } }
.st-foot__logo { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 1.0625rem; font-weight: 500; }
.st-foot__logo img { width: 28px; height: 28px; object-fit: contain; }
.st-foot__line { margin: 1rem 0 0; max-width: 20rem; font-size: 1.375rem; line-height: 1.3; letter-spacing: -0.015em; color: var(--st-ink); }
.st-foot__mark { display: block; width: 7.5rem; margin-top: 2rem; fill: var(--st-paper); stroke: var(--st-ink); stroke-width: 1.2; }
.st-foot__mark .st-foot__rows { stroke: var(--st-green); stroke-width: 1.4; }
.st-foot__nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
@media (min-width: 720px) { .st-foot__nav { grid-template-columns: repeat(3, 1fr); } }
.st-foot__head { margin: 0 0 1rem; font-family: var(--st-mono) !important; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--st-mute); }
.st-foot__nav ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.65rem; }
.st-foot__nav a { font-size: 0.9375rem; border-bottom: 1px solid transparent; transition: border-color 0.2s var(--st-ease); }
.st-foot__nav a:hover { border-bottom-color: var(--st-green); }
.st-foot__places {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	margin-top: clamp(3rem, 6vw, 4.5rem);
	padding-top: 1.5rem;
	border-top: 1px solid var(--st-line);
	font-size: 0.8125rem;
	color: var(--st-mute);
}
@media (min-width: 720px) { .st-foot__places { grid-template-columns: 1fr auto; } }
.st-foot__places span { display: block; margin-bottom: 0.2rem; font-size: 0.9375rem; font-weight: 500; color: var(--st-ink); }
.st-foot__social { display: flex; gap: 1.5rem; align-items: flex-end; grid-column: 1 / -1; }
@media (min-width: 720px) { .st-foot__social { grid-column: auto; justify-content: flex-end; } }
.st-foot__social a { font-size: 0.9375rem; font-weight: 500; border-bottom: 1px solid var(--st-green); padding-bottom: 2px; }
.st-foot__base {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	margin-top: 2rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--st-line);
	font-size: 0.8125rem;
	color: var(--st-mute);
}
.st-foot__base a { color: var(--st-mute); }
.st-foot__base a:hover { color: var(--st-ink); }
.st-foot__top-link { margin-left: auto; }
.st-foot .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
	.js .st-reveal { opacity: 1; transform: none; transition: none; }
	.st-bp .bp-draw { stroke-dashoffset: 0; transition: none; }
	html body :is(.np-btn, .st-btn, .st-link, .st-cell) { transition: none; }
}
