/* @import url("https://fonts.googleapis.com/css2?family=Geist+Mono:wght@100..900&display=swap"); */
/* @import "./highlight.css"; */
/*highlight*/
pre code.hljs,
pre code {
  border-radius: var(--border-radius);
  display: block;
  font: 0.8rem/1 monospace;
  overflow-x: auto;
  padding: 1em;
}
code.hljs,
code {
  padding: 3px 5px;
}

html[data-theme="dark"] {
  pre code,
  .hljs {
    color: #c9d1d9;
    background: #0d1117;
    background: #0f131a;
  }
  .hljs-doctag,
  .hljs-keyword,
  .hljs-meta .hljs-keyword,
  .hljs-template-tag,
  .hljs-template-variable,
  .hljs-type,
  .hljs-variable.language_ {
    color: #ff7b72;
  }
  .hljs-title,
  .hljs-title.class_,
  .hljs-title.class_.inherited__,
  .hljs-title.function_ {
    color: #d2a8ff;
  }
  .hljs-attr,
  .hljs-attribute,
  .hljs-literal,
  .hljs-meta,
  .hljs-number,
  .hljs-operator,
  .hljs-selector-attr,
  .hljs-selector-class,
  .hljs-selector-id,
  .hljs-variable {
    color: #79c0ff;
  }
  .hljs-meta .hljs-string,
  .hljs-regexp,
  .hljs-string {
    color: #a5d6ff;
  }
  .hljs-built_in,
  .hljs-symbol {
    color: #ffa657;
  }
  .hljs-code,
  .hljs-comment,
  .hljs-formula {
    color: #8b949e;
  }
  .hljs-name,
  .hljs-quote,
  .hljs-selector-pseudo,
  .hljs-selector-tag {
    color: #7ee787;
  }
  .hljs-subst {
    color: #c9d1d9;
  }
  .hljs-section {
    color: #1f6feb;
    font-weight: 700;
  }
  .hljs-bullet {
    color: #f2cc60;
  }
  .hljs-emphasis {
    color: #c9d1d9;
    font-style: italic;
  }
  .hljs-strong {
    color: #c9d1d9;
    font-weight: 700;
  }
  .hljs-addition {
    color: #aff5b4;
    background-color: #033a16;
  }
  .hljs-deletion {
    color: #ffdcd7;
    background-color: #67060c;
  }
  pre code,
  .hljs {
    font-family: Inconsolata, monospace;
    font-size: 1rem;
    line-height: inherit;
  }
}

/* @import "./atom-one-light.css"; */
/*

Atom One Light by Daniel Gamage
Original One Light Syntax theme from https://github.com/atom/one-light-syntax

base:    #fafafa
mono-1:  #383a42
mono-2:  #686b77
mono-3:  #a0a1a7
hue-1:   #0184bb
hue-2:   #4078f2
hue-3:   #a626a4
hue-4:   #50a14f
hue-5:   #e45649
hue-5-2: #c91243
hue-6:   #986801
hue-6-2: #c18401

*/

.hljs {
  color: #383a42;
  background: #fafafa;
}

.hljs-comment,
.hljs-quote {
  color: #a0a1a7;
  font-style: italic;
}

.hljs-doctag,
.hljs-keyword,
.hljs-formula {
  color: #a626a4;
}

.hljs-section,
.hljs-name,
.hljs-selector-tag,
.hljs-deletion,
.hljs-subst {
  color: #e45649;
}

.hljs-literal {
  color: #0184bb;
}

.hljs-string,
.hljs-regexp,
.hljs-addition,
.hljs-attribute,
.hljs-meta .hljs-string {
  color: #50a14f;
}

.hljs-attr,
.hljs-variable,
.hljs-template-variable,
.hljs-type,
.hljs-selector-class,
.hljs-selector-attr,
.hljs-selector-pseudo,
.hljs-number {
  color: #986801;
}

