/* Cattpuccin macchiatto colors */
@media (prefers-color-scheme: light) {
  :root {
    --ctp-rosewater: #dc8a78;
    --ctp-flamingo: #dd7878;
    --ctp-pink: #ea76cb;
    --ctp-mauve: #8839ef;
    --ctp-red: #d20f39;
    --ctp-maroon: #e64553;
    --ctp-peach: #fe640b;
    --ctp-yellow: #df8e1d;
    --ctp-green: #40a02b;
    --ctp-teal: #179299;
    --ctp-sky: #04a5e5;
    --ctp-sapphire: #209fb5;
    --ctp-blue: #1e66f5;
    --ctp-lavender: #7287fd;
    --ctp-text: #4c4f69;
    --ctp-subtext1: #5c5f77;
    --ctp-subtext0: #6c6f85;
    --ctp-overlay2: #7c7f93;
    --ctp-overlay1: #8c8fa1;
    --ctp-overlay0: #9ca0b0;
    --ctp-surface2: #acb0be;
    --ctp-surface1: #bcc0cc;
    --ctp-surface0: #ccd0da;
    --ctp-surface0blur: #ccd0da66;
    --ctp-crust: #dce0e8;
    --ctp-mantle: #e6e9ef;
    --ctp-base: #eff1f5;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ctp-rosewater: #f4dbd6;
    --ctp-flamingo: #f0c6c6;
    --ctp-pink: #f5bde6;
    --ctp-mauve: #c6a0f6;
    --ctp-red: #ed8796;
    --ctp-maroon: #ee99a0;
    --ctp-peach: #f5a97f;
    --ctp-yellow: #eed49f;
    --ctp-green: #a6da95;
    --ctp-teal: #8bd5ca;
    --ctp-sky: #91d7e3;
    --ctp-sapphire: #7dc4e4;
    --ctp-blue: #8aadf4;
    --ctp-lavender: #b7bdf8;
    --ctp-text: #cad3f5;
    --ctp-subtext1: #b8c0e0;
    --ctp-subtext0: #a5adcb;
    --ctp-overlay2: #939ab7;
    --ctp-overlay1: #8087a2;
    --ctp-overlay0: #6e738d;
    --ctp-surface2: #5b6078;
    --ctp-surface1: #494d64;
    --ctp-surface0: #363a4f;
    --ctp-base: #24273a;
    --ctp-mantle: #1e2030;
    --ctp-crust: #181926;
  }
}

@view-transition {
  navigation: auto;
}

.rosewater {
  color: var(--ctp-rosewater);
}

.flamingo {
  color: var(--ctp-flamingo);
}

.pink {
  color: var(--ctp-pink);
}

.mauve {
  color: var(--ctp-mauve);
}

.red {
  color: var(--ctp-red);
}

.maroon {
  color: var(--ctp-maroon);
}

.peach {
  color: var(--ctp-peach);
}

.yellow {
  color: var(--ctp-yellow);
}

.green {
  color: var(--ctp-green);
}

.teal {
  color: var(--ctp-teal);
}

.sky {
  color: var(--ctp-sky);
}

.sapphire {
  color: var(--ctp-sapphire);
}

.blue {
  color: var(--ctp-blue);
}

.lavender {
  color: var(--ctp-lavender);
}

.text {
  color: var(--ctp-text);
}

.subtext1 {
  color: var(--ctp-subtext1);
}

.subtext0 {
  color: var(--ctp-subtext0);
}

.overlay2 {
  color: var(--ctp-overlay2);
}

.overlay1 {
  color: var(--ctp-overlay1);
}

.overlay0 {
  color: var(--ctp-overlay0);
}

.surface2 {
  color: var(--ctp-surface2);
}

.surface1 {
  color: var(--ctp-surface1);
}

.surface0 {
  color: var(--ctp-surface0);
}

.base {
  color: var(--ctp-base);
}

.mantle {
  color: var(--ctp-mantle);
}

.crust {
  color: var(--ctp-crust);
}

/* Main CSS. */

em {
  color: var(--ctp-lavender);
}

b {
  color: var(--ctp-flamingo);
}

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
  height: 100%;
  font-family: "JetBrains Mono", monospace;
  word-wrap: break-word;
  margin: 0 auto;
  padding: 1.5em;
}

body {
  background-color: var(--ctp-mantle);
  color: var(--ctp-text);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  html {
      font-size: 125%;
      max-width: 42em;
  }
}

