/* datasheet: one stylesheet for all four pages */

@font-face {
	font-family: 'Plex Sans';
	src: url('/fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Plex Sans';
	src: url('/fonts/ibm-plex-sans-latin-400-italic.woff2') format('woff2');
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: 'Plex Sans';
	src: url('/fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Plex Sans';
	src: url('/fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Plex Mono';
	src: url('/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Plex Mono';
	src: url('/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

:root {
	color-scheme: dark;

	--bg: #0f0f0d;
	--bg-row: #171713;
	--text: #e9e6df;
	--muted: #aaa59a;
	--dim: #8c877c;
	--rule: #2b2924;
	--rule-strong: #3d3a33;
	--accent: #f2a33a;

	--sans: 'Plex Sans', 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
	--mono: 'Plex Mono', 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;

	--gutter: 24px;
	--pad: 40px;
	--max: 1280px;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
	background: var(--bg);
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.6;
	font-kerning: normal;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-wrap: break-word;
}

::selection {
	background: var(--accent);
	color: #14120d;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd {
	margin: 0;
}

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

a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--rule-strong);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: text-decoration-color 0.15s linear;
}

a:hover {
	text-decoration-color: var(--accent);
}

/* credly anchors render as plain labels until an href is added */
a:not([href]) {
	text-decoration: none;
	color: inherit;
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 0;
}

button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

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

.skip-link {
	position: absolute;
	left: var(--pad);
	top: 8px;
	z-index: 10;
	padding: 8px 12px;
	background: var(--text);
	color: var(--bg);
	font-family: var(--mono);
	font-size: 13px;
	text-decoration: none;
	transform: translateY(-160%);
}

.skip-link:focus {
	transform: none;
}

/* layout */

.wrap {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 var(--pad);
}

.grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: var(--gutter);
}

.col-margin {
	grid-column: 1 / span 3;
}

.col-body {
	grid-column: 4 / -1;
	min-width: 0;
}

/* header */

.site-header {
	position: relative;
	border-bottom: 1px solid var(--rule);
}

.bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 64px;
}

.brand {
	display: inline-flex;
	align-items: baseline;
	gap: 10px;
	text-decoration: none;
	font-weight: 500;
	font-size: 15px;
	letter-spacing: 0.005em;
	white-space: nowrap;
}

.brand-mark {
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 400;
	color: var(--dim);
	white-space: pre;
}

.brand:hover .brand-mark {
	color: var(--muted);
}

.site-nav ul {
	display: flex;
	gap: 28px;
}

.site-nav a {
	position: relative;
	display: inline-block;
	padding: 6px 0;
	font-family: var(--mono);
	font-size: 13px;
	color: var(--muted);
	text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
	color: var(--text);
}

.site-nav a[aria-current='page']::before {
	content: '';
	position: absolute;
	left: -12px;
	top: 50%;
	width: 5px;
	height: 5px;
	margin-top: -2px;
	background: var(--accent);
}

.nav-toggle {
	display: none;
	font-family: var(--mono);
	font-size: 13px;
	color: var(--muted);
	padding: 8px 0;
}

.nav-toggle:hover {
	color: var(--text);
}

/* page head */

.page-head {
	padding: 72px 0 64px;
}

.path {
	font-family: var(--mono);
	font-size: 12.5px;
	color: var(--dim);
	padding-top: 14px;
}

h1 {
	font-size: clamp(32px, 3.6vw, 46px);
	line-height: 1.12;
	font-weight: 500;
	letter-spacing: -0.015em;
}

.role {
	margin-top: 14px;
	font-size: 19px;
	line-height: 1.45;
}

.lead {
	margin-top: 18px;
	max-width: 60ch;
	color: var(--muted);
	font-size: 17px;
}

/* decode effect (h1 only) */

.dc {
	position: relative;
}

.dc.scr {
	color: transparent;
}

.dc.scr::after {
	content: attr(data-g);
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	text-align: center;
	color: var(--dim);
	font-family: var(--mono);
	font-weight: 400;
	font-size: 0.82em;
	line-height: 1.38;
}

/* sections */

.sec {
	position: relative;
	padding: 28px 0 64px;
}

.rule {
	height: 1px;
	background: var(--rule-strong);
	margin-bottom: 28px;
	transform-origin: 0 50%;
}

.js .rule {
	transform: scaleX(0);
	transition: transform 1.1s var(--ease);
}

.js .in .rule {
	transform: scaleX(1);
}

.sec-head {
	align-self: start;
	font-family: var(--mono);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--muted);
	padding-top: 2px;
}

.sec-head .num {
	display: inline-block;
	min-width: 4ch;
	color: var(--dim);
}

@media (min-width: 900px) {
	.sec-head {
		position: sticky;
		top: 32px;
	}
}

/* first table in a section sits directly under the section rule */
.sec .col-body > .spec:first-child,
.sec .col-body > .work:first-child {
	border-top: 0;
}

.sec .col-body > .spec:first-child > div:first-child,
.sec .col-body > .work:first-child > li:first-child {
	padding-top: 1px;
}

.prose {
	max-width: 66ch;
	font-size: 17px;
	line-height: 1.65;
}

.prose + /* first table in a section sits directly under the section rule */
.sec .col-body > .spec:first-child,
.sec .col-body > .work:first-child {
	border-top: 0;
}

.sec .col-body > .spec:first-child > div:first-child,
.sec .col-body > .work:first-child > li:first-child {
	padding-top: 1px;
}

.prose {
	margin-top: 14px;
}

/* key / value spec block */

.spec {
	border-top: 1px solid var(--rule);
}

.spec > div {
	display: grid;
	grid-template-columns: minmax(120px, 2fr) 7fr;
	column-gap: var(--gutter);
	padding: 13px 0 14px;
	border-bottom: 1px solid var(--rule);
}

.spec dt {
	font-family: var(--mono);
	font-size: 12.5px;
	color: var(--dim);
	padding-top: 3px;
}

.spec dd {
	min-width: 0;
}

.spec .sub {
	color: var(--muted);
	font-size: 15px;
}

.kv-list > li {
	display: flex;
	justify-content: space-between;
	gap: 16px;
}

.kv-list > li + li {
	margin-top: 4px;
}

.kv-list .when {
	flex: none;
	font-family: var(--mono);
	font-size: 12.5px;
	color: var(--dim);
	padding-top: 3px;
}

.kv-list .what {
	color: var(--muted);
}

.codes {
	font-family: var(--mono);
	font-size: 13px;
	color: var(--muted);
	word-spacing: 0.35em;
}

.key {
	color: var(--accent);
	font-family: var(--mono);
	font-weight: 500;
}

.inline-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
	font-family: var(--mono);
	font-size: 13.5px;
}