.hljs-symbol,
.hljs-bullet,
.hljs-link,
.hljs-meta,
.hljs-selector-id,
.hljs-title {
  color: #4078f2;
}

.hljs-built_in,
.hljs-title.class_,
.hljs-class .hljs-title {
  color: #c18401;
}

.hljs-emphasis {
  font-style: italic;
}

.hljs-strong {
  font-weight: bold;
}

.hljs-link {
  text-decoration: underline;
}

/* @font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  src: url(/jakarta.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
    U+FFFD;
} */

@font-face {
  font-family: "Geist Mono";
  src: url("/assets/GeistMono[wght].woff2") format("woff2");
  font-weight: 100 900;
  /* Adjust the range based on the variable weights available */
  font-style: normal;
  /* Update if there are italic or oblique styles */
  font-display: swap;
  /* Optional: controls how the font is displayed during loading */
}

:root {
  --font: "Geist Mono", monospace;
  --background-color: #fff;
  --border-radius: 2px;
  --color-gray: hsl(216deg 8% 15%);
  /* --color-dark: hsl(216deg 8% 12%); */
  --color-dark: hsl(216deg 27.78% 10%);
  /* --color-darker: hsl(225, 46%, 5%); */
  --color-darker: hsl(216deg 27.78% 8%);
  --color-main: hsl(210deg 11.11% 98);
  --color-background: hsl(210deg 11.11% 98);
  --color-text: hsl(210deg 10% 8%);
  --color-text-muted: #4b5563;
  --color-light: hsl(210, 11%, 80%);
  --color-lighter: hsl(210, 11%, 95%);
  --color-muted: hsl(210 11% 60% / 1);
  /* --color-alt: hsl(178 60% 24%/ 1); */
  --color-alt: #204ccf;
  --contrast: black;
  /* --color-alt: #ab125e; */
  /* --color-alt-ondark: hsl(334, 100%, 75%);*/
  --color-alt-ondark: #00bfff;
  --max-width: 1200px;
  font-size: 18px;
  line-height: 1.5rem;
}

html[data-theme="light"] {
  --background-color: #fff;
  --color-text: hsl(210deg 10% 10%);
  --color-links: var(--color-alt);
  --color-nav: #fff;
}

html[data-theme="dark"] {
  --background-color: var(--color-dark);
  --color-text: #f7f8f8;
  --color-links: var(--color-alt-ondark);
  /* --color-main: hsl(210, 11%, 25%); */
  --color-main: hsl(216deg 27.78% 10%);
  --color-background: hsl(216deg 27.78% 5%);
  --color-background: #0f131a;
  --color-alt: var(--color-alt-ondark);
  --color-light: hsl(210, 11%, 20%);
  --color-lighter: hsl(210, 11%, 25%);
  --color-text-muted: #d1d5db;
  --contrast: white;
}

html[data-theme="dark"] .pause-switch,
html[data-theme="dark"] .start,
html[data-theme="dark"] .pause {
  filter: invert(1);
}

.show-light,
.show-dark {
  margin-top: -3px;
  margin-left: 10px;
}

.show-light:hover,
.show-dark:hover {
  filter: brightness(1.1);
}

[data-theme="light"] .show-light {
  display: block;
}

[data-theme="dark"] .show-light {
  display: none;
}

[data-theme="dark"] .show-dark {
  display: block;
}

[data-theme="light"] .show-dark {
  display: none;
}

/* @font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url(/jakarta2.woff2) format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url(./jakarta2.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/jakarta1.woff2) format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(./jakarta3.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
} */

body {
  background: var(--background-color);
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  font: 100%/1.5 monospace;
  font-family: var(--font);
  margin: 0;
  min-height: 100vh;
  font-weight: 500;
}

ul {
  font-size: initial;
}

pre code.hljs,
pre code {
  font-family: var(--font);
}

