.header-nav-wrap {
  display: grid;
  justify-items: end;
  gap: 0.45rem;
}

.top-nav,
.top-nav__list {
  gap: 1.12rem;
}

.brand-crp {
  color: rgba(46, 36, 56, 0.58);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mobile-nav-footer {
  gap: 0.8rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(46, 36, 56, 0.08);
}

.posts-grid {
  gap: 1.15rem;
  align-items: start;
  justify-content: center;
}

.posts-grid--journal,
.posts-grid--preview {
  grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
  align-items: stretch;
  justify-content: center;
}

.journal-listing {
  padding: 0.35rem 0 1.7rem;
}

.journal-preview-header {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1.45rem;
}

.journal-preview-header__row {
  gap: 1.25rem;
}

.journal-preview-header__row > div {
  max-width: 44rem;
}

.journal-preview-link {
  align-self: flex-end;
}

.journal-breadcrumbs {
  margin-bottom: 1rem;
}

.journal-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.journal-breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(46, 36, 56, 0.62);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.journal-breadcrumbs__item:not(:last-child)::after {
  content: "/";
  color: rgba(46, 36, 56, 0.28);
}

.journal-breadcrumbs a {
  color: rgba(46, 36, 56, 0.68);
  transition: color var(--transition);
}

.journal-breadcrumbs a:hover,
.journal-breadcrumbs a:focus-visible {
  color: var(--accent);
}

.journal-breadcrumbs [aria-current="page"] {
  color: var(--text-main);
}

.topic-nav-section {
  padding: 0 0 2rem;
}

.topic-nav-card {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid rgba(46, 36, 56, 0.08);
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(235, 207, 224, 0.42), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(239, 231, 247, 0.82));
  box-shadow: var(--shadow-card);
}

.topic-nav-card__header {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.topic-nav-card__header h2,
.topic-nav-card__header p {
  margin: 0;
}

.topic-nav-card__header h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.95rem, 3vw, 2.6rem);
  line-height: 0.98;
}

.topic-nav-card__header p {
  color: var(--text-soft);
}

.journal-search-section {
  padding: 0 0 2rem;
}

.journal-search-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 1.2rem;
  align-items: center;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid rgba(46, 36, 56, 0.08);
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(235, 207, 224, 0.48), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(239, 231, 247, 0.84));
  box-shadow: var(--shadow-card);
}

.journal-search-card__content {
  display: grid;
  gap: 0.75rem;
}

.journal-search-card__content h2,
.journal-search-card__content p {
  margin: 0;
}

.journal-search-card__content h2 {
  max-width: 16ch;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  line-height: 0.98;
}

.journal-search-card__content p {
  max-width: 50ch;
  color: var(--text-soft);
}

.journal-search-form,
.not-found-card__search {
  width: 100%;
}

.journal-search-form__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
}

.journal-search-form__field {
  min-height: 3.6rem;
  width: 100%;
  padding: 0.95rem 1.1rem;
  border: 1px solid rgba(46, 36, 56, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-main);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.journal-search-form__field::placeholder {
  color: rgba(93, 77, 110, 0.78);
}

.journal-search-form__field:focus-visible {
  outline: 2px solid rgba(123, 91, 166, 0.24);
  outline-offset: 2px;
  border-color: rgba(123, 91, 166, 0.32);
}

.journal-search-form__submit {
  justify-content: center;
  min-width: 8.5rem;
}

.not-found-card__search {
  margin-top: 1.4rem;
}

.entry-taxonomy--topics .topic-link.is-active,
.topic-nav .topic-link.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, rgba(199, 75, 127, 0.96), rgba(123, 91, 166, 0.96));
  color: var(--white);
  box-shadow: 0 14px 28px rgba(123, 91, 166, 0.16);
}

.posts-grid .post-card,
.posts-grid--journal .post-card,
.posts-grid--preview .post-card {
  width: min(100%, 360px);
  height: 100%;
  align-self: start;
  grid-template-rows: 164px auto;
  border: 1px solid rgba(46, 36, 56, 0.08);
  background: rgba(251, 248, 253, 0.92);
  box-shadow: var(--shadow-card);
}

.posts-grid .post-card__thumb,
.posts-grid--journal .post-card__thumb,
.posts-grid--preview .post-card__thumb {
  position: relative;
  display: block;
  width: 100%;
  height: 164px;
  min-height: 164px;
  max-height: 164px;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  background-color: rgba(239, 231, 247, 0.6);
}

.posts-grid .post-card__thumb img,
.posts-grid--journal .post-card__thumb img,
.posts-grid--preview .post-card__thumb img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover !important;
  object-position: center center !important;
  transition: transform 600ms ease;
}

.posts-grid .post-card:hover .post-card__thumb img,
.posts-grid .post-card:focus-within .post-card__thumb img,
.posts-grid--journal .post-card:hover .post-card__thumb img,
.posts-grid--journal .post-card:focus-within .post-card__thumb img,
.posts-grid--preview .post-card:hover .post-card__thumb img,
.posts-grid--preview .post-card:focus-within .post-card__thumb img {
  transform: scale(1.03);
}

.post-card__content {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  height: 100%;
  align-content: start;
  gap: 0.78rem;
  padding: 1.15rem 1.3rem 1.3rem;
}

.post-card__meta-primary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.9rem;
}

.post-card__meta-detail,
.post-card__meta-note,
.entry-meta-pill,
.entry-byline,
.entry-author-note__meta {
  color: rgba(46, 36, 56, 0.62);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-card__meta-detail,
.entry-meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(123, 91, 166, 0.08);
  color: rgba(46, 36, 56, 0.7);
}

.post-card__meta-note {
  margin: 0;
}

.post-card__title {
  font-size: clamp(1.65rem, 3vw, 2.15rem);
}

