/* ==========================================================================
   Seeded CMS pages and long-form prose
   ========================================================================== */

.content-page {
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.content-page__header {
  padding-block: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 3vw, 2rem);
  border-bottom: 1px solid var(--color-border-soft);
}

.content-page__title {
  max-width: 18ch;
  margin-top: 0.65rem;
  font-size: var(--text-2xl);
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.content-page__excerpt {
  max-width: 42rem;
  margin-top: 0.8rem;
  color: var(--color-text);
  font-size: 0.98rem;
  line-height: 1.65;
}

.content-page__updated {
  margin-top: 0.8rem;
  color: var(--color-muted);
  font-size: 0.72rem;
}

.content-page__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
}

.contact-details {
  margin-bottom: 1.8rem;
  padding: 1rem;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 60% 90% at 0% 0%, rgba(180, 121, 215, 0.16), transparent 70%),
    rgba(22, 15, 48, 0.62);
}

.contact-details__head h2 {
  margin-top: 0.4rem;
  font-size: 1.15rem;
}

.contact-details__head > p:last-child {
  max-width: 36rem;
  margin-top: 0.35rem;
  color: var(--color-muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.contact-details__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.contact-details__item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-sm);
  background: rgba(38, 21, 63, 0.46);
  color: var(--color-text);
  text-decoration: none;
  transition:
    border-color var(--transition),
    background var(--transition);
}

.contact-details__item:hover {
  border-color: var(--color-highlight);
  background: rgba(38, 21, 63, 0.75);
}

.contact-details__item--static {
  cursor: default;
}

.contact-details__item--static:hover {
  border-color: var(--color-border-soft);
  background: rgba(38, 21, 63, 0.46);
}

.contact-details__icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: var(--radius-pill);
  background: var(--color-elevated);
  color: var(--color-highlight);
}

.contact-details__icon .icon {
  width: 0.9rem;
  height: 0.9rem;
}

.contact-details__item > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 0.1rem;
  flex: 1 1 auto;
}

.contact-details__item strong {
  color: var(--color-white);
  font-size: 0.74rem;
  font-weight: 650;
}

.contact-details__item small {
  overflow: hidden;
  color: var(--color-muted);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-details__note {
  display: flex;
  gap: 0.35rem;
  align-items: flex-start;
  margin-top: 0.75rem;
  color: var(--color-muted);
  font-size: 0.74rem;
  line-height: 1.55;
}

.contact-details__note .icon {
  flex: 0 0 auto;
  margin-top: 0.15rem;
  color: var(--color-highlight);
}

@media (min-width: 42rem) {
  .contact-details__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.prose {
  max-width: 46rem;
  min-width: 0;
  color: var(--color-text);
  font-size: 0.92rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.prose > * + * {
  margin-top: 1rem;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  margin-top: 1.9rem;
  color: var(--color-white);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.prose h1 {
  margin-top: 0;
  font-size: 1.7rem;
}

.prose h2 {
  font-size: 1.28rem;
}

.prose h3 {
  font-size: 1.08rem;
}

.prose p {
  color: var(--color-text);
}

.prose strong {
  color: var(--color-white);
  font-weight: 650;
}

.prose a {
  color: var(--color-highlight);
  text-decoration: underline;
  text-decoration-color: rgba(180, 121, 215, 0.45);
  text-underline-offset: 0.18em;
}

.prose a:hover {
  color: var(--color-white);
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-top: 0.35rem;
  padding-left: 0.2rem;
}

.prose li::marker {
  color: var(--color-highlight);
}

.prose blockquote {
  padding: 0.9rem 1rem;
  border-left: 2px solid var(--color-button);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(38, 21, 63, 0.5);
  color: var(--color-text);
}

.prose code {
  padding: 0.12rem 0.3rem;
  border: 1px solid var(--color-border-soft);
  border-radius: 0.3rem;
  background: var(--color-elevated);
  color: var(--color-white);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84em;
}

.prose pre {
  max-width: 100%;
  padding: 1rem;
  overflow-x: auto;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  background: var(--color-elevated);
}

.prose pre code {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.8rem;
}

.prose img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
}

.prose hr {
  height: 1px;
  margin-block: 1.75rem;
  border: 0;
  background: var(--color-border-soft);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.prose th,
.prose td {
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--color-border-soft);
  text-align: left;
}

.prose th {
  color: var(--color-white);
  background: var(--color-elevated);
}

.prose--section {
  max-width: 52rem;
}

.content-page__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  align-self: start;
  padding: 1.2rem;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  background: var(--gradient-card);
}

.content-page__aside h2 {
  font-size: 1.05rem;
}

.content-page__aside p {
  color: var(--color-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.content-page__aside .btn {
  align-self: stretch;
}

@media (min-width: 56.25rem) {
  .content-page__body {
    grid-template-columns: minmax(0, 1fr) 18rem;
    align-items: start;
  }

  .content-page__aside {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
  }
}