/* interactive rows: hover/focus shows an amber edge and a faint background */

.rows {
	position: relative;
	z-index: 0;
}

.row {
	position: relative;
}

.row::before,
.row::after {
	content: '';
	position: absolute;
	top: -1px;
	bottom: 0;
	left: -16px;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.2s linear;
}

.row::after {
	right: -16px;
	background: var(--bg-row);
	z-index: -1;
}

.row::before {
	width: 2px;
	background: var(--accent);
	transform: scaleY(0.3);
	transition: opacity 0.2s linear, transform 0.3s var(--ease);
}

.row:hover::before,
.row:hover::after,
.row:focus-within::before,
.row:focus-within::after {
	opacity: 1;
}

.row:hover::before,
.row:focus-within::before {
	transform: none;
}

/* numbered work list (home) */

.work {
	border-top: 1px solid var(--rule);
}

.work > li {
	display: grid;
	grid-template-columns: 4ch minmax(0, 1fr) auto;
	column-gap: var(--gutter);
	padding: 18px 0 20px;
	border-bottom: 1px solid var(--rule);
}

.work .n {
	font-family: var(--mono);
	font-size: 12.5px;
	color: var(--dim);
	padding-top: 4px;
}

.work h3 {
	font-size: 18px;
	font-weight: 500;
	line-height: 1.4;
}

.work p {
	margin-top: 6px;
	color: var(--muted);
	max-width: 62ch;
}

.work .stack {
	margin-top: 8px;
}

.work .links {
	display: flex;
	gap: 18px;
	font-family: var(--mono);
	font-size: 13px;
	padding-top: 4px;
	white-space: nowrap;
}

.stack {
	font-family: var(--mono);
	font-size: 12.5px;
	color: var(--dim);
	line-height: 1.7;
}

