body {
  margin: 0;
  min-height: 100vh;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  color: #E7DEFF;
  background-color: #e9eef2;
  background-image: 
    url("images/background.svg");
  background-size: cover;
  background-position: center bottom;
  background-attachment: fixed;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  background-color: transparent;
}

.site-nav a {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: #000000;
  color: #E7DEFF;
  border: 2px solid #E7DEFF;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-family: 'Press Start 2P';
  transition: transform 0.05s ease;
}

.site-nav a:hover {
  background-color: #E7DEFF;
  color: #000000;
  border-color: #000000;
}

.site-nav a:active {
  transform: translateY(4px);
}

main {
  max-width: 1000px;
  margin: 1rem auto 3rem;
  padding: 2rem;
  background-color: #E7DEFF;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  color: #000000;
  position: relative;
  background-image:
    url("images/top-gems.svg"),
    url("images/top-gems.svg");
  background-repeat: no-repeat, no-repeat;
  background-position: center top, center calc(100% + 16px);
  background-size: 100% 80px, 100% 80px;
}

a {
  color: #1a5f7a;
}

@font-face {
  font-family: 'Press Start 2P';
  src: url('fonts/PressStart2P-Regular.ttf') format('truetype');
  font-display: swap;
}

h1 {
  font-family: 'Press Start 2P';
}

.featured {
  margin-top: -0.5rem;
}

.featured h2 {
  font-family: 'Press Start 2P';
  margin-top: 0;
  margin-bottom: 1rem;
}

.carousel {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  position: relative;
  top: -1rem;
}

.carousel-track {
  flex: 1;
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track .card {
  flex: 0 0 calc((100% - 3rem) / 3);
  min-width: 0;
  scroll-snap-align: start;
}

@media (max-width: 700px) {
  .carousel-track .card {
    flex-basis: 100%;
  }
}

.carousel-btn svg {
  width: 1.5rem;
  height: 1.5rem;
}

.carousel-btn.next svg {
  transform: scaleX(-1);
}

.carousel-btn {
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  padding: 0;
  background-color: #000000;
  color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 8px;
  box-shadow: 0 0 0 2px #444444, 0 4px 0 #444444;
  cursor: pointer;
  transition: transform 0.05s ease, box-shadow 0.05s ease;
}

.carousel-btn:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 2px #444444;
}

.carousel-btn:focus-visible {
  outline: 2px solid #000000;
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .carousel-track .card {
    flex-basis: 100%;
  }
}

.card {
  background-color: #ffffff;
  border: 2px solid #000000;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.card a {
  display: block;
  height: 100%;
  color: #000000;
  text-decoration: none;
}

.card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 2px solid #000000;
}

.card-body {
  padding: 1rem;
}

.card-type {
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card h3 {
  margin: 0.25rem 0 0.5rem;
  font-size: 1.2rem;
}

.card p {
  margin: 0;
}

.card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.card a:focus-visible {
  outline: 2px solid #000000;
  outline-offset: 2px;
}

.post-carousel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: -0.5rem;
  padding-bottom: 1rem;
  position: relative;
}

.post-carousel h2 {
  font-family: 'Press Start 2P';
  margin: 0;
}

.post-carousel__track {
  width: calc(100% - 12rem);
  height: 19rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
  margin: 0;
  margin-right: auto;
  margin-left: auto;
  overflow-y: auto;
  padding: 0;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.post-carousel__track::-webkit-scrollbar {
  display: none;
}

.post-carousel__track:focus-visible {
  outline: 2px solid #000000;
  outline-offset: 2px;
}

.post-carousel__btn--prev {
  position: absolute;
  top: -1rem;
  right: -2.5rem;
}

.post-carousel__btn--next {
  position: absolute;
  bottom: -1.5rem;
  right: -2.5rem;
}

.post-carousel__btn--prev svg,
.post-carousel__btn--next svg {
  width: 1.5rem;
  height: 1.5rem;
}

.carousel-btn:disabled {
  cursor: default;
}

.blog-main {
  background-color: transparent;
  box-shadow: none;
}

.blog-main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: #E7DEFF;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transform: translateX(1rem); 
}

