/*@import url("https://cdn.jsdelivr.net/npm/gotham-fonts@1.0.3/css/gotham-rounded.min.css");*/

/*
  Josh's Custom CSS Reset
  https://www.joshwcomeau.com/css/custom-css-reset/
*/

/*Fonts*/

@import url('https://fonts.cdnfonts.com/css/itc-cheltenham-std');
/*@import url('https://fonts.cdnfonts.com/css/univers-next-pro-extended'); */
@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:ital,wght@0,100..900;1,100..900&display=swap');

/* Defaults */

:root {

--font-family-serif: 'ITC Cheltenham Std', serif;    
--font-family-sans: 'Libre Franklin', sans-serif;    
/* --font-family-sans: 'Univers Next Pro', sans-serif; */
/* --font-family-typewriter: 'L', sans-serif; */
/* --font-family-typewriter: 'CMU Typewriter Text', sans-serif;*/
--font-family-monospace: Consolas, Menlo, Monaco, Andale Mono WT, Andale Mono, Lucida Console, Lucida Sans Typewriter, DejaVu Sans Mono, Bitstream Vera Sans Mono, Liberation Mono, Nimbus Mono L, Courier New, Courier, monospace;
}

/* Theme colors */
:root {
	--color-gray-20: #e0e0e0;
	--color-gray-50: #C0C0C0;
	--color-gray-90: #333;

	--background-color: #fff;

  --highligher-yellow: 255, 225, 0;
  --highligher-green: 20, 225, 0;
  --highligher-pink: 255, 0, 170;


  --tape-gray: #dbd8be;
  --tape-edge-gray: #b7b49d;

   /* --background-color: #fffcf8; */

	--text-color: var(--color-gray-90);
	--text-color-link: #082840;
	--text-color-link-active: #5f2b48;
	--text-color-link-visited: #17050F;

	--syntax-tab-size: 2;
}

@media (prefers-color-scheme: dark) {
	:root {
		--color-gray-20: #e0e0e0;
		--color-gray-50: #C0C0C0;
		--color-gray-90: #dad8d8;

		/* --text-color is assigned to --color-gray-_ above */
		--text-color-link: #1493fb;
		--text-color-link-active: #6969f7;
		--text-color-link-visited: #a6a6f8;

		--background-color: #15202b;
	}
}

/*Reset*/

*, *::before, *::after {
    box-sizing: border-box;
  }
  * {
    margin: 0;
  }
  body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }
  img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    margin: 0 auto;
  }
  
  input, button, textarea, select {
    font: inherit;
  }
  p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
  }
  #root, #__next {
    isolation: isolate;
  }

/*Custom*/

body {
    font-family: var(--font-family-sans);
    font-size: 100%;
    background-color: var(--background-color);
}

p {
  color: var(--text-color);
  font-size: 0.95rem;
  margin-top: 1em;
  margin-bottom: 1em;
  line-height: 1.6em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-serif);
}

h1 {
  font-size: 2.5em;
  line-height: 1.2em;
  padding-bottom: .5em;
}

h2 {
  font-size: 1.875em;
}

li {
  font-size: 0.95em;
  margin-bottom: 1em;
}

ul.post-metadata > li {
  font-size: 0.95em;
  margin-bottom: 0em;
}
  
.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

a[href] {
	color: var(--text-color-link);
}

a[href]:visited {
	color: var(--text-color-link-visited);
}

a[href]:hover, a[href]:active {
	color: var(--text-color-link-active);
}

main {
	padding: 1rem;
}

main :first-child {
	margin-top: 0;
}

main.container {
    max-width: 40em;
    padding: 20px;
    margin: 0 auto;
}

/* Header */
header {
	display: flex;
	gap: 1em .5em;
	flex-wrap: wrap;
	align-items: center;
	padding: 1em;
  max-width: 800px;
  /* margin-left: 50% !important; */
  /* flex-wrap: wrap; */
  margin: auto;
}
.home-link {
	/* font-size: 1.em; 16px /16 */
	font-weight: 600;
	margin-right: 2em;
}
.home-link:link:not(:hover) {
	text-decoration: none;
}

.links-nextprev {
	list-style: none;
	border-top: 1px dashed var(--color-gray-50);
  border-bottom: 1px dashed var(--color-gray-50);
	/*padding: 1em 0; */
  /* height: 400px; */
  flex-flow: column wrap;
  align-content: space-between;
  position: relative;
}

.previousPost {
  float: left;
  display: flex;
  align-items: center;
}

.nextPost {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  
}

.nextPost svg {
  display: block;
  max-width: 15px;
  margin: 20px;
}

.previousPost svg {
  display: block;
  max-width: 15px;
  margin: 20px;
}

