html {
  font-family: "Hiragino Sans", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol", "Noto Color Emoji";
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace,
    "NerdFontsSymbols Nerd Font";
}

@scope (.web-card) {
  :scope {
    border-radius: 4px;
    border: 1.5px solid oklch(var(--bc) / 0.5);
    height: 180px;
    overflow: hidden;
    margin-block: 2em;
  }

  img {
    margin: 0 !important;
  }

  a {
    text-decoration: none !important;
  }

  :scope > a {
    display: flex;
    gap: 20px;
    height: 100%;
    padding: 4px;
    width: 100%;
  }

  .image {
    display: flex;
    flex-shrink: 0;
    height: 100%;
    max-width: 50%;
  }

  .image > img {
    height: 100%;
    object-fit: contain;
    width: 100%;
  }

  /* flex flex-1 flex-col justify-between py-2 px-4 sm:py-3 sm:px-5 transition ease-in-out duration-100 group-hover:bg-primary-color-50 */
  .content {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
    justify-content: space-between;
    padding: 4px;
    width: 100%;
  }

  .detail {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .title {
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    font-weight: bold;
    overflow-wrap: break-word;
    overflow: hidden;
    font-size: 1.0rem;
    line-height: 1.5rem;
  }

  .description {
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    overflow-wrap: break-word;
    overflow: hidden;
    font-size: 0.875rem;
    line-height: 1.25rem;
  }

  .host {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .host > div {
    display: flex;
    gap: 8px;
    color: oklch(var(--bc) / 0.5);
  }
}

/* Heading styles with primary color */
.prose h2 {
  position: relative;
  padding-left: 1rem;
  padding-bottom: 0.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid oklch(var(--p));
}

.prose h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: oklch(var(--p));
}

.prose h2::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: oklch(var(--p));
}

.prose h3 {
  position: relative;
  padding-left: 1.25rem;
  padding-bottom: 0.375rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid oklch(var(--p));
  background-image: repeating-linear-gradient(
    to right,
    oklch(var(--p)) 0,
    oklch(var(--p)) 2px,
    transparent 2px,
    transparent 6px
  );
  background-size: 14px 100%;
  background-position: left center;
  background-repeat: no-repeat;
}

.prose h4 {
  position: relative;
  padding-left: 1.5rem;
  padding-bottom: 0.25rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid oklch(var(--p));
  background-image: repeating-linear-gradient(
    to right,
    oklch(var(--p)) 0,
    oklch(var(--p)) 2px,
    transparent 2px,
    transparent 5px
  );
  background-size: 18px 100%;
  background-position: left center;
  background-repeat: no-repeat;
}
