:root {
  --dark-blue: #0f2f54;
  --light-blue: #34b5cc;
  --dark-red: #be403c;
  --dark-red2: #e02727;
  --dark-red3: #BE403D;
  --watermelon: #ff3a3a;
  --yellow: #ffef72;
  --light-yellow: #fff7b9;
  --near-yellow: #fffff2;
  --near-white: #f8f8f8;
  --burnt-orange: #996623;
  --dark-type: #48191A;
  --anim-delay: 1000ms;

  --nc-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --nc-font-mono: Inconsolata, Consolas, monaco, 'Ubuntu Mono', 'Liberation Mono', 'Courier New', Courier, monospace;
  --font-handwriting: "Architects Daughter", "Amatic SC", serif;
  --font-sans: Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
  --page-margin: 2rem;
  --border-decor-size: 2px; 

	/* Light theme */
	--nc-tx-1: #000000;
	--nc-tx-2: #1A1A1A;
	--nc-bg-1: #FFFFFF;
	--nc-bg-2: #F6F8FA;
	--nc-bg-3: #E5E7EB;
	--nc-lk-1: #0070F3;
	--nc-lk-2: #0366D6;
	--nc-lk-tx: #FFFFFF;
	--nc-ac-1: #79FFE1;
  --nc-ac-tx: #0C4047;

  --body-background: #f8f8f8 linear-gradient(135deg, #f8f8f8 10%, #fffff2 60%);
  --main-background: transparent;
  --footer-background: var(--dark-red) linear-gradient(179deg, var(--dark-red) 60%, var(--watermelon) 90%);
  --footer-background: var(--dark-red2);
  --footer-color: white;
  --color: #333;
  --header-highlight: #333;
  --link-color: #03a4b7;
  --link-color: #4e9ba5;
  --link-hover-color: var(--near-white);
  --nav-link-color: var(--watermelon);
  --nav-link-hover: var(--near-white);
  --nav-link-hover-background: var(--watermelon);
  --font-relaxed: Nunito, sans-serif;
  --font-serif: "Antic Slab", "Iowan Old Style", "Apple Garamond", Baskerville, "Times New Roman", "Droid Serif", Times, "Source Serif Pro", serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --font-mono: Menlo, Consolas, Monaco, "Liberation Mono", "Lucida Console", monospace;

	/* Dark theme */
	--nc-d-tx-1: #ffffff;
	--nc-d-tx-2: #eeeeee;
	--nc-d-bg-1: #000000;
	--nc-d-bg-2: #111111;
	--nc-d-bg-3: #222222;
	--nc-d-lk-1: #3291FF;
	--nc-d-lk-2: #0070F3;
	--nc-d-lk-tx: #FFFFFF;
	--nc-d-ac-1: #7928CA;
  --nc-d-ac-tx: #FFFFFF;
}

@media (prefers-color-scheme: darks) {
	:root {
		--nc-tx-1: var(--nc-d-tx-1);
		--nc-tx-2: var(--nc-d-tx-2);
		--nc-bg-1: var(--nc-d-bg-1);
		--nc-bg-2: var(--nc-d-bg-2);
		--nc-bg-3: var(--nc-d-bg-3);
		--nc-lk-1: var(--nc-d-lk-1);
		--nc-lk-2: var(--nc-d-lk-2);
		--nc-lk-tx: var(--nc--dlk-tx);
		--nc-ac-1: var(--nc-d-ac-1);
    --nc-ac-tx: var(--nc--dac-tx);
    --body-background: rgb(15,47,84) linear-gradient(135deg, rgba(15,47,84,1) 45%, rgba(52,181,204,1) 45%);
    --header-highlight: var(--yellow);
	}
}

html,input,select,button {
	/* Set body font family and some finicky elements */
  font-family: var(--font-relaxed);
  font-size: 1rem;
  -webkit-text-size-adjust: 100%;
}

