@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans&display=swap");
@font-face {
  font-family: "YoungSerif";
  src: url(https://nikkicollister.com/fonts/youngserif-regular.woff);
}

body {
  background-color: #fcf8f7;
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans", "Segoe UI",
    Roboto, Helvetica, Arial, "Hiragino Sans GB", "Microsoft Yahei", sans-serif;
  color: #212529;
}

header {
  display: flex;
  flex-wrap: wrap;
  align-items: center; /* Vertically centers items */
  justify-content: center; /* Horizontally centers items */
  gap: 0em; /* Default gap for smaller screens */
  padding: 0.5em;
  background-color: #fff3f0;
  border-bottom: 1px dashed #cc00ff;
}

/* for wider screens */
@media (min-width: 500px) {
  header {
    gap: 3em; /* Larger gap for desktop and wider screens */
  }
}

title {
  font-family: "Courier New", Courier, monospace;
}

h1 {
  font-family: "YoungSerif", serif;
  text-transform: lowercase;
}

h2 {
  font-family: "YoungSerif", serif;
  text-transform: lowercase;
}

p {
  line-height: 1.5;
}

a[href] {
  color: #cc00ff;
  /* text-decoration-style: dotted; */
}
a[href]:visited {
  color: #cc00ff;
}
a[href]:hover,
a[href]:active {
  color: #cc00ff;
  background: yellow;
  cursor: crosshair;
}

::selection {
  color: #f7fff5;
  background: #cc00ff;
}

li {
  line-height: 1.5;
}

img {
  max-width: 100%;
}

figure {
  margin-bottom: 20px;
}

figcaption {
  color: #838383;
  font-size: 0.75em;
}

table img {
  max-width: 320px;
  height: auto;
}

/* classes */

.content-wrap {
  margin: 5px auto;
  margin-right: auto;
  max-width: 40em;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.content-wrap img {
  display: block;
  margin: 0 auto;
}

.postlist {
  margin-bottom: 30px;
}

.postlist-item {
  margin: 10px 0;
  text-transform: lowercase;
}

.postfooter {
  border-top: 1px dashed #b9b9b9;
  margin-bottom: 20px;
}

.nav-list {
  padding: 0;
}

.nav-item {
  display: inline;
  list-style-type: none;
  margin-right: 15px;
}

/* tags list */
.post-metadata {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5em;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tags-list {
  display: inline;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tags-list-item {
  display: inline;
}

.embed-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 56.25%; /* 16:9 aspect ratio (height/width * 100) */
}

.embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