.after {
	margin-top: 20px;
	font-size: 14px;
	color: var(--muted);
}

/* experience spec table (resume) */

.xp-head,
.xp-row {
	display: grid;
	grid-template-columns: minmax(0, 2.2fr) minmax(0, 4.4fr) minmax(0, 2.4fr);
	column-gap: var(--gutter);
}

.xp-head {
	font-family: var(--mono);
	font-size: 12px;
	color: var(--dim);
	padding-bottom: 10px;
	border-bottom: 1px solid var(--rule-strong);
}

.xp-row {
	padding: 18px 0 20px;
	border-bottom: 1px solid var(--rule);
}

.xp-when {
	font-family: var(--mono);
	font-size: 12.5px;
	color: var(--muted);
	padding-top: 3px;
	white-space: nowrap;
}

.xp-role h3 {
	font-size: 17px;
	font-weight: 500;
	line-height: 1.4;
}

.xp-role .org {
	color: var(--muted);
	font-size: 15px;
}

.xp-row .stack {
	padding-top: 3px;
}

.xp-row ul {
	grid-column: 2 / -1;
	margin-top: 10px;
	color: var(--muted);
	font-size: 15px;
}

.ticks li {
	position: relative;
	padding-left: 18px;
}

.ticks li + li {
	margin-top: 4px;
}

.ticks li::before {
	content: '';
	position: absolute;
	left: 2px;
	top: 0.8em;
	width: 7px;
	height: 1px;
	background: var(--dim);
}

/* skills */

.skills {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	column-gap: var(--gutter);
	row-gap: 28px;
}

.skills h3 {
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 400;
	color: var(--dim);
	padding-bottom: 8px;
	margin-bottom: 10px;
	border-bottom: 1px solid var(--rule);
}

.skills li {
	font-family: var(--mono);
	font-size: 13.5px;
	line-height: 1.85;
}

.notes {
	margin-top: 40px;
	max-width: 76ch;
}

.notes h3 {
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 400;
	color: var(--dim);
	margin-bottom: 12px;
}

.notes > dl > div {
	display: grid;
	grid-template-columns: 11ch minmax(0, 1fr);
	column-gap: var(--gutter);
	padding: 8px 0;
	border-top: 1px solid var(--rule);
}

.notes dt {
	font-family: var(--mono);
	font-size: 12.5px;
	padding-top: 2px;
}

.notes dd {
	font-size: 14.5px;
	color: var(--muted);
}

/* certification table */

.certs {
	border-top: 1px solid var(--rule);
	margin-top: 14px;
}

.certs li {
	display: grid;
	grid-template-columns: 7ch minmax(0, 1fr);
	column-gap: var(--gutter);
	padding: 8px 0;
	border-bottom: 1px solid var(--rule);
	font-size: 15px;
}

.certs a {
	font-family: var(--mono);
	font-size: 13px;
	font-weight: 500;
	padding-top: 2px;
}

.certs a[href] {
	text-decoration: underline;
	text-decoration-color: var(--rule-strong);
}

.certs span {
	color: var(--muted);
}

.block + .block {
	margin-top: 40px;
}

.block h3 {
	font-size: 17px;
	font-weight: 500;
}

.block .meta {
	font-family: var(--mono);
	font-size: 12.5px;
	color: var(--dim);
	margin-top: 2px;
}

.block p {
	margin-top: 6px;
}

.block .body {
	color: var(--muted);
	font-size: 15px;
	max-width: 66ch;
}

/* timeline */

.filters {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 20px;
}

.filter,
.tag {
	font-family: var(--mono);
	font-size: 13px;
	color: var(--muted);
	padding: 4px 0;
	text-decoration: underline;
	text-decoration-color: transparent;
	text-decoration-thickness: 1px;
	text-underline-offset: 5px;
	transition: text-decoration-color 0.15s linear, color 0.15s linear;
}

.filter:hover,
.tag:hover {
	color: var(--text);
	text-decoration-color: var(--rule-strong);
}

.filter[aria-pressed='true'] {
	color: var(--text);
	text-decoration-color: var(--accent);
	text-decoration-thickness: 2px;
}

.filter-status {
	margin-top: 14px;
	font-family: var(--mono);
	font-size: 12.5px;
	color: var(--dim);
}