h1,h2,h3,h4,h5,h6 {
  line-height: 1.3;
  margin: 0 0 1rem 0;
  color: var(--dark-type);
}

h2 {
  letter-spacing: 0px;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 200;
}

/* @supports (font-variation-settings: normal) {
  html,input,select,button { font-family: 'Inter var', sans-serif; }
} */

::selection {
  /* Set background color for selected text */
  background:#da4646;
  color: white;
  text-decoration:none;
}

html,body {
  width: 100%;
  height: 100%;
}
* { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: all 250ms;
}
a:hover {
  text-decoration:none;
  color: var(--link-hover-color);
  background: var(--link-color);
  border-radius: 2px;
}
a.nohover:hover {
  background: none;
  border-radius: 0;
  color: inherit;
  text-decoration: none;
}
p, iframe {
  margin: 0 0 1rem 0;
}

p a, p a:hover {
  padding: 0 0.1rem;
}


p.summary {
  font-size: 1.1rem;
  color: black;
}

body {
	/* Center body in page */
	/* margin: 0 auto;
	max-width: 750px;
	padding: 2rem;
	border-radius: 6px;
	overflow-x: hidden;
	background: var(--nc-bg-1); */

	/* Main body text */
	/* color: var(--nc-tx-2); */
	/* font-size: 1.03rem; */
  background: var(--body-background) no-repeat;
  background-attachment: fixed;
  line-height: 1.5;
  color: var(--color);
  word-break: break-word;
  overflow-wrap: break-word;
  margin: 0;
  /* border: 1px solid red; */
}

#container {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

header {
  margin: var(--page-margin);
}

header {
  margin: 0.5rem var(--page-margin) 2rem var(--page-margin);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  font-family: var(--font-handwriting);
  align-items: baseline;
  color: var(--dark-red2);
}

#brand {
  display: flex;
  flex-direction: column;
  margin-right: 1rem;
}

#brand h1 a {
  transition: all 250ms;
  color: inherit;
}

#brand h1 a:hover {
  background: none;
  color: var(--dark-red3);
}

.flex-row {
  display: flex;
  flex-direction: row;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.flex-center {
  display: flex;
  justify-content: center;
}

header #underline {
  /* width: 9rem; */
  border-top: 1px solid var(--header-highlight);
}

header #what {
  text-decoration: overline;
  color: var(--header-highlight);
  font-size: 1.2rem;
}

header h1 {
  margin: 0;
  line-height: 1;
  color: var(--header-highlight);
  border-top: 0px solid var(--header-highlight);
  white-space: nowrap;
  font-family: var(--font-handwriting);
  font-size: 2.5rem;
}

#nav-menu #menu-items {
  transition: all 250ms ease;
}

nav {
  display: flex;
  font-size: 1.2rem;
}

nav a.burger {
  display: none;
}

nav a {
  color: var(--nav-link-color);
  text-decoration: underline;
  padding: 0.2rem 0.4rem;
}

nav a:hover {
  color: var(--nav-link-hover);
  background: var(--nav-link-hover-background);
  text-decoration: underline;
}

#me a {
  color: var(--nav-link-color);
  text-decoration: underline;
}

#me a:hover {
  color: var(--dark-red);
  background: none;
}

#social {
  display: flex;
  flex-direction: row;
  margin-top: 1rem;
  justify-content: space-evenly;
}
#social a {
  line-height: 0;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}
#social a:hover {
  background: none;
}
#social svg {
  fill: black;
  transition: all 250ms;
}
#social a:hover svg {
  fill: var(--watermelon);
  transform: translate3d(0, -3px, 0);
/*   background: black; */
/*   border-radius: 2px; */
}
footer #social svg {
  fill: var(--near-white);
}
footer #social a:hover svg {
  fill: #ffffd0;
}

/*header, main, footer {
  flex-shrink: 0;
}*/