.post-scrollbar {
  position: absolute;
  top: 2.5rem;
  bottom: 2.5rem;
  right: -1.375rem;  
  width: 0.75rem;
  background-color: #000000;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px #444444;
  box-sizing: border-box;
  cursor: pointer;
}

.post-scrollbar__thumb {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2rem;
  background-color: #E7DEFF;
  border: 2px solid #ffffff;
  box-shadow: 2px 2px 0 #351394;
  box-sizing: border-box;
}

.post-card {
  flex: 0 0 auto;
  height: 6rem;
  scroll-snap-align: start;
}

.post-card a {
  height: 100%;
}

.post-card__inner {
  height: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 10rem 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: 0.25rem 1.5rem;
  text-align: left;
}

.post-card__date {
  margin: 0;
  padding-right: 1rem;
  border-right: 2px solid #000000;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-card__meta {
  margin: 0;
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .post-carousel__track {
    height: 26rem;
  }

  .post-card {
    height: auto;
  }

  .post-card__inner {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .post-card__date {
    padding-right: 0;
    padding-bottom: 0.5rem;
    border-right: none;
    border-bottom: 2px solid #000000;
  }
}

.resources-index {
    grid-column: 2;
    grid-row: 1;
    position: static;
    width: auto;
    margin: 1rem 2.5rem 0 0;
    padding: 0;
    text-align: center;
    transform: none;
    z-index: 12;
    background-color: transparent;
}

.resources-index ul {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.resources-index a {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
}

.resource-group {
  text-align: left;
  margin-bottom: 1.5rem;
  scroll-margin-top: 5rem;
}

.resource-group summary {
  cursor: pointer;
}

.resource-group summary h2 {
  display: inline-block;
  margin: 0.5rem 0;
}

.resource-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.resource-entry {
  margin-bottom: 1rem;
}

.resource-entry__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
  width: 100%;
}

.resource-entry__inner:has(.resource-entry__image) {
  grid-template-columns: 6rem 1fr;
}

.resource-entry__image {
  width: 6rem;
  height: 6rem;
  object-fit: contain;
  image-rendering: pixelated;
}

.resources-frame {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 16.5rem;
  align-items: start;
}

.resources-frame .post-scrollbar {
  top: 0;
  bottom: 4.25rem;
  z-index: 3;
}

.resources-frame .post-carousel__btn--prev {
  top: -3.75rem;
}

.resources-frame .post-carousel__btn--next {
  bottom: 0.625rem;
}

#resourcesPrev {
  z-index: 11;
}

.resources-scroll {
  height: 21.5rem; 
  overflow-y: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-left: 3.75rem;
  padding-right: 0.5rem;
  padding-bottom: 4rem;
  box-sizing: border-box;
  grid-column: 1;
  grid-row: 1;
}

.resources-scroll::-webkit-scrollbar {
  display: none;
}

.resources-scroll:focus-visible {
  outline: 2px solid #000000;
  outline-offset: 2px;
}

.resources-main {
  position: relative;
  max-width: 1000px;
  margin: 1rem auto 3rem;
  padding: 1.25rem 0 0;
  background-color: transparent;
  background-image: none;
  box-shadow: none;
  color: #000000;
}

.resources-main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: #E7DEFF;
  background-image: url("images/top-gems.svg"), url("images/top-gems.svg");
  background-repeat: no-repeat, no-repeat;
  background-position: center top, center calc(100% + 16px);
  background-size: calc(50% - 1rem) top, calc(50% - 1rem) top;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  left: -1rem;
  right: -3rem;
  transform: none;
}