.tl-entry {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: var(--gutter);
}

.tl-entry[hidden] {
	display: none;
}

.tl-when {
	grid-column: 1 / span 3;
	font-family: var(--mono);
	font-size: 12.5px;
	color: var(--muted);
	padding-top: 22px;
	text-align: right;
	line-height: 1.7;
}

.tl-when .kind {
	display: block;
	color: var(--dim);
}

.tl-body {
	grid-column: 4 / -1;
	position: relative;
	padding: 20px 0 28px 32px;
	border-left: 1px solid var(--rule-strong);
}

.tl-body::before,
.tl-body::after {
	content: '';
	position: absolute;
	left: -1px;
	top: 32px;
	width: 14px;
	height: 1px;
	background: var(--dim);
	transform-origin: 0 50%;
}

.tl-body::after {
	background: var(--accent);
	opacity: 0;
	transform: scaleX(0.4);
	transition: transform 0.3s var(--ease), opacity 0.2s linear;
}

.tl-entry:hover .tl-body::after,
.tl-entry:focus-within .tl-body::after {
	opacity: 1;
	transform: scaleX(1.5);
}

.tl-body h3 {
	font-size: 17px;
	font-weight: 500;
	line-height: 1.45;
}

.tl-body .org {
	color: var(--muted);
	font-weight: 400;
}

.tl-body p,
.tl-body ul {
	margin-top: 8px;
	font-size: 15px;
	color: var(--muted);
	max-width: 70ch;
}

.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0 16px;
	margin-top: 10px;
}

.tag {
	font-size: 12.5px;
	color: var(--dim);
}

.tag.on {
	color: var(--accent);
}

/* projects */

.proj h2 {
	font-size: 24px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: -0.005em;
}

.proj .desc {
	margin-top: 10px;
	max-width: 64ch;
	color: var(--muted);
	font-size: 17px;
}

.proj .spec {
	margin-top: 24px;
}

.proj .spec dd {
	font-size: 15px;
}

.proj .spec dd.mono-v {
	font-size: 13.5px;
}

.mono-v {
	font-family: var(--mono);
	font-size: 13.5px;
}

/* footer */

.site-footer {
	margin-top: 24px;
	padding: 0 0 48px;
}

.site-footer .rule {
	margin-bottom: 22px;
}

.foot {
	font-family: var(--mono);
	font-size: 12.5px;
	color: var(--dim);
}

.foot .inline-links {
	font-size: 12.5px;
	color: var(--muted);
}

/* responsive */