main {
  background: var(--main-background);
  margin: 1rem var(--page-margin);
/*   max-width: 900px; */
  /*margin: var(--page-margin) auto;*/
  /*display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));*/
}

.tldr {
  background: white;
  padding: 1rem;
  margin: 1rem 0;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.cards {
  display: grid;
  column-gap: 2rem;
  row-gap: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 25rem));
  justify-content: center;
}

.cards .card {
/*   width: 25rem; */
  min-height: 10rem;
  box-shadow: 1px 2px 3px 1px #e0e0cb;
  border-radius: 0 0 2px 0;
  background-color: white;
  padding: 0.5rem 0;
  background-repeat: no-repeat; 
  background-position: top left, top right;
}

.card-bg {
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='50' height='50'><line x1='10' x2='35' y1='15' y2='15' stroke='%23BE403D' stroke-width='2'/><line x1='10' x2='35' y1='25' y2='25' stroke='%23A79FA2' stroke-width='2'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='50' height='50'><line x1='15' x2='40' y1='15' y2='15' stroke='%23BE403D' stroke-width='2'/><line x1='15' x2='40' y1='25' y2='25' stroke='%23A79FA2' stroke-width='2'/></svg>");
}

/*#cards .card:nth-child(n+1){margin-right:1rem}*/

.cards .card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  text-align: center;
  margin: 0 0 1rem 0;
  padding: 0 2rem;
}

.cards .card.card-bg h3 {
  padding: 0 2.5rem;
}

.cards .card .content {
  padding: 0 2rem;
}

.cards .card .continue {
  margin-top: 1rem;
  font-size: 0.8rem;
}

#writing .cards .card {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card ol, .card ul {
  margin: 0;
}

#pagination {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 8rem);
  justify-content: center;
}

#site-summary {
  margin: 2rem 0 3rem 0;
}

#site-summary h2 {
  text-align: left;
}

.card-heading {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 25rem));
  column-gap: 2rem;
  row-gap: 0;
  justify-content: center;
  margin: 1rem 0;
}

.card-heading:nth-child(3) {
  margin-top: 3rem;
}

article.grid12 {
  gap: 1rem;
  align-items: center;
}
article.grid12 h2 {
  margin-bottom: 0;
}

article a[href^="#"] {
  color: inherit;
}
article a[href^="#"]:hover {
  text-decoration: underline;
  background: inherit;
}
article a[href^="#"]:hover::after {
  content: " ¶";
}

article h3 {
  background: antiquewhite;
  margin-top: 2rem;
  padding: 0.4rem 0.4rem;
}

.tldr h3 {
  background: initial;
  margin-top: initial;
  padding: initial;
}

li.highlight {
  margin-left: 1.5rem;
  background: #f3f3de;
  padding-left: 0.5rem;
  text-decoration: underline;
}

/* article {
  display: flex;
  flex-direction: column;
  margin-bottom: 4rem;
  margin: 0 var(--page-margin) 4rem var(--page-margin);
}

article h2 {
  font-family: var(--font-handwriting);
  font-family: var(--font-relaxed);
  font-family: var(--font-serif);
  margin: 0.5rem 0 1rem 0;
}

article h2 a {
  color: var(--header-highlight);
}

article h2 a:hover {
  color: var(--nav-link-color);
  background: none;
} */

section {
  margin: 0 2rem;
}

#copyright {
  font-size: 0.7rem;
  text-align: right;
}

#container #me {
  margin-left: var(--page-margin);
  margin-right: var(--page-margin);
}

#me {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin-top: 3rem;
  color: var(--dark-type);
}

footer #me {
  justify-content: flex-start;
}

#avatar {
  display: flex;
  flex-direction: column;
  margin-right: 2rem;
}

#avatar img {
  border-radius: 50%;
  width: 200px;
  object-fit: cover;
  box-shadow: 2px 4px 12px -3px #dedbba;
}

#about {
  max-width: 32rem;
}

