/* Calm message-sharing platform — parchment, sage, warm gold */
:root {
  --hope-sand: #F4EEE4;
  --hope-paper: #FFFCF7;
  --hope-mist: #E7EEE9;
  --hope-sage: #4F6F62;
  --hope-sage-deep: #3A5349;
  --hope-ink: #3C3A35;
  --hope-mute: #6F6B63;
  --hope-gold: #B08A45;
  --hope-gold-soft: #E9D7A8;
  --hope-line: rgba(62, 72, 64, .12);
}

/* Homepage Daily Hope — light, restful */
.msg-feature {
  background:
    radial-gradient(720px 320px at 8% 0%, rgba(176,138,69,.16), transparent 58%),
    linear-gradient(180deg, #EFE8DC 0%, var(--hope-sand) 100%) !important;
  color: var(--hope-ink) !important;
  padding: 36px 0 44px !important;
}
.msg-feature-glow { display: none; }
.msg-feature-card {
  background: var(--hope-paper) !important;
  border: 1px solid var(--hope-line) !important;
  box-shadow: 0 18px 50px rgba(58, 83, 73, .08) !important;
  backdrop-filter: none !important;
}
.msg-feature-kicker {
  background: rgba(176,138,69,.12) !important;
  color: #8A6A32 !important;
  border-color: rgba(176,138,69,.28) !important;
}
.msg-feature-theme {
  background: var(--hope-mist) !important;
  color: var(--hope-sage-deep) !important;
  border-color: transparent !important;
}
.msg-feature-card h2 { color: var(--hope-sage-deep) !important; }
.msg-feature-verse {
  background: #F7F2E8 !important;
  border-left-color: var(--hope-gold) !important;
}
.msg-feature-verse p { color: var(--hope-ink) !important; }
.msg-feature-verse cite { color: var(--hope-gold) !important; }
.msg-feature-excerpt { color: var(--hope-mute) !important; }
.msg-feature-link {
  color: var(--hope-sage) !important;
  border-bottom-color: rgba(79,111,98,.35) !important;
}
.msg-feature-aside {
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  background: #EFE8DC !important;
  border-left: 1px solid var(--hope-line) !important;
}
.msg-feature-photo {
  margin: 0;
  overflow: hidden;
  background: #fff;
}
.msg-feature-photo img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: 50% 18%;
  display: block;
}
.msg-feature-aside-copy { padding: 18px 22px 22px; }
.msg-feature-avatar { display: none; }
.msg-feature-role { color: var(--hope-gold) !important; }
.msg-feature-name { color: var(--hope-sage-deep) !important; }
.msg-feature-aside time { color: var(--hope-mute) !important; }
.msg-feature-org { color: var(--hope-mute) !important; }

/* Archive + reader */
.platform-messages { background: var(--hope-sand); color: var(--hope-ink); }
.platform-messages .main { background: transparent; }