.post-card__excerpt {
  font-size: 0.98rem;
  line-height: 1.7;
}

.post-card .text-link {
  align-self: end;
  margin-top: 0.2rem;
}

.entry-shell--single {
  width: min(calc(100% - 2rem), 780px);
}

.entry-card--single {
  padding: clamp(1.4rem, 3vw, 2.1rem);
}

.entry-card--single .entry-header--single,
.entry-card--single .entry-content,
.entry-card--single .entry-footer {
  max-width: 41rem;
  margin-inline: auto;
}

.entry-card--single .entry-header--single {
  gap: 0.7rem;
  margin-bottom: 1.6rem;
}

.entry-card--single .entry-header__meta {
  gap: 0.65rem;
  margin-bottom: 0.15rem;
}

.entry-byline {
  margin: 0;
}

.entry-card--single .entry-title {
  font-size: clamp(1.95rem, 3.3vw, 2.7rem);
  line-height: 0.99;
  letter-spacing: -0.02em;
}

.entry-card--single .entry-intro {
  max-width: 38ch;
  font-size: 1.02rem;
  line-height: 1.72;
}

.entry-thumbnail--single {
  width: min(100%, 38rem);
  margin: 0 auto 1.5rem;
  aspect-ratio: 3 / 2;
  max-block-size: 24rem;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(239, 231, 247, 0.62);
}

.entry-thumbnail--single img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entry-card--single .entry-content {
  font-size: 1.04rem;
  line-height: 1.82;
}

.entry-card--single .entry-content > * + * {
  margin-top: 1.15rem;
}

.entry-card--single .entry-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.45rem);
}

.entry-card--single .entry-content h3 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.entry-card--single .entry-content blockquote {
  margin: 2.2rem 0;
  padding: 1.35rem 1.5rem;
  font-size: 1.35rem;
  line-height: 1.22;
}

.entry-card--single .entry-footer {
  margin-top: 2.2rem;
}

.entry-author-note,
.related-posts {
  margin-top: 2rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid rgba(46, 36, 56, 0.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(235, 207, 224, 0.44), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(239, 231, 247, 0.82));
  box-shadow: var(--shadow-card);
}

.entry-author-note__header,
.related-posts__header {
  display: grid;
  gap: 0.55rem;
}

.entry-author-note__header h2,
.related-posts__header h2,
.related-posts__header p,
.entry-author-note__description {
  margin: 0;
}

.entry-author-note__header h2,
.related-posts__header h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.9rem, 3vw, 2.55rem);
  line-height: 0.98;
}

.entry-author-note__description,
.related-posts__header p {
  color: var(--text-soft);
}

.entry-author-note__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.related-posts__header {
  margin-bottom: 1.4rem;
}

.entry-taxonomy {
  gap: 0.45rem;
}

.entry-taxonomy a {
  min-height: 1.8rem;
  padding: 0.28rem 0.72rem;
  border: 1px solid rgba(199, 75, 127, 0.14);
  background: rgba(255, 255, 255, 0.78);
  color: rgba(46, 36, 56, 0.82);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.entry-taxonomy--tags a {
  border-color: rgba(123, 91, 166, 0.14);
}

.site-footer {
  padding: 2.35rem 0 3rem;
}

.footer-inner {
  padding: clamp(1.5rem, 3vw, 2.35rem);
  border: 1px solid rgba(46, 36, 56, 0.08);
  border-radius: 34px 34px 48px 34px;
  background:
    radial-gradient(circle at top left, rgba(235, 207, 224, 0.48), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(239, 231, 247, 0.84));
  box-shadow: var(--shadow-card);
}

.footer-branding,
.footer-column {
  gap: 0.75rem;
}

.footer-branding {
  max-width: 32rem;
}

.footer-kicker,
.footer-note {
  margin: 0;
}

.footer-kicker {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-note {
  color: rgba(46, 36, 56, 0.58);
  font-size: 0.92rem;
}

.footer-column--contact {
  padding: 1rem 1rem 1.1rem;
  border-radius: 24px;
  border: 1px solid rgba(46, 36, 56, 0.06);
  background: rgba(255, 255, 255, 0.46);
}

.footer-nav__list {
  gap: 0.7rem;
}

.footer-nav__list a {
  display: inline-flex;
  width: fit-content;
}

@media (max-width: 960px) {
  .journal-search-card {
    grid-template-columns: 1fr;
  }

  .journal-search-card__content h2 {
    max-width: 100%;
  }

  .journal-preview-link {
    align-self: flex-start;
  }

  .posts-grid .post-card,
  .posts-grid--journal .post-card,
  .posts-grid--preview .post-card {
    grid-template-rows: 152px auto;
  }

  .posts-grid .post-card__thumb,
  .posts-grid--journal .post-card__thumb,
  .posts-grid--preview .post-card__thumb {
    height: 152px;
    min-height: 152px;
    max-height: 152px;
  }

  .entry-thumbnail--single {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .journal-search-form__inner {
    grid-template-columns: 1fr;
  }

  .journal-search-form__submit {
    width: 100%;
  }

  .post-card__meta-primary,
  .entry-author-note__actions {
    align-items: flex-start;
  }

  .posts-grid .post-card,
  .posts-grid--journal .post-card,
  .posts-grid--preview .post-card {
    grid-template-rows: 144px auto;
  }

  .posts-grid .post-card__thumb,
  .posts-grid--journal .post-card__thumb,
  .posts-grid--preview .post-card__thumb {
    height: 144px;
    min-height: 144px;
    max-height: 144px;
  }

  .entry-card--single .entry-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
  }

  .entry-thumbnail--single {
    aspect-ratio: 4 / 3;
    border-radius: 24px;
  }
}