.anim-fade-in {
  animation: fade-in 1s ease-in-out var(--anim-delay) 1 normal both running;
}

.anim-fade-out {
  animation: fade-out 1s ease-in-out 1s 1 normal both running;
}

@keyframes fade-in {
  from {opacity: 0;}
  to {opacity: 1;}
}

@keyframes fade-out {
  from {opacity: 1;}
  to {opacity: 0;}
}

#avatar {
  animation: fade-in 2000ms ease-in 1ms 1 normal both running;
}

#about h1 {
  margin: 0;
  line-height: 1.7;
  color: var(--dark-red3);
  white-space: nowrap;
  font-family: var(--font-handwriting);
  font-weight: 400;
  font-size: 2.5rem;
  animation: fade-in 1200ms ease-in-out 250ms 1 normal both running;
}

#about p {
  animation: fade-in 1000ms ease-in-out 1000ms 1 normal both running;
}

#email-subscription {
  margin: 0 auto;
  min-width: 20rem;
}

footer {
  font-family: var(--font-relaxed);
  background-color: var(--footer-background);
  background: var(--footer-background) linear-gradient(135deg, #48191a, transparent);
  color: var(--footer-color);
  padding: 1.5rem var(--page-margin);
}

footer h3 {
  color: var(--footer-color);
}

footer #me {
  margin-top: 0;
  color: var(--footer-color);
}

footer #avatar {
  animation: none;
}

footer #avatar img {
  width: 125px;
  box-shadow: none;
}

footer h2 {
  font-family: var(--font-handwriting);
  font-size: 1.5rem;
  letter-spacing: 0.3rem;
  margin-top: 0;
}

footer .content {
  max-width: 32rem;
}

footer button {
  box-shadow: 2px 2px 3px 0 #6b2222;
}

footer button:focus,
footer button:enabled:hover {
  box-shadow: 2px 2px 3px 0 #4c1010;
}

#contact {
  max-width: 30rem;
  margin: 0 auto;
  margin-bottom: 2rem;
}

#contact textarea {
  width: 100%
}

#projects {
  
}

.page-margin {
  margin-left: var(--page-margin);
  margin-right: var(--page-margin);
}

.grid12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
}

.grid12 h2 {
  margin-top: 2rem;
}

.grid12 h2:first-child {
  margin-top: 0;
}

.w1 {
  grid-column: span 1;
}

.w2 {
  grid-column: span 2;
}

.w3 {
  grid-column: span 3;
}

.w4 {
  grid-column: span 4;
}

.w5 {
  grid-column: span 5;
}

.w6 {
  grid-column: span 6;
}

.w7 {
  grid-column: span 7;
}

.w8 {
  grid-column: span 8;
}

.w9 {
  grid-column: span 9;
}

.w10 {
  grid-column: span 10;
}

.w11 {
  grid-column: span 11;
}

.w12 {
  grid-column: span 11;
}

abbr:hover {
	/* Set the '?' cursor while hovering an abbreviation */
	cursor: help;
}

blockquote {
	padding: 1.5rem;
	background: white;
	border-left: 5px solid var(--dark-red3);
}

abbr {
	cursor: help;
}

blockquote *:last-child {
	padding-bottom: 0;
	margin-bottom: 0;
}

a button,
button,
input[type="submit"],
input[type="reset"],
input[type="button"] {
  -webkit-appearance: none;
  font-size: 1rem;
  display: inline-block;
  padding: 6px 12px;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  background: var(--nc-lk-1);
  background: #BE403D;
  background: #d84643;
  border: 0;
  border: 1px solid #d84643;
  border-radius: 4px;
  box-sizing: border-box;
  cursor: pointer;
  color: var(--near-white);
  box-shadow: 2px 2px 3px 0 #d07c7c;
  outline: none;
}