.hidden-anchor {
  visibility: hidden;
  margin-left: 0.25em;
}

h1, h2, h3, h4 {
  margin: 4rem 0 1rem 0;
  line-height: 1.25;
}

h1 {
  font-size: 2.2em;
  color: var(--ctp-maroon);
}

h2 {
  font-size: 1.8em;
  color: var(--ctp-blue);
}

h3 {
  font-size: 1.6em;
  color: var(--ctp-teal);
}

h4 {
  font-size: 1.2em;
  color: var(--ctp-lavender);
}

h5 {
  font-size: 0.8em;
  color: var(--ctp-rosewater);
}

a {
  color: var(--ctp-mauve);
  text-decoration: none;
}

a:hover, a:focus, a:active {
  color: var(--ctp-lavender);
  text-decoration: underline;
  cursor: pointer;
}

:is(h1, h2, h3, h4, h5):hover > .hidden-anchor {
  visibility: visible;
  color: var(--ctp-surface0);
}

p {
  margin: 1em 0;
  line-height: 1.5;
}

code:not([class]) {
  color: var(--ctp-green);
  background-color: var(--ctp-surface0);
}

ul {
  list-style: none;
  padding-left: 0;
}

li {
  padding-left: 1.5em;
  text-indent: -1.5em;
  line-height: 1.5;
}

li::before {
  content: "• ";
  color: var(--ctp-teal);
}

ol {
  list-style: none;
  counter-reset: item;
  padding-left: 0;
}

ol > li {
  counter-increment: item;
  padding-left: 2em;
  text-indent: -2em;
}

ol > li::before {
  content: counter(item) ". ";
  color: var(--ctp-teal);
}

dl dt {
  font-weight: bold;
}

dl dd {
  margin: 0;
}

img {
  max-width: 100%;
  display: block;
  margin: 0 auto;
  padding: 0.5em;
}

blockquote {
  padding-left: 1em;
  margin: 0;
  font-style: italic;
  border-left: solid 2px var(--ctp-teal);
  background-color: var(--ctp-surface0);
}

table tr {
  display: table;
  table-layout: fixed;
  width: 100%;
}

table thead {
  display: none;
}

table td {
  padding: 0.5em;
}

.title {
  margin-top: 1em;
  margin-bottom: 1em;
  font-size: 3.5em;
  font-style: bold;
}

.tags {
  margin-top: -1.5rem;
  padding-bottom: 1.5em;
}

.tags li {
  display: inline;
  margin-right: 0.5em;
}

figure {
  margin: 1em 0;
}

figure figcaption {
  font-family: monospace, monospace;
  font-size: 0.75em;
  text-align: center;
  color: grey;
}

.footnote-definition sup {
  margin-left: -1.5em;
  float: left;
}

.footnote-definition .footnote-body {
  margin: 1em 0;
  padding: 0 1em;
  border: 1px dashed rgba(250, 100, 50, 0.3);
  background-color: rgba(200, 200, 200, 0.2);
}

.footnote-definition .footnote-body p:only-child {
  margin: 0.2em 0;
}

header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10em;
}

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

header a + a {
  margin-left: 1rem;
}

nav {
  display: table;
  height: 3.5em;
  width: 100%;
  background-color: var(--ctp-mantle);
}

nav a {
  text-align: center;
  display: table-cell;
  vertical-align: middle;
  font-size: 1.1em;
}

hr {
  background-color: var(--ctp-surface0);
  height: 1px;
  border: none;
  margin-top: 2em;
  margin-bottom: 0;
  width: 75%;
}

footer {
  display: flex;
  justify-content: center;
  margin-top: 1em;
}

.go-up {
  display: flex;
  justify-content: center;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn-projects {
  color: var(--ctp-green);
}

.dropdown:hover > .dropbtn-projects {
  color: var(--ctp-pink);
}

.dropbtn-contact {
  color: var(--ctp-blue);
}

.dropdown:hover > .dropbtn-contact {
  color: var(--ctp-pink);
}

.dropdown-content {
  position: absolute;
  display: none;
  z-index: 1;
  padding-left: 1em;
  padding-right: 1em;
}

.dropdown-content a {
  padding-top: 1em;
  margin-left: 0;
  display: block;
  overflow: auto;
}

.dropdown:hover .dropdown-content {
  display: block;
  backdrop-filter: blur(8px);
}
