/*
 * Editorial page system for the HTML mockups.
 * The homepage remains the visual source of truth; this file carries the same
 * rhythm, split layouts and restrained palette through the inner pages.
 */

.primary-navigation a[aria-current="page"]::after {
  transform: scaleX(1);
}

.inner-hero,
.article-hero-split {
  display: grid;
  min-height: min(39rem, calc(100vh - 9.5rem));
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  background: var(--cream);
}

.inner-hero__content-wrap,
.article-hero-split__content-wrap {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  padding: clamp(4rem, 7vw, 7rem) clamp(2rem, 5vw, 5.5rem) clamp(5rem, 8vw, 7.5rem) var(--gutter);
}

.inner-hero__content,
.article-hero-split__content {
  width: min(100%, 35rem);
  min-width: 0;
}

.inner-hero h1,
.article-hero-split h1 {
  max-width: 13ch;
  margin-bottom: 1.35rem;
  font-size: clamp(3rem, 5.2vw, 5.25rem);
  hyphens: auto;
  overflow-wrap: break-word;
}

.inner-hero__lead {
  max-width: 34rem;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.5vw, 1.27rem);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 720;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.breadcrumbs a {
  color: var(--blue-800);
}

.inner-hero--dark {
  background: var(--blue-900);
  color: var(--white);
}

.inner-hero--dark .breadcrumbs,
.inner-hero--dark .breadcrumbs a,
.inner-hero--dark .inner-hero__lead {
  color: rgba(255, 255, 255, 0.72);
}

.inner-hero--dark .eyebrow {
  color: #9ecdd2;
}

.inner-hero__visual {
  position: relative;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  background: var(--blue-900);
}

.inner-hero__image {
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
}

.inner-hero__image img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}

.inner-hero__image--flowers img {
  object-position: 22% center;
}

.inner-hero__image--team img {
  object-position: 50% center;
}

.inner-hero__image--article img {
  object-position: center;
}

.inner-hero__image--product {
  display: grid;
  place-items: center;
  padding: clamp(2.5rem, 7vw, 7rem);
  background: var(--paper);
}

.inner-hero__image--product img {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: 18rem;
  object-fit: contain;
}

.inner-hero__mark {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 39rem;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--white);
}

.inner-hero__mark strong {
  position: relative;
  z-index: 2;
  max-width: 80%;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 10vw, 10rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.85;
  text-align: center;
}