a button[disabled],
button[disabled],
input[type="submit"][disabled],
input[type="reset"][disabled],
input[type="button"][disabled] {
	cursor: default;
	opacity: .5;

	/* Set the [X] cursor while hovering a disabled link */
	cursor: not-allowed;
}

.button:focus,
.button:enabled:hover,
button:focus,
button:enabled:hover,
input[type="submit"]:focus,
input[type="submit"]:enabled:hover,
input[type="reset"]:focus,
input[type="reset"]:enabled:hover,
input[type="button"]:focus,
input[type="button"]:enabled:hover {
  background: var(--nc-lk-2);
  background: #e8423e;
  box-shadow: 2px 2px 3px 0 #921f1f;
}

code,
pre,
kbd,
samp {
	/* Set the font family for monospaced elements */
	font-family: var(--nc-font-mono);
}

code,
samp,
kbd,
pre {
	/* The main preformatted style. This is changed slightly across different cases. */
	background: var(--nc-bg-2);
	border: 1px solid var(--nc-bg-3);
	border-radius: 4px;
	padding: 3px 6px;
	font-size: 0.9rem;
}

kbd {
	/* Makes the kbd element look like a keyboard key */
	border-bottom: 3px solid var(--nc-bg-3);
}

pre {
/* 	padding: 1rem 1.4rem; */
	max-width: 100%;
	overflow: auto;
}

.chroma pre, pre code {
	/* When <code> is in a <pre>, reset it's formatting to blend in */
/* 	background: inherit;
	font-size: inherit;
	color: inherit; */
	border: 0;
	padding: 0 0 0 6px;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

figure {
  margin: 1rem 1rem 1rem 1.5rem;
}

.chroma {
  margin: 1rem 0;
}

figure .chroma {
  margin: 1rem 0 0.5rem 0;
}

figcaption {
  font-size: 0.8rem;
  font-style: italic;
}

code pre {
	/* When <pre> is in a <code>, reset it's formatting to blend in */
	display: inline;
	background: inherit;
	font-size: inherit;
	color: inherit;
	border: 0;
	padding: 0;
	margin: 0;
}

details {
	/* Make the <details> look more "clickable" */
	padding: .6rem 1rem;
	background: var(--nc-bg-2);
	border: 1px solid var(--nc-bg-3);
	border-radius: 4px;
}

summary {
	/* Makes the <summary> look more like a "clickable" link with the pointer cursor */
	cursor: pointer;
	font-weight: bold;
}

details[open] {
	/* Adjust the <details> padding while open */
	padding-bottom: .75rem;
}

details[open] summary {
	/* Adjust the <details> padding while open */
	margin-bottom: 6px;
}

details[open]>*:last-child {
	/* Resets the bottom margin of the last element in the <details> while <details> is opened. This prevents double margins/paddings. */
	margin-bottom: 0;
}

dt {
	font-weight: bold;
}

hr {
	/* Reset the border of the <hr> separator, then set a better line */
	border: 0;
	border-bottom: 1px solid var(--nc-bg-3);
	margin: 1rem auto;
}

fieldset {
	margin-top: 1rem;
	padding: 2rem;
	border: 1px solid var(--nc-bg-3);
	border-radius: 4px;
}

legend {
	padding: auto .5rem;
}

table {
	/* border-collapse sets the table's elements to share borders, rather than floating as separate "boxes". */
	border-collapse: collapse;
	width: 100%;
}

td,
th {
	border: 1px solid var(--nc-bg-3);
	text-align: left;
	padding: .5rem;
}

th {
	background: var(--nc-bg-2);
}

tr:nth-child(even) {
	/* Set every other cell slightly darker. Improves readability. */
	background: var(--nc-bg-2);
}

table caption {
	font-weight: bold;
	margin-bottom: .5rem;
}

textarea {
	/* Don't let the <textarea> extend off the screen naturally or when dragged by the user */
	max-width: 100%;
}

ol,
ul {
	/* Replace the browser default padding */
	padding-left: 2rem;
}

li {
	margin-top: .4rem;
}

ul ul,
ol ul,
ul ol,
ol ol {
	margin-bottom: 0;
}

mark {
	padding: 3px 6px;
	background: var(--nc-ac-1);
	color: var(--nc-ac-tx);
}

textarea,
select,
input {
	padding: 6px 12px;
	margin-bottom: .5rem;
	background: var(--nc-bg-2);
	color: var(--nc-tx-2);
	border: 1px solid var(--nc-bg-3);
	border-radius: 4px;
	box-shadow: none;
	box-sizing: border-box;
}

img {
	max-width: 100%;
  vertical-align: bottom;
}

@media only screen and (max-width: 700px) {
  figure {
    margin-left: 0;
  }
  #links {
    display: flex;
    flex-direction: column;
  }
  header {
    align-items: flex-start;
  }
}