.resources-main::after {
  content: "";
  position: absolute;
  left: -1rem;
  right: -3rem;
  top: 0;
  bottom: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: 8px;
  background-image:
    url("images/top-gems.svg"),
    linear-gradient(#E7DEFF, #E7DEFF),
    url("images/top-gems.svg"),
    linear-gradient(#E7DEFF, #E7DEFF);
  background-repeat: no-repeat;
  background-position: calc(50% - 1rem) top, calc(50% - 1rem) top, calc(50% - 1rem) calc(100% + 16px), calc(50% - 1rem) bottom;
  background-size: 100% 80px, 100% 4rem, 100% 80px, 100% 3rem;
}

#resourcesNext {
  z-index: 3;
}

.resources-heading {
    font-family: 'Press Start 2P';
    font-size: 1.5rem;
    text-align: center;
    margin: 0.25rem 0 1rem;
    position: relative;
    z-index: 3;
}

.kindred-main {
  position: relative;
  max-width: 1000px;
  margin: 1rem auto 3rem;
  padding: 1.25rem 0 0;
  background-color: transparent;
  background-image: none;
  box-shadow: none;
  color: #000000;
}

.kindred-main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: #E7DEFF;
  background-image: url("images/top-gems.svg"), url("images/top-gems.svg");
  background-repeat: no-repeat, no-repeat;
  background-position: center top, center calc(100% + 16px);
  background-size: calc(50% - 1rem) top, calc(50% - 1rem) top;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  left: -1rem;
  right: -3rem;
  transform: none;
}

.kindred-main::after {
  content: "";
  position: absolute;
  left: -1rem;
  right: -3rem;
  top: 0;
  bottom: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: 8px;
  background-image:
    url("images/top-gems.svg"),
    linear-gradient(#E7DEFF, #E7DEFF),
    url("images/top-gems.svg"),
    linear-gradient(#E7DEFF, #E7DEFF);
  background-repeat: no-repeat;
  background-position: calc(50% - 1rem) top, calc(50% - 1rem) top, calc(50% - 1rem) calc(100% + 16px), calc(50% - 1rem) bottom;
  background-size: 100% 80px, 100% 4rem, 100% 80px, 100% 3rem;
}

.kindred-heading {
  position: relative;
  margin: 0.25rem 0 1rem;
  font-family: 'Press Start 2P';
  font-size: 1.5rem;
  text-align: center;
  z-index: 3;
}

.kindred-frame {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 16.5rem;
  align-items: start;
}

.kindred-frame .post-scrollbar {
  top: 0;
  bottom: 4.25rem;
  z-index: 3;
}

.kindred-frame .post-carousel__btn--prev {
  top: -3.75rem;
}

.kindred-frame .post-carousel__btn--next {
  bottom: 0.625rem;
}

.kindred-scroll {
  grid-column: 1;
  grid-row: 1;
  height: 21.5rem;
  overflow-y: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-left: 3.75rem;
  padding-right: 0.5rem;
  padding-bottom: 4rem;
  box-sizing: border-box;
  transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
}

.kindred-scroll::-webkit-scrollbar {
  display: none;
}

.kindred-scroll:focus-visible {
  outline: 2px solid #000000;
  outline-offset: 2px;
}

.kindred-index {
  grid-column: 2;
  grid-row: 1;
  position: static;
  width: auto;
  margin: 1rem 2.5rem 0 0;
  padding: 0;
  text-align: center;
  transform: none;
  z-index: 12;
  background-color: transparent;
}

.kindred-index ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.kindred-index a {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
}

.kindred-group {
  text-align: left;
  margin-bottom: 1.5rem;
  scroll-margin-top: 5rem;
}

.kindred-group summary {
  cursor: pointer;
}

.kindred-group summary h2 {
  display: inline-block;
  margin: 0.5rem 0;
}

.kindred-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.kindred-entry {
  margin-bottom: 1rem;
}

.kindred-entry__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
  width: 100%;
}