/* Daily Hope archive — evening chapel journal (not cream cards) */
.posts-archive { background: #F3EADB; }
.posts-archive .main { background: transparent; }
.posts-page { padding: 0 0 0; background: transparent; }
.posts-masthead {
  position: relative;
  overflow: hidden;
  color: #F6EEDC;
  background:
    radial-gradient(520px 280px at 88% 12%, rgba(212,160,23,.22), transparent 55%),
    linear-gradient(165deg, #0B2A24 0%, #061512 48%, #0A1C18 100%);
  padding: 28px 0 0;
}
.posts-masthead-wash {
  position: absolute;
  inset: auto 0 0 0;
  height: 48px;
  background: linear-gradient(180deg, transparent, #F3EADB);
  pointer-events: none;
}
.posts-masthead-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 340px);
  gap: 28px;
  align-items: end;
  min-height: 320px;
}
.posts-eyebrow {
  margin: 0 0 12px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #E2C36A;
}
.posts-page-title {
  font-family: var(--head);
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  line-height: .95;
  letter-spacing: -.04em;
  color: #F8F1E3;
  margin: 0 0 16px;
  max-width: 12ch;
}
.posts-page-subtitle {
  color: rgba(246,238,220,.78);
  font-size: 1.08rem;
  line-height: 1.55;
  max-width: 38ch;
  margin: 0;
}
.posts-credit {
  margin: 22px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 1.02rem;
  color: #F8F1E3;
}
.posts-credit span {
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #E2C36A;
  font-weight: 800;
}
.posts-masthead-photo {
  margin: 0;
  justify-self: end;
  width: min(100%, 340px);
}
.posts-masthead-photo img {
  display: block;
  width: 100%;
  height: 390px;
  object-fit: cover;
  object-position: 50% 12%;
  border: 1px solid rgba(226,195,106,.45);
  box-shadow: 0 24px 50px rgba(0,0,0,.35);
  background: #fff;
}

.posts-journal {
  background:
    linear-gradient(180deg, #F3EADB 0%, #EFE6D4 100%);
  padding: 28px 0 88px;
  color: #1C241F;
}
.posts-page-wrap { max-width: 1080px; }
.post-lang-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin: 0 0 28px;
  border-bottom: 1px solid rgba(28,36,31,.12);
}
.post-lang-link {
  text-decoration: none;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #5C665F;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 10px 0 12px;
  border-radius: 0;
}
.post-lang-link.active {
  background: none;
  color: #0B2A24;
  border-bottom-color: #C9A227;
}

.posts-feature {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) minmax(180px, 260px);
  gap: 28px;
  align-items: start;
  padding: 8px 0 36px;
  border-bottom: 1px solid rgba(28,36,31,.14);
}
.posts-feature-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 8px;
}
.posts-feature-meta time {
  font-family: var(--head);
  font-size: 1.35rem;
  letter-spacing: -.02em;
  color: #0B2A24;
}
.posts-feature-body h2 {
  font-family: var(--head);
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  line-height: 1.12;
  margin: 0 0 14px;
  letter-spacing: -.03em;
}
.posts-feature-body h2 a { color: #0B2A24; text-decoration: none; }
.posts-feature-body h2 a:hover { color: #7A5B12; }
.posts-feature-body p {
  margin: 0 0 18px;
  color: #4A524C;
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 58ch;
}
.posts-feature-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0B2A24;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .78rem;
  text-decoration: none;
  border-bottom: 1px solid #C9A227;
  padding-bottom: 3px;
}
.posts-feature-verse {
  margin: 0;
  background: #0B2A24;
  color: #F6EEDC;
  padding: 22px 22px 20px;
  border-left: 3px solid #C9A227;
}
.posts-feature-verse p {
  margin: 0 0 10px;
  font-family: var(--head);
  font-size: 1.05rem;
  line-height: 1.45;
  color: #F6EEDC;
}
.posts-feature-verse cite { color: #E2C36A; font-style: normal; font-size: .8rem; letter-spacing: .06em; }

.posts-index {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.posts-index-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 28px;
  gap: 16px;
  align-items: center;
  padding: 18px 6px;
  border-bottom: 1px solid rgba(28,36,31,.1);
  text-decoration: none;
  color: inherit;
}
.posts-index-row:hover { background: rgba(11,42,36,.04); }
.posts-index-row time {
  color: #6A736C;
  font-size: .86rem;
  letter-spacing: .04em;
}
.posts-index-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.posts-index-copy strong {
  font-family: var(--head);
  font-size: 1.22rem;
  font-weight: 600;
  color: #0B2A24;
}
.posts-index-copy em {
  font-style: normal;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #A07A20;
  font-weight: 800;
}
.posts-index-go { color: #C9A227; font-size: 1.1rem; }
.posts-empty { padding: 40px 0; color: #4A524C; }
.posts-pagination { margin-top: 32px; }
.msg-card-theme { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #A07A20; font-weight: 800; margin: 0; }
.posts-page .msg-lang {
  background: transparent !important;
  color: #0B2A24 !important;
  border: 1px solid rgba(11,42,36,.2);
  border-radius: 0;
  padding: 3px 8px;
  font-size: .65rem;
  letter-spacing: .12em;
  width: max-content;
}

.msg-article { background: transparent; }
.msg-hero { padding: 40px 0 8px; }
.msg-hero h1 { color: var(--hope-sage-deep); }
.msg-kicker { color: var(--hope-gold); }
.msg-byline {
  color: var(--hope-mute);
  display: flex;
  align-items: center;
  gap: 12px;
}
.msg-byline-photo {
  width: 48px;
  height: 62px;
  object-fit: cover;
  object-position: 50% 12%;
  border-radius: 10px;
  border: 1px solid var(--hope-line);
  background: #fff;
}
.msg-layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) 260px;
  gap: 36px;
  padding: 12px 0 80px;
  justify-content: center;
}
.msg-body { font-size: 1.12rem; line-height: 1.85; color: var(--hope-ink); max-width: 66ch; }
.msg-scripture {
  background: #F7F2E8;
  color: var(--hope-ink);
  border: 1px solid var(--hope-line);
  border-left: 4px solid var(--hope-gold);
  border-radius: 18px;
  padding: 24px 26px;
}
.msg-scripture-label { color: var(--hope-gold); }
.msg-scripture p { color: var(--hope-sage-deep); }
.msg-scripture cite { color: var(--hope-mute); opacity: 1; }
.msg-panel {
  background: var(--hope-paper);
  border: 1px solid var(--hope-line);
  border-radius: 18px;
}
.msg-panel--gold { background: #FBF6EA; border-color: rgba(176,138,69,.22); }
.msg-panel h2 { color: var(--hope-sage-deep); }
.msg-aside { top: calc(var(--site-header-height, 115px) + 20px); }
.msg-card {
  background: var(--hope-paper);
  border: 1px solid var(--hope-line);
  box-shadow: none;
}
.msg-card h3 { color: var(--hope-mute); }
.share-dock { display: grid; gap: 8px; }
.share-dock a,
.share-dock button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: 1px solid var(--hope-line);
  background: #F7F3EA;
  color: var(--hope-sage-deep);
  text-decoration: none;
  font: inherit;
  font-size: .86rem;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
}
.share-dock a:hover,
.share-dock button:hover { background: var(--hope-mist); }
.share-dock .is-copied { background: var(--hope-sage); color: #fff; border-color: var(--hope-sage); }
.msg-related a { color: var(--hope-sage-deep); }

@media (min-width: 800px) {
  .post-grid--messages { grid-template-columns: 1fr 1fr; }
  .msg-card-home.is-lead { grid-column: 1 / -1; grid-template-columns: 1.15fr .85fr; align-items: center; }
}
@media (max-width: 900px) {
  .msg-layout { grid-template-columns: 1fr; }
  .msg-feature-aside { border-left: 0 !important; border-top: 1px solid var(--hope-line) !important; }
  .posts-masthead-inner,
  .posts-feature { grid-template-columns: 1fr; }
  .posts-masthead-photo { width: min(280px, 70%); justify-self: start; }
  .posts-masthead-photo img { height: 300px; }
  .posts-index-row { grid-template-columns: 88px minmax(0, 1fr) 22px; }
}
