/* Message pages (/life-lessons/<slug>/), generated by tools/render_messages.py. Needs site.css, pages.css, faq.css.
   Each message takes its look from its YouTube thumbnail on Gian's brand: the title keyword is split in two finishes
   (--msg-stone → gold) with gold swoosh arrows at the seam. Per-message colors come in as inline custom properties. */

/* ---------- Title motif (same as tools/render_campaign.py) ---------- */
.motif { position: relative; display: inline-block; font-weight: 900; line-height: .95; letter-spacing: -.01em; text-transform: uppercase; white-space: nowrap; }
.motif__stone {
  background: var(--msg-cracks) 0 0 / 240px 160px, linear-gradient(180deg, #d4d5da 0%, var(--msg-stone, #8E8F96) 38%, var(--msg-stone-dk, #5E5F66) 78%, #3d3e44 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 .03em 0 #4a4b51) drop-shadow(0 .03em 0 #33343a) drop-shadow(0 .06em .08em rgba(0, 0, 0, .55));
}
.motif__gold {
  background: linear-gradient(180deg, #fff1b8 0%, var(--gold-lt) 30%, var(--gold-dk) 68%, #a8661a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 .03em 0 #9a5d12) drop-shadow(0 .03em 0 #6e400a) drop-shadow(0 0 .25em rgba(237, 188, 85, .35)) drop-shadow(0 .06em .08em rgba(0, 0, 0, .5));
}
.motif__seam { position: relative; display: inline-block; z-index: 3; }
.motif__arrows { position: absolute; left: -.5em; top: -.9em; display: block; width: 1em; max-width: none; height: 1.2em; overflow: visible; pointer-events: none; }

/* ---------- Hero ---------- */
.msg-hero { padding-block: clamp(56px, 8vw, 110px) clamp(48px, 6vw, 84px); text-align: center; }
.msg-hero::before { content: ""; position: absolute; inset: 0; background: url(../img/streaks.svg) center / cover no-repeat; opacity: .45; mix-blend-mode: screen; pointer-events: none; }
.msg-hero .container { position: relative; }
.msg-hero h1 { margin: 22px 0 0; font-size: clamp(44px, 10.5vw, 128px); line-height: 1; letter-spacing: 0; }
.msg-hero__sub { max-width: 40ch; margin: 26px auto 0; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3; color: var(--silver); }
.msg-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 22px; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--silver-dk); }
.msg-meta span + span::before { content: "·"; margin-right: 18px; color: var(--gold); }

/* ---------- Video ---------- */
.msg-video { position: relative; max-width: 980px; margin: clamp(36px, 5vw, 56px) auto 0; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px rgba(223, 167, 64, .35), 0 50px 100px -50px rgba(0, 0, 0, .9); }
.msg-video iframe, .msg-video__play, .msg-video__play img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.msg-video__play img { object-fit: cover; }
.msg-video__btn { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  background: var(--gold-grad, linear-gradient(135deg, #EDBC55, #D8972F)); color: var(--abyss); box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .7); transition: transform .25s; }
.msg-video__btn .ico { width: 34px; height: 34px; margin-left: 4px; }
.msg-video__play:hover .msg-video__btn, .msg-video__play:focus-visible .msg-video__btn { transform: scale(1.08); }
.msg-hero .btn-row { justify-content: center; margin-top: 30px; }

/* ---------- Article ---------- */
.msg-article { max-width: 70ch; margin-inline: auto; font-size: 18.5px; line-height: 1.7; color: var(--ink); }
.msg-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 40px; padding-bottom: 26px; border-bottom: 1px solid var(--rule-light); font-size: 14px; color: var(--muted); }
.msg-byline img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.msg-byline strong { display: block; font-size: 15.5px; color: var(--navy); }
.msg-article h2 { margin: 52px 0 16px; font-size: clamp(24px, 2.6vw, 31px); font-weight: 800; letter-spacing: .01em; text-transform: uppercase; color: var(--navy); line-height: 1.15; }
.msg-article h2::before { content: ""; display: block; width: 56px; height: 3px; margin-bottom: 16px; border-radius: 2px; background: linear-gradient(90deg, var(--msg-stone, #8E8F96) 0 45%, var(--gold-dk) 55% 100%); }
.msg-article p + p, .msg-article p + ul, .msg-article p + ol, .msg-article ul + p, .msg-article ol + p { margin-top: 18px; }
.msg-article ul, .msg-article ol { padding-left: 1.3em; }
.msg-article ul { list-style: disc; }
.msg-article ol { list-style: decimal; }
.msg-article li { margin-top: 10px; padding-left: .2em; }
.msg-article li::marker { color: var(--gold-dk); font-weight: 700; }
.msg-article em { color: var(--muted); }
.msg-article blockquote { margin: 34px 0; padding: 6px 0 6px 28px; border-left: 3px solid var(--gold); font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(25px, 2.8vw, 32px); line-height: 1.3; color: var(--navy); }
.msg-article blockquote p + p { margin-top: 8px; }
.msg-article > p:last-child { margin-top: 40px; font-family: var(--serif); font-size: 24px; color: var(--navy); }

/* ---------- Scriptures & key moments ---------- */
.msg-cols { display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: 1fr; max-width: 1100px; margin-inline: auto; }
@media (min-width: 900px) { .msg-cols { grid-template-columns: 1fr 1fr; } }
.msg-panel { padding: clamp(26px, 3vw, 38px); border-radius: 18px; background: #fff; box-shadow: 0 30px 60px -48px rgba(7, 26, 57, .55); }
.msg-panel h2 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: var(--navy); }
.msg-panel .kicker { margin-bottom: 10px; color: var(--gold-dk); }
.msg-list { list-style: none; margin-top: 18px; padding: 0; }
.msg-list li { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--rule-light); }
.msg-list li:first-child { border-top: 0; }
.msg-time { display: inline-block; min-width: 58px; padding: 3px 9px; border-radius: 999px; background: var(--navy); color: var(--gold-lt); font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: center; }
a.msg-time:hover { background: var(--blue); color: #fff; }
.msg-list__label { font-weight: 600; color: var(--navy); }
.msg-list__refs { grid-column: 2; font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink); }
.msg-list a.msg-list__label:hover { color: var(--blue); }

/* ---------- Transcript ---------- */
.msg-transcript { max-width: 70ch; margin-inline: auto; border-top: 1px solid var(--rule-light); border-bottom: 1px solid var(--rule-light); }
.msg-transcript summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0; cursor: pointer; list-style: none; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; font-size: 20px; color: var(--navy); }
.msg-transcript summary::-webkit-details-marker { display: none; }
.msg-transcript summary span { font-size: 12px; font-weight: 600; letter-spacing: .2em; color: var(--muted); }
.msg-transcript[open] summary span::after { content: " · close"; }
.msg-transcript__body { padding-bottom: 30px; font-size: 16.5px; line-height: 1.75; color: var(--ink); }
.msg-transcript__body h3 { display: flex; align-items: center; gap: 12px; margin: 30px 0 10px; font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--navy); }
.msg-transcript__body h3:first-child { margin-top: 6px; }
.msg-transcript__note { margin-top: 26px; font-size: 13.5px; color: var(--muted); }