.inner-hero__mark-note {
  position: absolute;
  z-index: 2;
  top: clamp(2rem, 5vw, 4rem);
  left: clamp(2rem, 5vw, 4rem);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.7rem;
  font-weight: 720;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.inner-hero__mark-circle {
  position: absolute;
  width: clamp(16rem, 31vw, 30rem);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 50%;
}

.inner-hero__mark-circle::after {
  position: absolute;
  width: 48%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 50%;
  content: "";
  left: 50%;
  top: 50%;
}

.inner-hero__mark-line {
  position: absolute;
  width: 1px;
  height: 150%;
  transform: rotate(38deg);
  background: rgba(255, 255, 255, 0.18);
}

.page-intro,
.page-guidance,
.history-section,
.archive-section {
  background: var(--paper);
}

.page-guidance {
  padding-top: clamp(6rem, 11vw, 11rem);
}

.page-intro .guidance__heading,
.memorial-feed-intro .guidance__heading {
  position: static;
}

.prose {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.prose h2,
.prose h3,
.prose h4,
.prose strong {
  color: var(--ink);
}

.prose p,
.prose ul,
.prose ol {
  margin-bottom: 1.35rem;
}

.prose .button {
  margin-top: 0.8rem;
}

.detail-list,
.cost-list,
.history-list {
  border-top: 1px solid var(--line);
}

.detail-row {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  padding-block: 1.8rem;
  border-bottom: 1px solid var(--line);
}

.detail-row__number {
  padding-top: 0.35rem;
  color: var(--blue-700);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.detail-row h3 {
  margin-bottom: 0.55rem;
  font-size: clamp(1.5rem, 2.2vw, 1.85rem);
}

.detail-row h3 a {
  text-decoration: none;
}

.detail-row h3 a span {
  display: inline-block;
  margin-left: 0.35rem;
  color: var(--blue-700);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: transform 180ms ease;
}

.detail-row h3 a:hover span {
  transform: translateX(0.25rem);
}

.detail-row p {
  max-width: 38rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.related-band {
  padding-block: 0 clamp(6rem, 10vw, 10rem);
  background: var(--paper);
}

.related-band .quick-paths__grid {
  box-shadow: var(--shadow);
}

.memorial-feed-section {
  background: var(--cream);
}

.memorial-feed-intro {
  margin-bottom: clamp(4rem, 8vw, 7rem);
}

.memorial-feed {
  padding: clamp(1.5rem, 4vw, 3.5rem);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.memorial-feed__heading {
  display: grid;
  grid-template-columns: 1fr minmax(18rem, 0.65fr);
  align-items: end;
  gap: 3rem;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.memorial-feed__heading h2,
.memorial-feed__heading p {
  margin-bottom: 0;
}

.memorial-feed__heading h2 {
  font-size: clamp(2.3rem, 4vw, 3.8rem);
}

.memorial-feed__heading > p {
  color: var(--ink-soft);
}

#memcare-memorial-feed {
  min-height: 24rem;
}

.integration-notice {
  padding: 1rem;
  background: var(--cream);
}

.product-section {
  background: var(--cream);
}

.product-showcase {
  border-top: 1px solid var(--line);
}

.product-row {
  display: grid;
  min-height: 31rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.product-row:nth-child(even) .product-row__media {
  order: 2;
}

.product-row__media {
  display: grid;
  place-items: center;
  padding: clamp(2.5rem, 7vw, 6rem);
  margin: 0;
  background: var(--paper);
}

.product-row__media img {
  width: 100%;
  max-height: 18rem;
  object-fit: contain;
}

.product-row__content {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 7vw, 6rem);
}

.product-row__content h2 {
  margin-bottom: 1rem;
}

.product-row__content > p:not(.eyebrow) {
  max-width: 30rem;
  margin-bottom: 2rem;
  color: var(--ink-soft);
}

.catalog-section {
  background: var(--cream);
}

.catalog-panel {
  padding: 0;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.catalog-panel__heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 3rem;
  padding: clamp(2rem, 5vw, 4.5rem);
  background: var(--blue-900);
  color: var(--white);
}

.catalog-panel__heading .eyebrow {
  color: #9ecdd2;
}

.catalog-panel__heading h2 {
  max-width: 13ch;
  margin-bottom: 0;
}

.embed-frame {
  display: block;
  width: 100%;
  min-height: 54rem;
  border: 0;
  background: var(--paper);
}

.price-document-section {
  background: var(--paper);
}

.price-document-panel {
  display: grid;
  min-height: 31rem;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  background: var(--blue-900);
  color: var(--white);
}

.price-document-panel__intro {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 7vw, 6rem);
}

.price-document-panel__intro .eyebrow {
  color: #9ecdd2;
}

.price-document-panel__intro h2 {
  max-width: 10ch;
}

.price-document-panel__intro > p:not(.eyebrow) {
  max-width: 30rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.price-document-panel__links {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem);
  background: rgba(255, 255, 255, 0.045);
}

.price-document-panel__links a {
  display: grid;
  min-height: 9rem;
  grid-template-columns: 1fr auto;
  align-content: center;
  gap: 0.6rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  text-decoration: none;
}

.price-document-panel__links a:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.price-document-panel__links a > span:first-child {
  grid-column: 1;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.68rem;
  font-weight: 720;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.price-document-panel__links strong {
  grid-column: 1;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: 1.1;
}

.price-document-panel__links a > span:last-child {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 1.4rem;
  transition: transform 180ms ease;
}

.price-document-panel__links a:hover > span:last-child {
  transform: translate(0.2rem, -0.2rem);
}

.cost-row {
  display: grid;
  min-height: 5.5rem;
  grid-template-columns: 3rem minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.cost-row span {
  color: var(--blue-700);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.cost-row p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.2;
}

.public-support {
  padding-top: 0;
}

.public-support .memorials__content p:not(.eyebrow) {
  margin-bottom: 1rem;
}

.public-support__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-block: 2rem;
}

.text-link--light {
  color: var(--white);
}

.public-support small {
  color: rgba(255, 255, 255, 0.56);
}

.history-section {
  padding-top: clamp(7rem, 12vw, 12rem);
}

.history-list article {
  padding-block: 2rem;
  border-bottom: 1px solid var(--line);
}

.history-list span {
  display: block;
  margin-bottom: 1rem;
  color: var(--blue-700);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.history-list h3 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.55rem, 2.5vw, 2rem);
}

.history-list p {
  max-width: 38rem;
  margin: 0;
  color: var(--ink-soft);
}

.film-section {
  background: var(--sage);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.video-embed {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--blue-900);
}

.video-embed iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 0;
  inset: 0;
}

.video-card .eyebrow {
  margin: 1.4rem 0 0.65rem;
}

.video-card h3 {
  margin: 0;
}

.document-section {
  padding-top: 0;
  background: var(--paper);
}

.document-list {
  border-top: 1px solid var(--line);
}

.document-card {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr) auto;
  min-height: 7.75rem;
  align-items: center;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: padding 180ms ease, background 180ms ease;
}

.document-card:hover {
  padding-inline: 1rem;
  background: var(--cream);
}

.document-card__type,
.document-card__body small {
  color: var(--blue-700);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.document-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.document-card__body strong {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.85rem);
  font-weight: 400;
  line-height: 1.15;
}

.document-card__arrow {
  color: var(--blue-700);
  font-size: 1.4rem;
}

.contact-paths {
  position: relative;
  z-index: 3;
  margin-top: -3.3rem;
  background: transparent;
}

.contact-paths .quick-paths__grid {
  box-shadow: var(--shadow);
}

.staff-section {
  padding-top: clamp(8rem, 12vw, 12rem);
  background: var(--cream);
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 5rem) clamp(1rem, 2.5vw, 2rem);
}

.staff-card {
  background: transparent;
}

.staff-card figure {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  margin: 0;
  background: var(--cream-deep);
}

.staff-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 280ms ease;
}