.copy-button {
  display: none;
}
@media screen and (min-width: 640px) {
  .copy-button {
    display: block;
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
    background: transparent;
    border: solid thin var(--color-muted);
    color: var(--color-muted);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: flex;
    font-size: 0.8rem;
    gap: 2px;
    align-items: center;
    padding: 0.2rem 0.4rem;
    background: var(--background-color);
  }

  .copy-button:hover {
    color: var(--color-links);
  }
}

.wrapper {
  padding: 1rem;
}
main,
.wrapper {
  flex: 1;
}

@media screen and (min-width: 640px) {
  .wrapper {
    padding: 1.5rem 2rem;
  }
}

.container {
  width: calc(100% - 2rem);
  max-width: 900px;
  margin: 0 auto;
  /* padding: 0 1rem; */
}
.container.wide {
  max-width: 900px;
}

a {
  color: var(--color-links);
  transition: color 0.2s;
  text-decoration: none;
}

a:hover,
a:focus,
a:active {
  color: var(--color-links);
  filter: opacity(0.9);
  text-decoration: underline;
}

nav a:hover,
nav a:focus,
nav a:active {
  filter: none;
}

nav {
  position: fixed;
  width: 100%;
  z-index: 1;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  overflow: hidden;
  margin: 1rem auto;
}
nav .brand {
  font-weight: 700;
  font-size: 1.5rem;
}
nav,
footer {
  background-color: var(--color-lighter);
}
footer {
  padding: 2rem 0;
  text-align: center;
}

.spacer {
  height: 70px;
}

html[data-theme="dark"] nav,
html[data-theme="dark"] footer {
  background-color: var(--color-darker);
}

nav a,
header a,
footer a {
  color: var(--color-text);
  text-decoration: none;
}

footer a {
  color: var(--color-alt);
  text-decoration: underline;
}

.nav-item {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  min-width: 100px;
  justify-content: space-between;
  gap: 0px;
}

.nav-item a {
  padding: 0 0.5rem;
}

.avatar {
  width: 75px;
  height: 75px;
}

footer {
  font-size: 0.8rem;
}

h1 {
  margin: 0.5rem 0;
}

h2 {
  margin: 0.5rem 0;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin: 0.5rem 0;
}

.post .subtitle {
  font-weight: 300;
}

img {
  border-radius: var(--border-radius);
}

hr {
  border: 0;
  height: 1px;
  background: var(--color-light);
  margin-top: 1rem;
  width: 100%;
}

blockquote {
  background: var(--color-background);
  border-left: solid 4px var(--color-alt);
  border-radius: var(--border-radius);
  font-family: monospace;
  font-size: 1rem;
  margin: 1rem 0;
  padding: 1rem 1rem 1rem 2rem;
}

blockquote p {
  margin: 0;
}

.post blockquote {
  margin: 2rem 0;
}

#quotes-section {
  min-height: 80px;
  display: flex;
  align-items: center;
  font-size: 1rem;
}

code {
  font-size: 0.8rem;
  background-color: var(--color-lighter);
  border-radius: var(--border-radius);
}

.post-card {
  border-radius: var(--border-radius);
  border-top: solid thin var(--color-light);
  padding: 1rem 0;
  transition: box-shadow 0.3s;
  cursor: pointer;
  transition: background-color 0.2s;
  background-color: transparent;
}

.post p,
.post-card p,
.post ul,
.post span:not(pre span),
.post ol {
  font-size: 1rem;
  color: var(--color-text-muted);
}

.updates code {
  background: transparent;
  color: var(--color-muted);
}

.post-card p {
  margin-top: 0;
}

.post-card:hover {
  outline-color: var(--color-alt);
}

.post-card h1 {
  font-size: 1.5rem;
}

.gallery-card {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 4px;
}

.gallery-card img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 1/1;
}

