/* https://piccalil.li/blog/a-modern-css-reset */
*,::after,::before{box-sizing:border-box}blockquote,body,dd,dl,figure,h1,h2,h3,h4,p{margin:0}ol[role=list],ul[role=list]{list-style:none}html:focus-within{scroll-behavior:smooth}body{min-height:100vh;text-rendering:optimizeSpeed;line-height:1.5}a:not([class]){text-decoration-skip-ink:auto}img,picture{max-width:100%;display:block}button,input,select,textarea{font:inherit}@media (prefers-reduced-motion:reduce){html:focus-within{scroll-behavior:auto}*,::after,::before{animation-duration:0s!important;animation-iteration-count:1!important;transition-duration:0s!important;scroll-behavior:auto!important}}
@font-face {
  font-family: 'Geist Sans';
  src: url('../fonts/Geist-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Geist Sans';
  src: url('../fonts/Geist-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Geist Pixel';
  src: url('../fonts/GeistPixel-Square.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}



:root {
  /* 
    Default Color Schemes (Default is dark mode)
    Primary = Background, Secondary = Text color.

    Other options (From Flexoki):
    Default Light Mode: #F2F0E5 / #1C1B1A;
    Dark Mode Magenta: #24131D / #FEE4E5
    Light Mode Magenta: #F6E6E2 / #24131D
    Cyan Light Mode: #DDF1E4 / #101F1D
    Cyan Dark Mode: #101F1D / #DDF1E4
  */
  --primary-color: #1C1B1A;
  --secondary-color: #F2F0E5;

  /* Font Family. Default is monospace. */
  --font-family: 'Geist Pixel', ui-monospace, 'SFMono-Regular', 'Menlo', 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', 'monospace';
  --font-family-sans: 'Geist Sans', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  
  /*--font-family: ui-serif, Georgia, Cambria, 'Times New Roman', Times, serif;*/
  
  --font-weight: 400;
  --flow-space: 1rem; 

  --font-size: clamp(16px, 2vw, 21px);
  --max-site-width: 768px;
}

/* General setup */
@view-transition {
  navigation: auto;
}
::view-transition-group(*) {
  animation-duration: 0.3s;
}

::selection {
  background: var(--secondary-color);
  color: var(--primary-color);
  text-shadow: none;
}

body {
  font-family: var(--font-family);
  font-weight: var(--font-weight);
  font-size: var(--font-size);
  max-width: var(--max-site-width);
  margin: 3rem auto;
  padding-inline: 1rem;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover {
  text-decoration: none;
}

p {
  line-height: 1.5;
}

li + li {
  padding-top: .5rem;
}

.blog:not(.continuous) ul, .home ul {
  list-style: none;
  padding-left: 0
}

li > ul, li > ol  {
  padding-top: .5rem;
  padding-left: 20px;
}

ul > li + li, 
ul > li > ul,
ol > li + li, 
ol > li > ol {
  padding-top: .3rem;
}

img {
  width: 100%;
}

hr:before {
  margin-top: 5rem;
}

figcaption {
  margin-top: 0.5rem;
}

.home > * + *:not(p) {
  margin-block-start: 4rem;
}

.home h1, .home h2, .home h3, .home h4 {
  font-size: inherit;
  margin: 0;
  padding: 0;
}

.home h1, .home a h3 { 
  font-weight: inherit; 
  margin-top: .33rem;
}



h1 { font-size: 250%; line-height: 1.15 }
h2 { font-size: 200%; line-height: 1.15 }
h3 { font-size: 150%; }
h4, h5, h6 { font-size: 100%; }

h2, h3, h4, h5, h6 { 
  padding-top: 4rem;
}

.post h1, .defaultPage h1 {
  margin-bottom: 2rem;
}

.post img, .defaultPage img {
  margin-bottom: .5rem;
}

.post p, .post ul, .post ol {
    font-family: var(--font-family-sans);
}

.continuous .post + .post {
    padding-top: 16rem;
}

.continuous article:first-of-type {
    margin-top: 4rem
}

.continuous article .flow>h2:first-of-type {
    padding-top:0;
    font-size: 200%;
}

.continuous article .flow>h2 {
    font-size: 150%;
}

.continuous article .flow>h3 {
    font-size: 125%;
}

.continuous article h2 {
    font-size: var(--font-size);
}

.continuous .meta-info {
    margin-bottom: -.5rem;
    font-size: 75%;
}
.continuous .meta-info  svg {
    width: 16px;
    height: 16px;
}



.flow > * + * {
  margin-block-start: var(--flow-space, 1em);
}




pre { 
  background: var(--secondary-color) !important;  
  color: var(--primary-color);
  padding: 0.25rem 0.5rem;
}

code {
  padding: 0.25rem 0.5rem;
  margin-inline: 0;
  font-size: 75%;
  background: var(--secondary-color) !important;
  color: var(--primary-color);
  display: inline-block;
  margin: 0
}

pre code {
  font-size: 75% !important;
  overflow-x:scroll;
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  word-wrap: normal;

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

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

  width:100%;

  line-height: 1.5 !important;
}



body a:focus-visible {
    outline: 2px dotted rebeccapurple;
    outline-offset: 4px;
}



blockquote {
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 1.5rem;
}


.breadcrumbs {
  font-size: 75%;
  opacity: .5;
  margin-bottom: .5rem;
}

.breadcrumbs a.current {
  text-decoration: none;
}

.meta-info {
  margin-top: 3rem;
}

.meta-info > * + * {
  display: block;
  margin-block-start: .5rem;
}

.meta-info >* {
    display: flex;
    align-items: center;
    gap: .5rem
}

.meta-info svg {
    width: 24px;
    height: 24px;
    margin-top:-2px
}

.flex-justify {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-justified > * { margin:0 }

.rss {
  font-size: 75%;
}

.highlightedProjects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.highlightedProjects h2 {
  grid-column: 1 / -1;
}

.highlightedProject h3 {
  padding: 0;
}
