:root{
			--background: rgba(250, 250, 100, 0.1
			);
			--text: #333;
			--theme: rgba(245, 0, 0, 1);
		}

	@font-face {
	      font-family: 'IBM Plex';
	      font-style: normal;
	      src: url('/https/nickarner.com/fonts/IBMPlexSansVariable.woff2') format('woff2');
	      font-display: swap;
	      font-weight: 200;  
	    }

	@font-face {
	      font-family: 'IBM Plex';
	      font-style: normal;
	      src: url('/https/nickarner.com/fonts/IBMPlexSansVariable.woff2') format('woff2');
	      font-display: swap;
	      font-weight: 300;  
	    }

	@font-face {
	      font-family: 'IBM Plex';
	      font-style: normal;
	      src: url('/https/nickarner.com/fonts/IBMPlexSansVariable.woff2') format('woff2');
	      font-display: swap;
	      font-weight: 400;  
	    }

	@font-face {
	      font-family: 'IBM Plex';
	      font-style: normal;
	      src: url('/https/nickarner.com/fonts/IBMPlexSansVariable.woff2') format('woff2');
	      font-display: swap;
	      font-weight: 600;  
	    }

	@font-face {
	      font-family: 'IBM Plex';
	      font-style: normal;
	      src: url('/https/nickarner.com/fonts/IBMPlexSansVariable.woff2') format('woff2');
	      font-display: swap;
	      font-weight: 800;  
	    }


	a{
		color: var(--theme);
		text-decoration: none;
		font-weight: 600;
		overflow-wrap: break-word;
		word-wrap: break-word;
		-ms-word-break: break-all;
		/* Instead use this non-standard one: */
		word-break: break-word;
	}

	a:hover{
		text-decoration: underline;
		text-underline-offset: 2px;
		text-decoration-thickness: 1.5px;
	}

	/* extra styling for external links */

	.external-link{
		position: relative;
		background: url(/https/nickarner.com/arrow.svg) no-repeat;
		background-origin: padding-box;
		padding-right: 1em;
		background-size: 0.5em;
		background-position-y: 0.2rem;
		background-position-x: calc(100% + -0.4em);
		margin-right: -0.4rem;
	}

	/*.external-link:after{
		content: "↗";
		font-size: 10px;
		margin-left: 2px;
		line-height: 1rem;
		vertical-align: super;
		font-weight: 400;
		display: inline;
	}*/


	/* style for the array of contents */

	.toc{
		font-weight: 600;
		margin-top: -1.5em;
		margin-bottom: 2rem;
		font-size: 16px;
	}

	.toc a{
		font-weight: 600;
	}

	.date{
		font-weight: 200;
		margin-top: -1.5em;
		margin-bottom: 2.5rem;
		font-size: 16px;
	}


	body{
		text-align: center;
		font-family: IBM Plex, sans-serif;
		line-height: 1.5em;
		font-size: 18px;
		color: var(--text);
		background: var(--background);
		margin: 0px;
		font-weight: normal; 
		text-rendering: optimizeLegibility !important;
		font-feature-settings: "kern";
	}

	main{
		display: inline-block;
		text-align: left;
		padding: 10vw 0rem 10vw 0rem;
	}

	.left{
		display: inline-block;
		padding: 0rem 3rem;
		width: 12rem;
	}

	.content{
		max-width: 38rem;
		width: calc(100vw - 25rem);
		display: inline-block;
		padding: 0rem 3rem;
		border-left: solid 0.5px #333;
		vertical-align: top;
		min-height: calc(100vh - 20vw);
		position: relative;
	}

	article{
		width: 100%
	}

	footer{
		bottom: 0px;
		font-size: 14px;
		font-weight: 200;
		/* comment out the transform and position to make the footer a regular line */
		transform: translateX(-5.2rem) rotate3d(0, 0, 1, -90deg);
		position: absolute;
		transform-origin: top left;
		width: fit-content;
		font-style: italic;
		opacity: 0.8;
		margin-top: 4rem;
	}

	p{
		margin: 0rem 0rem 1.5em 0rem;
	}


	article p:last-child{
		margin-bottom: 0.5em;
	}

	li{
		margin: 0em 0em 0.7em 0em;
	}

	li p:last-child{
		margin-bottom: 0em;
	}

	pre{
		overflow: auto;
		padding: 1rem;
		box-sizing: border-box;
		background: rgba(255, 255, 255, 0.4);
		position: relative;
		width: 100%;
	}

	.comparison-table{
		width: calc(100% + 4rem);
		max-width: calc(100vw - 4rem);
		margin: 1.4rem 0rem 1.8rem 0rem;
		border-collapse: collapse;
		table-layout: fixed;
		font-size: 0.88rem;
		line-height: 1.4;
	}

	.comparison-table th,
	.comparison-table td{
		padding: 0.7rem 0.65rem;
		border-bottom: solid 0.5px rgba(51, 51, 51, 0.35);
		vertical-align: top;
		text-align: left;
	}

	.comparison-table thead th{
		padding-top: 0rem;
		border-bottom: solid 1px var(--text);
		font-weight: 600;
	}

	.comparison-table tbody th{
		font-weight: 600;
	}

	.comparison-table th:first-child,
	.comparison-table td:first-child{
		width: 6rem;
		padding-left: 0rem;
	}

	.comparison-table th:last-child,
	.comparison-table td:last-child{
		width: 5rem;
		padding-right: 0rem;
	}

	.comparison-table code{
		overflow-wrap: anywhere;
		word-break: break-word;
		font-size: 0.9em;
	}

	.comparison-table .comparison-result{
		font-weight: 600;
	}

	.comparison-table .comparison-root-cause{
		color: var(--theme);
	}

	.options{
		font-size: 18px;
	}

	nav > a{
		display: block;
		padding: 0.2rem 0px;
		font-weight: 300;
	}

	nav > a:hover{
		font-weight: 800;
		text-decoration: none;
	}

	nav{
		text-align: right;
		width: fit-content;
		margin-top: 0.5rem;
		width: 100%;
	}

	.home{
		font-size: 1.75em;
		margin-bottom: 1rem;
		color: var(--text);
	}

	.home a{
		font-weight: 800;
	}

	.home a:hover{
		text-decoration: none;
	}

	.note{
		margin: 0.5rem 0rem;
	}

	.note-summary{
		font-size: 14px;
		font-weight: 300;
		line-height: 1.45;
		opacity: 0.7;
		margin-top: 0.15rem;
		max-width: 34rem;
	}

	i{
		font-weight: 200;
	}

	h1{
		font-size: 2.6rem;
		margin-top: 0em;
		line-height: 1.25em;
	}

	h2{
		font-size: 1.8rem;
		margin: 1.6em 0em 0.8em 0em;
		scroll-margin-top: 2rem;
		line-height: 1.3em;
	}

	h3{
		font-size: 1.3rem;
		margin: 1.6em 0em 1em 0em;
		scroll-margin-top: 2rem;
		line-height: 1.4em;
	}

	h4{
		margin: 2em 0em 1em 0em;
		line-height: 1.5em;
		font-size: 1rem;
	}

	img{
		width: 100%;
	}

	article > img{
		width: 100%;
		margin-bottom: 1.5rem;
	}

	.l-float{
		width: 12rem;
		float: left;
		margin: 0rem 1.5rem 1.4rem 0px;
	}

	.r-float{
		width: 12rem;
		float: right;
		margin: 0rem 0px 1.4rem 1.5rem;
	}

	hr{
		display: block;
		width: 100%;
		margin: 2.5rem 0rem;
		border: none;
		border-top: solid 0.25px var(--text);
	}



	/* ---- Projects page redesign ---- */

	.projects-redesign h1 {
		margin-bottom: 0.4em;
	}

	.projects-redesign .lede {
		font-weight: 300;
		font-size: 1.05em;
		line-height: 1.55;
		color: var(--text);
		margin-bottom: 1rem;
		max-width: 34rem;
	}

	.projects-redesign .featured-work {
		margin-top: 2rem;
		margin-bottom: 3.5rem;
	}

	.projects-redesign .section-rule {
		display: flex;
		flex-direction: row;
		align-items: baseline;
		justify-content: space-between;
		padding-bottom: 0.6rem;
		border-bottom: 0.5px solid var(--text);
		margin: 0 0 1.75rem 0;
	}

	.projects-redesign .section-rule .label {
		font-weight: 600;
		font-size: 0.95rem;
		letter-spacing: 0.02em;
	}

	.projects-redesign .section-rule .meta {
		font-weight: 200;
		font-style: italic;
		font-size: 0.8rem;
		opacity: 0.7;
	}

	.projects-redesign .project {
		display: flex;
		flex-direction: row;
		align-items: flex-start;
		gap: 1.5rem;
		margin-bottom: 2rem;
	}

	.projects-redesign .project-break {
		border-top: 0.5px solid rgba(51, 51, 51, 0.3);
		padding-top: 2.5rem;
		margin-top: 0.5rem;
	}

	.projects-redesign .project-thumb {
		flex-shrink: 0;
		width: 14rem;
		height: 10rem;
		display: block;
		background: rgba(0, 0, 0, 0.04);
		line-height: 0;
		overflow: hidden;
		font-weight: 400;
	}

	.projects-redesign .project-thumb:hover {
		text-decoration: none;
	}

	.projects-redesign .project-thumb img,
	.projects-redesign .project-thumb video {
		width: 100%;
		height: 10rem;
		object-fit: cover;
		display: block;
		margin: 0;
		transition: transform 0.4s ease;
	}

	.projects-redesign .project-thumb:hover img,
	.projects-redesign .project-thumb:hover video {
		transform: scale(1.02);
	}

	.projects-redesign .project-meta {
		flex: 1;
		display: flex;
		flex-direction: column;
		padding-top: 0.25rem;
	}

	.projects-redesign .project-head {
		display: flex;
		flex-direction: row;
		align-items: baseline;
		justify-content: space-between;
		gap: 1rem;
		margin-bottom: 0.35rem;
	}

	.projects-redesign .project-name {
		font-size: 1.3rem;
		font-weight: 600;
	}

	.projects-redesign .project-when {
		font-size: 0.8rem;
		font-weight: 300;
		opacity: 0.9;
		white-space: nowrap;
	}

	.projects-redesign .project-desc {
		font-size: 0.95rem;
		font-weight: 300;
		line-height: 1.55;
		margin: 0 0 0.75rem 0;
		color: var(--text);
	}

	.projects-redesign .project-tags {
		display: flex;
		flex-direction: row;
		gap: 0.5rem;
		flex-wrap: wrap;
	}

	.projects-redesign .project-tags span {
		font-family: 'IBM Plex', monospace;
		font-size: 0.7rem;
		font-weight: 400;
		opacity: 0.7;
		padding: 0.1rem 0.5rem;
		border: 0.5px solid var(--text);
		white-space: nowrap;
	}

	.projects-redesign .also {
		margin-top: 2rem;
	}

	.projects-redesign .also-list {
		font-size: 0.85rem;
		font-weight: 300;
		line-height: 1.85;
	}

	.projects-redesign .additional-projects .also-list,
	.projects-redesign .client-work .also-list {
		line-height: 1.45;
		margin-top: 0;
		padding-left: 1.1rem;
	}

	.projects-redesign .additional-projects .also-list li,
	.projects-redesign .client-work .also-list li {
		margin-bottom: 0.35rem;
	}

	.projects-redesign .also-list a {
		font-weight: 500;
	}

	@media screen and (max-width: 600px) {
		.projects-redesign h1 {
			font-size: 2.35rem;
			line-height: 1.15;
		}
		.projects-redesign .section-rule {
			align-items: flex-start;
			flex-direction: column;
			gap: 0.2rem;
		}
		.projects-redesign .project {
			flex-direction: column;
			gap: 0.85rem;
		}
		.projects-redesign .project-thumb {
			width: 100%;
			height: min(12rem, calc((100vw - 3rem) / 1.4));
		}
		.projects-redesign .project-thumb img,
	.projects-redesign .project-thumb video {
			height: 100%;
		}
		.projects-redesign .project-head {
			flex-direction: column;
			gap: 0.1rem;
		}
		.projects-redesign .project-when {
			white-space: normal;
		}
	}

	/* ---- end projects redesign ---- */

	@media screen and (max-width: 768px){

		body{
			font-size: 16px;
		}

		.left{
			width: 100%;
			padding: 0rem 1.5rem 2rem 1.5rem;
			box-sizing: border-box;
		}

		main{
			padding-bottom: 0vw;
		}

		.l-float,
		.r-float{
			float: none;
			display: block;
			width: 100%;
			max-width: 14rem;
			margin: 0;
		}

		nav{
			text-align: left;
		}

		nav > a{
			display: inline-block;
			padding-right: 1rem;
		}

		nav > a:hover{
			letter-spacing: -0.5px;
		}

		p{
			margin-bottom: 1.2rem;
		}

		.comparison-table,
		.comparison-table thead,
		.comparison-table tbody,
		.comparison-table tr,
		.comparison-table th,
		.comparison-table td{
			display: block;
		}

		.comparison-table{
			width: 100%;
			max-width: 100%;
			font-size: 0.95rem;
			table-layout: auto;
			border-top: solid 1px var(--text);
		}

		.comparison-table thead{
			position: absolute;
			width: 1px;
			height: 1px;
			overflow: hidden;
			clip: rect(0, 0, 0, 0);
			white-space: nowrap;
		}

		.comparison-table tbody tr{
			padding: 0.9rem 0rem;
			border-bottom: solid 0.5px rgba(51, 51, 51, 0.35);
		}

		.comparison-table th,
		.comparison-table td,
		.comparison-table th:first-child,
		.comparison-table td:first-child,
		.comparison-table th:last-child,
		.comparison-table td:last-child{
			width: auto;
			padding: 0rem;
			border-bottom: none;
		}

		.comparison-table tbody th{
			margin-bottom: 0.45rem;
			font-size: 1.05rem;
		}

		.comparison-table td{
			display: grid;
			grid-template-columns: 7.5rem minmax(0, 1fr);
			gap: 0.75rem;
			margin-top: 0.25rem;
		}

		.comparison-table td:before{
			content: attr(data-label);
			font-weight: 600;
			opacity: 0.72;
		}

		.content{
			width: 100vw;
			box-sizing: border-box;
			padding: 1.5rem;
			border-left: solid 0px #333;
			min-height: 0rem;
			display: block;
		}

		footer{
			margin-left: 0rem;
			margin-top: 3rem;
			padding-left: 0em;
			transform: none;
			position: relative;
		}

	}