.staff-card:hover img {
  transform: scale(1.025);
}

.staff-card__content {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  padding: 1.4rem 0 0;
}

.staff-card h3 {
  margin-bottom: 0.45rem;
  font-size: 1.55rem;
}

.staff-card p {
  min-height: 3.1rem;
  margin-bottom: 1rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.staff-card a {
  font-size: 0.88rem;
}

.staff-card a + a {
  margin-top: 0.25rem;
}

.office-section {
  padding-top: clamp(6rem, 10vw, 9rem);
  background: var(--paper);
}

.office-section .location-card > p:not(.location-card__region) {
  min-height: 4.5rem;
}

.office-section .location-card .text-link {
  margin-top: 1rem;
}

.archive-heading {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(3.5rem, 7vw, 7rem) clamp(1.5rem, 4vw, 4rem);
}

.article-card:first-child {
  display: grid;
  min-height: 34rem;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.1fr) minmax(20rem, 0.9fr);
  background: var(--cream);
}

.article-card:first-child .article-card__media {
  min-height: 34rem;
  aspect-ratio: auto;
}

.article-card:first-child .article-card__content {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 7vw, 6rem);
}

.article-card:first-child h2 {
  font-size: clamp(2.2rem, 4vw, 3.75rem);
}

.article-card__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--cream);
}

.article-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.article-card:hover .article-card__media img {
  transform: scale(1.025);
}

.article-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 30%, var(--sage-deep), transparent 32%), var(--cream);
}

.article-card__content {
  padding-top: 1.5rem;
}