a.header-anchor {
  color: white;
  text-decoration: none;
}

/* Nav */

nav {
	margin-left: auto;
}

.nav {
	display: flex;
	padding: 0;
	margin: 0;
	list-style: none;
}
.nav-item {
	display: inline-block;
	margin-right: 1em;
}
.nav-item a[href]:not(:hover) {
	text-decoration: none;
}
.nav a[href][aria-current="page"] {
	text-decoration: underline;
}

/* Post Lists */

div.postlist {
    list-style: none;
}

a.postlist-link {
    font-size: 1.5em;
    font-weight: 600;
}

li.postlist-item:first-child ~ li.postlist-item {
    margin-top: 2em;
}

div.postListDescription {
    font-size: 1em;
    margin-top: .5em;
    padding-left: 1em;
}

div.postListDate {
  margin-top: .5em;
  padding-left: 1em;
  color: darkgray;
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  font-size: 0.9rem;
}

div.boxCategory {
  margin-top: .5em;
  padding-left: 1em;
  position: absolute;
  bottom: 1rem;
  left: 1rem;
}

.boxTag {
  margin: 0 -0.4em;
  padding: 0.1em 0.4em;
  border-radius: 0.8em 0.3em;
  background: transparent;
  background-image: linear-gradient(
    to right,
    rgba(var(--highligher-green), 0.1),
    rgba(var(--highligher-green), 0.7) 4%,
    rgba(var(--highligher-green), 0.3)
  );
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transform: skew(15deg,-2deg);

  display: inline-block;
  -webkit-transform:rotate(-5deg);
}

.boxTag.tag--Rstats {
  margin: 0 -0.4em;
  padding: 0.1em 0.4em;
  border-radius: 0.8em 0.3em;
  background: transparent;
  background-image: linear-gradient(
    to right,
    rgba(var(--highligher-pink), 0.1),
    rgba(var(--highligher-pink), 0.7) 4%,
    rgba(var(--highligher-pink), 0.3)
  );
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transform: skew(15deg,-2deg);

  display: inline-block;
  -webkit-transform:rotate(-5deg);
}


.tagText {
  display: inline-block;
  -webkit-transform:rotate(5deg) !important; 
}


/* Footer Tags */
.footer {
  display: flex;
  /* justify-content: center; */
  align-items: flex-start;
  /* margin: 0 130px 50px 130px; */
  max-width: 44em;
  /* width: 500px; */
  padding: 20px;
  margin: 0 auto;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.footerColumn {
  list-style: none;
  padding: 10px;
  flex: 1 1;
}

/* Image */

picture > img {

    display: flex;
    justify-content: center;
}

.wide > picture > img {
    max-width: 80vw;
    margin-left: 50%;
    transform: translateX(-50%);
    height: auto;
}

.fullWidth {
  width: 100vw !important;
  margin-left: 50% !important;
  transform: translateX(-50%);
  height: auto;
}


/* Code */

pre[class*="language-"] {
  padding: 1em;
  overflow: auto;
  border-radius: 0.3em;
  width: 90vw;
  max-width: 800px;
  margin-left: 50% !important;
  transform: translateX(-50%);
  height: auto;
}

/* Box */

.box {
  position: relative;
  margin: 40px auto;
  /*width: 400px;*/
  min-height: 300px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 0 125px #8f592220 inset;
  border-radius: 2px;
}

.box::before,
.box::after {
  content: '';
  position: absolute;
  bottom: 10px;
  width: 40%;
  height: 10px;
  box-shadow: 0 5px 14px rgba(0,0,0,.7);
  z-index: -1;
  transition: all .3s ease-in-out;
}

.box::before {
  left: 15px;
  transform: skew(-5deg) rotate(-5deg);
}

.box::after {
  right: 15px;
  transform: skew(5deg) rotate(5deg);
}

.box:hover::before,
.box:hover::after {
  box-shadow: 0 2px 14px rgba(0,0,0,.4);
}

.box:hover::before {
  left: 5px;
}

.box:hover::after {
  right: 5px;
}

a.boxLink {
  text-decoration: none;
}

.boxHeadline {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: -5rem !important;
}

hr {
  border-color: #fb3471;
  margin: 20px -20px 20px;
}


/* Tape */

.tape-section {
  position: absolute;
  width: 100%;
}

.top-tape {
  position: relative;
  height: 30px;
  bottom: 55px;
  width: 100%;
  background-color: var(--tape-gray);
  border-right: 1px dotted var(--tape-edge-gray);
  border-left: 1px dotted var(--tape-edge-gray);
  opacity: 0.5;
}

#skip > div.postlist > a:nth-child(1) > div.box > div.top-tape {
  transform: rotate(0deg);
}

