:root {
  --border-radius: 3px;
  --bg1: #fff;
  --melon: hsla(0, 70%, 79%, 1); 
  --wisteria: hsla(270, 70%, 79%, 1);
  --papaya-whip: hsla(35, 100%, 92%, 1);
  --black: hsla(0, 0%, 0%, 1);
  --tea-green: hsla(90, 70%, 79%, 1);
}

@font-face {
  font-family: 'Cartograph Thin';
  src: url("/assets/other/fonts/Cartograph/CartographCF-Thin.otf") format("opentype");
}

@font-face {
  font-family: 'Cartograph Thin Italic';
  src: url("/assets/other/fonts/Cartograph/CartographCF-ThinItalic.otf") format("opentype");
}

@font-face {
  font-family: 'Cartograph Regular';
  src: url("/assets/other/fonts/Cartograph/CartographCF-Regular.otf") format("opentype");
}

@font-face {
  font-family: 'Cartograph Regular Italic';
  src: url("/assets/other/fonts/Cartograph/CartographCF-RegularItalic.otf") format("opentype");
}

@font-face {
  font-family: 'Cartograph Bold';
  src: url("/assets/other/fonts/Cartograph/CartographCF-Bold.otf") format("opentype");
}

@font-face {
  font-family: 'Cartograph Bold Italic';
  src: url("/assets/other/fonts/Cartograph/CartographCF-BoldItalic.otf") format("opentype");
}

body {
  background-color: var(--bg1);
  color: var(--black);
  font-family: 'LXGW WenKai Mono TC', sans-serif;
  font-weight: 300;
}

.header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.post-links {
  display: flex;
  justify-content: center;
}

hr {
  height: 1px;
  background: var(--black);
  border: 0;
  margin: 15px;
}

nav {
  margin-top: 15px;
  font-family: 'LXGW WenKai Mono TC', sans-serif;
  font-weight: 400;
  anchor-name: --nav-bar;
  
  ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
  }
  ul > li {
    display: inline-block;
    
  }
  a:link, a:visited, a:active {
    color: var(--black);
    text-shadow: none;
    text-decoration: none;
    background: var(--bg1);
    border-bottom-right-radius: var(--border-radius);
    border-top-right-radius: 0px;
    border-bottom-left-radius: 0px;
    padding: 5px 10px;
    border-bottom: 1px solid black;
    border-right: 1px solid black;
    box-shadow: 3px 3px 0px 0px var(--wisteria);
  }
  a:hover {
    animation: wiggle .5s linear 3;
  } 
}

.wrap {
  width: 95%;
  margin: auto;
}

.page {
  padding: 10px;
  display: flex;
  flex-direction: column;
}

.page i, .page b {
  font-family: 'Cartograph Bold Italic', serif;
  color: var(--melon);
}

.post {
  border: none;
  padding: 10px;
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.top-matter {
  border-radius: var(--border-radius);
  text-align: center;
  width: 100%;
}

.post-content {
  padding-top: 10px;
  line-height: 150%;
  text-align: justify;
  width: 100%;
}

h1 {
  font-family: 'Cartograph Thin', serif;
  color: var(--melon);
  text-shadow: 2px 2px 0px #000000b3;
  font-size: 2.75em;
}

h2 {
  font-family: 'Cartograph Thin Italic', serif;
  color: var(--wisteria);
  font-size: 2.5em;
  text-shadow: 2px 2px 0px #000000b3;
}

h3 {
  font-family: 'Sriracha', sans-serif;
  color: var(--tea-green);
  font-size: 2em;
  text-shadow:
    -1px -1px 0 black,
    1px -1px 0 black,
    -1px 1px 0 black,
    1px 1px 0 black;
}

.post a:link, .post a:visited, .post a:active {
  display: inline;
  line-height: 180%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.page a:link, .page a:visited, .page a:active {
    display: inline;
    line-height: 180%;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

a:link, a:visited, a:active {
  display: flex;
  align-items: center;
  background-color: var(--wisteria);
  color: #fff;
  text-shadow: 1px 1px 2px #000;
  text-decoration: none;
  padding: 5px 20px;
  border-radius: 5px;
  transition: .6s;
}

a:hover {
  background-color: var(--tea-green);
  font-family: 'Cartograph Thin Italic';
}

a.left:before {
  transition: .6s;
  content: "\2190";
  font-size: .1rem;
  margin-right: 0;
  opacity: 0;
}

a.left:hover:before {
  content: "\2190";
  transform: scale(16);
  transform-origin: center;
  margin-right: 1.1rem;
  opacity: 1;
}

a.right:after {
  content: "\2192";
  font-size: .1rem;
  margin-left: 0;
  transition: .6s;
  opacity: 0;
}

a.right:hover:after {
  content: "\2192";
  transform: scale(16);
  transform-origin: center;
  margin-left: 1.1rem;
  opacity: 1;
}

.flowers {
  display: none;
  position: absolute;
  margin: 0;
  padding: 0;
  z-index: -1;
  position-anchor: --nav-bar;
  inset-block-end: anchor(--nav-bar bottom);
}

.flowers li {
  display: inline-block;
  list-style: none;
  width: 7px;
  height: 25px;
  border-radius: 2px;
  background: linear-gradient(45deg, #295128, #74b589);
  margin: 10px;
  animation: grow 10s linear infinite alternate;
  }

.flowers li:nth-child(odd) {
  animation-delay: -1s;
}

@keyframes grow {
  0% {
    height: 25px;
  }
  50% {
    height: 100px;
  }
  100% {
    height: 50px;
  }
}

@keyframes wiggle {
  0% {
    transform: scale(1.1);
  }
  25% {
    transform: scale(1.1) rotate(15deg);
  }
  50% {
    transform: scale(1.1) rotate(0deg);
  }
  75% {
    transform: scale(1.1) rotate(-15deg);
  }
  100% {
    transform: scale(1.1) rotate(0deg);
  }
}

figure {
  anchor-name: --preview;
}

figcaption {
  position: fixed;
  position-anchor: --preview;
  inset-block-start: anchor(--preview top);
  justify-self: anchor-center;
}