@media only screen and (max-width: 650px) {
  :root {
    --page-margin: 0.5rem;
  }
  header #brand {
    margin-right: 0.5rem;
  }
  header #brand h1 {
    font-size: 1.75rem;
  }
  header {
    margin-bottom: 1rem;
  }
  #me {
    margin-top: var(--page-margin);
  }
  #avatar {
    margin-right: var(--page-margin);
  }
  #avatar img {
    width: 100px;
  }
  #social svg {
    width: 15px;
    height: 15px;
  }
  .cards, .card-heading {
    grid-template-columns: 1fr;
    margin: 1rem var(--page-margin);
  }
  #contact {
    margin-left: var(--page-margin);
    margin-right: var(--page-margin);
  }
  #projects img {
    max-height: 20rem;
  }
  .w1,.w2,.w3,.w4,.w5,.w6,.w7,.w8,.w9,.w10,.w11 {
    grid-column: span 12;
  }
  .grid12 .spacer:empty {
    display: none;
  }
/*   #nav-menu a.active {
    color: var(--color);
  }
  #nav-menu {
    order: 5;
    display: block;
    visibility: visible;
    opacity: 1;
  }
  #nav-menu a i {
    font-size: 1.5rem;
    vertical-align: middle;
  }
  #nav-menu a {
	padding: 0.2rem 0.4rem
  }
  #menu-items {
    display: none;
    visibility: hidden;
    opacity: 0;
    background: var(--light-yellow);
  }
  #menu-items.visible {
    display: flex;
    flex-direction: column;
    visibility: visible;
    opacity: 1;
    position: absolute;
    right: 0;
    top: 0;
    width: 8rem;
  } */
}

@media only screen and (max-width: 350px) {
  header {
    flex-direction: column;
    margin-bottom: 0;
  }
  header nav {
    margin: 1rem auto 0 auto;
  }
  #links {
    flex-direction: row;
  }
}

/*
@font-face {
  font-family: 'Inter';
  font-style:  normal;
  font-weight: 400;
  font-display: swap;
  src: url("/webfonts/Inter-Regular.woff2?3.13") format("woff2"),
  url("/webfonts/Inter-Regular.woff?3.13") format("woff");
}
@font-face {
  font-family: 'Montserrat';
  font-style:  normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/bu523l6vvhfktu3p2sjg") format("opentype");
}
*/
/* @font-face {
  font-family: "Architects Daughter";
  src: url(/assets/bu51fnuvvhfknld4r6f0) format("truetype");
  font-display: fallback;
}
@font-face {
  font-family: "Antic Slab";
  src: url(/assets/bu51fq6vvhfknld4r6fg) format("truetype");
  font-display: fallback;
} */
/* @font-face {
  font-family: "Nunito";
  font-style: normal;
  font-display: fallback;
  font-weight: 200;
  src: url(/assets/bu9j1fuvvhfhjjiqlvjg) format("truetype");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-display: fallback;
  font-weight: 400;
  src: url(/assets/bu9j1dmvvhfhjjiqlvj0) format("truetype");
} */