@media screen and (max-width: 1024px) {
  .gallery-card {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

@media screen and (max-width: 960px) {
  .gallery-card {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}

@media screen and (max-width: 640px) {
  .gallery-card {
    grid-template-columns: repeat(3, minmax(80px, 1fr));
  }
}

.music-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1rem;
  margin: 0.5rem 0 1rem;
}

.post-card.js-gis {
  display: grid;
  grid-template-columns: 1fr 140px;
  align-items: center;
  gap: 1.5rem;
}
.post-card.js-gis img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 1/1;
}

audio {
  width: 100%;
  height: 30px;
  background: #f1f3f4;
  border-radius: 6px;
}

time {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0.5rem 0;
}

.post {
  width: calc(100% - 4rem);
  margin-bottom: 4rem;
}

.post img {
  max-width: 100%;
}

.post code.hljs,
.js-code code.hljs {
  font-size: 0.8rem;
  line-height: 1.2rem;
  border: solid thin var(--color-light);
}

.js-code code.hljs {
  padding-left: 0;
}

.links-about,
.links-about p {
  margin-top: 0.25rem;
  font-size: 0.8rem !important;
  color: var(--color-text-muted);
  line-height: normal;
}

figcaption {
  font-size: 0.8rem;
}
.tag {
  font-size: 0.8rem;
  outline: solid rgba(0, 0, 0, 0.2);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: var(--border-radius);
  color: var(--color-text-muted);
}
.tag.active {
  outline-color: var(--color-alt);
  background: var(--color-alt);
  color: var(--color-main);
}
html[data-theme="dark"] .tag {
  outline-color: rgba(255, 255, 255, 0.2);
}
.tag:hover {
  outline-color: var(--color-alt);
  background: var(--color-alt);
  color: var(--color-main);
  filter: brightness(1.1);
}

/* webkit scrollbar be the dark theme colors and thinner */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-thumb {
  background: var(--color-alt);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-alt-ondark);
}

@media screen and (max-width: 1440px) {
  nav .container {
    justify-content: space-between;
  }
}

@media screen and (max-width: 840px) {
  :root,
  p {
    font-size: 16px;
    line-height: 1.4rem;
  }

  .wrapper {
    padding: 1rem;
  }

  blockquote {
    font-size: 1rem;
    margin: 1rem 0;
    padding: 1rem 1rem 1rem 1.5rem;
    opacity: 0.8;
  }

  nav .container {
    flex-direction: column;
    width: calc(100% - 3rem);
    padding: 0 1rem 0.5rem;
    /* align-items: flex-start; */
    gap: 0.5rem;
    margin: 0.5rem;
  }

  .nav-item {
    gap: 2px;
  }
  .nav-item a {
    padding: 0 0.15rem;
    font-size: 1rem;
  }

  #theme-toggle {
    position: absolute;
    right: 0.5rem;
    top: 1.2rem;
  }

  .post {
    margin-top: 1rem;
  }

  .post-card.js-gis {
    grid-template-columns: 1fr;
  }
  .post-card.js-gis img {
    display: none;
  }
  /* .post-card {
    padding: 0.5rem;
  } */
  h2 {
    font-size: 1.25rem;
  }
  .link-time {
    display: none;
  }
  .hide-sm {
    display: none;
  }
  .js-card h2 {
    margin: 0.5rem 0;
  }
  .js-card p {
    margin-bottom: 0.5rem;
  }
}

@media screen and (min-width: 768px) {
  .show-sm {
    display: none;
  }
}

.show-xs {
  display: flex;
  gap: 4px;
}
.hide-xs {
  display: none;
}
@media screen and (min-width: 400px) {
  .show-xs {
    display: none;
  }
  .hide-xs {
    display: flex;
  }
}

