/* cv.systeam.sh placeholder: a cut-down copy of systeam.sh's theme
   (systeam-theme, style.css). Same tokens, same man-page grammar. */

@font-face {
	font-family: "JetBrains Mono";
	src: url("fonts/JetBrainsMono-Regular.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: "JetBrains Mono";
	src: url("fonts/JetBrainsMono-Bold.woff2") format("woff2");
	font-weight: 700;
	font-display: swap;
}

:root {
	--bg: #FDF6E3;
	--fg: #073642;
	--fg-muted: #506C75;
	--rule: #DED7C3;
	--accent: #0F6E68;
	--mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "DejaVu Sans Mono", monospace;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--measure: 68ch;
	--gutter: 13ch;
	color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
	:root {
		--bg: #002B36;
		--fg: #B6C2C2;
		--fg-muted: #8C9B9B;
		--rule: #0E4653;
		--accent: #3EA89E;
	}
}
@media (prefers-contrast: more) {
	:root { --fg-muted: var(--fg); --rule: var(--fg-muted); }
}

*, *::before, *::after { box-sizing: border-box; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--sans);
	line-height: 1.7;
}
.page {
	max-width: calc(var(--gutter) + var(--measure));
	margin: 0 auto;
	padding: 2rem 1.5rem 4rem;
}
a {
	color: var(--accent);
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
}
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
p { margin: 0 0 1.15rem; }
.mono { font-family: var(--mono); }

.manline {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 1ch;
	font-family: var(--mono);
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--fg-muted);
}
.manline > :nth-child(2) { text-align: center; }
.manline > :nth-child(3) { text-align: right; }
.manline--head { border-bottom: 1px solid var(--rule); padding-bottom: 0.75rem; }
.manline--foot { border-top: 1px solid var(--rule); padding-top: 0.75rem; margin-top: 0.75rem; }

.wordmark {
	font-family: var(--mono);
	font-weight: 700;
	font-size: 1.75rem;
	line-height: 1.2;
	margin: 2.5rem 0 0.35rem;
}
.wordmark a { color: inherit; text-decoration: none; }
.wordmark a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.wordmark .tilde { color: var(--accent); }
.wordmark .slash { color: var(--fg-muted); font-weight: 400; }
.wordmark .cursor {
	display: inline-block;
	width: 0.55em;
	height: 1.02em;
	margin-left: 0.12em;
	vertical-align: -0.16em;
	background: var(--accent);
	/* Four blinks, then steady (WCAG 2.2.2). */
	animation: blink 1.06s step-end 4;
}
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
	.wordmark .cursor { animation: none; }
}
.tagline {
	font-family: var(--mono);
	font-size: 0.82rem;
	color: var(--fg-muted);
	margin: 0 0 3.5rem;
}

.s {
	display: grid;
	grid-template-columns: var(--gutter) minmax(0, 1fr);
	margin: 0 0 3.25rem;
}
.s > h2 {
	font-family: var(--mono);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.11em;
	color: var(--fg-muted);
	margin: 0.3rem 0 0;
	padding-right: 1ch;
}
.s > .b { max-width: var(--measure); min-width: 0; }
.s > .b > :last-child { margin-bottom: 0; }

@media (max-width: 42rem) {
	.s { grid-template-columns: minmax(0, 1fr); }
	.s > h2 { margin: 0 0 0.75rem; }
	.manline { grid-template-columns: 1fr auto; }
	.manline > :nth-child(2) { display: none; }
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

@media (forced-colors: active) {
	.wordmark .cursor { background: CanvasText; }
}
@media print {
	:root { --bg: #FFFFFF; --fg: #000000; --fg-muted: #333333; --rule: #999999; --accent: #000000; }
	.page { max-width: none; padding: 0; }
}
