
/* ===== Title Row ===== */
.title-container {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(14px, 2.5vw, 20px);
}

.title-line {
  width: 36px;
  height: 3px;
  border-radius: 3px;
  background: #ff3c3c; /* accent color */
  flex: 0 0 auto;
  translate: 0 3px;
}

.title {
  font-size: clamp(22px, 3.6vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  color: #111217;
  font-weight: 800;
}

/* ===== Rich Text ===== */
.richtext {
  color: rgba(17, 18, 23, 0.75);
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.65;
}

.richtext p {
  margin: 0 0 1em 0;
}
.richtext p:last-child {
  margin-bottom: 0;
}

.richtext a {
  color: #ff3c3c;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 60, 60, 0.4);
  transition: border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.richtext a:hover {
  opacity: 0.9;
  border-bottom-color: currentColor;
}

.richtext h2,
.richtext h3,
.richtext h4 {
  color: #111217;
  margin: 1.6em 0 0.6em;
  line-height: 1.2;
}
.richtext h2 {
  font-size: clamp(20px, 3vw, 28px);
}
.richtext h3 {
  font-size: clamp(18px, 2.2vw, 22px);
}
.richtext h4 {
  font-size: clamp(17px, 2vw, 20px);
}

.richtext ul,
.richtext ol {
  padding-left: 1.2em;
  margin: 0.6em 0 1.1em;
}
.richtext li {
  margin: 0.35em 0;
}

.richtext blockquote {
  margin: 1.2em 0;
  padding: 0.8em 1em;
  border-left: 4px solid #ff3c3c;
  background: rgba(255, 60, 60, 0.08);
  border-radius: 8px;
}

.richtext img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ===== Variant: Glass Card ===== */
.outer-container.glass {
  background: transparent;
  padding: clamp(28px, 6vw, 72px) min(4vw, 24px);
}

.outer-container.glass .inner-container {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.45), transparent 60%),
    rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

/* ===== Variant: Narrow Column ===== */
.inner-container.narrow {
  width: min(100%, 56ch);
}

/* ===== Subtle Entrance Animation ===== */
@media (prefers-reduced-motion: no-preference) {
  .inner-container {
    animation: cardIn 0.5s ease both;
  }
  @keyframes cardIn {
    from {
      opacity: 0;
      translate: 0 8px;
    }
    to {
      opacity: 1;
      translate: 0 0;
    }
  }
}