.article-card time,
.article-hero-split time {
  color: var(--blue-700);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-card h2 {
  margin: 0.7rem 0 1rem;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.14;
}

.article-card h2 a {
  text-decoration: none;
}

.article-card__content > p {
  max-width: 38rem;
  color: var(--ink-soft);
}

.article-hero-split__content h1 {
  max-width: 16ch;
}

.article-hero-split .inner-hero__mark {
  min-height: 39rem;
}

.article-body {
  max-width: 48rem;
  padding-block: clamp(5rem, 9vw, 9rem);
  color: var(--ink-soft);
  font-size: clamp(1.04rem, 1.5vw, 1.16rem);
}

.legacy-content > *:first-child {
  margin-top: 0;
}

.legacy-content h2,
.legacy-content h3,
.legacy-content h4 {
  margin: 3rem 0 1.1rem;
  color: var(--ink);
}

.legacy-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.legacy-content h3 {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
}

.legacy-content h4 {
  font-size: 1.45rem;
}

.legacy-content p,
.legacy-content ul,
.legacy-content ol,
.legacy-content blockquote {
  margin-bottom: 1.5rem;
}

.legacy-content li + li {
  margin-top: 0.55rem;
}

.legacy-content a {
  color: var(--blue-800);
}

.legacy-content figure,
.legacy-content .wp-block-image {
  margin: 3.5rem 0;
}

.legacy-content figure img,
.legacy-content .wp-block-image img {
  width: 100%;
  height: auto;
}

.legacy-content figcaption {
  padding-top: 0.8rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.5;
}

.legacy-content blockquote {
  padding: 2rem;
  margin-inline: 0;
  background: var(--sage);
  border-left: 0.3rem solid var(--blue-700);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.article-footer {
  max-width: 60rem;
  padding-bottom: clamp(6rem, 10vw, 10rem);
}

.article-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.article-navigation a {
  display: flex;
  min-height: 10rem;
  align-items: flex-start;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.75rem;
  background: var(--cream);
  text-decoration: none;
}

.article-navigation a span {
  color: var(--blue-700);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-navigation a strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.2;
}

.narrow {
  max-width: 48rem;
}

.not-found {
  display: grid;
  min-height: 68vh;
  place-items: center;
  padding-block: 5rem;
  background: var(--cream);
}

.not-found__inner {
  text-align: center;
}

.not-found__code {
  margin-bottom: 0;
  color: rgba(36, 124, 136, 0.18);
  font-family: var(--font-display);
  font-size: clamp(7rem, 20vw, 16rem);
  line-height: 0.8;
}

.not-found h1 {
  max-width: 15ch;
  margin-inline: auto;
}

.not-found__inner > p:not(.eyebrow, .not-found__code) {
  max-width: 37rem;
  margin: 0 auto 2rem;
  color: var(--ink-soft);
}

.not-found__inner > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

@media (max-width: 1100px) {
  .staff-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .inner-hero,
  .article-hero-split {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .inner-hero__content-wrap,
  .article-hero-split__content-wrap {
    justify-content: flex-start;
    padding: 4.5rem var(--gutter) 6rem;
  }

  .inner-hero__content,
  .article-hero-split__content {
    width: min(100%, 42rem);
  }

  .inner-hero__visual {
    min-height: 26rem;
  }

  .inner-hero__mark,
  .article-hero-split .inner-hero__mark {
    min-height: 26rem;
  }

  .inner-hero__image {
    min-height: 26rem;
  }

  .inner-hero__image img {
    min-height: 26rem;
  }

  .inner-hero__image--product img {
    min-height: 0;
  }

  .memorial-feed__heading,
  .price-document-panel,
  .product-row,
  .article-card:first-child {
    grid-template-columns: 1fr;
  }

  .product-row:nth-child(even) .product-row__media {
    order: 0;
  }

  .product-row__media {
    min-height: 24rem;
  }

  .price-document-panel__intro {
    min-height: 24rem;
  }

  .catalog-panel__heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .public-support__links {
    align-items: flex-start;
    flex-direction: column;
  }

  .video-grid {
    grid-template-columns: 1fr;
    max-width: 42rem;
  }

  .staff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-card:first-child .article-card__media {
    min-height: 25rem;
  }
}

@media (max-width: 600px) {
  .inner-hero__content-wrap,
  .article-hero-split__content-wrap {
    padding-block: 3.7rem 5rem;
  }

  .inner-hero h1,
  .article-hero-split h1 {
    font-size: clamp(2.7rem, 14vw, 4rem);
  }

  .breadcrumbs {
    margin-bottom: 2.5rem;
  }

  .inner-hero__visual,
  .inner-hero__mark,
  .inner-hero__image,
  .inner-hero__image img,
  .article-hero-split .inner-hero__mark {
    min-height: 20rem;
  }

  .inner-hero__image--product img {
    min-height: 0;
  }

  .inner-hero__mark strong {
    font-size: clamp(4rem, 25vw, 7rem);
  }

  .detail-row {
    grid-template-columns: 2rem minmax(0, 1fr);
  }

  .related-band .quick-paths__grid,
  .contact-paths .quick-paths__grid {
    grid-template-columns: 1fr;
  }

  .memorial-feed__heading {
    gap: 1rem;
  }

  .price-document-panel__links {
    padding: 1.5rem;
  }

  .staff-grid,
  .article-grid,
  .article-navigation {
    grid-template-columns: 1fr;
  }

  .document-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    padding-block: 1.25rem;
  }

  .document-card__type {
    display: none;
  }

  .not-found__inner > div {
    align-items: stretch;
    flex-direction: column;
  }
}
