@font-face {
  font-display: swap;
  font-family: "SangSangShinb7";
  font-style: normal;
  font-weight: 400;
  src: url("/fonts/SSShinb7.ttf") format("truetype");
}

@font-face {
  font-display: swap;
  font-family: "Questrial";
  font-style: normal;
  font-weight: 400;
  src: url("/fonts/Questrial-Regular.ttf") format("truetype");
}

.light,
[data-theme="emerald"] {
  --color-base-100: oklch(93.8% 0.006 85);
  --color-base-200: oklch(90.5% 0.007 85);
  --color-base-300: oklch(86% 0.007 85);
  --color-base-content: oklch(18% 0.006 85);
}

.dark,
[data-theme="forest"] {
  --color-base-100: oklch(93.8% 0.006 85);
  --color-base-200: oklch(90.5% 0.007 85);
  --color-base-300: oklch(86% 0.007 85);
  --color-base-content: oklch(18% 0.006 85);
}

html,
body {
  background: #edeae4;
}

.softmoon-nav {
  align-items: center;
}

.softmoon-wordmark {
  color: currentColor;
  display: inline-block;
  font-family: "SangSangShinb7", cursive;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.9;
  text-decoration: none;
  transition: color 160ms ease;
  white-space: nowrap;
}

.softmoon-wordmark:hover,
.softmoon-wordmark:focus-visible {
  color: #4b52ff !important;
}

.card-title,
#dream-single-post-main h1[itemprop="headline"] {
  font-family: "Questrial", ui-sans-serif, system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
}

.card-title {
  font-size: 1.55rem;
  line-height: 1.15;
}

#dream-single-post-main h1[itemprop="headline"] {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 1.05;
}

.softmoon-nav-actions {
  gap: 1.5rem;
}

.dream-grid .card,
.softmoon-post-grid .card {
  border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  box-shadow: none;
  overflow: hidden;
  position: relative;
}

@media (hover: hover) and (pointer: fine) {
  .dream-grid .card::after,
  .softmoon-post-grid .card::after {
    background-image: url("/img/maanhover.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: min(82%, 320px);
    content: "";
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    transition: opacity 180ms ease;
    z-index: 2;
  }

  .dream-grid .card:hover::after,
  .dream-grid .card:focus-visible::after,
  .softmoon-post-grid .card:hover::after,
  .softmoon-post-grid .card:focus-visible::after {
    opacity: 0.25;
  }
}

.dream-grid .card > *,
.softmoon-post-grid .card > * {
  position: relative;
  z-index: 1;
}

.dream-grid .card figure,
.softmoon-post-grid .card figure {
  aspect-ratio: 16 / 10;
  background: #edeae4;
}

.card figure:has(img[src^="/img/blog/"]) {
  aspect-ratio: 16 / 10;
  background: #edeae4;
}

.dream-grid .card figure img,
.dream-grid .card figure picture,
.softmoon-post-grid .card figure img,
.softmoon-post-grid .card figure picture,
.card figure:has(img[src^="/img/blog/"]) img {
  height: 100%;
  width: 100%;
}

.dream-grid .card figure img,
.softmoon-post-grid .card figure img,
.card figure:has(img[src^="/img/blog/"]) img {
  object-fit: cover;
}

.dream-grid .card-body,
.softmoon-post-grid .card-body {
  gap: 0.55rem;
}

.softmoon-post-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 1rem;
}

.softmoon-post-column,
.softmoon-post-column .card {
  height: 100%;
}

.softmoon-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.35rem 0 0.65rem;
}

.softmoon-category {
  background: #ded9cf;
  border-radius: 999px;
  color: #35322d;
  display: inline-flex;
  font-family: "Questrial", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 0.45rem 0.65rem;
  text-decoration: none;
  text-transform: uppercase;
}

a.softmoon-category:hover,
a.softmoon-category:focus-visible {
  background: #4b52ff;
  color: #fff;
}

.softmoon-term-intro {
  color: #4b453e;
  font-size: 0.95rem;
  line-height: 1.55;
  margin-top: 1rem;
}

.sterrenzo-ebook-cta {
  background: linear-gradient(135deg, #ddd4c7 0%, #eee9e1 100%);
  border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  border-radius: 0.85rem;
  box-shadow: 0 0.6rem 1.5rem rgb(53 50 45 / 8%);
  margin: 1.4rem 0 1.8rem;
  padding: 1rem 1.1rem;
}

.sterrenzo-ebook-cta-eyebrow {
  color: #706b63;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0 0 0.55rem;
  text-transform: uppercase;
}

.sterrenzo-ebook-cta-content {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.sterrenzo-ebook-cta h3 {
  color: #35322d;
  font-family: "Questrial", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 0.35rem;
}

.sterrenzo-ebook-cta p {
  color: #4b453e;
  font-size: 0.88rem;
  line-height: 1.45;
  margin: 0;
}

.sterrenzo-ebook-cta a {
  background: #4b453e;
  border: 1px solid #4b453e;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.8rem;
  justify-content: center;
  padding: 0.68rem 1rem;
  text-decoration: none;
}

.sterrenzo-ebook-cta a:hover,
.sterrenzo-ebook-cta a:focus-visible {
  background: #35322d;
  color: #fff;
}

#dream-single-post-content {
  overflow-wrap: anywhere;
}

#dream-single-post-content img {
  height: auto;
  max-width: 100%;
}

#dream-single-post-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  white-space: nowrap;
}

footer {
  min-width: 0;
  overflow-wrap: anywhere;
}

footer > * {
  max-width: 100%;
}

@media (max-width: 639px) {
  .softmoon-post-grid {
    grid-template-columns: 1fr;
  }

  .softmoon-nav {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .softmoon-wordmark {
    font-size: clamp(1.85rem, 10vw, 2.2rem);
    white-space: normal;
  }

  .softmoon-nav-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 1rem;
    width: 100%;
  }

  #dream-single-post-main h1[itemprop="headline"] {
    font-size: clamp(2rem, 10vw, 2.65rem);
  }

  .card-title {
    font-size: 1.35rem;
  }

  .sterrenzo-ebook-cta-content {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .sterrenzo-ebook-cta a {
    min-height: 44px;
    width: 100%;
  }

  footer,
  footer > div {
    align-items: flex-start;
    text-align: left;
    width: 100%;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .softmoon-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .softmoon-post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
