body {
  background-image: url("../images/background.jpg");
}
body p {
  letter-spacing: 2px;
  line-height: 1.85rem;
}

.taxonomy-category a {
  color: coral;
}
.taxonomy-category a:hover {
  text-decoration: underline;
}

.site-header {
  background-image: url("../images/header-background.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: bottom;
  box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.2);
}
.site-header .has-base-background-color {
  background-color: transparent !important;
}
.site-header .wp-block-cover {
  width: 100%;
  max-width: 420px;
  overflow: visible;
  margin-top: clamp(0px, 137.5px + 5.5vw, 55px);
  margin-bottom: clamp(-55px, -137.5px + 5.5vw, 0px);
}
.site-header .wp-block-cover img {
  object-fit: contain;
}
.site-header span {
  margin: auto;
  aspect-ratio: 3/1.3;
  box-shadow: 0px 2px 10px black;
}
.site-header .wp-block-site-title {
  font-family: "Iansui";
  font-size: 68px;
  /* Step 1: Make the text color slightly darker than the background */
  color: rgba(0, 0, 0, 0.6);
  /* Step 2: Create the depth effect */
  text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.2), -1px -1px 1px rgba(0, 0, 0, 0.5);
  /* Top-left inner shadow */
  font-weight: bold;
  font-family: "Iansui", serif;
  /* Or your Iansui font */
  justify-items: center;
}
.site-header .wp-block-site-title a {
  display: block;
  letter-spacing: 0.5rem;
  text-indent: 0.5rem;
}

.wp-block-query > .wp-block-group,
.center-column {
  background-color: transparent !important;
  flex: 0 0 50%;
  max-width: 1260px;
  min-width: 100%;
}
@media (min-width: 1260px) {
  .wp-block-query > .wp-block-group,
  .center-column {
    min-width: 1200px;
  }
}

.post-content-wrapper {
  max-width: 800px;
  margin: auto;
  background-color: rgba(255, 255, 255, 0.5);
  padding-top: 24px;
}

.wp-block-post {
  min-width: 300px;
}

.column-wrapper {
  gap: unset;
}

.left-column {
  background-image: url("../images/left.png");
  background-repeat: no-repeat;
  background-position: right top;
  margin-right: -32px !important;
  z-index: 99;
}

.right-column {
  background-image: url("../images/right.png");
  background-repeat: no-repeat;
  background-position: left top;
  margin-left: -32px !important;
  z-index: 99;
}

.latest-posts-container li.wp-block-post {
  background: rgba(255, 255, 255, 0.85);
  padding: 24px;
  border-radius: 6px;
}
.latest-posts-container li.wp-block-post .wp-block-post-terms {
  margin-bottom: 8px !important;
}

/* Use the specific class from your HTML to beat WordPress defaults */
a.wp-block-read-more.custom-flip {
  display: inline-flex !important;
  align-items: center;
  gap: 0;
  text-decoration: none !important;
  perspective: 1000px !important;
  /* Ensure the link itself doesn't hide the 3D effect */
  transform-style: preserve-3d;
  vertical-align: middle;
}

/* The Box for each character */
.char-container {
  display: inline-block;
  position: relative;
  width: 1.25em;
  /* Adjust if characters look too far apart */
  height: 1.5em;
  /* Adjust based on your text height */
  overflow: visible !important;
  /* Crucial: 3D faces must be allowed to "pop" out */
}

/* The actual rotating element */
.char-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease-in-out;
  transform-style: preserve-3d !important;
}

/* Hover Trigger */
a.custom-flip:hover .char-inner {
  transform: rotateY(180deg) !important;
}

/* Faces */
.char-front,
.char-back {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  /* This makes the "back" of the character invisible */
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
}

/* The Back Face Fix */
.char-back {
  transform: rotateY(180deg) !important;
  background-color: transparent;
}

/* Emoji Fix for WordPress SVGs */
.char-container img.emoji {
  display: block !important;
  width: 1em !important;
  height: 1em !important;
  margin: 0 !important;
}

/* Base transition - adjusted for a snappier wave */
.char-inner {
  transition: transform 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Staggered delays */
.char-container:nth-child(1) .char-inner {
  transition-delay: 0s;
}

.char-container:nth-child(2) .char-inner {
  transition-delay: 0.3s;
}

.char-container:nth-child(3) .char-inner {
  transition-delay: 0.6s;
}

.char-container:nth-child(4) .char-inner {
  transition-delay: 0.9s;
}

/* Optional: Reset delay on hover-out so they all flip back at once, 
   or leave this out to have the wave effect happen in reverse too. */
.wp-block-read-more.custom-flip:not(:hover) .char-inner {
  transition-delay: 0s;
}

.char-container:nth-child(n+5) .char-inner {
  transform: none !important;
  transition: none !important;
}

.wp-site-blocks {
  background-image: url(../images/footer-bg.png);
  background-repeat: no-repeat;
  background-position: 60% 100%;
  background-size: initial;
}

@media (max-width: 991px) {
  .wp-block-query > .wp-block-group,
  .center-column {
    min-width: unset;
    flex-basis: 60% !important;
  }
  .center-column .wp-block-post-template {
    grid-template-columns: 1fr;
  }
}