
@import url("pygment.css") (prefers-color-scheme: light);
@import url("pygment-dark.css") (prefers-color-scheme: dark);
/* #region START CSS RESETS from https://mikemai.net/blog/2024/11/01/you-are-not-a-css-dev-if-you-have-not-made-a-css-reset.html */
@layer resets, custom;

@layer resets {
  *,
  ::before,
  ::after {
    font-feature-settings: "kern";
    font-kerning: normal;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
  }

  * {
    margin: 0;
    padding: 0;
  }

  input:is([type="checkbox"], [type="radio"], [type="file"]),
  select,
  label,
  button {
    cursor: pointer;
  }

  input,
  select,
  textarea,
  button {
    font: inherit;
  }

  img,
  svg,
  video {
    max-inline-size: 100%;
    block-size: auto;
  }

  svg {
    fill: currentcolor;
  }

  @media (forced-colors: active) {
    button {
      border: 1px solid;
    }
  }

  @media (prefers-reduced-motion: no-preference) {
    :root {
      scroll-behavior: smooth;
    }
  }
}
/* #endregion END CSS RESETS */



@layer custom {

	/* #region START GENERAL LAYOUT */

	/* modified from "Responsive header, twocolumnsanda footer layout: https://gridbyexample.com/patterns/header-twocol-footer-responsive/ */

	:root {
		background-color: #f4f4f4;
	}
	body {
		font-size: 1.25rem;
		line-height: 1.6;
		letter-spacing: .01rem;;
		font-weight:400;
		font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Open Sans","Helvetica Neue",sans-serif;
		background-color: #fff;
		color: #1a1a1a;
		padding-top:2rem;
		margin: 1rem 1rem;
	}

	h1,h2,h3,h4 {
		text-wrap: balance;
		letter-spacing: 0px;
		margin: 2rem 0 0 0;
		line-height: 1.1;
	}
	 h1 {
		font-size:clamp(2rem, 1rem + 4vw, 3.5rem);
		font-weight:bold;
	 }
	 h2 {
		font-size:1.75rem;
		font-weight:bold;
	 }
	 h3 {
		font-size:1.5rem;
		font-weight:bold;
	 }
	 h4 {
		font-size:1.25rem;
		font-weight:bold;
	 }

	a {
		text-decoration: none;
		color: #b00000;
	}

	a:visited {
		color: #990000;
	}

	a:hover {
		color: #007acc;
	}

	p {
		margin: .25rem 0 1.75rem 0;
	}

	article a {
		text-decoration: underline;
	}

	pre {
		overflow: auto;
		max-width: 100%;
	}

	li {
		margin: 1rem 0;
	}

	main {
		max-width: 1100px;
		margin: 0;
		display: grid;
		grid-gap: .8rem;
		/* used to prevent blowout - see note/link below */
		grid-template-columns: minmax(0, 1fr);
		overflow: visible;
	}

	input, button {
		padding: .5rem .5rem;
		margin: .2rem 0;
		text-indent: .05rem;
		border: .0625rem solid #ABB0B2;
		border-radius: .1875rem;
	}

	code,pre {
		margin: .625rem;
	}


	@media screen and (min-width: 650px) {
		body {
			margin: 1rem 1rem;
		}
		main {
			margin: 0 auto;
			grid-template-columns: minmax(0, 4fr) 1fr;
			/* prevent grid blowout wiht minmax() https://css-tricks.com/preventing-a-grid-blowout/ */
		}
		header, footer {
			grid-column: 1 / -1;
		}
	}

	main>* {
		border-radius: .4rem;
		/* needed for the floated layout*/
		margin-bottom: 1rem;
	}

	/* We need to set the widths used on floated items back to auto, and remove the bottom margin as when we have grid we have gaps. */

	@supports (display: grid) {
		main>* {
			width: auto;
			margin: 0;
		}
	}

	/* #endregion END GENERAL LAYOUT */

	/* #region START ARTICLE */

	article {
		padding: 0rem 3rem 1rem 1rem;
		border-bottom: 1px dashed gainsboro;
	}

	.published-date {
		color: #b5b5b5;
		/* font-style: italic; */
		margin-bottom: 1em;
	}

	.article-info {
		text-transform: uppercase;
		font-size:.85rem;
	}
	.article-info a, .article-info a:visited {
		display:inline-block;
		color: #d07777;
		
	}

	.article-title a {
		text-decoration: none;
		color: #1a1a1a;
	}

	.article-title a:visited {
		text-decoration: none;
		color: #1a1a1a;
	}

	/* .article-content {
		margin-left: .5em;
	} */

	.youtube-container {
		position: relative;
		width: 100%;
		height: 0;
		padding-bottom: 56.25%;
	}

	.youtube-video {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
	}


	article img {
		max-width: 100%;
		display: block;
		margin: 1rem auto;
		border: 1px solid #e0e0e0;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	}

	/* #endregion END ARTICLE */

	/* #region START FOOTER */

	footer {
		text-align: center;
		padding: 2rem 1rem;
		border-top: .0625rem solid #e0e0e0;
		font-size: .9rem;
		color: #666;
	}

	footer p {
		margin: 0 0 .5rem 0;
	}

	footer nav a {
		color: #b00000;
		text-decoration: none;
	}

	footer nav a:hover {
		color: #007acc;
	}

	/* #endregion END FOOTER */


	/* #region START HEADER NAVIGATION */

	img#logo-header {
		width: 21.25rem;
	}

	header {
		display: flex;
		flex-flow: column wrap;
		justify-content: space-between;
	}

	/* Nav menu from: https://w3bits.com/css-responsive-nav-menu/ */

	#menu ul {
		margin: 0;
		padding: 0;
	}

	#menu .main-menu {
		display: none;
	}

	#tm:checked+.main-menu {
		display: block;
	}

	#menu input[type="checkbox"], #menu ul span.drop-icon {
		display: none;
	}

	#menu li, #toggle-menu {
		border-width: 0 0 .0625rem;
		margin:0;
	}

	#menu .sub-menu {
		border-width: .0625rem .0625rem 0;
		margin: 0 1rem;
	}

	#menu .sub-menu li:last-child {
		border-width: 0;
	}

	#menu li, #toggle-menu, #menu a {
		position: relative;
		display: block;
		color:#1a1a1a;
		/* text-shadow: 1px 1px 0 rgba(0, 0, 0, .125); */
	}

	#menu, #toggle-menu {
		background-color: rgb(245, 245, 245);

	}

	#toggle-menu, #menu a {
		padding: .5em 1.5em;
	}

	#menu a {
		transition: all .125s ease-in-out;
		-webkit-transition: all .125s ease-in-out;
		color:#1a1a1a;
	}

	#menu a:hover {
		background-color: rgb(51, 51, 51);
		color:white;
	}

	#menu .sub-menu {
		display: none;
	}

	#menu input[type="checkbox"]:checked+.sub-menu {
		display: block;
	}

	#toggle-menu .drop-icon, #menu li label.drop-icon {
		position: absolute;
		right: 1.5rem;
		top: .75rem;
	}

	#menu label.drop-icon, #toggle-menu span.drop-icon {
		border-radius: 50%;
		width: 1rem;
		height: 1rem;
		text-align: center;
		background-color: #f4f4f4;
		text-shadow: 0 0 0 transparent;
		color: rgba(65, 65, 65, 0.75);
	}

	#menu .drop-icon {
		line-height: 1;
	}

	/* Add non-breaking space before drop icons to prevent orphan wrapping */
	#menu a > span.drop-icon:first-of-type::before,
	#menu a > label.drop-icon:first-of-type::before {
		content: '\00a0\00a0';
	}

	/* Widen submenu to prevent caret wrapping */
	@media only screen and (min-width: 1025px) {
		#menu .sub-menu {
			width: 15rem;
		}
	}

	@media only screen and (min-width: 1025px) {
		img#logo-header {
			width: auto;
		}
		#menu .main-menu {
			display: block;
		}
		#toggle-menu, #menu label.drop-icon {
			display: none;
		}
		#menu ul span.drop-icon {
			display: inline-block;
		}
		#menu li {
			float: left;
			border-width: 0 .0625rem 0 0;
		}
		#menu .sub-menu li {
			float: none;
		}
		#menu .sub-menu {
			border-width: 0;
			margin: 0;
			position: absolute;
			top: 100%;
			left: 0;
			width: 12rem;
			z-index: 3000;
			background-color: rgb(245, 245, 245);
			box-shadow: 0 .25rem .75rem rgba(0, 0, 0, 0.2);
		}
		#menu .sub-menu, #menu input[type="checkbox"]:checked+.sub-menu {
			display: none;
		}
		#menu .sub-menu li {
			border-width: 0 0 .0625rem;
		}
		#menu .sub-menu .sub-menu {
			top: 0;
			left: 100%;
		}
		#menu li:hover>input[type="checkbox"]+.sub-menu {
			display: block;
		}
	}

	/* Social icons in nav */
	.social-nav {
		border: none !important;
		text-align: center;
		padding: .5rem 0;
		display: flex;
		justify-content: center;
		gap: .5rem;
	}

	.social-nav a {
		display: inline-block !important;
		padding: .5rem !important;
		line-height: 0;
	}

	.social-icon-nav {
		width: 2rem;
		height: 2rem;
		vertical-align: middle;
	}

	/* Desktop: float social icons to the right */
	@media only screen and (min-width: 1025px) {
		#menu li.social-nav {
			float: right;
			border-width: 0 !important;
			padding: 0;
			display: flex;
			align-items: stretch;
			justify-content: flex-end;
			gap: 0;
		}

		.social-nav a {
			padding: .5em .75em !important;
			display: inline-flex !important;
			align-items: center;
			justify-content: center;
			box-sizing: border-box;
		}

		.social-icon-nav {
			width: auto;
			height: 2rem;
		}
	}

	/* #endregion END  HEADER NAVIGATION  */

	/* #region START SIDEBAR */

	.sidebar-group {
		border-top: .15rem solid lightgrey;
		margin: 0 1rem 1rem 0;
		font-size: .9rem;
	}

	.sidebar-group ol {
		padding: 0 0 0 2rem;
	}
	.sidebar-group li {
		margin: 0 0 .1rem 0;
	}



	/* #endregion END SIDEBAR */
		/* #region START DARK MODE */

	@media (prefers-color-scheme: dark) {
		:root {
			background-color: #1a1a1a;
		}
		body {
			background-color: #1a1a1a;
			color: #e0e0e0;
		}
		img {
			filter: brightness(0.8) contrast(1.1);
		}
		a {
			color: #ff6b6b;
		}
		a:visited {
			color: #ff5252;
		}
		a:hover {
			color: #4fc3f7;
		}
		article a {
			text-decoration: underline;
		}
		.article-title a, .article-title a:visited {
			color: #e0e0e0;
		}
		article {
			border-bottom: .0625rem dashed #444;
		}
		article img {
			border: .0625rem solid #444;
			box-shadow: 0 .125rem .5rem rgba(0, 0, 0, 0.5);
		}
		#menu, #toggle-menu {
			background-color: #464646;
		}
		#menu li, #toggle-menu, #menu a {
			color: #e0e0e0;
		}
		#menu a:hover {
			background-color: #444;
			color: #fff;
		}
		#menu label.drop-icon, #toggle-menu span.drop-icon {
			background-color: #444;
			color: rgba(200, 200, 200, 0.75);
		}
		#menu .sub-menu {
			background-color: #464646;
			box-shadow: 0 .25rem .75rem rgba(0, 0, 0, 0.5);
		}
		.sidebar-group {
			border-top: .15rem solid #444;
		}
		.social-group a, .social-group a:visited {
			color: #e0e0e0;
		}
		input, button {
			background-color: #464646;
			color: #e0e0e0;
			border: .0625rem solid #444;
		}
		.article-info a, .article-info a:visited {
			color: #ff9999;
		}
		footer {
			border-top: .0625rem solid #444;
			color: #999;
		}
		footer nav a {
			color: #ff6b6b;
		}
		footer nav a:hover {
			color: #4fc3f7;
		}
	}

	/* #endregion END DARK MODE */

}