#skip > div.postlist > a:nth-child(2) > div.box > div.top-tape {
  transform: rotate(0.8deg);
}

#skip > div.postlist > a:nth-child(3) > div.box > div.top-tape {
  transform: rotate(-0.5deg);
}

#skip > div.postlist > a:nth-child(4) > div.box > div.top-tape {
  transform: rotate(0deg);
}

#skip > div.postlist > a:nth-child(5) > div.box > div.top-tape {
  transform: rotate(0.4deg);
}


.tape-section:first-of-type {
  top: 0;
}

.tape-section:last-of-type {
  bottom: 0;
}

.tape-section::before,
.tape-section::after {
  content: "";
  width: 10vmin;
  height: 4vmin;
  position: absolute;
  background-color: var(--tape-gray);
  opacity: 0.5;
  border-right: 1px dotted var(--tape-edge-gray);
  border-left: 1px dotted var(--tape-edge-gray);
}

.tape-section:last-of-type::after {
  transform: rotate(-45deg);
  right: -4vmin;
  top: -3vmin;
}

.tape-section:first-of-type::before {
  transform: rotate(-45deg);
  left: -4vmin;
}

.tape-section:first-of-type::after {
  transform: rotate(45deg);
  right: -4vmin;
  top: 0;
}

.tape-section:last-of-type::before {
  transform: rotate(45deg);
  left: -4vmin;
  bottom: 0;
}
/**
 * okaidia theme for JavaScript, CSS and HTML
 * Loosely based on Monokai textmate theme by http://www.monokai.nl/
 * @author ocodia
 */

code[class*="language-"],
pre[class*="language-"] {
	color: #f8f8f2;
	background: none;
	text-shadow: 0 1px rgba(0, 0, 0, 0.3);
	font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
	font-size: 1em;
	text-align: left;
	white-space: pre;
	word-spacing: normal;
	word-break: normal;
	word-wrap: normal;
	line-height: 1.5;

	-moz-tab-size: 4;
	-o-tab-size: 4;
	tab-size: 4;

	-webkit-hyphens: none;
	-moz-hyphens: none;
	-ms-hyphens: none;
	hyphens: none;
}

/* Code blocks */
pre[class*="language-"] {
	padding: 1em;
	margin: .5em 0;
	overflow: auto;
	border-radius: 0.3em;
}

:not(pre) > code[class*="language-"],
pre[class*="language-"] {
	background: #272822;
}

/* Inline code */
:not(pre) > code[class*="language-"] {
	padding: .1em;
	border-radius: .3em;
	white-space: normal;
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
	color: #8292a2;
}

.token.punctuation {
	color: #f8f8f2;
}

.token.namespace {
	opacity: .7;
}

.token.property,
.token.tag,
.token.constant,
.token.symbol,
.token.deleted {
	color: #f92672;
}

.token.boolean,
.token.number {
	color: #ae81ff;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
	color: #a6e22e;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string,
.token.variable {
	color: #f8f8f2;
}

.token.atrule,
.token.attr-value,
.token.function,
.token.class-name {
	color: #e6db74;
}

.token.keyword {
	color: #66d9ef;
}

.token.regex,
.token.important {
	color: #fd971f;
}

.token.important,
.token.bold {
	font-weight: bold;
}
.token.italic {
	font-style: italic;
}

.token.entity {
	cursor: help;
}
/*
 * New diff- syntax
 */

 pre[class*="language-diff-"] {
	--eleventy-code-padding: 1.25em;
	padding-left: var(--eleventy-code-padding);
	padding-right: var(--eleventy-code-padding);
}
.token.deleted {
	background-color: hsl(0, 51%, 37%);
	color: inherit;
}
.token.inserted {
	background-color: hsl(126, 31%, 39%);
	color: inherit;
}

/* Make the + and - characters unselectable for copy/paste */
.token.prefix.unchanged,
.token.prefix.inserted,
.token.prefix.deleted {
	-webkit-user-select: none;
	user-select: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding-top: 2px;
	padding-bottom: 2px;
}
.token.prefix.inserted,
.token.prefix.deleted {
	width: var(--eleventy-code-padding);
	background-color: rgba(0,0,0,.2);
}

/* Optional: full-width background color */
.token.inserted:not(.prefix),
.token.deleted:not(.prefix) {
	display: block;
	margin-left: calc(-1 * var(--eleventy-code-padding));
	margin-right: calc(-1 * var(--eleventy-code-padding));
	text-decoration: none; /* override del, ins, mark defaults */
	color: inherit; /* override del, ins, mark defaults */
}