.tracks-map .leaflet-popup-content {
  font-family: var(--font);
}
.tracks-map .leaflet-popup-content-wrapper {
  border-radius: var(--border-radius);
}
html[data-theme="dark"] .tracks-map .leaflet-popup-content-wrapper,
html[data-theme="dark"] .tracks-map .leaflet-popup-tip {
  background: var(--color-dark);
  color: var(--color-text);
}
/*-------------------*/
/*SQUARE GRID*/
/*-------------------*/
.square-grid {
  display: grid;
  flex-direction: column;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1rem auto 3rem;
}
.square-grid-card {
  width: 100%;
  max-width: calc(100vw - 2rem);
  background: var(--color-darker);
  border: solid thin var(--color-gray);
  border-radius: var(--border-radius);
  height: min-content;
  overflow: hidden;
}
.square-grid-card p {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  line-height: normal;
  margin: 0;
}
.square-grid-card img {
  border-radius: 0;
  height: auto;
  object-fit: cover;
  object-position: top;
  border-bottom: solid thin var(--color-gray);
}
html[data-theme="light"] .square-grid img {
  border-color: var(--color-lighter);
}
.square-grid-card-content {
  padding: 0.5rem 1rem 1rem;
}
@media screen and (min-width: 320px) {
  .square-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
  .square-grid img {
    height: 180px;
  }
  .square-grid-card-content {
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: baseline;
  }
}

html[data-theme="light"] .square-grid-card {
  background: none;
  border-color: var(--color-lighter);
}

details {
  font-size: 14px;
  color: var(--color-text-muted);
  cursor: pointer;
}
@media screen and (min-width: 460px) {
  .square-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
  .square-grid img {
    height: 200px;
  }
}
/*-------------------*/
/*END SQUARE GRID*/
/*-------------------*/

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

.archive-item {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  font-family: monospace;
  gap: 2rem;
}
.link-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.link-time {
  display: block;
  margin: 0;
}

@media screen and (max-width: 468px) {
  .book-link {
    display: block;
  }
}

/* SPECTRE CSS MODAL */
@keyframes slide-down {
  0% {
    opacity: 0;
    transform: translateY(-1.6rem);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.modal {
  align-items: center;
  bottom: 0;
  display: none;
  -ms-flex-align: center;
  -ms-flex-pack: center;
  justify-content: center;
  left: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0.4rem;
  position: fixed;
  right: 0;
  top: 0;
}

.modal:target,
.modal.active {
  display: -ms-flexbox;
  display: flex;
  opacity: 1;
  z-index: 400;
}

.modal:target .modal-overlay,
.modal.active .modal-overlay {
  background: rgba(0, 0, 0, 0.5);
  bottom: 0;
  cursor: default;
  display: block;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.modal:target .modal-container,
.modal.active .modal-container {
  animation: slide-down 0.2s ease 1;
  z-index: 1;
}

.modal.modal-sm .modal-container {
  max-width: 320px;
  padding: 0 0.4rem;
}

.modal.modal-lg .modal-overlay {
  background: #fff;
}

.modal.modal-lg .modal-container {
  box-shadow: none;
  max-width: 960px;
}

.modal-container {
  background: var(--background-color);
  color: var(--color-text);
  border-radius: var(--border-radius);
  border: solid thin var(--color-light);
  /* box-shadow: 0 .2rem .5rem rgba(48, 55, 66, .3); */
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  max-height: 75vh;
  max-width: 640px;
  padding: 0 0.8rem;
  width: 100%;
}

.modal-container.modal-fullheight {
  max-height: 100vh;
}

.modal-container .modal-header {
  color: #303742;
  padding: 0.8rem;
}

.modal-container .modal-body {
  overflow-y: auto;
  padding: 0.8rem;
  position: relative;
}

.modal-container .modal-footer {
  padding: 0.8rem;
  text-align: right;
}

input,
textarea {
  width: calc(100% - 1rem);
  padding: 0.25rem 0.5rem;
  border: solid thin;
  border-color: var(--color-light);
  border-radius: var(--border-radius);
}
.modal button {
  padding: 0.5rem 0.75rem;
  background: var(--background-color);
  box-shadow: none;
  border-radius: var(--border-radius);
  color: var(--color-text);
  border: solid thin var(--color-light);
  cursor: pointer;
}