@media (max-width: 1100px) {
	.skills {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 899px) {
	:root {
		--pad: 24px;
		--gutter: 18px;
	}

	.col-margin,
	.col-body {
		grid-column: 1 / -1;
	}

	.sec-head,
	.path {
		margin-bottom: 18px;
	}

	.page-head {
		padding: 48px 0 44px;
	}

	.page-head .path {
		padding-top: 0;
	}

	.tl-when {
		grid-column: 1 / -1;
		text-align: left;
		padding: 22px 0 0 32px;
		border-left: 1px solid var(--rule-strong);
	}

	.tl-when .kind {
		display: inline;
		margin-left: 12px;
	}

	.tl-body {
		grid-column: 1 / -1;
		padding-top: 4px;
	}

	.tl-body::before,
	.tl-body::after {
		top: -14px;
	}
}

@media (max-width: 720px) {
	:root {
		--pad: 18px;
	}

	/* header stays pinned so the menu button is always reachable */
	.site-header {
		position: sticky;
		top: 0;
		z-index: 30;
		background: var(--bg);
	}

	.bar {
		flex-wrap: wrap;
		padding-top: 10px;
		padding-bottom: 10px;
		gap: 4px 16px;
	}

	.sec {
		padding-bottom: 44px;
	}

	.foot .col-margin {
		margin-bottom: 10px;
	}

	.site-nav {
		flex-basis: 100%;
	}

	.site-nav ul {
		gap: 22px;
		flex-wrap: wrap;
		padding-left: 12px;
	}

	.js .nav-toggle {
		display: inline-block;
	}

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

	/* open menu overlays the page instead of pushing it down */
	.js.nav-open .site-nav {
		display: block;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		z-index: 30;
		padding: 0 var(--pad);
		background: var(--bg);
		border-bottom: 1px solid var(--rule-strong);
	}

	.js .site-nav ul {
		display: block;
		padding: 6px 0 4px;
	}

	.js .site-nav li {
		border-top: 1px solid var(--rule);
	}

	.js .site-nav a {
		display: block;
		padding: 12px 0 12px 16px;
	}

	.js .site-nav a[aria-current='page']::before {
		left: 0;
	}

	.js .site-nav .mode-toggle {
		padding: 12px 0 12px 16px;
	}

	.spec > div {
		grid-template-columns: 1fr;
		row-gap: 4px;
	}

	.spec dt {
		padding-top: 0;
	}

	.kv-list > li {
		flex-direction: column;
		gap: 0;
	}

	.kv-list > li + li {
		margin-top: 10px;
	}

	.kv-list .when {
		padding-top: 0;
		order: -1;
	}

	.work > li {
		grid-template-columns: 4ch minmax(0, 1fr);
	}

	.work .links {
		grid-column: 2;
		margin-top: 10px;
	}

	.xp-head {
		display: none;
	}

	.xp-row {
		grid-template-columns: 1fr;
		row-gap: 4px;
	}

	.xp-row ul {
		grid-column: 1;
		order: 4;
	}

	.xp-row .stack {
		order: 3;
		padding-top: 6px;
	}

	.skills {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.notes > dl > div {
		grid-template-columns: 1fr;
	}

	.row::before,
	.row::after {
		left: -10px;
	}

	.row::after {
		right: -10px;
	}

	.proj h2 {
		font-size: 21px;
	}
}

/* motion: transform and opacity only; all of it is off under reduced motion */

@keyframes rise {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
}

@keyframes fade {
	from {
		opacity: 0;
	}
}

/* page load: header fades in, page head lines rise in sequence (pure css, safe without js) */
.site-header .bar {
	animation: fade 0.6s linear backwards;
}

.page-head .path {
	animation: rise 0.7s var(--ease) 0.05s backwards;
}

.page-head .col-body > :not(h1) {
	animation: rise 0.7s var(--ease) 0.35s backwards;
}

.page-head .col-body > :nth-child(3) {
	animation-delay: 0.45s;
}

.page-head .col-body > :nth-child(4) {
	animation-delay: 0.55s;
}

.page-head .col-body > :nth-child(n + 5) {
	animation-delay: 0.65s;
}

/* mobile menu opens with a short rise */
.js.nav-open .site-nav ul {
	animation: rise 0.25s var(--ease) backwards;
}

/* scroll reveal: blocks fade up as they enter the viewport (js tags them with data-reveal) */
.motion [data-reveal] {
	transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.motion [data-reveal]:not(.in) {
	opacity: 0;
	transform: translateY(10px);
}

/* timeline tick draws out from the spine once its entry appears */
.motion .tl-entry[data-reveal] .tl-body::before {
	transition: transform 0.5s var(--ease) 0.2s;
}

.motion .tl-entry[data-reveal]:not(.in) .tl-body::before {
	transform: scaleX(0);
}

/* timeline filter: entries that stay or appear re-enter with a short stagger */
.motion .tl-entry.refresh {
	animation: rise 0.4s var(--ease) backwards;
}

/* reading progress hairline, created by js */
.progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: var(--dim);
	transform: scaleX(0);
	transform-origin: 0 50%;
	pointer-events: none;
	z-index: 40;
}

/* colorful mode: toggled from the nav, persisted in localStorage (data-mode on <html>) */

.mode-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 0;
	font-family: var(--mono);
	font-size: 13px;
	color: var(--muted);
}

.mode-toggle::before {
	content: '';
	width: 6px;
	height: 6px;
	background: var(--dim);
}

.mode-toggle:hover {
	color: var(--text);
}

.mode-toggle[aria-pressed='true']::before {
	background: linear-gradient(135deg, #f2a33a 0 33%, #4fd6c8 33% 66%, #b7a1ff 66%);
}

html[data-mode='color'] {
	--c1: #f2a33a;
	--c2: #ff7a7a;
	--c3: #4fd6c8;
	--c4: #b7a1ff;
	--c5: #6cb6ff;
	--c6: #b8e65f;
	--sec: var(--c1);
	--accent: var(--c1);
}

.mode-anim * {
	transition: color 0.35s linear, background-color 0.35s linear, border-color 0.35s linear;
}

/* each section, row, and timeline entry takes the next hue in the cycle */
html[data-mode='color'] .sec:nth-of-type(6n + 1) {
	--sec: var(--c1);
}

html[data-mode='color'] .sec:nth-of-type(6n + 2) {
	--sec: var(--c3);
}

html[data-mode='color'] .sec:nth-of-type(6n + 3) {
	--sec: var(--c4);
}

html[data-mode='color'] .sec:nth-of-type(6n + 4) {
	--sec: var(--c5);
}

html[data-mode='color'] .sec:nth-of-type(6n + 5) {
	--sec: var(--c2);
}

html[data-mode='color'] .sec:nth-of-type(6n + 6) {
	--sec: var(--c6);
}

html[data-mode='color'] .row:nth-child(6n + 1) {
	--sec: var(--c1);
}

html[data-mode='color'] .row:nth-child(6n + 2) {
	--sec: var(--c3);
}

html[data-mode='color'] .row:nth-child(6n + 3) {
	--sec: var(--c4);
}

html[data-mode='color'] .row:nth-child(6n + 4) {
	--sec: var(--c5);
}

html[data-mode='color'] .row:nth-child(6n + 5) {
	--sec: var(--c2);
}

html[data-mode='color'] .row:nth-child(6n + 6) {
	--sec: var(--c6);
}

html[data-mode='color'] .tl-entry:nth-child(6n + 1) {
	--sec: var(--c1);
}

html[data-mode='color'] .tl-entry:nth-child(6n + 2) {
	--sec: var(--c3);
}

html[data-mode='color'] .tl-entry:nth-child(6n + 3) {
	--sec: var(--c4);
}

html[data-mode='color'] .tl-entry:nth-child(6n + 4) {
	--sec: var(--c5);
}

html[data-mode='color'] .tl-entry:nth-child(6n + 5) {
	--sec: var(--c2);
}

html[data-mode='color'] .tl-entry:nth-child(6n + 6) {
	--sec: var(--c6);
}

html[data-mode='color'] .skills > div:nth-child(6n + 1) {
	--sec: var(--c1);
}

html[data-mode='color'] .skills > div:nth-child(6n + 2) {
	--sec: var(--c3);
}

html[data-mode='color'] .skills > div:nth-child(6n + 3) {
	--sec: var(--c4);
}

html[data-mode='color'] .skills > div:nth-child(6n + 4) {
	--sec: var(--c5);
}

html[data-mode='color'] .skills > div:nth-child(6n + 5) {
	--sec: var(--c2);
}

html[data-mode='color'] .skills > div:nth-child(6n + 6) {
	--sec: var(--c6);
}

html[data-mode='color'] ::selection {
	background: var(--c3);
	color: var(--bg);
}

html[data-mode='color'] .brand-mark {
	color: var(--c2);
}

html[data-mode='color'] .path {
	color: var(--c1);
}

html[data-mode='color'] .role {
	color: var(--c3);
}

html[data-mode='color'] .rule {
	background: var(--sec);
	opacity: 0.85;
}

html[data-mode='color'] .sec-head .num,
html[data-mode='color'] .work .n,
html[data-mode='color'] .tl-when,
html[data-mode='color'] .when,
html[data-mode='color'] .stack,
html[data-mode='color'] .mono-v {
	color: var(--sec);
}

html[data-mode='color'] .codes {
	color: var(--c4);
}

html[data-mode='color'] .skills h3 {
	color: var(--sec);
	border-bottom-color: var(--sec);
}

html[data-mode='color'] .tag,
html[data-mode='color'] .tl-body .org {
	color: var(--sec);
}

html[data-mode='color'] .row::before,
html[data-mode='color'] .tl-body::before,
html[data-mode='color'] .tl-body::after {
	background: var(--sec);
}

html[data-mode='color'] .ticks li::before {
	background: var(--sec);
}

html[data-mode='color'] a:hover {
	text-decoration-color: var(--sec);
}

html[data-mode='color'] .progress {
	background: linear-gradient(90deg, var(--c1), var(--c3), var(--c4), var(--c5), var(--c2));
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}

	.js .rule {
		transform: none;
	}
}

.page-head .spec {
	margin-top: 32px;
}
